From 45106bf16a05ca42111e99755eeea2ca7a5217a8 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 15 Feb 2026 09:04:26 -0800 Subject: [PATCH 01/14] Update sliver submodule to v1.7.1 --- sliver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sliver b/sliver index f1d4a51..2f386b7 160000 --- a/sliver +++ b/sliver @@ -1 +1 @@ -Subproject commit f1d4a51e7340c0eaa25be99413eef8496a3bdf98 +Subproject commit 2f386b7e096fff1180d59a6c995cfd02c26690d6 From 76c9c5967c5193fa38de205bf688989ee4e693fc Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 15 Feb 2026 09:05:56 -0800 Subject: [PATCH 02/14] Remove old publish workflow --- .github/workflows/publish.yml | 23 ----------------------- 1 file changed, 23 deletions(-) delete mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index 3a99422..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: NPM Publish - -on: - push: - tags: ["v[0-9]+.[0-9]+.[0-9]+"] - branches: [master] - -jobs: - publish: - runs-on: ubuntu-latest - if: startsWith( github.ref, 'refs/tags/v') - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 - with: - node-version: 16 - - - run: npm install - - run: npm run build - - - uses: JS-DevTools/npm-publish@v1 - with: - token: ${{ secrets.NPM_TOKEN }} \ No newline at end of file From 9b5f9bdba06591362feb4ee0b40ea225c6423c53 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 15 Feb 2026 09:13:58 -0800 Subject: [PATCH 03/14] Add configs to gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 9942c7b..f4587f5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ lib +*.cfg + + /src/*.js /examples/shell/*.js From f811a4db0bc33c9d0a36a37a31d840f53cf40c2a Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 15 Feb 2026 11:43:29 -0800 Subject: [PATCH 04/14] Major refactor --- .github/workflows/build-check.yml | 9 +- .gitignore | 2 +- .nvmrc | 2 + README.md | 44 +- docs/assets/hierarchy.js | 1 + docs/assets/highlight.css | 6 +- docs/assets/icons.css | 1043 - docs/assets/icons.js | 18 + docs/assets/icons.png | Bin 9615 -> 0 bytes docs/assets/icons.svg | 1 + docs/assets/icons@2x.png | Bin 28144 -> 0 bytes docs/assets/main.js | 112 +- docs/assets/navigation.js | 1 + docs/assets/search.js | 2 +- docs/assets/style.css | 2906 +- docs/assets/widgets.png | Bin 480 -> 0 bytes docs/assets/widgets@2x.png | Bin 855 -> 0 bytes docs/classes/InteractiveBeacon.html | 36 +- docs/classes/InteractiveSession.html | 36 +- docs/classes/SliverClient.html | 56 +- docs/enums/clientpb.CrackAttackMode.html | 9 + docs/enums/clientpb.CrackEncoding.html | 5 + docs/enums/clientpb.CrackFileType.html | 6 + docs/enums/clientpb.CrackJobStatus.html | 5 + docs/enums/clientpb.CrackOutfileFormat.html | 15 + docs/enums/clientpb.CrackWorkloadProfile.html | 7 + docs/enums/clientpb.FileType.html | 6 + docs/enums/clientpb.HTTPC2SegmentType.html | 5 + docs/enums/clientpb.HashType.html | 244 + docs/enums/clientpb.OutputFormat.html | 7 + docs/enums/clientpb.ShellcodeEncoder.html | 7 + docs/enums/clientpb.StageProtocol.html | 5 + docs/enums/clientpb.States.html | 5 + docs/enums/dnspb.DNSMessageType.html | 11 + docs/enums/sliverpb.PeerFailureType.html | 4 + docs/enums/sliverpb.PivotType.html | 5 + docs/enums/sliverpb.RegistryType.html | 8 + docs/functions/ListConfigs-1.html | 1 + docs/functions/ParseConfig-1.html | 1 + docs/functions/ParseConfigFile-1.html | 1 + .../clientpb.crackAttackModeFromJSON.html | 1 + .../clientpb.crackAttackModeToJSON.html | 1 + .../clientpb.crackEncodingFromJSON.html | 1 + .../clientpb.crackEncodingToJSON.html | 1 + .../clientpb.crackFileTypeFromJSON.html | 1 + .../clientpb.crackFileTypeToJSON.html | 1 + .../clientpb.crackJobStatusFromJSON.html | 1 + .../clientpb.crackJobStatusToJSON.html | 1 + .../clientpb.crackOutfileFormatFromJSON.html | 1 + .../clientpb.crackOutfileFormatToJSON.html | 1 + ...clientpb.crackWorkloadProfileFromJSON.html | 1 + .../clientpb.crackWorkloadProfileToJSON.html | 1 + docs/functions/clientpb.fileTypeFromJSON.html | 1 + docs/functions/clientpb.fileTypeToJSON.html | 1 + .../clientpb.hTTPC2SegmentTypeFromJSON.html | 1 + .../clientpb.hTTPC2SegmentTypeToJSON.html | 1 + docs/functions/clientpb.hashTypeFromJSON.html | 1 + docs/functions/clientpb.hashTypeToJSON.html | 1 + .../clientpb.outputFormatFromJSON.html | 1 + .../clientpb.outputFormatToJSON.html | 1 + .../clientpb.shellcodeEncoderFromJSON.html | 1 + .../clientpb.shellcodeEncoderToJSON.html | 1 + .../clientpb.stageProtocolFromJSON.html | 1 + .../clientpb.stageProtocolToJSON.html | 1 + docs/functions/clientpb.statesFromJSON.html | 1 + docs/functions/clientpb.statesToJSON.html | 1 + .../dnspb.dNSMessageTypeFromJSON.html | 1 + .../functions/dnspb.dNSMessageTypeToJSON.html | 1 + docs/functions/listConfigs.html | 1 + docs/functions/parseConfig.html | 1 + docs/functions/parseConfigFile.html | 1 + .../sliverpb.peerFailureTypeFromJSON.html | 1 + .../sliverpb.peerFailureTypeToJSON.html | 1 + .../functions/sliverpb.pivotTypeFromJSON.html | 1 + docs/functions/sliverpb.pivotTypeToJSON.html | 1 + .../sliverpb.registryTypeFromJSON.html | 1 + .../sliverpb.registryTypeToJSON.html | 1 + docs/index.html | 48 +- docs/interfaces/SliverClientConfig.html | 9 +- docs/interfaces/Tunnel.html | 6 +- docs/interfaces/clientpb.AllHosts.html | 2 + docs/interfaces/clientpb.AllLoot.html | 2 + docs/interfaces/clientpb.Backdoor.html | 2 + docs/interfaces/clientpb.BackdoorReq.html | 5 + docs/interfaces/clientpb.Beacon.html | 31 + docs/interfaces/clientpb.BeaconIntegrity.html | 3 + docs/interfaces/clientpb.BeaconTask.html | 10 + docs/interfaces/clientpb.BeaconTasks.html | 3 + docs/interfaces/clientpb.Beacons.html | 2 + docs/interfaces/clientpb.Builder.html | 10 + docs/interfaces/clientpb.Builders.html | 2 + docs/interfaces/clientpb.C2ProfileReq.html | 2 + docs/interfaces/clientpb.CUDABackendInfo.html | 11 + docs/interfaces/clientpb.Canaries.html | 2 + .../clientpb.CertificateAuthorityData.html | 8 + .../clientpb.CertificateAuthorityInfo.html | 2 + docs/interfaces/clientpb.CertificateData.html | 8 + docs/interfaces/clientpb.CertificateInfo.html | 2 + docs/interfaces/clientpb.CertificatesReq.html | 3 + docs/interfaces/clientpb.Client.html | 5 + docs/interfaces/clientpb.ClientLogData.html | 4 + docs/interfaces/clientpb.CloseTunnelReq.html | 3 + docs/interfaces/clientpb.Compiler.html | 8 + docs/interfaces/clientpb.CompilerTarget.html | 6 + docs/interfaces/clientpb.CrackBenchmark.html | 4 + ...ientpb.CrackBenchmark_BenchmarksEntry.html | 3 + docs/interfaces/clientpb.CrackCommand.html | 122 + docs/interfaces/clientpb.CrackConfig.html | 5 + docs/interfaces/clientpb.CrackFile.html | 12 + docs/interfaces/clientpb.CrackFileChunk.html | 5 + docs/interfaces/clientpb.CrackFiles.html | 4 + docs/interfaces/clientpb.CrackJob.html | 8 + docs/interfaces/clientpb.CrackResponse.html | 2 + docs/interfaces/clientpb.CrackSyncStatus.html | 3 + ...lientpb.CrackSyncStatus_ProgressEntry.html | 3 + docs/interfaces/clientpb.CrackTask.html | 9 + docs/interfaces/clientpb.Crackstation.html | 15 + .../clientpb.CrackstationStatus.html | 7 + ...clientpb.Crackstation_BenchmarksEntry.html | 3 + docs/interfaces/clientpb.Crackstations.html | 3 + docs/interfaces/clientpb.CreateTunnel.html | 3 + docs/interfaces/clientpb.CreateTunnelReq.html | 3 + docs/interfaces/clientpb.Credential.html | 9 + docs/interfaces/clientpb.Credentials.html | 2 + docs/interfaces/clientpb.CrossCompiler.html | 7 + docs/interfaces/clientpb.DNSCanary.html | 9 + docs/interfaces/clientpb.DNSListenerReq.html | 6 + docs/interfaces/clientpb.DeleteReq.html | 2 + docs/interfaces/clientpb.DllHijack.html | 2 + docs/interfaces/clientpb.DllHijackReq.html | 9 + docs/interfaces/clientpb.Event.html | 8 + docs/interfaces/clientpb.ExtensionData.html | 2 + .../clientpb.ExternalGenerateReq.html | 4 + .../clientpb.ExternalImplantBinary.html | 4 + .../clientpb.ExternalImplantConfig.html | 5 + ...b.ExternalImplantConfig_EncodersEntry.html | 3 + docs/interfaces/clientpb.Generate.html | 2 + docs/interfaces/clientpb.GenerateReq.html | 3 + .../interfaces/clientpb.GenerateStageReq.html | 9 + docs/interfaces/clientpb.GetSystemReq.html | 7 + docs/interfaces/clientpb.HTTPC2Config.html | 6 + docs/interfaces/clientpb.HTTPC2ConfigReq.html | 3 + docs/interfaces/clientpb.HTTPC2Configs.html | 3 + docs/interfaces/clientpb.HTTPC2Cookie.html | 3 + docs/interfaces/clientpb.HTTPC2Header.html | 6 + .../clientpb.HTTPC2ImplantConfig.html | 18 + .../clientpb.HTTPC2PathSegment.html | 4 + .../clientpb.HTTPC2ServerConfig.html | 5 + .../clientpb.HTTPC2URLParameter.html | 6 + docs/interfaces/clientpb.HTTPListenerReq.html | 15 + docs/interfaces/clientpb.Host.html | 9 + .../clientpb.Host_ExtensionDataEntry.html | 3 + docs/interfaces/clientpb.IOC.html | 5 + docs/interfaces/clientpb.ImplantBuild.html | 21 + docs/interfaces/clientpb.ImplantBuilds.html | 5 + .../clientpb.ImplantBuilds_ConfigsEntry.html | 3 + ...ientpb.ImplantBuilds_ResourceIDsEntry.html | 3 + .../clientpb.ImplantBuilds_StagedEntry.html | 3 + docs/interfaces/clientpb.ImplantC2.html | 6 + docs/interfaces/clientpb.ImplantConfig.html | 52 + docs/interfaces/clientpb.ImplantProfile.html | 4 + docs/interfaces/clientpb.ImplantProfiles.html | 2 + docs/interfaces/clientpb.ImplantStageReq.html | 2 + docs/interfaces/clientpb.Job.html | 8 + docs/interfaces/clientpb.Jobs.html | 2 + docs/interfaces/clientpb.KillJob.html | 3 + docs/interfaces/clientpb.KillJobReq.html | 2 + docs/interfaces/clientpb.ListenerJob.html | 11 + docs/interfaces/clientpb.Loot.html | 7 + docs/interfaces/clientpb.MSFRemoteReq.html | 8 + docs/interfaces/clientpb.MSFReq.html | 7 + docs/interfaces/clientpb.MTLSListenerReq.html | 3 + docs/interfaces/clientpb.MessageFns.html | 7 + .../interfaces/clientpb.MetalBackendInfo.html | 11 + docs/interfaces/clientpb.MigrateReq.html | 9 + .../clientpb.MonitoringProvider.html | 5 + .../clientpb.MonitoringProviders.html | 3 + .../clientpb.MultiplayerListenerReq.html | 3 + docs/interfaces/clientpb.NamedPipes.html | 4 + docs/interfaces/clientpb.NamedPipesReq.html | 4 + .../clientpb.OpenCLBackendInfo.html | 12 + docs/interfaces/clientpb.Operator.html | 3 + docs/interfaces/clientpb.Operators.html | 2 + docs/interfaces/clientpb.PivotGraph.html | 2 + docs/interfaces/clientpb.PivotGraphEntry.html | 6 + docs/interfaces/clientpb.RegenerateReq.html | 2 + docs/interfaces/clientpb.RenameReq.html | 4 + docs/interfaces/clientpb.ResourceID.html | 6 + docs/interfaces/clientpb.RestartJobReq.html | 2 + docs/interfaces/clientpb.Session.html | 29 + docs/interfaces/clientpb.Sessions.html | 3 + docs/interfaces/clientpb.ShellcodeConfig.html | 20 + docs/interfaces/clientpb.ShellcodeEncode.html | 3 + .../clientpb.ShellcodeEncodeReq.html | 7 + .../clientpb.ShellcodeEncoderArchMap.html | 3 + ...lcodeEncoderArchMap_DescriptionsEntry.html | 3 + ...ShellcodeEncoderArchMap_EncodersEntry.html | 3 + .../clientpb.ShellcodeEncoderMap.html | 2 + ...tpb.ShellcodeEncoderMap_EncodersEntry.html | 3 + docs/interfaces/clientpb.ShellcodeRDI.html | 2 + docs/interfaces/clientpb.ShellcodeRDIReq.html | 4 + docs/interfaces/clientpb.StagerListener.html | 2 + .../clientpb.StagerListenerReq.html | 6 + docs/interfaces/clientpb.TCPPivot.html | 4 + docs/interfaces/clientpb.TCPPivotReq.html | 4 + docs/interfaces/clientpb.TrafficEncoder.html | 5 + .../clientpb.TrafficEncoderMap.html | 3 + ...entpb.TrafficEncoderMap_EncodersEntry.html | 3 + .../clientpb.TrafficEncoderTest.html | 8 + .../clientpb.TrafficEncoderTests.html | 5 + docs/interfaces/clientpb.UniqueWGIP.html | 3 + docs/interfaces/clientpb.Version.html | 9 + docs/interfaces/clientpb.WGClientConfig.html | 5 + docs/interfaces/clientpb.WGListenerReq.html | 6 + docs/interfaces/clientpb.WebContent.html | 10 + docs/interfaces/clientpb.Website.html | 4 + .../clientpb.WebsiteAddContent.html | 3 + ...entpb.WebsiteAddContent_ContentsEntry.html | 3 + .../clientpb.WebsiteRemoveContent.html | 3 + .../clientpb.Website_ContentsEntry.html | 3 + docs/interfaces/clientpb.Websites.html | 2 + docs/interfaces/commonpb.Empty.html | 1 + docs/interfaces/commonpb.EnvVar.html | 4 + docs/interfaces/commonpb.File.html | 4 + docs/interfaces/commonpb.MessageFns.html | 7 + docs/interfaces/commonpb.Process.html | 9 + docs/interfaces/commonpb.Request.html | 6 + docs/interfaces/commonpb.Response.html | 8 + docs/interfaces/dnspb.DNSMessage.html | 14 + docs/interfaces/dnspb.MessageFns.html | 7 + docs/interfaces/rpcpb.SliverRPCClient.html | 299 + .../rpcpb.SliverRPCServiceImplementation.html | 216 + docs/interfaces/sliverpb.BeaconRegister.html | 6 + docs/interfaces/sliverpb.BeaconTasks.html | 5 + docs/interfaces/sliverpb.CallExtension.html | 4 + .../interfaces/sliverpb.CallExtensionReq.html | 6 + docs/interfaces/sliverpb.CdReq.html | 3 + docs/interfaces/sliverpb.Chmod.html | 3 + docs/interfaces/sliverpb.ChmodReq.html | 5 + docs/interfaces/sliverpb.Chown.html | 3 + docs/interfaces/sliverpb.ChownReq.html | 6 + docs/interfaces/sliverpb.Chtimes.html | 3 + docs/interfaces/sliverpb.ChtimesReq.html | 5 + docs/interfaces/sliverpb.CloseSession.html | 3 + docs/interfaces/sliverpb.Cp.html | 5 + docs/interfaces/sliverpb.CpReq.html | 4 + .../sliverpb.CurrentTokenOwner.html | 3 + .../sliverpb.CurrentTokenOwnerReq.html | 2 + .../sliverpb.DeregisterWasmExtensionReq.html | 3 + docs/interfaces/sliverpb.Download.html | 11 + docs/interfaces/sliverpb.DownloadReq.html | 9 + docs/interfaces/sliverpb.EnvInfo.html | 3 + docs/interfaces/sliverpb.EnvReq.html | 3 + docs/interfaces/sliverpb.Envelope.html | 11 + .../sliverpb.ExecWasmExtension.html | 5 + .../sliverpb.ExecWasmExtensionReq.html | 8 + ...verpb.ExecWasmExtensionReq_MemFSEntry.html | 3 + docs/interfaces/sliverpb.Execute.html | 6 + docs/interfaces/sliverpb.ExecuteAssembly.html | 3 + .../sliverpb.ExecuteAssemblyReq.html | 17 + docs/interfaces/sliverpb.ExecuteChild.html | 11 + docs/interfaces/sliverpb.ExecuteChildren.html | 3 + .../sliverpb.ExecuteChildrenReq.html | 2 + docs/interfaces/sliverpb.ExecuteReq.html | 11 + .../sliverpb.ExecuteReq_EnvEntry.html | 3 + .../sliverpb.ExecuteWindowsReq.html | 11 + docs/interfaces/sliverpb.FileInfo.html | 9 + docs/interfaces/sliverpb.GetPrivs.html | 5 + docs/interfaces/sliverpb.GetPrivsReq.html | 2 + docs/interfaces/sliverpb.GetSystem.html | 3 + docs/interfaces/sliverpb.Grep.html | 4 + .../interfaces/sliverpb.GrepLinePosition.html | 3 + docs/interfaces/sliverpb.GrepReq.html | 7 + docs/interfaces/sliverpb.GrepResult.html | 6 + .../sliverpb.GrepResultsForFile.html | 3 + .../sliverpb.Grep_ResultsEntry.html | 3 + docs/interfaces/sliverpb.HTTPSessionInit.html | 3 + docs/interfaces/sliverpb.Ifconfig.html | 3 + docs/interfaces/sliverpb.IfconfigReq.html | 3 + docs/interfaces/sliverpb.Impersonate.html | 2 + docs/interfaces/sliverpb.ImpersonateReq.html | 3 + .../sliverpb.InvokeExecuteAssemblyReq.html | 6 + .../sliverpb.InvokeGetSystemReq.html | 6 + ...iverpb.InvokeInProcExecuteAssemblyReq.html | 7 + .../interfaces/sliverpb.InvokeMigrateReq.html | 5 + .../sliverpb.InvokeSpawnDllReq.html | 9 + docs/interfaces/sliverpb.KillReq.html | 4 + docs/interfaces/sliverpb.ListExtensions.html | 3 + .../sliverpb.ListExtensionsReq.html | 2 + .../sliverpb.ListWasmExtensions.html | 3 + .../sliverpb.ListWasmExtensionsReq.html | 2 + docs/interfaces/sliverpb.Ls.html | 7 + docs/interfaces/sliverpb.LsReq.html | 3 + docs/interfaces/sliverpb.MakeToken.html | 2 + docs/interfaces/sliverpb.MakeTokenReq.html | 6 + docs/interfaces/sliverpb.MemfilesAdd.html | 3 + docs/interfaces/sliverpb.MemfilesAddReq.html | 2 + docs/interfaces/sliverpb.MemfilesListReq.html | 2 + docs/interfaces/sliverpb.MemfilesRm.html | 3 + docs/interfaces/sliverpb.MemfilesRmReq.html | 3 + docs/interfaces/sliverpb.MessageFns.html | 7 + docs/interfaces/sliverpb.Migrate.html | 4 + docs/interfaces/sliverpb.Mkdir.html | 3 + docs/interfaces/sliverpb.MkdirReq.html | 3 + docs/interfaces/sliverpb.Mount.html | 3 + docs/interfaces/sliverpb.MountInfo.html | 10 + docs/interfaces/sliverpb.MountReq.html | 2 + docs/interfaces/sliverpb.Mv.html | 4 + docs/interfaces/sliverpb.MvReq.html | 4 + docs/interfaces/sliverpb.NetConnPivot.html | 3 + docs/interfaces/sliverpb.NetInterface.html | 5 + docs/interfaces/sliverpb.Netstat.html | 3 + docs/interfaces/sliverpb.NetstatReq.html | 7 + docs/interfaces/sliverpb.OpenSession.html | 5 + docs/interfaces/sliverpb.Ping.html | 7 + docs/interfaces/sliverpb.PivotHello.html | 5 + docs/interfaces/sliverpb.PivotListener.html | 6 + docs/interfaces/sliverpb.PivotListeners.html | 3 + .../sliverpb.PivotListenersReq.html | 2 + docs/interfaces/sliverpb.PivotPeer.html | 3 + .../sliverpb.PivotPeerEnvelope.html | 6 + .../interfaces/sliverpb.PivotPeerFailure.html | 4 + docs/interfaces/sliverpb.PivotPing.html | 2 + .../sliverpb.PivotServerKeyExchange.html | 3 + .../sliverpb.PivotStartListenerReq.html | 5 + .../sliverpb.PivotStopListenerReq.html | 3 + docs/interfaces/sliverpb.PollInterval.html | 2 + docs/interfaces/sliverpb.PollIntervalReq.html | 4 + docs/interfaces/sliverpb.Portfwd.html | 7 + docs/interfaces/sliverpb.PortfwdReq.html | 7 + docs/interfaces/sliverpb.ProcessDump.html | 3 + docs/interfaces/sliverpb.ProcessDumpReq.html | 4 + docs/interfaces/sliverpb.Ps.html | 3 + docs/interfaces/sliverpb.PsReq.html | 4 + docs/interfaces/sliverpb.Pwd.html | 3 + docs/interfaces/sliverpb.PwdReq.html | 2 + docs/interfaces/sliverpb.RPortfwd.html | 7 + docs/interfaces/sliverpb.RPortfwdReq.html | 7 + docs/interfaces/sliverpb.Reconfigure.html | 2 + docs/interfaces/sliverpb.ReconfigureReq.html | 6 + docs/interfaces/sliverpb.Register.html | 19 + .../sliverpb.RegisterExtension.html | 2 + .../sliverpb.RegisterExtensionReq.html | 6 + .../sliverpb.RegisterWasmExtension.html | 2 + .../sliverpb.RegisterWasmExtensionReq.html | 4 + .../sliverpb.RegistryCreateKey.html | 2 + .../sliverpb.RegistryCreateKeyReq.html | 6 + .../sliverpb.RegistryDeleteKey.html | 2 + .../sliverpb.RegistryDeleteKeyReq.html | 6 + .../sliverpb.RegistryListValuesReq.html | 6 + docs/interfaces/sliverpb.RegistryRead.html | 3 + .../interfaces/sliverpb.RegistryReadHive.html | 4 + .../sliverpb.RegistryReadHiveReq.html | 4 + docs/interfaces/sliverpb.RegistryReadReq.html | 6 + .../sliverpb.RegistrySubKeyList.html | 3 + .../sliverpb.RegistrySubKeyListReq.html | 6 + .../sliverpb.RegistryValuesList.html | 3 + docs/interfaces/sliverpb.RegistryWrite.html | 2 + .../interfaces/sliverpb.RegistryWriteReq.html | 11 + .../interfaces/sliverpb.RemoveServiceReq.html | 3 + docs/interfaces/sliverpb.RevToSelf.html | 2 + docs/interfaces/sliverpb.RevToSelfReq.html | 2 + docs/interfaces/sliverpb.Rm.html | 3 + docs/interfaces/sliverpb.RmReq.html | 5 + .../interfaces/sliverpb.RportFwdListener.html | 7 + .../sliverpb.RportFwdListeners.html | 3 + .../sliverpb.RportFwdListenersReq.html | 2 + .../sliverpb.RportFwdStartListenerReq.html | 6 + .../sliverpb.RportFwdStopListenerReq.html | 3 + docs/interfaces/sliverpb.RunAs.html | 3 + docs/interfaces/sliverpb.RunAsReq.html | 9 + docs/interfaces/sliverpb.SSHCommand.html | 4 + docs/interfaces/sliverpb.SSHCommandReq.html | 11 + docs/interfaces/sliverpb.Screenshot.html | 3 + docs/interfaces/sliverpb.ScreenshotReq.html | 3 + docs/interfaces/sliverpb.ServiceDetail.html | 4 + .../interfaces/sliverpb.ServiceDetailReq.html | 3 + docs/interfaces/sliverpb.ServiceDetails.html | 8 + docs/interfaces/sliverpb.ServiceInfo.html | 2 + docs/interfaces/sliverpb.ServiceInfoReq.html | 3 + docs/interfaces/sliverpb.Services.html | 4 + docs/interfaces/sliverpb.ServicesReq.html | 3 + docs/interfaces/sliverpb.SessionRegister.html | 3 + docs/interfaces/sliverpb.SetEnv.html | 2 + docs/interfaces/sliverpb.SetEnvReq.html | 3 + docs/interfaces/sliverpb.Shell.html | 7 + docs/interfaces/sliverpb.ShellReq.html | 10 + docs/interfaces/sliverpb.ShellResizeReq.html | 5 + docs/interfaces/sliverpb.Sideload.html | 3 + docs/interfaces/sliverpb.SideloadReq.html | 11 + docs/interfaces/sliverpb.SockTabEntry.html | 7 + .../sliverpb.SockTabEntry_SockAddr.html | 3 + docs/interfaces/sliverpb.Socks.html | 3 + docs/interfaces/sliverpb.SocksData.html | 8 + docs/interfaces/sliverpb.SpawnDll.html | 3 + docs/interfaces/sliverpb.SpawnDllReq.html | 9 + .../sliverpb.StartServiceByNameReq.html | 3 + docs/interfaces/sliverpb.StartServiceReq.html | 7 + docs/interfaces/sliverpb.StopServiceReq.html | 3 + docs/interfaces/sliverpb.Task.html | 2 + docs/interfaces/sliverpb.TaskReq.html | 6 + docs/interfaces/sliverpb.Terminate.html | 3 + docs/interfaces/sliverpb.TerminateReq.html | 5 + docs/interfaces/sliverpb.Tunnel.html | 4 + docs/interfaces/sliverpb.TunnelData.html | 10 + docs/interfaces/sliverpb.UnsetEnv.html | 2 + docs/interfaces/sliverpb.UnsetEnvReq.html | 3 + docs/interfaces/sliverpb.Upload.html | 5 + docs/interfaces/sliverpb.UploadReq.html | 9 + docs/interfaces/sliverpb.WGPortForward.html | 3 + .../sliverpb.WGPortForwardStartReq.html | 4 + .../sliverpb.WGPortForwardStopReq.html | 3 + docs/interfaces/sliverpb.WGSocks.html | 3 + docs/interfaces/sliverpb.WGSocksServer.html | 3 + docs/interfaces/sliverpb.WGSocksServers.html | 3 + .../sliverpb.WGSocksServersReq.html | 2 + docs/interfaces/sliverpb.WGSocksStartReq.html | 3 + docs/interfaces/sliverpb.WGSocksStopReq.html | 3 + docs/interfaces/sliverpb.WGTCPForwarder.html | 4 + docs/interfaces/sliverpb.WGTCPForwarders.html | 3 + .../sliverpb.WGTCPForwardersReq.html | 2 + .../sliverpb.WindowsPrivilegeEntry.html | 7 + docs/modules.html | 2 +- docs/modules/clientpb.html | 1 + docs/modules/commonpb.html | 1 + docs/modules/dnspb.html | 1 + docs/modules/rpcpb.html | 1 + docs/modules/sliverpb.html | 1 + docs/types/clientpb.DeepPartial.html | 1 + docs/types/commonpb.DeepPartial.html | 1 + docs/types/dnspb.DeepPartial.html | 1 + docs/types/rpcpb.DeepPartial.html | 1 + .../rpcpb.ServerStreamingMethodResult.html | 1 + docs/types/rpcpb.SliverRPCDefinition.html | 1 + docs/types/sliverpb.DeepPartial.html | 1 + docs/variables/clientpb.AllHosts-1.html | 1 + docs/variables/clientpb.AllLoot-1.html | 1 + docs/variables/clientpb.Backdoor-1.html | 1 + docs/variables/clientpb.BackdoorReq-1.html | 1 + docs/variables/clientpb.Beacon-1.html | 1 + .../variables/clientpb.BeaconIntegrity-1.html | 1 + docs/variables/clientpb.BeaconTask-1.html | 1 + docs/variables/clientpb.BeaconTasks-1.html | 1 + docs/variables/clientpb.Beacons-1.html | 1 + docs/variables/clientpb.Builder-1.html | 1 + docs/variables/clientpb.Builders-1.html | 1 + docs/variables/clientpb.C2ProfileReq-1.html | 1 + .../variables/clientpb.CUDABackendInfo-1.html | 1 + docs/variables/clientpb.Canaries-1.html | 1 + .../clientpb.CertificateAuthorityData-1.html | 1 + .../clientpb.CertificateAuthorityInfo-1.html | 1 + .../variables/clientpb.CertificateData-1.html | 1 + .../variables/clientpb.CertificateInfo-1.html | 1 + .../variables/clientpb.CertificatesReq-1.html | 1 + docs/variables/clientpb.Client-1.html | 1 + docs/variables/clientpb.ClientLogData-1.html | 1 + docs/variables/clientpb.CloseTunnelReq-1.html | 1 + docs/variables/clientpb.Compiler-1.html | 1 + docs/variables/clientpb.CompilerTarget-1.html | 1 + docs/variables/clientpb.CrackBenchmark-1.html | 1 + ...ntpb.CrackBenchmark_BenchmarksEntry-1.html | 1 + docs/variables/clientpb.CrackCommand-1.html | 1 + docs/variables/clientpb.CrackConfig-1.html | 1 + docs/variables/clientpb.CrackFile-1.html | 1 + docs/variables/clientpb.CrackFileChunk-1.html | 1 + docs/variables/clientpb.CrackFiles-1.html | 1 + docs/variables/clientpb.CrackJob-1.html | 1 + docs/variables/clientpb.CrackResponse-1.html | 1 + .../variables/clientpb.CrackSyncStatus-1.html | 1 + ...entpb.CrackSyncStatus_ProgressEntry-1.html | 1 + docs/variables/clientpb.CrackTask-1.html | 1 + docs/variables/clientpb.Crackstation-1.html | 1 + .../clientpb.CrackstationStatus-1.html | 1 + ...ientpb.Crackstation_BenchmarksEntry-1.html | 1 + docs/variables/clientpb.Crackstations-1.html | 1 + docs/variables/clientpb.CreateTunnel-1.html | 1 + .../variables/clientpb.CreateTunnelReq-1.html | 1 + docs/variables/clientpb.Credential-1.html | 1 + docs/variables/clientpb.Credentials-1.html | 1 + docs/variables/clientpb.CrossCompiler-1.html | 1 + docs/variables/clientpb.DNSCanary-1.html | 1 + docs/variables/clientpb.DNSListenerReq-1.html | 1 + docs/variables/clientpb.DeleteReq-1.html | 1 + docs/variables/clientpb.DllHijack-1.html | 1 + docs/variables/clientpb.DllHijackReq-1.html | 1 + docs/variables/clientpb.Event-1.html | 1 + docs/variables/clientpb.ExtensionData-1.html | 1 + .../clientpb.ExternalGenerateReq-1.html | 1 + .../clientpb.ExternalImplantBinary-1.html | 1 + .../clientpb.ExternalImplantConfig-1.html | 1 + ...ExternalImplantConfig_EncodersEntry-1.html | 1 + docs/variables/clientpb.Generate-1.html | 1 + docs/variables/clientpb.GenerateReq-1.html | 1 + .../clientpb.GenerateStageReq-1.html | 1 + docs/variables/clientpb.GetSystemReq-1.html | 1 + docs/variables/clientpb.HTTPC2Config-1.html | 1 + .../variables/clientpb.HTTPC2ConfigReq-1.html | 1 + docs/variables/clientpb.HTTPC2Configs-1.html | 1 + docs/variables/clientpb.HTTPC2Cookie-1.html | 1 + docs/variables/clientpb.HTTPC2Header-1.html | 1 + .../clientpb.HTTPC2ImplantConfig-1.html | 1 + .../clientpb.HTTPC2PathSegment-1.html | 1 + .../clientpb.HTTPC2ServerConfig-1.html | 1 + .../clientpb.HTTPC2URLParameter-1.html | 1 + .../variables/clientpb.HTTPListenerReq-1.html | 1 + docs/variables/clientpb.Host-1.html | 1 + .../clientpb.Host_ExtensionDataEntry-1.html | 1 + docs/variables/clientpb.IOC-1.html | 1 + docs/variables/clientpb.ImplantBuild-1.html | 1 + docs/variables/clientpb.ImplantBuilds-1.html | 1 + ...clientpb.ImplantBuilds_ConfigsEntry-1.html | 1 + ...ntpb.ImplantBuilds_ResourceIDsEntry-1.html | 1 + .../clientpb.ImplantBuilds_StagedEntry-1.html | 1 + docs/variables/clientpb.ImplantC2-1.html | 1 + docs/variables/clientpb.ImplantConfig-1.html | 1 + docs/variables/clientpb.ImplantProfile-1.html | 1 + .../variables/clientpb.ImplantProfiles-1.html | 1 + .../variables/clientpb.ImplantStageReq-1.html | 1 + docs/variables/clientpb.Job-1.html | 1 + docs/variables/clientpb.Jobs-1.html | 1 + docs/variables/clientpb.KillJob-1.html | 1 + docs/variables/clientpb.KillJobReq-1.html | 1 + docs/variables/clientpb.ListenerJob-1.html | 1 + docs/variables/clientpb.Loot-1.html | 1 + docs/variables/clientpb.MSFRemoteReq-1.html | 1 + docs/variables/clientpb.MSFReq-1.html | 1 + .../variables/clientpb.MTLSListenerReq-1.html | 1 + .../clientpb.MetalBackendInfo-1.html | 1 + docs/variables/clientpb.MigrateReq-1.html | 1 + .../clientpb.MonitoringProvider-1.html | 1 + .../clientpb.MonitoringProviders-1.html | 1 + .../clientpb.MultiplayerListenerReq-1.html | 1 + docs/variables/clientpb.NamedPipes-1.html | 1 + docs/variables/clientpb.NamedPipesReq-1.html | 1 + .../clientpb.OpenCLBackendInfo-1.html | 1 + docs/variables/clientpb.Operator-1.html | 1 + docs/variables/clientpb.Operators-1.html | 1 + docs/variables/clientpb.PivotGraph-1.html | 1 + .../variables/clientpb.PivotGraphEntry-1.html | 1 + docs/variables/clientpb.RegenerateReq-1.html | 1 + docs/variables/clientpb.RenameReq-1.html | 1 + docs/variables/clientpb.ResourceID-1.html | 1 + docs/variables/clientpb.RestartJobReq-1.html | 1 + docs/variables/clientpb.Session-1.html | 1 + docs/variables/clientpb.Sessions-1.html | 1 + .../variables/clientpb.ShellcodeConfig-1.html | 1 + .../variables/clientpb.ShellcodeEncode-1.html | 1 + .../clientpb.ShellcodeEncodeReq-1.html | 1 + .../clientpb.ShellcodeEncoderArchMap-1.html | 1 + ...odeEncoderArchMap_DescriptionsEntry-1.html | 1 + ...ellcodeEncoderArchMap_EncodersEntry-1.html | 1 + .../clientpb.ShellcodeEncoderMap-1.html | 1 + ...b.ShellcodeEncoderMap_EncodersEntry-1.html | 1 + docs/variables/clientpb.ShellcodeRDI-1.html | 1 + .../variables/clientpb.ShellcodeRDIReq-1.html | 1 + docs/variables/clientpb.StagerListener-1.html | 1 + .../clientpb.StagerListenerReq-1.html | 1 + docs/variables/clientpb.TCPPivot-1.html | 1 + docs/variables/clientpb.TCPPivotReq-1.html | 1 + docs/variables/clientpb.TrafficEncoder-1.html | 1 + .../clientpb.TrafficEncoderMap-1.html | 1 + ...tpb.TrafficEncoderMap_EncodersEntry-1.html | 1 + .../clientpb.TrafficEncoderTest-1.html | 1 + .../clientpb.TrafficEncoderTests-1.html | 1 + docs/variables/clientpb.UniqueWGIP-1.html | 1 + docs/variables/clientpb.Version-1.html | 1 + docs/variables/clientpb.WGClientConfig-1.html | 1 + docs/variables/clientpb.WGListenerReq-1.html | 1 + docs/variables/clientpb.WebContent-1.html | 1 + docs/variables/clientpb.Website-1.html | 1 + .../clientpb.WebsiteAddContent-1.html | 1 + ...tpb.WebsiteAddContent_ContentsEntry-1.html | 1 + .../clientpb.WebsiteRemoveContent-1.html | 1 + .../clientpb.Website_ContentsEntry-1.html | 1 + docs/variables/clientpb.Websites-1.html | 1 + docs/variables/clientpb.protobufPackage.html | 1 + docs/variables/commonpb.Empty-1.html | 1 + docs/variables/commonpb.EnvVar-1.html | 1 + docs/variables/commonpb.File-1.html | 1 + docs/variables/commonpb.Process-1.html | 1 + docs/variables/commonpb.Request-1.html | 1 + docs/variables/commonpb.Response-1.html | 1 + docs/variables/commonpb.protobufPackage.html | 1 + docs/variables/dnspb.DNSMessage-1.html | 1 + docs/variables/dnspb.protobufPackage.html | 1 + .../rpcpb.SliverRPCDefinition-1.html | 31 + docs/variables/rpcpb.protobufPackage.html | 1 + docs/variables/sliverpb.BeaconRegister-1.html | 1 + docs/variables/sliverpb.BeaconTasks-1.html | 1 + docs/variables/sliverpb.CallExtension-1.html | 1 + .../sliverpb.CallExtensionReq-1.html | 1 + docs/variables/sliverpb.CdReq-1.html | 1 + docs/variables/sliverpb.Chmod-1.html | 1 + docs/variables/sliverpb.ChmodReq-1.html | 1 + docs/variables/sliverpb.Chown-1.html | 1 + docs/variables/sliverpb.ChownReq-1.html | 1 + docs/variables/sliverpb.Chtimes-1.html | 1 + docs/variables/sliverpb.ChtimesReq-1.html | 1 + docs/variables/sliverpb.CloseSession-1.html | 1 + docs/variables/sliverpb.Cp-1.html | 1 + docs/variables/sliverpb.CpReq-1.html | 1 + .../sliverpb.CurrentTokenOwner-1.html | 1 + .../sliverpb.CurrentTokenOwnerReq-1.html | 1 + ...sliverpb.DeregisterWasmExtensionReq-1.html | 1 + docs/variables/sliverpb.Download-1.html | 1 + docs/variables/sliverpb.DownloadReq-1.html | 1 + docs/variables/sliverpb.EnvInfo-1.html | 1 + docs/variables/sliverpb.EnvReq-1.html | 1 + docs/variables/sliverpb.Envelope-1.html | 1 + .../sliverpb.ExecWasmExtension-1.html | 1 + .../sliverpb.ExecWasmExtensionReq-1.html | 1 + ...rpb.ExecWasmExtensionReq_MemFSEntry-1.html | 1 + docs/variables/sliverpb.Execute-1.html | 1 + .../variables/sliverpb.ExecuteAssembly-1.html | 1 + .../sliverpb.ExecuteAssemblyReq-1.html | 1 + docs/variables/sliverpb.ExecuteChild-1.html | 1 + .../variables/sliverpb.ExecuteChildren-1.html | 1 + .../sliverpb.ExecuteChildrenReq-1.html | 1 + docs/variables/sliverpb.ExecuteReq-1.html | 1 + .../sliverpb.ExecuteReq_EnvEntry-1.html | 1 + .../sliverpb.ExecuteWindowsReq-1.html | 1 + docs/variables/sliverpb.FileInfo-1.html | 1 + docs/variables/sliverpb.GetPrivs-1.html | 1 + docs/variables/sliverpb.GetPrivsReq-1.html | 1 + docs/variables/sliverpb.GetSystem-1.html | 1 + docs/variables/sliverpb.Grep-1.html | 1 + .../sliverpb.GrepLinePosition-1.html | 1 + docs/variables/sliverpb.GrepReq-1.html | 1 + docs/variables/sliverpb.GrepResult-1.html | 1 + .../sliverpb.GrepResultsForFile-1.html | 1 + .../sliverpb.Grep_ResultsEntry-1.html | 1 + .../variables/sliverpb.HTTPSessionInit-1.html | 1 + docs/variables/sliverpb.Ifconfig-1.html | 1 + docs/variables/sliverpb.IfconfigReq-1.html | 1 + docs/variables/sliverpb.Impersonate-1.html | 1 + docs/variables/sliverpb.ImpersonateReq-1.html | 1 + .../sliverpb.InvokeExecuteAssemblyReq-1.html | 1 + .../sliverpb.InvokeGetSystemReq-1.html | 1 + ...erpb.InvokeInProcExecuteAssemblyReq-1.html | 1 + .../sliverpb.InvokeMigrateReq-1.html | 1 + .../sliverpb.InvokeSpawnDllReq-1.html | 1 + docs/variables/sliverpb.KillReq-1.html | 1 + docs/variables/sliverpb.ListExtensions-1.html | 1 + .../sliverpb.ListExtensionsReq-1.html | 1 + .../sliverpb.ListWasmExtensions-1.html | 1 + .../sliverpb.ListWasmExtensionsReq-1.html | 1 + docs/variables/sliverpb.Ls-1.html | 1 + docs/variables/sliverpb.LsReq-1.html | 1 + docs/variables/sliverpb.MakeToken-1.html | 1 + docs/variables/sliverpb.MakeTokenReq-1.html | 1 + docs/variables/sliverpb.MemfilesAdd-1.html | 1 + docs/variables/sliverpb.MemfilesAddReq-1.html | 1 + .../variables/sliverpb.MemfilesListReq-1.html | 1 + docs/variables/sliverpb.MemfilesRm-1.html | 1 + docs/variables/sliverpb.MemfilesRmReq-1.html | 1 + docs/variables/sliverpb.Migrate-1.html | 1 + docs/variables/sliverpb.Mkdir-1.html | 1 + docs/variables/sliverpb.MkdirReq-1.html | 1 + docs/variables/sliverpb.Mount-1.html | 1 + docs/variables/sliverpb.MountInfo-1.html | 1 + docs/variables/sliverpb.MountReq-1.html | 1 + docs/variables/sliverpb.Mv-1.html | 1 + docs/variables/sliverpb.MvReq-1.html | 1 + docs/variables/sliverpb.NetConnPivot-1.html | 1 + docs/variables/sliverpb.NetInterface-1.html | 1 + docs/variables/sliverpb.Netstat-1.html | 1 + docs/variables/sliverpb.NetstatReq-1.html | 1 + docs/variables/sliverpb.OpenSession-1.html | 1 + docs/variables/sliverpb.Ping-1.html | 1 + docs/variables/sliverpb.PivotHello-1.html | 1 + docs/variables/sliverpb.PivotListener-1.html | 1 + docs/variables/sliverpb.PivotListeners-1.html | 1 + .../sliverpb.PivotListenersReq-1.html | 1 + docs/variables/sliverpb.PivotPeer-1.html | 1 + .../sliverpb.PivotPeerEnvelope-1.html | 1 + .../sliverpb.PivotPeerFailure-1.html | 1 + docs/variables/sliverpb.PivotPing-1.html | 1 + .../sliverpb.PivotServerKeyExchange-1.html | 1 + .../sliverpb.PivotStartListenerReq-1.html | 1 + .../sliverpb.PivotStopListenerReq-1.html | 1 + docs/variables/sliverpb.PollInterval-1.html | 1 + .../variables/sliverpb.PollIntervalReq-1.html | 1 + docs/variables/sliverpb.Portfwd-1.html | 1 + docs/variables/sliverpb.PortfwdReq-1.html | 1 + docs/variables/sliverpb.ProcessDump-1.html | 1 + docs/variables/sliverpb.ProcessDumpReq-1.html | 1 + docs/variables/sliverpb.Ps-1.html | 1 + docs/variables/sliverpb.PsReq-1.html | 1 + docs/variables/sliverpb.Pwd-1.html | 1 + docs/variables/sliverpb.PwdReq-1.html | 1 + docs/variables/sliverpb.RPortfwd-1.html | 1 + docs/variables/sliverpb.RPortfwdReq-1.html | 1 + docs/variables/sliverpb.Reconfigure-1.html | 1 + docs/variables/sliverpb.ReconfigureReq-1.html | 1 + docs/variables/sliverpb.Register-1.html | 1 + .../sliverpb.RegisterExtension-1.html | 1 + .../sliverpb.RegisterExtensionReq-1.html | 1 + .../sliverpb.RegisterWasmExtension-1.html | 1 + .../sliverpb.RegisterWasmExtensionReq-1.html | 1 + .../sliverpb.RegistryCreateKey-1.html | 1 + .../sliverpb.RegistryCreateKeyReq-1.html | 1 + .../sliverpb.RegistryDeleteKey-1.html | 1 + .../sliverpb.RegistryDeleteKeyReq-1.html | 1 + .../sliverpb.RegistryListValuesReq-1.html | 1 + docs/variables/sliverpb.RegistryRead-1.html | 1 + .../sliverpb.RegistryReadHive-1.html | 1 + .../sliverpb.RegistryReadHiveReq-1.html | 1 + .../variables/sliverpb.RegistryReadReq-1.html | 1 + .../sliverpb.RegistrySubKeyList-1.html | 1 + .../sliverpb.RegistrySubKeyListReq-1.html | 1 + .../sliverpb.RegistryValuesList-1.html | 1 + docs/variables/sliverpb.RegistryWrite-1.html | 1 + .../sliverpb.RegistryWriteReq-1.html | 1 + .../sliverpb.RemoveServiceReq-1.html | 1 + docs/variables/sliverpb.RevToSelf-1.html | 1 + docs/variables/sliverpb.RevToSelfReq-1.html | 1 + docs/variables/sliverpb.Rm-1.html | 1 + docs/variables/sliverpb.RmReq-1.html | 1 + .../sliverpb.RportFwdListener-1.html | 1 + .../sliverpb.RportFwdListeners-1.html | 1 + .../sliverpb.RportFwdListenersReq-1.html | 1 + .../sliverpb.RportFwdStartListenerReq-1.html | 1 + .../sliverpb.RportFwdStopListenerReq-1.html | 1 + docs/variables/sliverpb.RunAs-1.html | 1 + docs/variables/sliverpb.RunAsReq-1.html | 1 + docs/variables/sliverpb.SSHCommand-1.html | 1 + docs/variables/sliverpb.SSHCommandReq-1.html | 1 + docs/variables/sliverpb.Screenshot-1.html | 1 + docs/variables/sliverpb.ScreenshotReq-1.html | 1 + docs/variables/sliverpb.ServiceDetail-1.html | 1 + .../sliverpb.ServiceDetailReq-1.html | 1 + docs/variables/sliverpb.ServiceDetails-1.html | 1 + docs/variables/sliverpb.ServiceInfo-1.html | 1 + docs/variables/sliverpb.ServiceInfoReq-1.html | 1 + docs/variables/sliverpb.Services-1.html | 1 + docs/variables/sliverpb.ServicesReq-1.html | 1 + .../variables/sliverpb.SessionRegister-1.html | 1 + docs/variables/sliverpb.SetEnv-1.html | 1 + docs/variables/sliverpb.SetEnvReq-1.html | 1 + docs/variables/sliverpb.Shell-1.html | 1 + docs/variables/sliverpb.ShellReq-1.html | 1 + docs/variables/sliverpb.ShellResizeReq-1.html | 1 + docs/variables/sliverpb.Sideload-1.html | 1 + docs/variables/sliverpb.SideloadReq-1.html | 1 + docs/variables/sliverpb.SockTabEntry-1.html | 1 + .../sliverpb.SockTabEntry_SockAddr-1.html | 1 + docs/variables/sliverpb.Socks-1.html | 1 + docs/variables/sliverpb.SocksData-1.html | 1 + docs/variables/sliverpb.SpawnDll-1.html | 1 + docs/variables/sliverpb.SpawnDllReq-1.html | 1 + .../sliverpb.StartServiceByNameReq-1.html | 1 + .../variables/sliverpb.StartServiceReq-1.html | 1 + docs/variables/sliverpb.StopServiceReq-1.html | 1 + docs/variables/sliverpb.Task-1.html | 1 + docs/variables/sliverpb.TaskReq-1.html | 1 + docs/variables/sliverpb.Terminate-1.html | 1 + docs/variables/sliverpb.TerminateReq-1.html | 1 + docs/variables/sliverpb.Tunnel-1.html | 1 + docs/variables/sliverpb.TunnelData-1.html | 1 + docs/variables/sliverpb.UnsetEnv-1.html | 1 + docs/variables/sliverpb.UnsetEnvReq-1.html | 1 + docs/variables/sliverpb.Upload-1.html | 1 + docs/variables/sliverpb.UploadReq-1.html | 1 + docs/variables/sliverpb.WGPortForward-1.html | 1 + .../sliverpb.WGPortForwardStartReq-1.html | 1 + .../sliverpb.WGPortForwardStopReq-1.html | 1 + docs/variables/sliverpb.WGSocks-1.html | 1 + docs/variables/sliverpb.WGSocksServer-1.html | 1 + docs/variables/sliverpb.WGSocksServers-1.html | 1 + .../sliverpb.WGSocksServersReq-1.html | 1 + .../variables/sliverpb.WGSocksStartReq-1.html | 1 + docs/variables/sliverpb.WGSocksStopReq-1.html | 1 + docs/variables/sliverpb.WGTCPForwarder-1.html | 1 + .../variables/sliverpb.WGTCPForwarders-1.html | 1 + .../sliverpb.WGTCPForwardersReq-1.html | 1 + .../sliverpb.WindowsPrivilegeEntry-1.html | 1 + docs/variables/sliverpb.protobufPackage.html | 1 + examples/e2e/status.ts | 86 + examples/shell/shell.ts | 8 +- package-lock.json | 9275 ++-- package.json | 41 +- protobuf.sh | 134 +- src/client.ts | 1597 +- src/config.ts | 99 +- src/index.ts | 5 + src/internal/asyncQueue.ts | 71 + src/internal/credentials.ts | 23 + src/internal/timeout.ts | 18 + src/internal/tunnelManager.ts | 67 + src/pb/clientpb/client.ts | 31768 ++++++++----- src/pb/clientpb/client_pb.js | 20174 --------- src/pb/commonpb/common.ts | 1349 +- src/pb/commonpb/common_pb.js | 1373 - src/pb/dnspb/dns.ts | 267 + src/pb/rpcpb/services.ts | 4092 +- src/pb/rpcpb/services_grpc_pb.js | 3280 -- src/pb/rpcpb/services_pb.js | 23 - src/pb/sliverpb/sliver.ts | 37531 +++++++++------- src/pb/sliverpb/sliver_pb.js | 35771 --------------- .../__snapshots__/rpc-definition.test.ts.snap | 1120 + src/tests/connection.test.ts | 35 +- src/tests/rpc-definition.test.ts | 19 + src/tests/rpc-wrappers.test.ts | 156 + src/tests/sessions.test.ts | 55 +- tsconfig.examples.json | 11 + tsconfig.json | 22 +- 806 files changed, 55985 insertions(+), 99991 deletions(-) create mode 100644 .nvmrc create mode 100644 docs/assets/hierarchy.js delete mode 100644 docs/assets/icons.css create mode 100644 docs/assets/icons.js delete mode 100644 docs/assets/icons.png create mode 100644 docs/assets/icons.svg delete mode 100644 docs/assets/icons@2x.png create mode 100644 docs/assets/navigation.js delete mode 100644 docs/assets/widgets.png delete mode 100644 docs/assets/widgets@2x.png create mode 100644 docs/enums/clientpb.CrackAttackMode.html create mode 100644 docs/enums/clientpb.CrackEncoding.html create mode 100644 docs/enums/clientpb.CrackFileType.html create mode 100644 docs/enums/clientpb.CrackJobStatus.html create mode 100644 docs/enums/clientpb.CrackOutfileFormat.html create mode 100644 docs/enums/clientpb.CrackWorkloadProfile.html create mode 100644 docs/enums/clientpb.FileType.html create mode 100644 docs/enums/clientpb.HTTPC2SegmentType.html create mode 100644 docs/enums/clientpb.HashType.html create mode 100644 docs/enums/clientpb.OutputFormat.html create mode 100644 docs/enums/clientpb.ShellcodeEncoder.html create mode 100644 docs/enums/clientpb.StageProtocol.html create mode 100644 docs/enums/clientpb.States.html create mode 100644 docs/enums/dnspb.DNSMessageType.html create mode 100644 docs/enums/sliverpb.PeerFailureType.html create mode 100644 docs/enums/sliverpb.PivotType.html create mode 100644 docs/enums/sliverpb.RegistryType.html create mode 100644 docs/functions/ListConfigs-1.html create mode 100644 docs/functions/ParseConfig-1.html create mode 100644 docs/functions/ParseConfigFile-1.html create mode 100644 docs/functions/clientpb.crackAttackModeFromJSON.html create mode 100644 docs/functions/clientpb.crackAttackModeToJSON.html create mode 100644 docs/functions/clientpb.crackEncodingFromJSON.html create mode 100644 docs/functions/clientpb.crackEncodingToJSON.html create mode 100644 docs/functions/clientpb.crackFileTypeFromJSON.html create mode 100644 docs/functions/clientpb.crackFileTypeToJSON.html create mode 100644 docs/functions/clientpb.crackJobStatusFromJSON.html create mode 100644 docs/functions/clientpb.crackJobStatusToJSON.html create mode 100644 docs/functions/clientpb.crackOutfileFormatFromJSON.html create mode 100644 docs/functions/clientpb.crackOutfileFormatToJSON.html create mode 100644 docs/functions/clientpb.crackWorkloadProfileFromJSON.html create mode 100644 docs/functions/clientpb.crackWorkloadProfileToJSON.html create mode 100644 docs/functions/clientpb.fileTypeFromJSON.html create mode 100644 docs/functions/clientpb.fileTypeToJSON.html create mode 100644 docs/functions/clientpb.hTTPC2SegmentTypeFromJSON.html create mode 100644 docs/functions/clientpb.hTTPC2SegmentTypeToJSON.html create mode 100644 docs/functions/clientpb.hashTypeFromJSON.html create mode 100644 docs/functions/clientpb.hashTypeToJSON.html create mode 100644 docs/functions/clientpb.outputFormatFromJSON.html create mode 100644 docs/functions/clientpb.outputFormatToJSON.html create mode 100644 docs/functions/clientpb.shellcodeEncoderFromJSON.html create mode 100644 docs/functions/clientpb.shellcodeEncoderToJSON.html create mode 100644 docs/functions/clientpb.stageProtocolFromJSON.html create mode 100644 docs/functions/clientpb.stageProtocolToJSON.html create mode 100644 docs/functions/clientpb.statesFromJSON.html create mode 100644 docs/functions/clientpb.statesToJSON.html create mode 100644 docs/functions/dnspb.dNSMessageTypeFromJSON.html create mode 100644 docs/functions/dnspb.dNSMessageTypeToJSON.html create mode 100644 docs/functions/listConfigs.html create mode 100644 docs/functions/parseConfig.html create mode 100644 docs/functions/parseConfigFile.html create mode 100644 docs/functions/sliverpb.peerFailureTypeFromJSON.html create mode 100644 docs/functions/sliverpb.peerFailureTypeToJSON.html create mode 100644 docs/functions/sliverpb.pivotTypeFromJSON.html create mode 100644 docs/functions/sliverpb.pivotTypeToJSON.html create mode 100644 docs/functions/sliverpb.registryTypeFromJSON.html create mode 100644 docs/functions/sliverpb.registryTypeToJSON.html create mode 100644 docs/interfaces/clientpb.AllHosts.html create mode 100644 docs/interfaces/clientpb.AllLoot.html create mode 100644 docs/interfaces/clientpb.Backdoor.html create mode 100644 docs/interfaces/clientpb.BackdoorReq.html create mode 100644 docs/interfaces/clientpb.Beacon.html create mode 100644 docs/interfaces/clientpb.BeaconIntegrity.html create mode 100644 docs/interfaces/clientpb.BeaconTask.html create mode 100644 docs/interfaces/clientpb.BeaconTasks.html create mode 100644 docs/interfaces/clientpb.Beacons.html create mode 100644 docs/interfaces/clientpb.Builder.html create mode 100644 docs/interfaces/clientpb.Builders.html create mode 100644 docs/interfaces/clientpb.C2ProfileReq.html create mode 100644 docs/interfaces/clientpb.CUDABackendInfo.html create mode 100644 docs/interfaces/clientpb.Canaries.html create mode 100644 docs/interfaces/clientpb.CertificateAuthorityData.html create mode 100644 docs/interfaces/clientpb.CertificateAuthorityInfo.html create mode 100644 docs/interfaces/clientpb.CertificateData.html create mode 100644 docs/interfaces/clientpb.CertificateInfo.html create mode 100644 docs/interfaces/clientpb.CertificatesReq.html create mode 100644 docs/interfaces/clientpb.Client.html create mode 100644 docs/interfaces/clientpb.ClientLogData.html create mode 100644 docs/interfaces/clientpb.CloseTunnelReq.html create mode 100644 docs/interfaces/clientpb.Compiler.html create mode 100644 docs/interfaces/clientpb.CompilerTarget.html create mode 100644 docs/interfaces/clientpb.CrackBenchmark.html create mode 100644 docs/interfaces/clientpb.CrackBenchmark_BenchmarksEntry.html create mode 100644 docs/interfaces/clientpb.CrackCommand.html create mode 100644 docs/interfaces/clientpb.CrackConfig.html create mode 100644 docs/interfaces/clientpb.CrackFile.html create mode 100644 docs/interfaces/clientpb.CrackFileChunk.html create mode 100644 docs/interfaces/clientpb.CrackFiles.html create mode 100644 docs/interfaces/clientpb.CrackJob.html create mode 100644 docs/interfaces/clientpb.CrackResponse.html create mode 100644 docs/interfaces/clientpb.CrackSyncStatus.html create mode 100644 docs/interfaces/clientpb.CrackSyncStatus_ProgressEntry.html create mode 100644 docs/interfaces/clientpb.CrackTask.html create mode 100644 docs/interfaces/clientpb.Crackstation.html create mode 100644 docs/interfaces/clientpb.CrackstationStatus.html create mode 100644 docs/interfaces/clientpb.Crackstation_BenchmarksEntry.html create mode 100644 docs/interfaces/clientpb.Crackstations.html create mode 100644 docs/interfaces/clientpb.CreateTunnel.html create mode 100644 docs/interfaces/clientpb.CreateTunnelReq.html create mode 100644 docs/interfaces/clientpb.Credential.html create mode 100644 docs/interfaces/clientpb.Credentials.html create mode 100644 docs/interfaces/clientpb.CrossCompiler.html create mode 100644 docs/interfaces/clientpb.DNSCanary.html create mode 100644 docs/interfaces/clientpb.DNSListenerReq.html create mode 100644 docs/interfaces/clientpb.DeleteReq.html create mode 100644 docs/interfaces/clientpb.DllHijack.html create mode 100644 docs/interfaces/clientpb.DllHijackReq.html create mode 100644 docs/interfaces/clientpb.Event.html create mode 100644 docs/interfaces/clientpb.ExtensionData.html create mode 100644 docs/interfaces/clientpb.ExternalGenerateReq.html create mode 100644 docs/interfaces/clientpb.ExternalImplantBinary.html create mode 100644 docs/interfaces/clientpb.ExternalImplantConfig.html create mode 100644 docs/interfaces/clientpb.ExternalImplantConfig_EncodersEntry.html create mode 100644 docs/interfaces/clientpb.Generate.html create mode 100644 docs/interfaces/clientpb.GenerateReq.html create mode 100644 docs/interfaces/clientpb.GenerateStageReq.html create mode 100644 docs/interfaces/clientpb.GetSystemReq.html create mode 100644 docs/interfaces/clientpb.HTTPC2Config.html create mode 100644 docs/interfaces/clientpb.HTTPC2ConfigReq.html create mode 100644 docs/interfaces/clientpb.HTTPC2Configs.html create mode 100644 docs/interfaces/clientpb.HTTPC2Cookie.html create mode 100644 docs/interfaces/clientpb.HTTPC2Header.html create mode 100644 docs/interfaces/clientpb.HTTPC2ImplantConfig.html create mode 100644 docs/interfaces/clientpb.HTTPC2PathSegment.html create mode 100644 docs/interfaces/clientpb.HTTPC2ServerConfig.html create mode 100644 docs/interfaces/clientpb.HTTPC2URLParameter.html create mode 100644 docs/interfaces/clientpb.HTTPListenerReq.html create mode 100644 docs/interfaces/clientpb.Host.html create mode 100644 docs/interfaces/clientpb.Host_ExtensionDataEntry.html create mode 100644 docs/interfaces/clientpb.IOC.html create mode 100644 docs/interfaces/clientpb.ImplantBuild.html create mode 100644 docs/interfaces/clientpb.ImplantBuilds.html create mode 100644 docs/interfaces/clientpb.ImplantBuilds_ConfigsEntry.html create mode 100644 docs/interfaces/clientpb.ImplantBuilds_ResourceIDsEntry.html create mode 100644 docs/interfaces/clientpb.ImplantBuilds_StagedEntry.html create mode 100644 docs/interfaces/clientpb.ImplantC2.html create mode 100644 docs/interfaces/clientpb.ImplantConfig.html create mode 100644 docs/interfaces/clientpb.ImplantProfile.html create mode 100644 docs/interfaces/clientpb.ImplantProfiles.html create mode 100644 docs/interfaces/clientpb.ImplantStageReq.html create mode 100644 docs/interfaces/clientpb.Job.html create mode 100644 docs/interfaces/clientpb.Jobs.html create mode 100644 docs/interfaces/clientpb.KillJob.html create mode 100644 docs/interfaces/clientpb.KillJobReq.html create mode 100644 docs/interfaces/clientpb.ListenerJob.html create mode 100644 docs/interfaces/clientpb.Loot.html create mode 100644 docs/interfaces/clientpb.MSFRemoteReq.html create mode 100644 docs/interfaces/clientpb.MSFReq.html create mode 100644 docs/interfaces/clientpb.MTLSListenerReq.html create mode 100644 docs/interfaces/clientpb.MessageFns.html create mode 100644 docs/interfaces/clientpb.MetalBackendInfo.html create mode 100644 docs/interfaces/clientpb.MigrateReq.html create mode 100644 docs/interfaces/clientpb.MonitoringProvider.html create mode 100644 docs/interfaces/clientpb.MonitoringProviders.html create mode 100644 docs/interfaces/clientpb.MultiplayerListenerReq.html create mode 100644 docs/interfaces/clientpb.NamedPipes.html create mode 100644 docs/interfaces/clientpb.NamedPipesReq.html create mode 100644 docs/interfaces/clientpb.OpenCLBackendInfo.html create mode 100644 docs/interfaces/clientpb.Operator.html create mode 100644 docs/interfaces/clientpb.Operators.html create mode 100644 docs/interfaces/clientpb.PivotGraph.html create mode 100644 docs/interfaces/clientpb.PivotGraphEntry.html create mode 100644 docs/interfaces/clientpb.RegenerateReq.html create mode 100644 docs/interfaces/clientpb.RenameReq.html create mode 100644 docs/interfaces/clientpb.ResourceID.html create mode 100644 docs/interfaces/clientpb.RestartJobReq.html create mode 100644 docs/interfaces/clientpb.Session.html create mode 100644 docs/interfaces/clientpb.Sessions.html create mode 100644 docs/interfaces/clientpb.ShellcodeConfig.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncode.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncodeReq.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncoderArchMap.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncoderArchMap_EncodersEntry.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncoderMap.html create mode 100644 docs/interfaces/clientpb.ShellcodeEncoderMap_EncodersEntry.html create mode 100644 docs/interfaces/clientpb.ShellcodeRDI.html create mode 100644 docs/interfaces/clientpb.ShellcodeRDIReq.html create mode 100644 docs/interfaces/clientpb.StagerListener.html create mode 100644 docs/interfaces/clientpb.StagerListenerReq.html create mode 100644 docs/interfaces/clientpb.TCPPivot.html create mode 100644 docs/interfaces/clientpb.TCPPivotReq.html create mode 100644 docs/interfaces/clientpb.TrafficEncoder.html create mode 100644 docs/interfaces/clientpb.TrafficEncoderMap.html create mode 100644 docs/interfaces/clientpb.TrafficEncoderMap_EncodersEntry.html create mode 100644 docs/interfaces/clientpb.TrafficEncoderTest.html create mode 100644 docs/interfaces/clientpb.TrafficEncoderTests.html create mode 100644 docs/interfaces/clientpb.UniqueWGIP.html create mode 100644 docs/interfaces/clientpb.Version.html create mode 100644 docs/interfaces/clientpb.WGClientConfig.html create mode 100644 docs/interfaces/clientpb.WGListenerReq.html create mode 100644 docs/interfaces/clientpb.WebContent.html create mode 100644 docs/interfaces/clientpb.Website.html create mode 100644 docs/interfaces/clientpb.WebsiteAddContent.html create mode 100644 docs/interfaces/clientpb.WebsiteAddContent_ContentsEntry.html create mode 100644 docs/interfaces/clientpb.WebsiteRemoveContent.html create mode 100644 docs/interfaces/clientpb.Website_ContentsEntry.html create mode 100644 docs/interfaces/clientpb.Websites.html create mode 100644 docs/interfaces/commonpb.Empty.html create mode 100644 docs/interfaces/commonpb.EnvVar.html create mode 100644 docs/interfaces/commonpb.File.html create mode 100644 docs/interfaces/commonpb.MessageFns.html create mode 100644 docs/interfaces/commonpb.Process.html create mode 100644 docs/interfaces/commonpb.Request.html create mode 100644 docs/interfaces/commonpb.Response.html create mode 100644 docs/interfaces/dnspb.DNSMessage.html create mode 100644 docs/interfaces/dnspb.MessageFns.html create mode 100644 docs/interfaces/rpcpb.SliverRPCClient.html create mode 100644 docs/interfaces/rpcpb.SliverRPCServiceImplementation.html create mode 100644 docs/interfaces/sliverpb.BeaconRegister.html create mode 100644 docs/interfaces/sliverpb.BeaconTasks.html create mode 100644 docs/interfaces/sliverpb.CallExtension.html create mode 100644 docs/interfaces/sliverpb.CallExtensionReq.html create mode 100644 docs/interfaces/sliverpb.CdReq.html create mode 100644 docs/interfaces/sliverpb.Chmod.html create mode 100644 docs/interfaces/sliverpb.ChmodReq.html create mode 100644 docs/interfaces/sliverpb.Chown.html create mode 100644 docs/interfaces/sliverpb.ChownReq.html create mode 100644 docs/interfaces/sliverpb.Chtimes.html create mode 100644 docs/interfaces/sliverpb.ChtimesReq.html create mode 100644 docs/interfaces/sliverpb.CloseSession.html create mode 100644 docs/interfaces/sliverpb.Cp.html create mode 100644 docs/interfaces/sliverpb.CpReq.html create mode 100644 docs/interfaces/sliverpb.CurrentTokenOwner.html create mode 100644 docs/interfaces/sliverpb.CurrentTokenOwnerReq.html create mode 100644 docs/interfaces/sliverpb.DeregisterWasmExtensionReq.html create mode 100644 docs/interfaces/sliverpb.Download.html create mode 100644 docs/interfaces/sliverpb.DownloadReq.html create mode 100644 docs/interfaces/sliverpb.EnvInfo.html create mode 100644 docs/interfaces/sliverpb.EnvReq.html create mode 100644 docs/interfaces/sliverpb.Envelope.html create mode 100644 docs/interfaces/sliverpb.ExecWasmExtension.html create mode 100644 docs/interfaces/sliverpb.ExecWasmExtensionReq.html create mode 100644 docs/interfaces/sliverpb.ExecWasmExtensionReq_MemFSEntry.html create mode 100644 docs/interfaces/sliverpb.Execute.html create mode 100644 docs/interfaces/sliverpb.ExecuteAssembly.html create mode 100644 docs/interfaces/sliverpb.ExecuteAssemblyReq.html create mode 100644 docs/interfaces/sliverpb.ExecuteChild.html create mode 100644 docs/interfaces/sliverpb.ExecuteChildren.html create mode 100644 docs/interfaces/sliverpb.ExecuteChildrenReq.html create mode 100644 docs/interfaces/sliverpb.ExecuteReq.html create mode 100644 docs/interfaces/sliverpb.ExecuteReq_EnvEntry.html create mode 100644 docs/interfaces/sliverpb.ExecuteWindowsReq.html create mode 100644 docs/interfaces/sliverpb.FileInfo.html create mode 100644 docs/interfaces/sliverpb.GetPrivs.html create mode 100644 docs/interfaces/sliverpb.GetPrivsReq.html create mode 100644 docs/interfaces/sliverpb.GetSystem.html create mode 100644 docs/interfaces/sliverpb.Grep.html create mode 100644 docs/interfaces/sliverpb.GrepLinePosition.html create mode 100644 docs/interfaces/sliverpb.GrepReq.html create mode 100644 docs/interfaces/sliverpb.GrepResult.html create mode 100644 docs/interfaces/sliverpb.GrepResultsForFile.html create mode 100644 docs/interfaces/sliverpb.Grep_ResultsEntry.html create mode 100644 docs/interfaces/sliverpb.HTTPSessionInit.html create mode 100644 docs/interfaces/sliverpb.Ifconfig.html create mode 100644 docs/interfaces/sliverpb.IfconfigReq.html create mode 100644 docs/interfaces/sliverpb.Impersonate.html create mode 100644 docs/interfaces/sliverpb.ImpersonateReq.html create mode 100644 docs/interfaces/sliverpb.InvokeExecuteAssemblyReq.html create mode 100644 docs/interfaces/sliverpb.InvokeGetSystemReq.html create mode 100644 docs/interfaces/sliverpb.InvokeInProcExecuteAssemblyReq.html create mode 100644 docs/interfaces/sliverpb.InvokeMigrateReq.html create mode 100644 docs/interfaces/sliverpb.InvokeSpawnDllReq.html create mode 100644 docs/interfaces/sliverpb.KillReq.html create mode 100644 docs/interfaces/sliverpb.ListExtensions.html create mode 100644 docs/interfaces/sliverpb.ListExtensionsReq.html create mode 100644 docs/interfaces/sliverpb.ListWasmExtensions.html create mode 100644 docs/interfaces/sliverpb.ListWasmExtensionsReq.html create mode 100644 docs/interfaces/sliverpb.Ls.html create mode 100644 docs/interfaces/sliverpb.LsReq.html create mode 100644 docs/interfaces/sliverpb.MakeToken.html create mode 100644 docs/interfaces/sliverpb.MakeTokenReq.html create mode 100644 docs/interfaces/sliverpb.MemfilesAdd.html create mode 100644 docs/interfaces/sliverpb.MemfilesAddReq.html create mode 100644 docs/interfaces/sliverpb.MemfilesListReq.html create mode 100644 docs/interfaces/sliverpb.MemfilesRm.html create mode 100644 docs/interfaces/sliverpb.MemfilesRmReq.html create mode 100644 docs/interfaces/sliverpb.MessageFns.html create mode 100644 docs/interfaces/sliverpb.Migrate.html create mode 100644 docs/interfaces/sliverpb.Mkdir.html create mode 100644 docs/interfaces/sliverpb.MkdirReq.html create mode 100644 docs/interfaces/sliverpb.Mount.html create mode 100644 docs/interfaces/sliverpb.MountInfo.html create mode 100644 docs/interfaces/sliverpb.MountReq.html create mode 100644 docs/interfaces/sliverpb.Mv.html create mode 100644 docs/interfaces/sliverpb.MvReq.html create mode 100644 docs/interfaces/sliverpb.NetConnPivot.html create mode 100644 docs/interfaces/sliverpb.NetInterface.html create mode 100644 docs/interfaces/sliverpb.Netstat.html create mode 100644 docs/interfaces/sliverpb.NetstatReq.html create mode 100644 docs/interfaces/sliverpb.OpenSession.html create mode 100644 docs/interfaces/sliverpb.Ping.html create mode 100644 docs/interfaces/sliverpb.PivotHello.html create mode 100644 docs/interfaces/sliverpb.PivotListener.html create mode 100644 docs/interfaces/sliverpb.PivotListeners.html create mode 100644 docs/interfaces/sliverpb.PivotListenersReq.html create mode 100644 docs/interfaces/sliverpb.PivotPeer.html create mode 100644 docs/interfaces/sliverpb.PivotPeerEnvelope.html create mode 100644 docs/interfaces/sliverpb.PivotPeerFailure.html create mode 100644 docs/interfaces/sliverpb.PivotPing.html create mode 100644 docs/interfaces/sliverpb.PivotServerKeyExchange.html create mode 100644 docs/interfaces/sliverpb.PivotStartListenerReq.html create mode 100644 docs/interfaces/sliverpb.PivotStopListenerReq.html create mode 100644 docs/interfaces/sliverpb.PollInterval.html create mode 100644 docs/interfaces/sliverpb.PollIntervalReq.html create mode 100644 docs/interfaces/sliverpb.Portfwd.html create mode 100644 docs/interfaces/sliverpb.PortfwdReq.html create mode 100644 docs/interfaces/sliverpb.ProcessDump.html create mode 100644 docs/interfaces/sliverpb.ProcessDumpReq.html create mode 100644 docs/interfaces/sliverpb.Ps.html create mode 100644 docs/interfaces/sliverpb.PsReq.html create mode 100644 docs/interfaces/sliverpb.Pwd.html create mode 100644 docs/interfaces/sliverpb.PwdReq.html create mode 100644 docs/interfaces/sliverpb.RPortfwd.html create mode 100644 docs/interfaces/sliverpb.RPortfwdReq.html create mode 100644 docs/interfaces/sliverpb.Reconfigure.html create mode 100644 docs/interfaces/sliverpb.ReconfigureReq.html create mode 100644 docs/interfaces/sliverpb.Register.html create mode 100644 docs/interfaces/sliverpb.RegisterExtension.html create mode 100644 docs/interfaces/sliverpb.RegisterExtensionReq.html create mode 100644 docs/interfaces/sliverpb.RegisterWasmExtension.html create mode 100644 docs/interfaces/sliverpb.RegisterWasmExtensionReq.html create mode 100644 docs/interfaces/sliverpb.RegistryCreateKey.html create mode 100644 docs/interfaces/sliverpb.RegistryCreateKeyReq.html create mode 100644 docs/interfaces/sliverpb.RegistryDeleteKey.html create mode 100644 docs/interfaces/sliverpb.RegistryDeleteKeyReq.html create mode 100644 docs/interfaces/sliverpb.RegistryListValuesReq.html create mode 100644 docs/interfaces/sliverpb.RegistryRead.html create mode 100644 docs/interfaces/sliverpb.RegistryReadHive.html create mode 100644 docs/interfaces/sliverpb.RegistryReadHiveReq.html create mode 100644 docs/interfaces/sliverpb.RegistryReadReq.html create mode 100644 docs/interfaces/sliverpb.RegistrySubKeyList.html create mode 100644 docs/interfaces/sliverpb.RegistrySubKeyListReq.html create mode 100644 docs/interfaces/sliverpb.RegistryValuesList.html create mode 100644 docs/interfaces/sliverpb.RegistryWrite.html create mode 100644 docs/interfaces/sliverpb.RegistryWriteReq.html create mode 100644 docs/interfaces/sliverpb.RemoveServiceReq.html create mode 100644 docs/interfaces/sliverpb.RevToSelf.html create mode 100644 docs/interfaces/sliverpb.RevToSelfReq.html create mode 100644 docs/interfaces/sliverpb.Rm.html create mode 100644 docs/interfaces/sliverpb.RmReq.html create mode 100644 docs/interfaces/sliverpb.RportFwdListener.html create mode 100644 docs/interfaces/sliverpb.RportFwdListeners.html create mode 100644 docs/interfaces/sliverpb.RportFwdListenersReq.html create mode 100644 docs/interfaces/sliverpb.RportFwdStartListenerReq.html create mode 100644 docs/interfaces/sliverpb.RportFwdStopListenerReq.html create mode 100644 docs/interfaces/sliverpb.RunAs.html create mode 100644 docs/interfaces/sliverpb.RunAsReq.html create mode 100644 docs/interfaces/sliverpb.SSHCommand.html create mode 100644 docs/interfaces/sliverpb.SSHCommandReq.html create mode 100644 docs/interfaces/sliverpb.Screenshot.html create mode 100644 docs/interfaces/sliverpb.ScreenshotReq.html create mode 100644 docs/interfaces/sliverpb.ServiceDetail.html create mode 100644 docs/interfaces/sliverpb.ServiceDetailReq.html create mode 100644 docs/interfaces/sliverpb.ServiceDetails.html create mode 100644 docs/interfaces/sliverpb.ServiceInfo.html create mode 100644 docs/interfaces/sliverpb.ServiceInfoReq.html create mode 100644 docs/interfaces/sliverpb.Services.html create mode 100644 docs/interfaces/sliverpb.ServicesReq.html create mode 100644 docs/interfaces/sliverpb.SessionRegister.html create mode 100644 docs/interfaces/sliverpb.SetEnv.html create mode 100644 docs/interfaces/sliverpb.SetEnvReq.html create mode 100644 docs/interfaces/sliverpb.Shell.html create mode 100644 docs/interfaces/sliverpb.ShellReq.html create mode 100644 docs/interfaces/sliverpb.ShellResizeReq.html create mode 100644 docs/interfaces/sliverpb.Sideload.html create mode 100644 docs/interfaces/sliverpb.SideloadReq.html create mode 100644 docs/interfaces/sliverpb.SockTabEntry.html create mode 100644 docs/interfaces/sliverpb.SockTabEntry_SockAddr.html create mode 100644 docs/interfaces/sliverpb.Socks.html create mode 100644 docs/interfaces/sliverpb.SocksData.html create mode 100644 docs/interfaces/sliverpb.SpawnDll.html create mode 100644 docs/interfaces/sliverpb.SpawnDllReq.html create mode 100644 docs/interfaces/sliverpb.StartServiceByNameReq.html create mode 100644 docs/interfaces/sliverpb.StartServiceReq.html create mode 100644 docs/interfaces/sliverpb.StopServiceReq.html create mode 100644 docs/interfaces/sliverpb.Task.html create mode 100644 docs/interfaces/sliverpb.TaskReq.html create mode 100644 docs/interfaces/sliverpb.Terminate.html create mode 100644 docs/interfaces/sliverpb.TerminateReq.html create mode 100644 docs/interfaces/sliverpb.Tunnel.html create mode 100644 docs/interfaces/sliverpb.TunnelData.html create mode 100644 docs/interfaces/sliverpb.UnsetEnv.html create mode 100644 docs/interfaces/sliverpb.UnsetEnvReq.html create mode 100644 docs/interfaces/sliverpb.Upload.html create mode 100644 docs/interfaces/sliverpb.UploadReq.html create mode 100644 docs/interfaces/sliverpb.WGPortForward.html create mode 100644 docs/interfaces/sliverpb.WGPortForwardStartReq.html create mode 100644 docs/interfaces/sliverpb.WGPortForwardStopReq.html create mode 100644 docs/interfaces/sliverpb.WGSocks.html create mode 100644 docs/interfaces/sliverpb.WGSocksServer.html create mode 100644 docs/interfaces/sliverpb.WGSocksServers.html create mode 100644 docs/interfaces/sliverpb.WGSocksServersReq.html create mode 100644 docs/interfaces/sliverpb.WGSocksStartReq.html create mode 100644 docs/interfaces/sliverpb.WGSocksStopReq.html create mode 100644 docs/interfaces/sliverpb.WGTCPForwarder.html create mode 100644 docs/interfaces/sliverpb.WGTCPForwarders.html create mode 100644 docs/interfaces/sliverpb.WGTCPForwardersReq.html create mode 100644 docs/interfaces/sliverpb.WindowsPrivilegeEntry.html create mode 100644 docs/modules/clientpb.html create mode 100644 docs/modules/commonpb.html create mode 100644 docs/modules/dnspb.html create mode 100644 docs/modules/rpcpb.html create mode 100644 docs/modules/sliverpb.html create mode 100644 docs/types/clientpb.DeepPartial.html create mode 100644 docs/types/commonpb.DeepPartial.html create mode 100644 docs/types/dnspb.DeepPartial.html create mode 100644 docs/types/rpcpb.DeepPartial.html create mode 100644 docs/types/rpcpb.ServerStreamingMethodResult.html create mode 100644 docs/types/rpcpb.SliverRPCDefinition.html create mode 100644 docs/types/sliverpb.DeepPartial.html create mode 100644 docs/variables/clientpb.AllHosts-1.html create mode 100644 docs/variables/clientpb.AllLoot-1.html create mode 100644 docs/variables/clientpb.Backdoor-1.html create mode 100644 docs/variables/clientpb.BackdoorReq-1.html create mode 100644 docs/variables/clientpb.Beacon-1.html create mode 100644 docs/variables/clientpb.BeaconIntegrity-1.html create mode 100644 docs/variables/clientpb.BeaconTask-1.html create mode 100644 docs/variables/clientpb.BeaconTasks-1.html create mode 100644 docs/variables/clientpb.Beacons-1.html create mode 100644 docs/variables/clientpb.Builder-1.html create mode 100644 docs/variables/clientpb.Builders-1.html create mode 100644 docs/variables/clientpb.C2ProfileReq-1.html create mode 100644 docs/variables/clientpb.CUDABackendInfo-1.html create mode 100644 docs/variables/clientpb.Canaries-1.html create mode 100644 docs/variables/clientpb.CertificateAuthorityData-1.html create mode 100644 docs/variables/clientpb.CertificateAuthorityInfo-1.html create mode 100644 docs/variables/clientpb.CertificateData-1.html create mode 100644 docs/variables/clientpb.CertificateInfo-1.html create mode 100644 docs/variables/clientpb.CertificatesReq-1.html create mode 100644 docs/variables/clientpb.Client-1.html create mode 100644 docs/variables/clientpb.ClientLogData-1.html create mode 100644 docs/variables/clientpb.CloseTunnelReq-1.html create mode 100644 docs/variables/clientpb.Compiler-1.html create mode 100644 docs/variables/clientpb.CompilerTarget-1.html create mode 100644 docs/variables/clientpb.CrackBenchmark-1.html create mode 100644 docs/variables/clientpb.CrackBenchmark_BenchmarksEntry-1.html create mode 100644 docs/variables/clientpb.CrackCommand-1.html create mode 100644 docs/variables/clientpb.CrackConfig-1.html create mode 100644 docs/variables/clientpb.CrackFile-1.html create mode 100644 docs/variables/clientpb.CrackFileChunk-1.html create mode 100644 docs/variables/clientpb.CrackFiles-1.html create mode 100644 docs/variables/clientpb.CrackJob-1.html create mode 100644 docs/variables/clientpb.CrackResponse-1.html create mode 100644 docs/variables/clientpb.CrackSyncStatus-1.html create mode 100644 docs/variables/clientpb.CrackSyncStatus_ProgressEntry-1.html create mode 100644 docs/variables/clientpb.CrackTask-1.html create mode 100644 docs/variables/clientpb.Crackstation-1.html create mode 100644 docs/variables/clientpb.CrackstationStatus-1.html create mode 100644 docs/variables/clientpb.Crackstation_BenchmarksEntry-1.html create mode 100644 docs/variables/clientpb.Crackstations-1.html create mode 100644 docs/variables/clientpb.CreateTunnel-1.html create mode 100644 docs/variables/clientpb.CreateTunnelReq-1.html create mode 100644 docs/variables/clientpb.Credential-1.html create mode 100644 docs/variables/clientpb.Credentials-1.html create mode 100644 docs/variables/clientpb.CrossCompiler-1.html create mode 100644 docs/variables/clientpb.DNSCanary-1.html create mode 100644 docs/variables/clientpb.DNSListenerReq-1.html create mode 100644 docs/variables/clientpb.DeleteReq-1.html create mode 100644 docs/variables/clientpb.DllHijack-1.html create mode 100644 docs/variables/clientpb.DllHijackReq-1.html create mode 100644 docs/variables/clientpb.Event-1.html create mode 100644 docs/variables/clientpb.ExtensionData-1.html create mode 100644 docs/variables/clientpb.ExternalGenerateReq-1.html create mode 100644 docs/variables/clientpb.ExternalImplantBinary-1.html create mode 100644 docs/variables/clientpb.ExternalImplantConfig-1.html create mode 100644 docs/variables/clientpb.ExternalImplantConfig_EncodersEntry-1.html create mode 100644 docs/variables/clientpb.Generate-1.html create mode 100644 docs/variables/clientpb.GenerateReq-1.html create mode 100644 docs/variables/clientpb.GenerateStageReq-1.html create mode 100644 docs/variables/clientpb.GetSystemReq-1.html create mode 100644 docs/variables/clientpb.HTTPC2Config-1.html create mode 100644 docs/variables/clientpb.HTTPC2ConfigReq-1.html create mode 100644 docs/variables/clientpb.HTTPC2Configs-1.html create mode 100644 docs/variables/clientpb.HTTPC2Cookie-1.html create mode 100644 docs/variables/clientpb.HTTPC2Header-1.html create mode 100644 docs/variables/clientpb.HTTPC2ImplantConfig-1.html create mode 100644 docs/variables/clientpb.HTTPC2PathSegment-1.html create mode 100644 docs/variables/clientpb.HTTPC2ServerConfig-1.html create mode 100644 docs/variables/clientpb.HTTPC2URLParameter-1.html create mode 100644 docs/variables/clientpb.HTTPListenerReq-1.html create mode 100644 docs/variables/clientpb.Host-1.html create mode 100644 docs/variables/clientpb.Host_ExtensionDataEntry-1.html create mode 100644 docs/variables/clientpb.IOC-1.html create mode 100644 docs/variables/clientpb.ImplantBuild-1.html create mode 100644 docs/variables/clientpb.ImplantBuilds-1.html create mode 100644 docs/variables/clientpb.ImplantBuilds_ConfigsEntry-1.html create mode 100644 docs/variables/clientpb.ImplantBuilds_ResourceIDsEntry-1.html create mode 100644 docs/variables/clientpb.ImplantBuilds_StagedEntry-1.html create mode 100644 docs/variables/clientpb.ImplantC2-1.html create mode 100644 docs/variables/clientpb.ImplantConfig-1.html create mode 100644 docs/variables/clientpb.ImplantProfile-1.html create mode 100644 docs/variables/clientpb.ImplantProfiles-1.html create mode 100644 docs/variables/clientpb.ImplantStageReq-1.html create mode 100644 docs/variables/clientpb.Job-1.html create mode 100644 docs/variables/clientpb.Jobs-1.html create mode 100644 docs/variables/clientpb.KillJob-1.html create mode 100644 docs/variables/clientpb.KillJobReq-1.html create mode 100644 docs/variables/clientpb.ListenerJob-1.html create mode 100644 docs/variables/clientpb.Loot-1.html create mode 100644 docs/variables/clientpb.MSFRemoteReq-1.html create mode 100644 docs/variables/clientpb.MSFReq-1.html create mode 100644 docs/variables/clientpb.MTLSListenerReq-1.html create mode 100644 docs/variables/clientpb.MetalBackendInfo-1.html create mode 100644 docs/variables/clientpb.MigrateReq-1.html create mode 100644 docs/variables/clientpb.MonitoringProvider-1.html create mode 100644 docs/variables/clientpb.MonitoringProviders-1.html create mode 100644 docs/variables/clientpb.MultiplayerListenerReq-1.html create mode 100644 docs/variables/clientpb.NamedPipes-1.html create mode 100644 docs/variables/clientpb.NamedPipesReq-1.html create mode 100644 docs/variables/clientpb.OpenCLBackendInfo-1.html create mode 100644 docs/variables/clientpb.Operator-1.html create mode 100644 docs/variables/clientpb.Operators-1.html create mode 100644 docs/variables/clientpb.PivotGraph-1.html create mode 100644 docs/variables/clientpb.PivotGraphEntry-1.html create mode 100644 docs/variables/clientpb.RegenerateReq-1.html create mode 100644 docs/variables/clientpb.RenameReq-1.html create mode 100644 docs/variables/clientpb.ResourceID-1.html create mode 100644 docs/variables/clientpb.RestartJobReq-1.html create mode 100644 docs/variables/clientpb.Session-1.html create mode 100644 docs/variables/clientpb.Sessions-1.html create mode 100644 docs/variables/clientpb.ShellcodeConfig-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncode-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncodeReq-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncoderArchMap-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncoderArchMap_EncodersEntry-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncoderMap-1.html create mode 100644 docs/variables/clientpb.ShellcodeEncoderMap_EncodersEntry-1.html create mode 100644 docs/variables/clientpb.ShellcodeRDI-1.html create mode 100644 docs/variables/clientpb.ShellcodeRDIReq-1.html create mode 100644 docs/variables/clientpb.StagerListener-1.html create mode 100644 docs/variables/clientpb.StagerListenerReq-1.html create mode 100644 docs/variables/clientpb.TCPPivot-1.html create mode 100644 docs/variables/clientpb.TCPPivotReq-1.html create mode 100644 docs/variables/clientpb.TrafficEncoder-1.html create mode 100644 docs/variables/clientpb.TrafficEncoderMap-1.html create mode 100644 docs/variables/clientpb.TrafficEncoderMap_EncodersEntry-1.html create mode 100644 docs/variables/clientpb.TrafficEncoderTest-1.html create mode 100644 docs/variables/clientpb.TrafficEncoderTests-1.html create mode 100644 docs/variables/clientpb.UniqueWGIP-1.html create mode 100644 docs/variables/clientpb.Version-1.html create mode 100644 docs/variables/clientpb.WGClientConfig-1.html create mode 100644 docs/variables/clientpb.WGListenerReq-1.html create mode 100644 docs/variables/clientpb.WebContent-1.html create mode 100644 docs/variables/clientpb.Website-1.html create mode 100644 docs/variables/clientpb.WebsiteAddContent-1.html create mode 100644 docs/variables/clientpb.WebsiteAddContent_ContentsEntry-1.html create mode 100644 docs/variables/clientpb.WebsiteRemoveContent-1.html create mode 100644 docs/variables/clientpb.Website_ContentsEntry-1.html create mode 100644 docs/variables/clientpb.Websites-1.html create mode 100644 docs/variables/clientpb.protobufPackage.html create mode 100644 docs/variables/commonpb.Empty-1.html create mode 100644 docs/variables/commonpb.EnvVar-1.html create mode 100644 docs/variables/commonpb.File-1.html create mode 100644 docs/variables/commonpb.Process-1.html create mode 100644 docs/variables/commonpb.Request-1.html create mode 100644 docs/variables/commonpb.Response-1.html create mode 100644 docs/variables/commonpb.protobufPackage.html create mode 100644 docs/variables/dnspb.DNSMessage-1.html create mode 100644 docs/variables/dnspb.protobufPackage.html create mode 100644 docs/variables/rpcpb.SliverRPCDefinition-1.html create mode 100644 docs/variables/rpcpb.protobufPackage.html create mode 100644 docs/variables/sliverpb.BeaconRegister-1.html create mode 100644 docs/variables/sliverpb.BeaconTasks-1.html create mode 100644 docs/variables/sliverpb.CallExtension-1.html create mode 100644 docs/variables/sliverpb.CallExtensionReq-1.html create mode 100644 docs/variables/sliverpb.CdReq-1.html create mode 100644 docs/variables/sliverpb.Chmod-1.html create mode 100644 docs/variables/sliverpb.ChmodReq-1.html create mode 100644 docs/variables/sliverpb.Chown-1.html create mode 100644 docs/variables/sliverpb.ChownReq-1.html create mode 100644 docs/variables/sliverpb.Chtimes-1.html create mode 100644 docs/variables/sliverpb.ChtimesReq-1.html create mode 100644 docs/variables/sliverpb.CloseSession-1.html create mode 100644 docs/variables/sliverpb.Cp-1.html create mode 100644 docs/variables/sliverpb.CpReq-1.html create mode 100644 docs/variables/sliverpb.CurrentTokenOwner-1.html create mode 100644 docs/variables/sliverpb.CurrentTokenOwnerReq-1.html create mode 100644 docs/variables/sliverpb.DeregisterWasmExtensionReq-1.html create mode 100644 docs/variables/sliverpb.Download-1.html create mode 100644 docs/variables/sliverpb.DownloadReq-1.html create mode 100644 docs/variables/sliverpb.EnvInfo-1.html create mode 100644 docs/variables/sliverpb.EnvReq-1.html create mode 100644 docs/variables/sliverpb.Envelope-1.html create mode 100644 docs/variables/sliverpb.ExecWasmExtension-1.html create mode 100644 docs/variables/sliverpb.ExecWasmExtensionReq-1.html create mode 100644 docs/variables/sliverpb.ExecWasmExtensionReq_MemFSEntry-1.html create mode 100644 docs/variables/sliverpb.Execute-1.html create mode 100644 docs/variables/sliverpb.ExecuteAssembly-1.html create mode 100644 docs/variables/sliverpb.ExecuteAssemblyReq-1.html create mode 100644 docs/variables/sliverpb.ExecuteChild-1.html create mode 100644 docs/variables/sliverpb.ExecuteChildren-1.html create mode 100644 docs/variables/sliverpb.ExecuteChildrenReq-1.html create mode 100644 docs/variables/sliverpb.ExecuteReq-1.html create mode 100644 docs/variables/sliverpb.ExecuteReq_EnvEntry-1.html create mode 100644 docs/variables/sliverpb.ExecuteWindowsReq-1.html create mode 100644 docs/variables/sliverpb.FileInfo-1.html create mode 100644 docs/variables/sliverpb.GetPrivs-1.html create mode 100644 docs/variables/sliverpb.GetPrivsReq-1.html create mode 100644 docs/variables/sliverpb.GetSystem-1.html create mode 100644 docs/variables/sliverpb.Grep-1.html create mode 100644 docs/variables/sliverpb.GrepLinePosition-1.html create mode 100644 docs/variables/sliverpb.GrepReq-1.html create mode 100644 docs/variables/sliverpb.GrepResult-1.html create mode 100644 docs/variables/sliverpb.GrepResultsForFile-1.html create mode 100644 docs/variables/sliverpb.Grep_ResultsEntry-1.html create mode 100644 docs/variables/sliverpb.HTTPSessionInit-1.html create mode 100644 docs/variables/sliverpb.Ifconfig-1.html create mode 100644 docs/variables/sliverpb.IfconfigReq-1.html create mode 100644 docs/variables/sliverpb.Impersonate-1.html create mode 100644 docs/variables/sliverpb.ImpersonateReq-1.html create mode 100644 docs/variables/sliverpb.InvokeExecuteAssemblyReq-1.html create mode 100644 docs/variables/sliverpb.InvokeGetSystemReq-1.html create mode 100644 docs/variables/sliverpb.InvokeInProcExecuteAssemblyReq-1.html create mode 100644 docs/variables/sliverpb.InvokeMigrateReq-1.html create mode 100644 docs/variables/sliverpb.InvokeSpawnDllReq-1.html create mode 100644 docs/variables/sliverpb.KillReq-1.html create mode 100644 docs/variables/sliverpb.ListExtensions-1.html create mode 100644 docs/variables/sliverpb.ListExtensionsReq-1.html create mode 100644 docs/variables/sliverpb.ListWasmExtensions-1.html create mode 100644 docs/variables/sliverpb.ListWasmExtensionsReq-1.html create mode 100644 docs/variables/sliverpb.Ls-1.html create mode 100644 docs/variables/sliverpb.LsReq-1.html create mode 100644 docs/variables/sliverpb.MakeToken-1.html create mode 100644 docs/variables/sliverpb.MakeTokenReq-1.html create mode 100644 docs/variables/sliverpb.MemfilesAdd-1.html create mode 100644 docs/variables/sliverpb.MemfilesAddReq-1.html create mode 100644 docs/variables/sliverpb.MemfilesListReq-1.html create mode 100644 docs/variables/sliverpb.MemfilesRm-1.html create mode 100644 docs/variables/sliverpb.MemfilesRmReq-1.html create mode 100644 docs/variables/sliverpb.Migrate-1.html create mode 100644 docs/variables/sliverpb.Mkdir-1.html create mode 100644 docs/variables/sliverpb.MkdirReq-1.html create mode 100644 docs/variables/sliverpb.Mount-1.html create mode 100644 docs/variables/sliverpb.MountInfo-1.html create mode 100644 docs/variables/sliverpb.MountReq-1.html create mode 100644 docs/variables/sliverpb.Mv-1.html create mode 100644 docs/variables/sliverpb.MvReq-1.html create mode 100644 docs/variables/sliverpb.NetConnPivot-1.html create mode 100644 docs/variables/sliverpb.NetInterface-1.html create mode 100644 docs/variables/sliverpb.Netstat-1.html create mode 100644 docs/variables/sliverpb.NetstatReq-1.html create mode 100644 docs/variables/sliverpb.OpenSession-1.html create mode 100644 docs/variables/sliverpb.Ping-1.html create mode 100644 docs/variables/sliverpb.PivotHello-1.html create mode 100644 docs/variables/sliverpb.PivotListener-1.html create mode 100644 docs/variables/sliverpb.PivotListeners-1.html create mode 100644 docs/variables/sliverpb.PivotListenersReq-1.html create mode 100644 docs/variables/sliverpb.PivotPeer-1.html create mode 100644 docs/variables/sliverpb.PivotPeerEnvelope-1.html create mode 100644 docs/variables/sliverpb.PivotPeerFailure-1.html create mode 100644 docs/variables/sliverpb.PivotPing-1.html create mode 100644 docs/variables/sliverpb.PivotServerKeyExchange-1.html create mode 100644 docs/variables/sliverpb.PivotStartListenerReq-1.html create mode 100644 docs/variables/sliverpb.PivotStopListenerReq-1.html create mode 100644 docs/variables/sliverpb.PollInterval-1.html create mode 100644 docs/variables/sliverpb.PollIntervalReq-1.html create mode 100644 docs/variables/sliverpb.Portfwd-1.html create mode 100644 docs/variables/sliverpb.PortfwdReq-1.html create mode 100644 docs/variables/sliverpb.ProcessDump-1.html create mode 100644 docs/variables/sliverpb.ProcessDumpReq-1.html create mode 100644 docs/variables/sliverpb.Ps-1.html create mode 100644 docs/variables/sliverpb.PsReq-1.html create mode 100644 docs/variables/sliverpb.Pwd-1.html create mode 100644 docs/variables/sliverpb.PwdReq-1.html create mode 100644 docs/variables/sliverpb.RPortfwd-1.html create mode 100644 docs/variables/sliverpb.RPortfwdReq-1.html create mode 100644 docs/variables/sliverpb.Reconfigure-1.html create mode 100644 docs/variables/sliverpb.ReconfigureReq-1.html create mode 100644 docs/variables/sliverpb.Register-1.html create mode 100644 docs/variables/sliverpb.RegisterExtension-1.html create mode 100644 docs/variables/sliverpb.RegisterExtensionReq-1.html create mode 100644 docs/variables/sliverpb.RegisterWasmExtension-1.html create mode 100644 docs/variables/sliverpb.RegisterWasmExtensionReq-1.html create mode 100644 docs/variables/sliverpb.RegistryCreateKey-1.html create mode 100644 docs/variables/sliverpb.RegistryCreateKeyReq-1.html create mode 100644 docs/variables/sliverpb.RegistryDeleteKey-1.html create mode 100644 docs/variables/sliverpb.RegistryDeleteKeyReq-1.html create mode 100644 docs/variables/sliverpb.RegistryListValuesReq-1.html create mode 100644 docs/variables/sliverpb.RegistryRead-1.html create mode 100644 docs/variables/sliverpb.RegistryReadHive-1.html create mode 100644 docs/variables/sliverpb.RegistryReadHiveReq-1.html create mode 100644 docs/variables/sliverpb.RegistryReadReq-1.html create mode 100644 docs/variables/sliverpb.RegistrySubKeyList-1.html create mode 100644 docs/variables/sliverpb.RegistrySubKeyListReq-1.html create mode 100644 docs/variables/sliverpb.RegistryValuesList-1.html create mode 100644 docs/variables/sliverpb.RegistryWrite-1.html create mode 100644 docs/variables/sliverpb.RegistryWriteReq-1.html create mode 100644 docs/variables/sliverpb.RemoveServiceReq-1.html create mode 100644 docs/variables/sliverpb.RevToSelf-1.html create mode 100644 docs/variables/sliverpb.RevToSelfReq-1.html create mode 100644 docs/variables/sliverpb.Rm-1.html create mode 100644 docs/variables/sliverpb.RmReq-1.html create mode 100644 docs/variables/sliverpb.RportFwdListener-1.html create mode 100644 docs/variables/sliverpb.RportFwdListeners-1.html create mode 100644 docs/variables/sliverpb.RportFwdListenersReq-1.html create mode 100644 docs/variables/sliverpb.RportFwdStartListenerReq-1.html create mode 100644 docs/variables/sliverpb.RportFwdStopListenerReq-1.html create mode 100644 docs/variables/sliverpb.RunAs-1.html create mode 100644 docs/variables/sliverpb.RunAsReq-1.html create mode 100644 docs/variables/sliverpb.SSHCommand-1.html create mode 100644 docs/variables/sliverpb.SSHCommandReq-1.html create mode 100644 docs/variables/sliverpb.Screenshot-1.html create mode 100644 docs/variables/sliverpb.ScreenshotReq-1.html create mode 100644 docs/variables/sliverpb.ServiceDetail-1.html create mode 100644 docs/variables/sliverpb.ServiceDetailReq-1.html create mode 100644 docs/variables/sliverpb.ServiceDetails-1.html create mode 100644 docs/variables/sliverpb.ServiceInfo-1.html create mode 100644 docs/variables/sliverpb.ServiceInfoReq-1.html create mode 100644 docs/variables/sliverpb.Services-1.html create mode 100644 docs/variables/sliverpb.ServicesReq-1.html create mode 100644 docs/variables/sliverpb.SessionRegister-1.html create mode 100644 docs/variables/sliverpb.SetEnv-1.html create mode 100644 docs/variables/sliverpb.SetEnvReq-1.html create mode 100644 docs/variables/sliverpb.Shell-1.html create mode 100644 docs/variables/sliverpb.ShellReq-1.html create mode 100644 docs/variables/sliverpb.ShellResizeReq-1.html create mode 100644 docs/variables/sliverpb.Sideload-1.html create mode 100644 docs/variables/sliverpb.SideloadReq-1.html create mode 100644 docs/variables/sliverpb.SockTabEntry-1.html create mode 100644 docs/variables/sliverpb.SockTabEntry_SockAddr-1.html create mode 100644 docs/variables/sliverpb.Socks-1.html create mode 100644 docs/variables/sliverpb.SocksData-1.html create mode 100644 docs/variables/sliverpb.SpawnDll-1.html create mode 100644 docs/variables/sliverpb.SpawnDllReq-1.html create mode 100644 docs/variables/sliverpb.StartServiceByNameReq-1.html create mode 100644 docs/variables/sliverpb.StartServiceReq-1.html create mode 100644 docs/variables/sliverpb.StopServiceReq-1.html create mode 100644 docs/variables/sliverpb.Task-1.html create mode 100644 docs/variables/sliverpb.TaskReq-1.html create mode 100644 docs/variables/sliverpb.Terminate-1.html create mode 100644 docs/variables/sliverpb.TerminateReq-1.html create mode 100644 docs/variables/sliverpb.Tunnel-1.html create mode 100644 docs/variables/sliverpb.TunnelData-1.html create mode 100644 docs/variables/sliverpb.UnsetEnv-1.html create mode 100644 docs/variables/sliverpb.UnsetEnvReq-1.html create mode 100644 docs/variables/sliverpb.Upload-1.html create mode 100644 docs/variables/sliverpb.UploadReq-1.html create mode 100644 docs/variables/sliverpb.WGPortForward-1.html create mode 100644 docs/variables/sliverpb.WGPortForwardStartReq-1.html create mode 100644 docs/variables/sliverpb.WGPortForwardStopReq-1.html create mode 100644 docs/variables/sliverpb.WGSocks-1.html create mode 100644 docs/variables/sliverpb.WGSocksServer-1.html create mode 100644 docs/variables/sliverpb.WGSocksServers-1.html create mode 100644 docs/variables/sliverpb.WGSocksServersReq-1.html create mode 100644 docs/variables/sliverpb.WGSocksStartReq-1.html create mode 100644 docs/variables/sliverpb.WGSocksStopReq-1.html create mode 100644 docs/variables/sliverpb.WGTCPForwarder-1.html create mode 100644 docs/variables/sliverpb.WGTCPForwarders-1.html create mode 100644 docs/variables/sliverpb.WGTCPForwardersReq-1.html create mode 100644 docs/variables/sliverpb.WindowsPrivilegeEntry-1.html create mode 100644 docs/variables/sliverpb.protobufPackage.html create mode 100644 examples/e2e/status.ts create mode 100644 src/internal/asyncQueue.ts create mode 100644 src/internal/credentials.ts create mode 100644 src/internal/timeout.ts create mode 100644 src/internal/tunnelManager.ts delete mode 100644 src/pb/clientpb/client_pb.js delete mode 100644 src/pb/commonpb/common_pb.js create mode 100644 src/pb/dnspb/dns.ts delete mode 100644 src/pb/rpcpb/services_grpc_pb.js delete mode 100644 src/pb/rpcpb/services_pb.js delete mode 100644 src/pb/sliverpb/sliver_pb.js create mode 100644 src/tests/__snapshots__/rpc-definition.test.ts.snap create mode 100644 src/tests/rpc-definition.test.ts create mode 100644 src/tests/rpc-wrappers.test.ts create mode 100644 tsconfig.examples.json diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 20d5e85..9bed17c 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -10,10 +10,11 @@ jobs: build-check: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: - node-version: 16 + node-version: 24.x + cache: npm - - run: npm install + - run: npm ci - run: npm run build diff --git a/.gitignore b/.gitignore index f4587f5..2aba682 100644 --- a/.gitignore +++ b/.gitignore @@ -46,7 +46,7 @@ Thumbs.db # Ignore built ts files dist/**/* +examples/dist/**/* # ignore yarn.lock yarn.lock - diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..14db15d --- /dev/null +++ b/.nvmrc @@ -0,0 +1,2 @@ +24 + diff --git a/README.md b/README.md index 909989d..6c09db1 100644 --- a/README.md +++ b/README.md @@ -2,14 +2,14 @@ Sliver-script is a TypeScript/JavaScript client library for Sliver, it can be used to automate any operator interaction with Sliver. Sliver-script uses existing Sliver client configuration files and connects to servers using gRPC over Mutual-TLS. It also provides [RxJS](https://www.learnrxjs.io/) abstractions for easy interactions with real-time components. -⚠️ Support for Sliver v1.5+ is a work in progress. +This library targets modern Sliver protobuf/gRPC APIs and provides a strongly-typed TypeScript-first client. [![NPM Publish](https://github.com/moloch--/sliver-script/actions/workflows/publish.yml/badge.svg)](https://github.com/moloch--/sliver-script/actions/workflows/publish.yml) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) ### Install -Node v14 or later is required for this package, and it can be installed via npm: +Node v24 or later is required for this package, and it can be installed via npm: `npm install sliver-script` @@ -23,14 +23,18 @@ import { SliverClient, ParseConfigFile } from 'sliver-script' (async function() { - const config = await ParseConfigFile('./moloch_localhost.cfg') + const config = await ParseConfigFile('./localhost.cfg') const client = new SliverClient(config) - console.log(`Connecting to ${client.host()} ...`) await client.connect() + const version = await client.getVersion() + console.log(version) + const sessions = await client.sessions() - console.log(sessions) + console.log(`Sessions: ${sessions.length}`) + + await client.disconnect() })() ``` @@ -42,7 +46,7 @@ import { SliverClient, ParseConfigFile } from 'sliver-script' (async function() { - const config = await ParseConfigFile('./moloch_localhost.cfg') + const config = await ParseConfigFile('./localhost.cfg') const client = new SliverClient(config) await client.connect() @@ -61,18 +65,18 @@ import { SliverClient, ParseConfigFile } from 'sliver-script' (async function() { - const config = await ParseConfigFile('moloch_localhost.cfg') + const config = await ParseConfigFile('./localhost.cfg') const client = new SliverClient(config); await client.connect() console.log('Waiting for new sessions ...') client.session$.subscribe(async (event) => { - console.log(`New session #${event.getSession().getId()}!`) - const session = await client.interactWith(event.getSession()) - const ls = await session.ls() - console.log(`Path: ${ls.getPath()}`) - ls.getFilesList().forEach(file => { - console.log(`Name: ${file.getName()} (Size: ${file.getSize()})`) + console.log(`New session #${event.Session.ID}!`) + const session = client.interactSession(event.Session.ID) + const ls = await session.ls('.') + console.log(`Path: ${ls.Path}`) + ls.Files.forEach(file => { + console.log(`Name: ${file.Name} (Size: ${file.Size})`) }) }) @@ -86,7 +90,7 @@ const sliver = require('sliver-script') (async function() { - const config = await sliver.ParseConfigFile('./moloch_localhost.cfg') + const config = await sliver.ParseConfigFile('./localhost.cfg') const client = new sliver.SliverClient(config) await client.connect() @@ -94,13 +98,13 @@ const sliver = require('sliver-script') client.session$.subscribe(async (event) => { - console.log(`New session #${event.getSession().getId()}!`) + console.log(`New session #${event.Session.ID}!`) - const session = await client.interactWith(event.getSession()) - const ls = await session.ls() - console.log(`Path: ${ls.getPath()}`) - ls.getFilesList().forEach(file => { - console.log(`Name: ${file.getName()} (Size: ${file.getSize()})`) + const session = client.interactSession(event.Session.ID) + const ls = await session.ls('.') + console.log(`Path: ${ls.Path}`) + ls.Files.forEach(file => { + console.log(`Name: ${file.Name} (Size: ${file.Size})`) }) }) diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js new file mode 100644 index 0000000..88636f0 --- /dev/null +++ b/docs/assets/hierarchy.js @@ -0,0 +1 @@ +window.hierarchyData = "eJyrVirKzy8pVrKKjtVRKkpNy0lNLsnMzwMKVNfWAgCbHgqm" \ No newline at end of file diff --git a/docs/assets/highlight.css b/docs/assets/highlight.css index f46c1db..b3f9eab 100644 --- a/docs/assets/highlight.css +++ b/docs/assets/highlight.css @@ -15,7 +15,7 @@ --dark-hl-6: #DCDCAA; --light-hl-7: #000000FF; --dark-hl-7: #D4D4D4; - --light-code-background: #F5F5F5; + --light-code-background: #FFFFFF; --dark-code-background: #1E1E1E; } @@ -43,7 +43,7 @@ --code-background: var(--dark-code-background); } } -body.light { +:root[data-theme='light'] { --hl-0: var(--light-hl-0); --hl-1: var(--light-hl-1); --hl-2: var(--light-hl-2); @@ -55,7 +55,7 @@ body.light { --code-background: var(--light-code-background); } -body.dark { +:root[data-theme='dark'] { --hl-0: var(--dark-hl-0); --hl-1: var(--dark-hl-1); --hl-2: var(--dark-hl-2); diff --git a/docs/assets/icons.css b/docs/assets/icons.css deleted file mode 100644 index 776a356..0000000 --- a/docs/assets/icons.css +++ /dev/null @@ -1,1043 +0,0 @@ -.tsd-kind-icon { - display: block; - position: relative; - padding-left: 20px; - text-indent: -20px; -} -.tsd-kind-icon:before { - content: ""; - display: inline-block; - vertical-align: middle; - width: 17px; - height: 17px; - margin: 0 3px 2px 0; - background-image: url(./icons.png); -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-kind-icon:before { - background-image: url(./icons@2x.png); - background-size: 238px 204px; - } -} - -.tsd-signature.tsd-kind-icon:before { - background-position: 0 -153px; -} - -.tsd-kind-object-literal > .tsd-kind-icon:before { - background-position: 0px -17px; -} -.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -17px; -} -.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -17px; -} - -.tsd-kind-class > .tsd-kind-icon:before { - background-position: 0px -34px; -} -.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -34px; -} -.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -34px; -} - -.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -51px; -} - -.tsd-kind-interface > .tsd-kind-icon:before { - background-position: 0px -68px; -} -.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -68px; -} -.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -68px; -} - -.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -34px -85px; -} - -.tsd-kind-namespace > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-namespace.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-namespace.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-module > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-enum > .tsd-kind-icon:before { - background-position: 0px -119px; -} -.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -119px; -} -.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -119px; -} - -.tsd-kind-enum-member > .tsd-kind-icon:before { - background-position: 0px -136px; -} -.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -136px; -} -.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -136px; -} - -.tsd-kind-signature > .tsd-kind-icon:before { - background-position: 0px -153px; -} -.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -153px; -} -.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -153px; -} - -.tsd-kind-type-alias > .tsd-kind-icon:before { - background-position: 0px -170px; -} -.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -170px; -} -.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -170px; -} - -.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -17px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -34px -187px; -} - -.tsd-kind-variable > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-property > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-get-signature > .tsd-kind-icon:before { - background-position: -136px -17px; -} -.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -17px; -} -.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -17px; -} - -.tsd-kind-set-signature > .tsd-kind-icon:before { - background-position: -136px -34px; -} -.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -34px; -} -.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -34px; -} - -.tsd-kind-accessor > .tsd-kind-icon:before { - background-position: -136px -51px; -} -.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -51px; -} -.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -51px; -} - -.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-constructor > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-constructor-signature > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-index-signature > .tsd-kind-icon:before { - background-position: -136px -119px; -} -.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -119px; -} -.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -119px; -} - -.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -136px; -} -.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -136px; -} -.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -136px; -} - -.tsd-is-static > .tsd-kind-icon:before { - background-position: -136px -153px; -} -.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -153px; -} -.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -153px; -} -.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -153px; -} - -.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class - > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum - > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -68px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -85px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -102px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected - > .tsd-kind-icon:before { - background-position: -187px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private - > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface - > .tsd-kind-icon:before { - background-position: -204px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited - > .tsd-kind-icon:before { - background-position: -221px -187px; -} diff --git a/docs/assets/icons.js b/docs/assets/icons.js new file mode 100644 index 0000000..58882d7 --- /dev/null +++ b/docs/assets/icons.js @@ -0,0 +1,18 @@ +(function() { + addIcons(); + function addIcons() { + if (document.readyState === "loading") return document.addEventListener("DOMContentLoaded", addIcons); + const svg = document.body.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "svg")); + svg.innerHTML = `MMNEPVFCICPMFPCPTTAAATR`; + svg.style.display = "none"; + if (location.protocol === "file:") updateUseElements(); + } + + function updateUseElements() { + document.querySelectorAll("use").forEach(el => { + if (el.getAttribute("href").includes("#icon-")) { + el.setAttribute("href", el.getAttribute("href").replace(/.*#/, "#")); + } + }); + } +})() \ No newline at end of file diff --git a/docs/assets/icons.png b/docs/assets/icons.png deleted file mode 100644 index 3836d5fe46e48bbe186116855aae879c23935327..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9615 zcmZ{Kc_36>+`rwViHMAd#!?~-${LfgP1$7)F~(N1WKRsT#$-?;yNq3ylq}iztr1xY z8DtsBI<`UHtDfii{r-60Kg@OSJ?GqW=bZ2NvwY{NzOLpergKbGR8*&KBGn9m;|lQC z2Vwv|y`nSufCHVQijE2uRauuTeKZL;=kiiF^SbTk;N^?*u%}Y7bF;O-aMK0lXm4nb zvU~Kf+x|Kgl@Ro%nu?L%x8-yetd((kCqY|t;-%}@Y3Ez_m(HTRt=ekeUQ2n4-aRvJ zrlKaWct8JSc8Kxl4KHu+3VW1L`9%n~_KC5}g6&tFXqyKT-}R0?EdkYqCmQot47^9Z z6;opqR@7Nq-s|6=e6*0^`}+X1kg>CpuGnbpL7{xFTa|8nymC0{xgx*tI7n4mTKZNA znsd@3eVsV>YhATuv~+5(^Vu4j?)Tn`{x@8ijIA;wdf`+0P3$vnSrcWFXXc{Lx`1Z7 z%-n(BM(owD$7LzqJx)(f^Cusecq>OW z=h6n4YzSVM-V!-DK(sLT`!W~}($=O$9|ie`>_fpH0=1G1tiIFw($?~{5T>`74|p0H z``5=UydE)!CiFvmECW|s^TzG9*7pN|KknkVm3C{fEu30gffX&8iCm? zTFPm6*k%Hog`Q6JGj@dg9Z5nlAc6ApUe>;6xauB0-u!?wMU92jVL|3EcP9gEu5^wH z%tXRy#>HCEs*?KgMf73UcJ!lJ?x<6+)eJ{mEIS|HMDP7(7!(< z@X;?ACT8mncW9*XIaiJPW}Mw@b0W||)!sYnLw)0j4&-rXQgJhnQ2?frg1Nfk&JpmV8F=dDZl)e%#Grs|&0th7_o) z?7hQn<1078qcq?#;)CH=2kBBiGt37EtcXfpTXtHB59dr9=B~jI`yPm-Q?(ys=ajAu zGY;eS^z&WFvztZI3I~}*l}_lI^}6D<&CZ94;|&G9_pMx!C~$~EL4^8`QjT#|tqxxk zhl4CdxppbDiOk!Ht#SVAK4gf6Cr#=U&1sVxZ`y-X zTSi#@wHf(?(Dd6ypNOyshRZ*tneVP^W?y?$ur_!9iD-vY{&Q5(ooX2;`SkUjwEYA~ zwGcylCT4_`MZobm(0v$U(IhfYXxyjNJ@ztpH0sDmfpn|LMp3eM(R4uqKi_q1=D1-d z%GdV<&2+_9k@sc44xhIjqktRA2!Su|vzM0R-@#MK&{RdLoU#$Hc?{{JItvX{hKCtc zQNqZpkfG^@LGJRZM4H_>`F=N;O*+_`>M_ko_XWCgu@}ntqLX8VSeZQ_25Z8|^!d?o z$~}~9|`ZW9d_o<=8&K^~;Cr08b;qgq{(*e*sNt00lO2lZ;m-b<`Rl}=Lr6iQ8+$&br z!RLn{5a}j1Dh^|_1)Q?<;iBSrS0V|c_D@3}mc2d!%tV1VN?BC@clkFdx?HB&9KOTF z)9eHpmUEYsCqx^%JHuNdwY zz9P3oPYuTAXZVY}LRp&2qNl$pbsXL1GJ@wx?@CTO!acs+OFfW_U6?&As-(GJED}RR zO}B+Kxph7aUUm>i3rbPZQGXN}oQq;u`yTnFDAJ*d$4gjEJH!JPyt6V{cOUp*Jbyol zE$8wh)T=vpJOWRbv}HvR(cUSlO}ePIPdJ`J@yp=IC&E6K%r?QfW7F&%p!H~@?%yj5 z&MpiV!hyfukD56A097f!0+ANt`JSB~oLak75oKQN7FH=rQbX#Eak37|4&mqp@S~TA zOo51)xQxX}5NQ(3I_UeR4B;P0Q#x$_lDce78ET`Blo;`Hj*R;b8slZS7Oak(LjDuE z3z?-~-U@vWe*cEOsf^9|duH9};Pe)!=Ky+QQ!jr2VV-jMUH-F>oB>Ds zDJw}jm%V?OT^fu1y`$`yRdaW03L?)6vmInxhAsGrPhWIP8?=speMFf9Inn4^t zs$!88*B~c1A2J6t0~hgK2BJ_Pl23l=oeQQqjI2(4Mcv6U_#9#$PEN|qz36rCZ5$@I zNF1LpRe%ZG4qwuYr7ZdaynrPs?spt;9VbQM$462zbksMVhAOqPunrR7@Nbv#5;VKk zJB7xC?~QXd(e9REiLixHxRGhLcKR#0va}|LMS`AXKGOIGFKQv?=+>zf^ zN5XLjX6^`zh*%1UG_QV1H`@z!HZgC+OT2`+_B( z)J95hk;3C+K4XCswSP}au;fx=47~*$k`RAaYEU-qb03y0#x|&>LAeiXgri5E(!h9k z|9OVt@sk1-4+>0?ELyw|zs`~<95M=%o?Gix$?8z4Gz3Kpw|b>?BcD&s{X)-aXg!GJ zyq&`ZEP{K^u7ActXP$gGnO#F0Sr+QUZe0&d5*Yhw9A?C4(Sx2j3QKAlUpkQz7nji^ z%y8F|W{ypj(T%Bf#Wgyvq4szMo?*U-;3IGBRg1fK9!h-=YRsZ_+t~2!-)=pr;)Vnk zmt95&wMb02toOf`I9>M^Kv3LqKb_-#jauF&cGrWsCnMt?p7*uh zevugda={D04DB#7wR375=1i5}Z9fi3r)!F#7qmX9`SjppE&%8l8bKt+ADRMTWRv21 z4L&PldV8YpHw3b^`p0uWlIm#J&K65-y4lQW0VzZR!4#gfeT{b#fL1e*)Z*Ux}M^}bO%OM7uXip_4! zL@yo@q{utZeVV?3CtXs}i>nI|%26fwuzt0f#96fQ!{=dEX^YKnvIk*D%y9Cin;9R) zi{?)baJhgFs$1$SOZESTpldw2H&FD=v*v@1cA!`|s;avDKHa>Q+uJ8qhy!9%C4&lJSTN4OeydYOm4S?Bj7*e{xRYbU9Xos)R7qZT3dBBD5{ zo+(E3pR{>>)}hFhE+}!yYP0V+CVhyAq+RV{^X`XA3{iXj(ir$k@u|t8ZJ1ZnHq2dd zD$0RHmGJ=!?T5`*T2zOEJ~y}Nsyt7O)%+!0ulRQdsopJJxoznfpusv=2@zLXIq@^& z>0T5k4lzGCG(DnltLIe@6=ZOG@C(dvmYXfh4IhJfMfY8S?KkT znb7~EDE}Yhg$J1LxB7m`L4VMS(+(SXTQvh_mz!x&M3-6Z zFRB*a%_gVEqI^mL5|c%V=l_oi%|~h>gL0SB4QH5uonWd#={KPg6}6ES)zk0~#3^KJ zJq@{iqbHe3gyC))jeQ`W;(u3|q)JxuF24|GMsh%v5>>VY-bok%* z1Yl@(5G2UCK=fQck}pAyWV0n{`ML|rsl_N7vmW|frii__zB;ozrQ7{z)y}M^Sg@m_ z;+?{q3sUZs3WxnBbp~CyyL(TA?C*0KIeDPp7w0$!Ijd+M8#}r~vYW)NB*$mG*7-vH z@s^wK07OMxq>WveCEQFQ*p&2gjD1j%i+#G9z##Th`gew>H5=`RwyfPDg2G%f>x3@c z14Oy}pQK?(i06GWLWu%4cGjDoE-tTEI$`9^E?nLT663vu_>6K1e!N>A-^q&tfl$0& zy&>w~+yUelAa!c@xd8iyt^`B^$cj+}h}0i!40K2Ve1KFCDezBzZO8@=k&r)`TNTJ* zzF4Pim>SYL^=~7kW>EyiVHXNMT2)8l#v^IW!pLB_8ZvVfK&m8QHkjsZ)mvd?o$VYG zX#HiWwWlW>N{D85URJ-d)}_3h73|)X=E(6hFzi#TF{$4aSka4TeY>1a_(RIkFBL#O zE0_FoSQI)}+si51ufAqRHhDU=actTRQl@y#2h}xaDv-A&GP&0Qu9V4ED5aWnX z1E#mRT1QSvL!4~%Ozt84nP{&F>VIm6w2q!EPhh^BF-94$4JhCTcrdbDXA3Q&8mPTh zqdPv|X}??B?bIZPpl}z%(zr<8U-NoXjb*L#xyqHHfpIGAgN$5i(E9#rYPYq_tISC4 z2TDkd*uZ;CIhVI2o!||T)Kz`ER@%rTf-&SfmJFF>;d(RW(B6k!1<)uxHM_1G+9BWe zc)k`gBxYMcztqY5@jccaU)CqQ@^G5TBVx(nNf2}D@);3+{D)GzyT{>%dO6ibggS({N!!=P4=M8J}5R*&fgd(w36z0M0D$ z(SN5a`i%sZ9vmaEjiC4)DF}ix&`?mc-vYwK@+}8Gqzj6r6y)lT|Iqwlpj(LXqvh;- zb>jECiiOZ%&Q7gQg7(ix-?-RE*c(O6NG0F-+VCr;701@%L~fyfHnU<;Vk`m3A2{1MSmpii@G*k?KDq0GdZ)|hd`8OHep z8@6wv_|9NKNpe*sc#?zZ1S#}*qk{k<(I99u6(QT#>wf9w^u9~9_>;2d20T=^g-;b5 ze9x~fHZ-JL=J`hq-;W{2SgN)&m9RsVo=%?`JYp`pxEA_>`18Y>XA$rfWm^pQfG3MQ zxT^I1*({tZz2}+!5$AyNUE*jiYwu_S8v<#qZS4e!bGGBdY`3RkgLMf%Kz8s-;7PF+ z6w#-FwV#)PiKGR79miXmrDyv=ZTjc)j>N=&h4F+#G;unBZhhZz?a*;8@bi5`fV4)O zuU5pCs;tvRzbV@P5%W5xLI4I+w*^KExeVlzP4kNRGp-wi3g$lf-I|(o`JQ|u^XfkP zcik+g-5~2lG*oHfjLCpfNalFwz=4ZY>$Rc-QGpws&tCfFZUuJDL)3et%ap*$Q=-v0 zgLfsn-&%#+wnox~@)6ppx30sK(UJg1dCAvQF&}DkoPI+uX_wH))iaYvWtl}BtVKpU&MN= z0GdENbhdLgIwL-#_phGK;mZRlk4zq8*)akvV5zRX@jFUmvcr#3p99P@4z@m|bz-)^ zbZl8Wt?hR*z(sEZl;2PaILIG#835i@YoZQ@EwrD9IOBl7BpJX(ilLgcd)KCZAzo^b z6Z{|~=H;$D2dD53tejr_jx7^y-zT{SNZpNjn4+wJQX~K#LcrlKOv=D5xk%QXD{tg; z+xh`PvMV*HC*rF?xyjK5@KsMl5*w`r@wL#r13uFpso~#^oYIFc^&gGNS825eqFttU2_sG%_ z;X8VXD#Ol4X&$2B_Z$*&-)ZIUXf9I%mOOXJ3O%GbGpJfl+9(jY^fF_(b!Gt{{HAA3 zusUOCPDHYT@&*H~7a050c7r-_CaFACp$BXx)5==@fC11Gn|n~~+u@6N-}lvdyl3&6 z<#c_zm0Xp1F!8o2OBbFfgzzC4vno}9XEf40dGaVo;jiwiazo8hZ~iPVD(re=5k;H| zotm286$6nnTeIw>1FY$Ri|t{Lp?o(Fg3g_>|y~Z+16tvyLc@r?t9g7 zBuXyVuu9bC#q`?@OFIhgS)6v^XP@H0ukl2X!RPMsg%`YHMGad z4{VsgxaprFss3X%HbZablb6IdaNdbISVWp7yQXPPn=s7?J9qLEH{4>XAv8}%h&TDg zs()1sh}4at3nL3^%q!?P9BbW80e*ZwU63}CV7pt}gVu;~V6c$9p+*wfhw!zeE-z|V z=k{Ksec2)$Hu&?pRh;*TPk0T$Fc~^oAoBT4q?-Q}Y&3DluXeoMQ0LesTk}pVlf5(I z$dl8;zA0&=L&z*F*H>W7IeiPhTo@P0VTB~vyC2Bm7lCN}t7@NNlKFSHGKkh?z_qij zoYju!#D4b28cdslLdIM5Cmqe&!v^IcRr=qq^?l+P^n@6}fh@)IS81hx)SPAY7osk0)^ulqC1F*{hBNQl+Y}b>XjVXnS_Cc!L zIZ@Jq#mp^E&fKT~t4DM_^S17R@YJ@`(7;zv1mz_Y=~q*Gdg#*yXGxotY=#F|lvhPM zjlE)VHS=8=)njE^c7M|ZiBqARx>9Ib!y91$70iC8jPi$c+ysP}5Q3s`ti&1sx>~oG zI^>^1onS%G`mtq&)cZ15dZ{X^#MOfatyH0I=l%Q)n z7*@kZtC_3?=J_}?_G@?F?UK<0_AhYFclyrS-PkfYhAeVHcF z16x+quy10*2V$A%p_|@C(vlf}j3uY83h(#TSr$(;^8(I={_=YQQWmA9-IlwJv>tQm z=vN-I{TO7X`;qBxwb5w$91YLV?ZD5}pddq(7IdMCH zi>`qAn|#FITi!L5;K!(tYm9r416}Wof}P8~?R9I9Gp(?VA;uQg19MO47*gS7fH*&jBO!+ zA*<^BMccHjJIvGHguBb4a`X z3aZw#!c&Xr8&szD1+gu&;vYfoWo>0Pxfr2%m34tC33fmRbzWF9I_Pqb9nNK@N##9_ z7K)v)des!^owH`MoXY_O?|;^9;comiPx0e78xhnnVvTYt+t+cU1rn_>gaFJsL-iPn)?<9P9cF#4)7q&v+d&6|3G@s-AcJy+m zE&u*GUaMK|x|4GmT(CgBICk`2BP@3rqtjKIRD#uBy}y*d;<>`?W&mGsG;i*_}V&^tlP`%;=g39@jxP z+3lrtg*!i6N;irOpUfKcd;iDl5a`<#kr8RwFm9=^m+ouwwjcXmTB}w5V#9IF^&Bl$ zr1$Ly#cQ<3u86>am9}pk&i%nxu(W&s@>qEDtn_xVtH-_EiQ}iAK4Ssfsdn&L9t=)d z`XOQN7*J)g$Jrtq0=-yeLnHg*23LxYA7$cxz^Yc)I6E-!;{LQwu_wfGw4&MYy7{n< z@{g0Hf)N5gAJKQ1Z&HGPn9x9B7U(m(9K&=+LHAc_D{YdMBZs~x)u1Y8|Oq!`C4(3_9<&$ddi6>R$Nsz z*ti?=jA-Sr_97V}feo+}Lq3-cfpgWR;PLI8s{ve9@?e;2o}0MpquOucipz^DrT}QH z*(<{nLb4h9799hx4&%I8KPj}xcQ}llgcaG1!nRb(PP?m)=CzA4v%6>oOe96H9 zv4mUhw`>V$29k?)$Co>qIqq(~3w4jJ;Hv5(RxjB-j_iEhlF;&|DDC|I8IcT>Vn;RY zhtw5mT0ygXAu=M%{^;GqYuYIMu4H;Mj--5CL}|zMEhOum_o51Y7i|D>$XmUFoe;@1 z%GsTUsKgF4w%-Cr3lg#~h)8;Lk%WQTLBS8r*sE{YBUDw4HU#o}E)8pVIEfWv&14?U z-+Za${OFm=>IA358en)nB5Iaqxw&Xi*ty@uDOX8o2c0tq0^sX>ZXD+Hn|;KY!Omm1 z^%wgf&Zy9Azd?vmU`~zuOOA0{TZ*mAC!_>|avcN83F#c+sFn_6tGo!v?95IUR2bL$ zlO(OlhszqAgy)mNt8PRulC#6u^SL#z-O&@{=_!AzBZ>T4ROorj%fx$A;u8u>saum0ha7p zeHRX-z)PW*@v9bruyAtVI@)PhaEs5kp`xyxTQ`U9$Whwz#z$=U$V|&0w@EfCUS!Ob zACSTE{VeC-0V~ZCpkKq~P4CLgdOeBy>vB+0ZxIt_Cp4aa%vI#LS^K}ui07WNo}5r0 zagMHmq-jqTf-OD<kAvu_ob1mUP%1jxeKqB!1&-)_hP{p74hHE%WM!atyx68j5b zSqwh8aKo|NIOL<2_eiX+iOsRP`{MUt{0iQetB*SL!F_8)_;0f$iJ4(o__4KWuvy_! z8TZ{dTb*rL6VmuN-yl2Z>0glL84u^jAH^DQl}VRI=x0CnuF*|;|My-5aPI;>(mo+m z`nyEOe&k$RG11$vEdDPG7^raBCw|#C*4#pIUoZJNx?4|ZC{)l>+jaSiiJ`GBKf}l) zUk1>%A61hqy!KvfRsM^|u6vwbH5WpfH(I5AdpBAg%rar%zW}nccGxfgRV4&v`tEoGyBq!uz^f zVqWEtxn%j&+Q2Fi$rL)H`M_HExP+?mFyN^){c{JXs{IM}f}p>7lfD zLZ;s)%6a(Ow@`(jP}k~pn@!dv6JhJkZf5UoumHv`g-tcCs)w* z#0sc%t9@Li{p}f*$vg$UiQ*RGZUr=ykDIaxRDU_(QfcURuYrpX*7IQcS$(Buw%VW7 zxaffDgn{-=K@iEh)LlPc3MPzc+qM^>RXr6Y8ASnP&dr6fqmwYILTpmh$E%{Iz%Qz( NZmR35l_G4O{0}dcmS_L~ diff --git a/docs/assets/icons.svg b/docs/assets/icons.svg new file mode 100644 index 0000000..50ad579 --- /dev/null +++ b/docs/assets/icons.svg @@ -0,0 +1 @@ +MMNEPVFCICPMFPCPTTAAATR \ No newline at end of file diff --git a/docs/assets/icons@2x.png b/docs/assets/icons@2x.png deleted file mode 100644 index 5a209e2f6d7f915cc9cb6fe7a4264c8be4db87b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28144 zcmeFZcUTka`>%_-5TzIqq$xo`r3nZ`iiBRG(z{ZnN$)K|ii-3S5u{fmRRNLEoAh2n z@4X|01dtAA(50@mzH5K?{+)CF+}EWTz2eMdW-{;n-p}WG1C$hCWW;pD1Ox#ad~k9g4`y4!oVfq@3c(iW~uhy*`T7_0aH7`>`EnYuXVq#+YC==3#rnNM4TqqzM zpi2Elr!3hl!ZdK#y0bV+yVc8rwFEtAX3=QlvJ&e-EsBp)Q`0yKXbNuf-yYw7kh0CD z|Flk1UuHgvoR+*QR0ee&IDUfUzE7*`A=P$6nC;BPI@VJs|F#`Xc>X!`<6%M7XXNok zw^unt1h0m>-&2{GiIGsByulr92XZRrazZs&&M3jJintF7A}cE^uW4zt_r81yHt1I! z6-_gmO@78G3$})kfyhR0^qk?zev_%4R$qSjQI3MAg0)9EM#TOAD=_tf(*)S$7yiiR z&5v>wk3Bn**iD9S_I#2%^vi(^O+gpv2i^A);6^AcH%VC>0nH8|O!jN*L<#RtT z@aF9HMNu*d(BdiZq(LBO%(qsjSot+ZXQd{zLYh#CvOrK(?#u+|XYRylqcXOLk=m!) zBp`~~1dg7kF(Q#m)I8ZHMOD5%m&U)5jGOW@7+sm1N+O~^j*zRG;e4x@OteV=T4yo9 zSG`^0j^S)ZYp2DT>}AR|n$S)4FPI#8#(R~;Y**AZ9`&yqT;p`rks7Nhz;)dn-TgXU zw!^Bo@W6|jfp@}ijsSEFo#x3LnG;`o_yXK@2KuG8cTv&K@=dU?_PK*6=YU9!Ix8l;<_!y*Qc2phVpLM}&t|CuHBv&{M$K?VXtTabi(7kUMwV zl!>5cDNNqK6`Br*B~EcVh#5Z!FgiJZBN5nzpC7?UdAc+&AT0ivd;DA2$@YXMPK6=< z+#U~?*!R0i`3uu|#zDrRRN&j-j>ZOu#h-n#7WO^)@0> zCT6a$LGWwFLcPfN=(3#6`*UIS%uIT=LIXV-RbGE&!!+8)q~dkx`l{aKCe1`{J<5&< zlhRo;JX-UC>5)X;mwR+W96`@&ucHp$jIb~B_w_=mH>In?BLume!Wta=`ca+&7~pek zBVD?f5{nelCaje~EtZn+g3%5GJF}R_b`q}IH$Iom2IRD$^h*R)Cid8Q5~4Dzm!P&Q z<`iI)4wA#l@TwjPL)*9k5Vc!!;`9;bf?HRMm86wi9LI8A%*NGep3g11H{aP)>%l2Q zRMMQU!*0J$hJI5Qs3b=6?}qR7O;BU%Yzufc*ZKBV`}ro7zm=C?OY6Vlabc^r6r7P> z?1c^jD{e4n*Ou441V=Pd1eE8utX@)G5gq72HQAXLZ4l2wKd@yIYC+s) z-mu`E`kj=B!)a^B;pecv4W5oh>_tpj>^NU8L*eH4EhcOxQ|);$x(z(Yb5^tudSptV z%8z{(h@_t`chWkvFX=r!p~Vjhf1AdM>uGK05$1fyLb5D7m0!MUKW=JTZv)bXz9~*F z$yP@U3UE0=$;yjWr8b7C(1^oNDMZVxYYeMtL}ZnvQDkm>S0)=r_ugabEZ}AJ<<_Fu z{I^KKIz+V8K|pK811W5r##z8^S*2fr9Ln zlRG?Zzz8;xu9VSE8s+=(!^TGi1P2hC7%7MUqF=cZqFBtJNW9BROV ziv0cjsUmVvsU^X!`1UivK|dy+fSG$3YH8W0`q${`)taBT9jV{Hfh|&RIaJVvqRIFh zC*Rmvl&3*;XcMiJZ-+Mvfe0xN4N?AvJeABnNdgs(BYb!fK5<1)5UvM!Tz4_aojmUX z#Ymoh)m%fN(>6|#*RP~Lxt1?5);w}yT_lftje3sidO&MxNgcMg9@S+>M%s~y)0i`8 zT_+7LrZ~d<7V^K^C^~ast~@nM04^c5dw*&660^p%^R>n4xzd&jo)Y@ z1r=F09>jFOr%wsj^a3;>N!{rvf(qpkAdWM*5IYCsuwNwoJh7;9I$#`T6-NUIEKsiS;OylQ(XY zQtCiR1dyEGJV=~|zaFOEveB&szAVx*wsyuY?hiBGWR{h0!D zv;G`;F9cnib*YxugasrI^%uy@i)>BvC4V8@! zwy5#iHC#Qar(i0EPA3CuMQbaKy4m$CLjLSNwJs!13b%h{&x7479bv{SjC&3?SO&)3 z6q4nRRP(zOfw-mQrmx@Z64~o}GNXa9YCE$vD-(CLseaF%6HH+WZz4 zbRiJ~zAtA6*i9;z!+zZ?9~V0Lr66|Ae;}U1e#6D^hMhB6XJNHZi{t>DgU&jb=#rPK z@s04Hr_SOr%UCRY_SdDuSw^D*Rzre~4PCqgc)DBYam}@G^TxsTqX%w-yWtYU-Q2IX-a2Z4Kz_-yIe`m;x2bY1F?XZoIH=`uW{$R)ICXxqU$- zG#M6s!fDZwUOA_cs|PXe1T@XN3^UdYyR*t}943A1dTvXp!=%8c%)(s)5y@OJ@@%1a ztlq}Uvhfo3^ZO>ZO|NKfu37JMRRmXfJ_*VOBVnxFFmbq!zc%A+R+w|={11?sJpmca zCeCi;;-*yO)ywzKxa#q?E%@U-+LGH4{=2|reRd-Kz*Ps1$u6sPFO>{K9^k2Y!@=h7rZt472^BCU& z|0MZmbh1HlC3#bcjoX#m73R?H>6oW=45{gu0$S>j`v?``ch#0kGur}QbO_gO3XrB- zS4pz-Yrnqqt-k_LE-&~ox9gd#^n&HE%Z~grM;N@Das8-#U304PA$v*rj36j~qQzYN zsX>8?%q9DhpxrWR@M>30YI^WUDh4bcn+*bYn;~zt_g`$3{#G+=lBmWE;j}5e&vlDa zjsdE(Xg^o(Z|3$Tx>~-q5NrZ}^$y0eMd|h`7Y4OWkgF0(Cu&CfJV03AKfzSGBhMU4bqd4kc`qE!CH4Q^FdOCtUHaZW3R&>S}$! zhk=OYL~3fch$-?wa0)OEkynDzJR=vc^vuUQ$hF(>E(q3{7{4uhC^f@bzHUZT>k%%R zsekA}E`OlGE(x+lP1smp0;Ba7{C$F=@Pp~i$AsJkc)x+3Vf9xQB=aSN>D!T;Y5iU~39#6yoQuj6Bj%kdYC z`72YjnSoF_A)d#@S`|;~F|6TOn%b{4?MWJC4uG&NK=D zqd0rU$A@62MtWD$=Gg>TgO6)b6Vf41#Au&Zq<@p1RG!t}NG8kv#>%{bHuCdAeIao2 zkWX{dyO`XCdv`FlK?jS{48~Uaz;oD6PtoFF0u6HBTHCHh<)5wP<r?9UIw%{psu)`l~*PK0?1^oH}d{D_wF{En-ejdBHTK|(*2$K?xVkG zwYXl8^HAjVOqKQj0f6s~O`)Slp+alXd8@#4Iw?pHys|MW1|l%ipCPeN)|fLB$Dc(9s}LNw@?8G{ zU>U(Vid5}ltIy~zNv>o09)rC()g8O`<5~!qF*Z_?L;+2Sy!WSv=}|67mnOPb!A*2; z^f>okkk+f3+9?Tg&6NBMX%;BtB3Ds#(PZ6E4`X0e`~amc=9QGw3J-$!nw6)l1A8;m zFdl>D?g@J3P-41+3N`R32d*Hq0GWj!{3n&rVA)dpcB+|5`XZFFZI1bKA7d;-x=0wt zy;$6nvCJ$_&JDjWa%`LQYq&(6LqBP7G_+`+4$|qk7IlS4wK{qnP-3!yFO%_fw(8(Q(#|htD?ECEYPeT&anf%0GjGQC<0)vR3x=4pq`@gX z{0?*O(e3p_zu@N9G2O%!F8j&|FRhF(c@BWMxZTpdW0xv^K!`2L39%+Hs0#R>a@n-J#u*kF6~?DIhPrUi@$pR0tS?5wF%PE z(-eYCc#{7tVRzd>j~xO&LBPK62xxwmxrdd{N6!G1hfD0H?fV)_B^PBIm|@~CZXnpdaM=<+?&D8Md^RL00JfP zK|cm@`4bB6muuN!Zck2>k+wh^8kM73#1(%6#^TG;42H{?eTC(h^zB32g{Skc%t3Dn zcHX3$TQhR}n9xXCd$?igvlBH@ZU~p4OO*Gf=$@=w?9vYs)!RYa9V@}xVt8Sr4y_!< zGjn5?gnlSKhqS-YW^o#@NScez6I3x{ zv>meTLLYSK!pa+|kqQI8rWST7_)jL~mqQ}Ou*!V2U-g|ZR+pB%Z@w|HnZrV~uY*w?_gMhSp+4fY?hMmdNXYD(iruAlj0&qga8nQ1=c#y* zgYc@oWp>=|LQ+s})zQ5kv*UF?QMJ2|FN1CzjX$x&TwGJ!4VjOiZxVDVz#r28{^WRn z{o1SYRs*^Nt9(ZX`wad=44v--X~h#aROW$yKE=n-VWRfhI&wn|_X6(` z_WPK(bt4Q8gxJ=b%BW_nNj&h;H;2z`{vi`~)tCBk(zGYBp?f;(Ua+^@+rKm53ld9S zPP#A^Wv7>F7c36IAp7(%S716|mr9fnL?n&Q*?OcmX7>@shP*98yVXmJ{1{z!s;@_D zt0}M~j-0t@?)wY>a9PxzCVtBiTKiS1<;-&hv5CHiv=8d$IOnl?aI_>zR3eW}l*}`T zd7%jWK1w(iqAjU37u~dz-4@O^=PWhD7_yL+z1;-hnPx|je;QFR?I_x6McEg|;`Zuf z_}_7>V@hb=%%^H&>8W{N&Ud5bKD%p(B6#&l@nN^wOdQizb`@g}g1c|qGqGr^c>a1w z|5;G!BbS8(8#mlqM+re6&;L0Ba$evPxRGW!koG@-z@*c+8&^U^7Q+0jgUtgB$)Bh)OGD5oa(ju zL&w{}@q-4qVXtvRtXul%gWH0DxXe$&?MN>z2jh1!ElU%a2;fz@xaTyfs`lnr<` zLv5teGAw`KJIh))Wg8JzoRNMyP>X1rhr)=#Y8O6Nf7>}xLS8!@+&6k0h#H>Nn{`&~ z<h^0MI*wtWWT)UGMw#$-to|sCF?yXL$;_=8T>RsAI7ks*W{$R-UI&M5a3{Gda?9J z3PeWSws3vp1$(`F*+<1X7B6hG<6u)lqr|?N&1Up;Si*MeoRFeRNGZa1=`C?4ZaPvJ zuHL9EQ^d$jd1pu9n6iBgWPMtJyxmfJGQf{a*eag-%E@KZ$^*2_&F#h|LL)2_l*QS9(#5T>)&wtE8a=@FF+vG8N zk>*kU^97;}tRP6EGf5HKhlr6@^Nb7N1`_>QnnYF9-8tncspx59kcfE)TtFun#cCjn zEU2;}6Xu~xx+Bv+O;tKLcuo?~kQbcPghcWdz4-^H!wQOhQukRZRMRk>kfMa~V;A;p zSqpR3D87(4X}j4Awfr<~7h4dgK)pzpZf{bn z^yt`yH4+85n%*$3rL0fWi>l^4|J{Qess(a2+0W-O>gl%xIaVi`l9N3Nq}{$Q?o$#6 zP(6};On20~O*x}!V+=9YO)zz4yeTv@_04tEzA@Muc((5aTR+rHpa6@RymHX{a%Ss{ z+ZVey@TSCpCZq6G3WNWPfd3Z(|HlaUnQ37#)!hnd5VH}%lQbK+^qVrFox87bV{eTd zMjY@0wT+?ndYzV$vST&K{gWpow&Zbq;%=a$(B%@MLh@v!P|L4U zgM9JBN_Gb)g+}3@K$8-*b+GGuC&@6v)Fomd?4){kVQ)620*%U<8saNfLM+ndN~1z> zV$;~rU}Fc&M@|;i!@q(ZqbHdoB(EYYOs>u5jd5A-M`}}pr;g+_B5o2kj-|Pa zF8qc!e5d+kUV>;ih=57(*r24g=6@)>+c%LfGLw_-Bbm7r_`az+tag}5rqG&jrg(-W~CJFkaxZTf@_Ofx@ zzxqF#<4|HKKBpc&B9R1r8t{!k_=WNfzbR?aogs939=bT|!c4N>91ai-wsc4|JdG9y zGpB1A4i1ueuSS{R3h}0^YLpx`pB;Ok2-R5 zZzHya))4+|xc0QJ*&1>3;@0$RcgE3M_rt55cZ9<51j!pV&i`8js3v%e$CG{I{X+yj zruhC$iN%UA-Y%u_?FQq!rBg;{`8h`ZCg^bG&OC=733*%4cUW`DPGqp|OgNy?)-Lky zuY7>yw$@M~Jl&X?9MI2RqOdsWZwzFd6{P)UF5-=GVh z;$}}BvAUMs#V{T@TweGxI7dhuIzFqotm&oQreos6)^Nt1G4l8ce%&u1F<%WFM9t;W zBAEtq#1FS}e7Gq{9nzJ-0@1fhx^+w)&5)h+@I@?kv+h4xs>`xqTMB()kR)QH0W6ODL=b|ea)CmcTzPItT=KH66{L4@p}bW9=F z=+(cM#QUgiq$M^X08=_kUPU7sf!8j#4rN7NO0#TX0-;8=ySO&T7v$C}*`++cHZu0; zRv+{Je*j9;z>+TGv1i76Qc^1lu^>XXp&w}t;MzI_nTpY_m?O?J|UF!?x>j)zIZZ*}uTg|S?56^~@P4iEAwq#7&c^D#OmVAeT^&ib{UcAER@k$$X; zQdR$NNz=G^;6|aY!VuP>0e2>_I^ymyjmC*~Oj(aU>lb7XxoNc&mR~HbdffiYw#m3DLJ)nb-vczmSGI=PaP=yOJ4mrW01pSsP02=(ym z!R+#8VFsL>Puje-hBZZ0gY`?oFt44R6Z--pJ~w8q7te$W<+z`WB)mKtrOR>%f~{*2 z8>hh;3|%NPQq8-xDbWw`*n5*Ni7GB0zr7D?q`b1s^a4*X%Jk>EYA*r$va{t*S$Wk8 zL^lqaL9$a?PVadKA#e`-ocbsFKC1awpXsVmMxs^Fnz9Tb*6tD1sa`;k~@OqRo@ub(|hVwu)j^O#EQmIetE!ma(-|!O<`ZRqJb<$^dia$W5ARK;F@n)=G zXY|L|OhQ88G?ay6&;=(qqYF;O$NJ7x1?PPHYJC`UButfql;CF9^Z@N$9e`rgvKY7- zzkY{r^gSjplQ4S;+v7}YOOB)q;im)xJ8Tb}^>Fe{+E{o<&QW1zc~g`vO5=ii`UUW? zZp)~%d!YRLs1P5Gsp1zs3gc8)u&mU&?P*XcG+Tr-__K7L+$}7WQfV_Ngi(tq_9feK zK+m&sYg9Dt?NYYIX6$uOy3OW4i<~fWv+Cf(7LSO2Cy{IK;1#Y8C_5@I{l+TY*=I|v zB849$N`$Qn3)Wezrk#N{(Sj^ujO*o{#sa4oD_O8zmLim4B{5HQWLd}YpB(b z4G-q~15C`KQcuBSO|^7AHPTM2RneHT?`cv7UxhiJ{_{;Q;kGe05x5xg&K3|_>$pD_a&U>aXaI13$(JL50d8Z5nu7>Swu zA*$V;mYnn2)kI5c`a29y*`L60#8U8YzlVb^NVbZO*AIlUcC6{g-vYStoB)oYa(>HrRpU$_+Fu$?E^-+?mgq9i+l>lZ?b zT6(Rs*ytr2RlqzPAC<(}aFaO~EuqFiP9Nk%5YV?9#t-?A=4jtCuRhpfZRc5{uXo+q z=LI8vUYPpMT}NAmAiT1T|Lra-gEjft1a;1k`{Oe~KvJy%Wz~FR@vzsl)Hj`G)zsap zD0(^YuCzHguv&0Ryn%gl!eek+ywQej&`(Qef(ql7EcAYQoG}tAUY=Ns0uhUO05V)*ND z@*NLrHqhR{%JlU-nMJbBbn#Q$0gDOt;1glG|M6dhX@zoq#PRvcMk<`}n-dBYPlDbf zY2&o+<&J4^>4Q557tWSxa)1M;mS}X$!JFe6+N_0AI?erp9CdjDGuyvnelpc04y2u#n8-PU5wo6P&9?ZpnONA+t}Ucy z&nD(V>H%M8avRC7jdV$uW8n|L5W6kw7|(e8$j>_ZLqe`6y!1fWM}{tJ3t7HmzB894QuSOpNj=&WDT3e5Or0)3wFwasb4%9_M@6)K z&l3J-@<{!8U7lZ%P!XZsO|ejU04NSjBEBESP4Ff6+T}!&pxTCxBG{W z{I$5gyC-P##k--2l=5r77AsRg@o4?Q7zqe%7Y9-kbSnK|KDcKK;nZqb@o$i(QzUtW z4FlkIku@T67|OO;)}XWaHSwT$i->~}#O|Bld^q?M%%`d*s2x9BKP zZo$OD?q27J1NAg#Nd(Fn?4I|PbI>nwdR&!F6YOHC^L#n$QG{zQGnjL8QL{~TyS%sy zMT%4c%BbJPXL6?WNg|O1-c<>qUm^=RW`+5)eH2jAI{T^M6-_natW57V(D?*MKT4n;I#vjkQ1Y~X{0hj4% zF}qYRzy8zJX(%d$`X$XgPvDafqM65Qw_;|~(JO*m8-*q1ir0~W4cd`@#KX3_GEp5t z5?rPAGz%$L?%(5dRFgw~R^|tdxXDGF>^=J2drvtC0;nBNt)$2d+>6A}c}i_~ef`fu zywIKq{Tp+H@09h2i{+Dn7?p7~8D%gZ+<(bq<1f|tL;Qy~w3}O7WX))3Ej+(psj!1- zrlt&tNKU|u?sySN{!ByuYY@P5bL5@7&Uld^k~iLzJaP7WDAI|JZrsHHT>hmAC?xw& zC!c!IBNTzL7K;wAXR3vVTe1i(oYdqoy3H0Zw{@>?*4UcFaMCNHwib2efs0(Ync=2q zwM72#(Cn=nv2ablw^j({)fdng^E-(uP|5UD8@CzqpKlZ^=HH}?5{kmM7vLAoAatc; zwH5KZJkkdhh8C1p5+HZgC}LE+Xu}KIn7|*#?;j-8^-VaZ5jOW{JA#*;g5p`(xTiDd zKkPnW*IU@QEsE%-JWbaZU2+aF3<-bfklBU}TCC{E-~c1suP&!}=v`e&X_xF{wro+L zcgxt?1af+ArOGprbI<(>!E99@GkN&7?#q=uz{(bMN@|0qqxcTr07b2;i>k6W8Za(r zOGe?77{mF3SVV_<+hIDRNdbE)(lSDJU|Bf|swOh*8)pQ6AizER8M>1xnN1+Qcqhg$ z&ak{6PD5v75^-mAcvoOH6*!9Hkzpt)*#Ip_vNoGk)^|nj*9+w7+7R(=j4q>aw<4Wc z=nBx)kd4$ER29&>bnknJ`n4)pOczJMPJ! z0)p$AgO&S=`T1(PYN?P}4cSJ%&R?iNexQp^N$*`-AbTP7WfZIW#P4d}}S2|=#O7ke0mzh*aEWQE)y!|#~iGCKXe zpzrFFL$pk!^d8pUI(IfGO<%TTQHsrDXLDNnMC6*d0wT9m7x6Ft7V=_OlTqkuj{x>p z;1kpB_NxE04RdYk)Y!laqUU=rfZJ$T5)`7`QV?5(Ltg_xlECcjtEa{J!@6Brx);>b zl?P)xrifEIfWi;~!Hgrq*7bz~i3BH#^2_mOIb$vnOz3yqef|S?NrX2~aMzcrlIGhJ zJ57YYnbrjk0gMXNJsZ;3!GV3+U0eN7l{dNPN>2^D{M%{F_n#@Jh)M2G9pb6tlT&F# zzc){OFWO&LCDH1cNMGR@X9VA+vt>EiQ|#sD{Y6sIh0eE(T5g#Bhn{L{CgdEL#dtrL zC>~e(BtwcN6QdM$0h>v5cu{@BvleO1d{z*-w8N(k$wHP$AXwvfT1)EL-?E&6nLdTq zFA@*HmwLR__b301zkRRgd(MeG6hCvppG6OwFv=2NKQVx_rQX$Z3q-DFDcOMHtbuC2 zb}=nSGqv$BlXjj(ahhid7ECVPglKaK;z#;LgZZ+OisWYuKBPX7xpErFk*@EYkKqg2 ze61oYkPXBN#&}jK`c6OUoF{pGlCOmyvi0VbqIH)+GaMDJ>Eg{$20?GwP~=nbph7n3wT-iS@IWTjG!q<-}5nJdNKFs75SDJ`2N60FM#00h+c!NU0ufy*_DlHj73t z5%X`Hqe$xxtHUL9%+{FK#XTYqf1a`&Lh=``4pOX3cy239FO^N zfStakz4XYa-?AppcGY?%Pj@WYmLvxBlKhq06UyFTy`Dj|YO2D`3uG#B$$f7PEjp~U zN;XAx*Xx;j?A}%@n)?=Uw67Bf^MPlLUonDdnT0whr^OXyCbtVRp^N&tL4I{~Dg4l+ zvxK9}?_3)Y$>n?i!054VsQ<#MMZ=Q@luen-sz=N_VC}l?`zNJtA`krH?K@>?REBq0S+(}^2UlFWDqHi30Pa~uu05d$T+-JrcJV1?aXOg(}Rs zl`@li5%>|PHxJjZT#h6)u5#ukqU%dvk;$HYi|x;L7naNA&)c1zj7(iIm+BYA&tK7r zwW0zwzaX`x0|CVQVi4}J(N#ScVIBUXBSyY%CN{!aH)SJ(GEwpFU}-yF{d#w05hL=m zqA}!Sf^U&%EPmu~34)ZMEMWZ|Z{ zf+Da%zhehlo-wY?=x^Nensm)O!dR`~B96^wloNE6>dRY#u#pQB(ftm&2{0{aPw);3 zLS~XJegtuFdsZ#-4}Yw<2z1ya*ZublDU*Ut>&i)(l$<$AW-E7gWuf>Kh>nR@=~Jgg zYVeI|2kH%1E@)ScwTRMO*HTWJ!AcdT*o-xoiH_PF%JHNE29RfRx{{W~Mn)HwZeR53 z{~74suQ)4?@;WN79bIYU3yi%hNhnxTu7in4w>kOLA9 z^_cPfyxl`BO^Jaqzdl`|Ez%y3HTE#{dbqX?j$5k&zQxN?z*CZw+vAZV-WEk=-9oI^ zi>;EFv9pBIbUMsM{{@)yaWwa#nUxs`jEZa5y%dJ~ZYpxpbwF;r5KM9NBrtI6bS49Z z{7GcMaXGAxDfXDD;60Li!JF~fHPwUU&ynr@B*@3ChF52>+Zzj(2PL6C2Mor0xpcaX zJz8ihH2PY@>!))WZIW^vV%K*vW$Xw?vcF2|dP9n=qCP9;7B^IZhW=jxJ&T%Ztkc=ADNzA zsx*6uOG(O5$(&<*ti|J7dW)DtZjKZ4%;`A)POZf?A4Jh3X-N5M*8W<2T>+@m+RM zso4=f_o0cfhnM$+auk~mI=kVgHZ;l-+V`UB8DLApLi~fqxxCu82ZpTHwuvkJ zMaL0c$(fK#3^%@^>W3#TVHR`5ZG3y0Clb5K47#1K#yLmQyhW_55~ZZn&H*`)Kcz#xCRQCFdlucHx%dY1wZPf=tL$KK^-_TTkBlg%SX#-AMe8 zDRJaA`0SE_!0FPPn@x{0rimZQd9k+}88MLx`S?6fu6=l1Y@h3fs<=&*q;z=urTS=C zK%}u|(8k5e&Y-zSmoYb|zD$^cY}p6(t?!f9J6m?2>Tc-Xy34Rp*Ug6P;_=3oS~ z%u;Q7%I5MiGqZ{d!-pEl{0|+1NTm+haNN1M^6$Gh!|V@!B;}D{h3pn(C{xBk%}#IR zO1TK6*^j5|!U4^zB>Fw$Ab?>qDPT1M^Jx#~^C&2cPdIB_0;KSVNk9r$##HLTSD_Z& zz)jE%*Gj)7d9uVMl=+HdJ8%e}9%lwaY;_kEvV>UsLHx;mMC@f3lzq5Iv&y8{w)@Z#?E z$bXT?tyF)?<3bugVVY6(e@Vg`2i>|)$^m~$WioLwW}oXXZ}=w;=N0{LOx0{9*as^Bb{)>T@3m+vEip|GPIJDHTEO0j?I58}) z3~@%Q(7?0uCeHM#BsO=kytmWFVcmtD#HF#V$&{e5iF)nW6D|+WjJvd;&5ukcPLykI zL)z_SO#T-IEgtk{E$oT_$8EEJI%wS_Y2C(F)`01pzGC)%N-d}qrB@+6yelt`_?uuN zPMGYZCo678{Kdb+IPo{#IN(js1Ummj@!l19H8oPMb}r|M+d{D&z2T^r|!8rbRwlE=7j zz{QM`99y%o-F!wvWl#jR$l|ML^ohwPPlBQ~Vi{{yBOjvrhl~uf zK5Vk45;70o*YhtM&7#Sc2dfA3wZq@0ZZ6N~v6zg&MzJl<$ZNrwqf-$TiT@#W`2x6Mt;TiS4huyA5^}YIPTFF^l19VciDe9QgSuo770l zz$Fvs?0FY@_UtE2YE##{%dGmgZHHfzsU_`V*H`P4*F`ul(sYs9Jq*h6rbk1>eD34Z{2K;_cLbZ46halLc ze2%NUKU&GA!WwUqG&=coFm>87tCT*F4xGxo74O@5Y3xJVE!8F_1FP%~BdC2FS9Isf zXuW-CnGh!{^D*Drcrxc3Y`W9=5ZVYqn-rEs?8_&q}IoEx+VFS zRga(VCYV$<=Zq#wk?;b+las#o#HsNw*`FGFDeA^*xQuB(cE3~CcEUYt6MjgdL|p=P z2+pPgOZ0Zk#7FPiJV}Wb={;89-U46uTu_QI1&b)P=+se1|88_^!5Um>o)Nj!lfI}_ zA{$}3*734@W4yItj?m zLJCa$`Rn$L_lRPSglt!uro*Wg-e^WHi@NW8q5zxYdq%ULx=%RZ(Ry~zKFHmgD!x8n_+?xj`!7VyZLb@!Ht zcyvx*=Ox|L<#!iwxI;b}HqA-#(_&c7eI; zh0-~Nl>BWL;lGfbd$~ThM~0`;bnAxA&t^Bg46A9F67?ijVTmmSHXl37dKJH@X%pJ( zv;J34-$9e2BLwPjbgdS-#g6)O&a!wuZ-4?=C;(W1fb*oq3F7!&Q;TDT{dSIuAJ0r( zTYW}1z5Y^?(IYRkcvPK{&UNZ!DTD2NG^^l4v6pZ*x!@0~FW+zs*VWLZvD5?b&529v zzAIr#Blpmqud6Eze&qzM(zwET6WE`YFdmz$)SiInkY`uE9 z2W8d!Z|P-BLFnbp3rcnGlI9P_{}G(V#2CJpq^&-OF7u(-e@`ex!`4!J7AZxIWjne$ z*}p)Oo)D;<^YCfczySXZ)mxzJ%Trh$e@@Xs6YI$UjQXTpMM3=OD}yJh-k2t_G}69%^Fr!Z2HQA5*4M*x@spn| zrheG^IKj0ez3X@*QK}PLKen)$lLlOFZ8tSxuEOsfZ4ZBRv~f7a=7}eY0qYvDhVUkw zZOeCWJKZrO(yrm9v!+wYKhPp+8sVTN>nKBQt1)2z7ZTr41?oJxD3UIFa*^`;bD2FhRFQI1$)e-S7>YM&OE5M83i$Yg1gC4XbSB(3HY$XeKc0w~r|t-}85eyvq znGOcAFmP`I@uNFB6D-U3R7zi&HI?4$T$XBCYp7jyF2hIU++&75Z}~Yj0lG(o!Q{%x zle@H4z=iwQ^%fFV}$@P%l|Q*S||Fc=aU(OuYN7&dFa}V3Nc7J*3pGRNHysT zpl1qYqD}+z4udN>1yr0@uF3~3%~hGND|wBbU_IaPN$MmzOSBa(DV?!lmqJAFWhao7 z6XK-N{+v`HO%=al&V4z}>Sa|@+Qf8!nk9bZMS#vdzl+RDih{^-@~-07nqb7URdH*R+DD=7!&A9Oi{-a*?F%R^?_>z|&W zHQ+4C_b)3pp#^K(qJHO8s1UDOMw^aDYOOebgZD{HMbGVDVk$+=PF2;lVmdaX96DD( z2>^x9360&?xbJ=C?ww+GUzY7mi#yf$i@Zi^^Y}?DA8FLB1O|#d@$jX3gICv(QdzlV&8dxsHV(c+LsK>QTvzU6_ zYb0#5dCxZ%c~~}R7+|_=M1NiJ;GL(M6jlh!W$wT&BZz#^;TRxOvOoC5av{aK*jUdB zEJTT7g$OLq7j%VOxq7lBmjswrMs{Cq4i_QLuY?I-R*l_PX%)WEauEF6LE{{cM%g#Z zY=g9-pHTq4-?B_^ws)ot(CdUT(Q;?3ZgB%&0-LSJk}S~oODd0f;gmE$LNlWC)*SZw zTF2tWUDe>}3GAgFzfUW{@fr-5%+TXNF!#@u3xLK#M@{^pJ@RwHxR(mQv$rbM^u)yF zp7gc4+^-scO=w4GnLoUHm&|*G%B4)zdnT-@sLAXD{t?qVWoK?M#QmO7ZDZYumcROM zT0RXq?@|A$uOb2&0IX>Ab9ty?U)lM3)bo7LPM+d~0IDZ9U)9X4Pt|IhEccrc4$Yqg zxN&t9niz^0H@V{LX*57HW5=4LcVn`mZrtz!m-E4LWa#a&|ZE=ZeR z_be>uWC0uQotqmp(+ySAn|+s`Jh^?c#?)U-^^qVEROY9akEY4F$EfL{d=!)6%BG-- zzxb^*e?e$Rf1Wl1QT?k8F>OCoXwv?=Ung`f@oR`*z|{D)G%5h9(2EXaoVg^$f5Zm< zKZTunJXG!9$1R~Oja|ej${K1yXo$j8_FcA;rjQxV!J)?|Gj8yk6(bnRAXg-|KsQuFvOvU}1Q)$#BKFf7rFv3#c^C6nuM& zOO0Gft$Kq{^uZk+fBQMx4ywF#eZ10jN%@}^6Trc3hCtkr5v?qLPeTBZoa}i>5KfE4m^W45!H&tNIy2!R)_bi2pfs)oyorVbu+nl5 ziVqIJzcjU0;LWSXA>n4vmdvWwz`nJ(vB0=#2PO^BiHo&%ecgXrM@U_;#^7aMCflK* zu?J85J`Tl@CXG@Gz9}c1FQwCP4okOwbBpS37P8a>qfV`z9k+`X5YFPzTfu%UP!6y`Fvr_P9?4V5;X6Bf8{U9#rCkAZ zM&uVB!n66B@`9(+a&}!KKRfCf^oQNN+6$^tHoMIK!>*$7-0ZFr=x>*b-P5X-LgxBY zo2Ug*pNH%q>8qqJmtk=~7g&DYcueN3PcuE3&z~%j0gUYgSS9wn57tV0QdV~{+bxEnx{U^j4&k6Tg_t{mX$_Yq$xe=@q|jc4#`MB^ zJT!tidMB9LT+XqKk3JFN=!_dS0?dknKn##1>;EeT2o)}9LyEIBz=e4SFuw9d_vq)Y znKx|vFBXdWkaNz_)-AYMGNnQ9zLj_f%C}~7N!N>u)Lf+CfEIdIU7czh$QbcAide4T zZQJy*?<2fUv(SP%PV21I_X1kz7G8vO5oI)0xCIvcYt6{A`!}bwQlGSad^&0sE+dig ztCN-J!D2iYgG*FJ2{BPzy1^u&y=FXDd67a8y7BGP|L)Sh_Z*1ci7meUFD~utdnA|k z%FkshXa7&|yHfQ-cZaL9*88w++@nx&uAPsEVL*=wVw{~gi>(snR7!xUfN3m@nIRqe z$bxi@pG5F$L=in`nIEOo82`J5h_9j*7~_4)pr(1ea&G+SOCoJiMKDK#1^!`Tmo zu(KAj$s(@Ez}~eSFWD$y#q zslU<&-b60sArh0MhfMd8Ut(rM_CQZ8FfKQivy3;fi)0|#R9eO4o~zDAw8`&mCJBRl zL+V<9>B#dX+=Ch6E=t$PUla#aJlOiq<<`$o@7t~|m@_8YX~f5JPr8|q*x0k}KKaw) zlj4s{p!Bb0(O2I@&cJP`BT4v(=^IBCC}>G;6Pl`dvTGO(u1uHZFzBch#Oi5#?{oUA zMDhff&?FU9`${$qfOt^aXNUDLXp}!L8o++(*YdqI@rZ`e_9q$WGiZtk%BdwBGNUQLOvKhbHU?bZL0ypyF6t66gl zm;}?$LvW7=cpykxJulrHg1_Tybvk9?!FUgQFW7)ZjiG5RKh5P)A-N+a_IR~*prd%Jub(3dwV#iE zEZRnitmR!zrZDwcFZbI$fi zpQ#2NyF^|ZZxhg}_2{p|uY5RbnD8K6ZJ*(Qw2)?}wekp&yaRA|Qo#DxsS?SeI+jqSMG)is9$_pX3e;QRCk`w z6Eyf}-+>ptnm-5fB$ja02cI*FiDNlWz6!au(Hs}CGqc@Mmic~|=QFFJrG1@1hjtXy z4~e%c+1cVu*QrSvt}^-J7&3CYOFA(;0v#pDtP1!!v4p;BvW*`n{US>q(dX{NUrV`ti>sUd7L3MP0-oP`aRTgYw5brGKhov{JH8&ZnR)OJ2X6Hj z*N%E-g5%w9Tu(o3p@Ox209&F)dqM|)8ypzq@>_T7)U{4lXM#FbS?FxaC!G^bZMM9+ z4tmuQbQP|}fWbv^^L6{ks3C9Ej)`TTPs7Rx%f;*+b8A$!FHS$N0rHb7YlE-;Os=Pr zQ{twGcgc=sfxFbo@AZ<0v(i)mIIN>SayZmhz4f%!>5C|cW!)L%h17s1v)z*m@qbN( zLIG`HP@`-xc!<{bo61SZlQWVZ1OuYl!Sb-gF-ru;V-o?-65R4%f%6Z;4dlCb<*tm4 zT`7ejX`!VvI;>13$7YHQz%+8p7l(Tpo$_JB4f^W={o?Bv;zK3iLCjqj{gvE5lo;fd zHH{q|VzJ(ecLFb~dW44K((lhkhDQ$2inQ@ZcRq7Y>-^*1b>gOVEt)4}ovdHpbt^K@ z|3sf`Dm|bJwcZkK{pP34+PPS-&Y(HzYpQh%%*U0(ohJ^qYv&SPhZse79v3M#nTUb? zTTjUjU*9&)0S1{kUx6pKuPYG_c~z}evFZy5xUz{>?k8wd2OGRLnS6!W@2E;KWyJGkUt&UFTh*2NVjj=kW%jj~V001z!4 z=ACav4hf=_2vC25z)FK{a-HCIF%1b@(>NH^N7$**yWUBYO61yA32R`g-kGrQqT2&s zZ1aW~`>zx~03Uhl@0bL?Vul+mpc)cp64nzfU1rpi*eG&?8WU7Xl4Pf1!!_iKpK_${ zC;xLY0h})InNl8x8hkL6Jpz7odsa%}^mCw|17HWPhf{dC+kQ}x((i~n?<}jL=p9a@ z<9^KPtHyuVYuBL`*B7H;P2iVO8ICwx_P&$c40y;=GC7R)u@F`J-|`;#me&bZ9#xFU zJg^Th!=rFfc{Bw+ujIxWBM>U0T(6i0?6X&W^QWn?a#<*foA?<)RQJ+am_wkw5~pN- z7sfTpB>PChT4dEn1d;2VMl0o-hg^bZeAQZSZ%fT*?fK_jkzO;p1^Kn_+yjstFP#ra zNvx;BrMYSMj?`B;0sS zFuJaW4L~Ou?IWxSIxyrDP0$laaSx}5DtUOzHO?=y^m2JYfcOG)&~ws}entE=bCT7$ z=#rYt?lU1eR^i}WaqU8Z0rKPflqR^`l!q|k(Zo+khOK+ubx;hXEPh&3dhXVaKhK_5 zEWuW;iN*%L+&b5&xM}Dl-pY8w8~S%KsSYAxoEeE0RatjS6)vupzw^Mi4zR4J9^a9vEO zGsL1|=&T;B!-Hc|XANCOT4+&_Am}oQeN;)!5I#Ng%dGfD89Z`xzBJfQ5Uq?0g3AeUS9@IhE|>w~}OV)8>HvkoV#COPN{LT#vk8 zt2Z)j@{a(~lW*kv*4-rOL6sffa^(OAYdJ-0AsgF9gwSQe2wH&X@4yh*TSHt#%TNt1(?*1p$1*$&WoXj%(3D- zcQ5QJ#PkYUg9UjMs?vZCI$TX&{X=JmqECeM2>uCx|CpLx$`!gYuDe(vVX}YRkFG^k zURe>tw{_d=^mg9nvS?KtpkI=2?(iG$tPXR5QosdvzxGoCt z$$I=Gfzpq+2F3?10L^~%hk|tHo!byiu28i+0-PzrVDKCekd-_eW}(>Fp}Ancc191J z%LV{ozGVXd7!U|yD)X?cRj`u12B#u~Q22#>5x;tCwV54R+A8Kzk+(poe&f<5a*v*K zT2oU&Cy_LPGej(sedjw!v3{YylrY}sxYF)>cfp<-T!xEu)CFu&YJe?D)I%N!%*L!8 zEi#ZVi4r-oMksMF`zOoUUiq(+KVL}Vgk4zs|M2{i%LBzJSShuf5=6EJK+gfbJ})q= zG0GhyJ>s|)s`}>jgj5{06DiB8;CT5#UeEFuCDRNU65yFEh+SOUYPR?{idoz^hcctc z&442k_wYk5d(L7ZTKmy)4^n0o##7c6!_jl_B86&KbNSP0;&tq_AS1DeI66n%PR*pX zi2%0k-ZNP@3`AaRb)vJ?W}XEv*Z1a+PPd6tY;c0IY-s0=Iw-*C*soU) zC=bBofdMQRHt;f`m;%bDO+Q@6&hS8dvdDDe(V_H-k2t&!J`FL&9w2#0bHLqd5+>n8)4e;ua%TPUO&4#d!TjvD`IHe+m+wqABkj zoNs5r+GI!s>cQZx77EF%7%V;lk~d43R$%h9**@|sc6SSR>J07Anld(@sT0nyR>Qu_ zPhkc@Fj;M*AKsf3%f|p*H1HyY%3g7T%cCKt?y8k0=-`j0laL`{!mVH11jZ{=3)Zbo z21^05#asw*jiv?Hew&@KV*;teNz-jz?UZ2y0k!l8DBW^9Rj~0!uD>Ft|27Lg;_|N} z*?vvL_xnuig>$EG@^@kLoJ?zdbt0stXU1YVLJO_W zCv!h-*}a>}{Q3SZv`DX6-2%p&B;T>R%A72KsxXP5VK54m2trhI`mBmx(#zV{ zInu6zS{==2l?XBO^i7UsOK?Fk{?ekyEXECjxn| ze`kRpJim|8Q}?3d(XG1>vcoX%zs<(_g-QWYTElLe@&5AL%%^F!{2#PFiop zRz~d(ix56>b@e=g)qGNk>2`{de6Q_WxRCIF*6yQFR#bxy#Qy{EQ~~2n-V>tkL{`UY z&0Rmmuj2DpeT)jObl<7A@des_b`d1V25nwoq~e9M<^f>hHSU>co8g(*{m}-YwofiI z-mkS=3Wl~O+8MFVW{YqX8E6K**_pPc`QNK@m~X8Hg&Kle5qX4L!dd6!IWdLU*Nlkc zGiH(n$H6or(h^BfuCPB&?kP`30z;2(u1 zR+FQfD9dIbldYlRvSLo87bRrF5U656yei7F$Z+uFv&!-!9(3wD{QY)By0oUJmuQ{- zU}FV=;Y7LSZ1uxnRdzVY10dxWlIkcKoJet_HxrwC@n~W6^hFyQekJ5|pV<4XQj zka1?kZLfD%g`ld(`_Jln6>AAWt9jnwML-$NI@O($<9KJ{W`C%l?Zl4-L0J7Mr!-?21u}Dy5k;D zu}!eeZ*3?R;L}9xDghYu?{zNJxF-U5o>7it>+~T~$v2ua{;7P)^J*yJ6~TT02(a@l_L<@JIZo3wOYJ9t9BNNUnvpIZ184_1fah;Vh@r1saB z^4y@`7jq3dxmVlsiow+%)C~5)FovY6v>3pvw$J%t@r@7cp&Ec@j$@T1u-i81-!`X5 z*u0~!^hDZq+7k7};*;b~0?h1x(q(|(>8OIVD1hr(THoGWk=iwDyIPzQf69sA=(J+o zn#EcLV}QPlry2xM(Oe*&QuTxz|DO({_ui&T9ig&XSsUK?V&dy)5>MGnr6uw&*J)SR z4O5d0C2t!+(VG{Y3fFU3G4!F~;z`0^Zy$VT zlJGjGSF&$3BUtfc03n5Fp1KQfb~InA&8`q*1q&GG=||Hzpy6L2H1f*;LpyQht{w?} zDZ2kUk>FaSr)>&iD|Z|7sH6U!z%}z@JhB~OedrN<`}Lfq^UV}Y43>cn?*zZ0AOM2< zpX5w(`QSQaEYTvqHz~=NXHUjQf0o%dBkQfeAN31lR&xxOEgYHTdZp%bVXN280=Ana z^M=FH$n=5rl?&BI)^08Qe_`>YwGkkoEIR+Kv^%~Pb0k^b?3|sA#qp8cs#eTueeM2Q zRw=0&M&6mX$~YF!Y0ZBc@63#c7`f!9BKSXd@Voc{RoLU+XN*d^;RK${8T?=LBS%Bk z&gk{var Ce=Object.create;var J=Object.defineProperty;var Pe=Object.getOwnPropertyDescriptor;var Oe=Object.getOwnPropertyNames;var Re=Object.getPrototypeOf,_e=Object.prototype.hasOwnProperty;var Me=t=>J(t,"__esModule",{value:!0});var Fe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var De=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Oe(e))!_e.call(t,i)&&(r||i!=="default")&&J(t,i,{get:()=>e[i],enumerable:!(n=Pe(e,i))||n.enumerable});return t},Ae=(t,e)=>De(Me(J(t!=null?Ce(Re(t)):{},"default",!e&&t&&t.__esModule?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var de=Fe((ce,he)=>{(function(){var t=function(e){var r=new t.Builder;return r.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),r.searchPipeline.add(t.stemmer),e.call(r,r),r.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(r){e.console&&console.warn&&console.warn(r)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var r=Object.create(null),n=Object.keys(e),i=0;i0){var h=t.utils.clone(r)||{};h.position=[a,l],h.index=s.length,s.push(new t.Token(n.slice(a,o),h))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,r){r in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+r),e.label=r,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var r=e.label&&e.label in this.registeredFunctions;r||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. -`,e)},t.Pipeline.load=function(e){var r=new t.Pipeline;return e.forEach(function(n){var i=t.Pipeline.registeredFunctions[n];if(i)r.add(i);else throw new Error("Cannot load unregistered function: "+n)}),r},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(r){t.Pipeline.warnIfFunctionNotRegistered(r),this._stack.push(r)},this)},t.Pipeline.prototype.after=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");n=n+1,this._stack.splice(n,0,r)},t.Pipeline.prototype.before=function(e,r){t.Pipeline.warnIfFunctionNotRegistered(r);var n=this._stack.indexOf(e);if(n==-1)throw new Error("Cannot find existingFn");this._stack.splice(n,0,r)},t.Pipeline.prototype.remove=function(e){var r=this._stack.indexOf(e);r!=-1&&this._stack.splice(r,1)},t.Pipeline.prototype.run=function(e){for(var r=this._stack.length,n=0;n1&&(oe&&(n=s),o!=e);)i=n-r,s=r+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ou?h+=2:a==u&&(r+=n[l+1]*i[h+1],l+=2,h+=2);return r},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),r=1,n=0;r0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var u=s.node.edges["*"];else{var u=new t.TokenSet;s.node.edges["*"]=u}if(s.str.length==0&&(u.final=!0),i.push({node:u,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}s.str.length==1&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var h=s.str.charAt(0),p=s.str.charAt(1),v;p in s.node.edges?v=s.node.edges[p]:(v=new t.TokenSet,s.node.edges[p]=v),s.str.length==1&&(v.final=!0),i.push({node:v,editsRemaining:s.editsRemaining-1,str:h+s.str.slice(2)})}}}return n},t.TokenSet.fromString=function(e){for(var r=new t.TokenSet,n=r,i=0,s=e.length;i=e;r--){var n=this.uncheckedNodes[r],i=n.child.toString();i in this.minimizedNodes?n.parent.edges[n.char]=this.minimizedNodes[i]:(n.child._str=i,this.minimizedNodes[i]=n.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(r){var n=new t.QueryParser(e,r);n.parse()})},t.Index.prototype.query=function(e){for(var r=new t.Query(this.fields),n=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),u=0;u1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,r){var n=e[this._ref],i=Object.keys(this._fields);this._documents[n]=r||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,r;do e=this.next(),r=e.charCodeAt(0);while(r>47&&r<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var r=e.next();if(r==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(r.charCodeAt(0)==92){e.escapeCharacter();continue}if(r==":")return t.QueryLexer.lexField;if(r=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(r=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(r=="+"&&e.width()===1||r=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(r.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,r){this.lexer=new t.QueryLexer(e),this.query=r,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var r=e.peekLexeme();if(r!=null)switch(r.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expected either a field or a term, found "+r.type;throw r.str.length>=1&&(n+=" with value '"+r.str+"'"),new t.QueryParseError(n,r.start,r.end)}},t.QueryParser.parsePresence=function(e){var r=e.consumeLexeme();if(r!=null){switch(r.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var n="unrecognised presence operator'"+r.str+"'";throw new t.QueryParseError(n,r.start,r.end)}var i=e.peekLexeme();if(i==null){var n="expecting term or field, found nothing";throw new t.QueryParseError(n,r.start,r.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var n="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(n,i.start,i.end)}}},t.QueryParser.parseField=function(e){var r=e.consumeLexeme();if(r!=null){if(e.query.allFields.indexOf(r.str)==-1){var n=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+r.str+"', possible fields: "+n;throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.fields=[r.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,r.start,r.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var r=e.consumeLexeme();if(r!=null){e.currentClause.term=r.str.toLowerCase(),r.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var n=e.peekLexeme();if(n==null){e.nextClause();return}switch(n.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+n.type+"'";throw new t.QueryParseError(i,n.start,n.end)}}},t.QueryParser.parseEditDistance=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="edit distance must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.editDistance=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var r=e.consumeLexeme();if(r!=null){var n=parseInt(r.str,10);if(isNaN(n)){var i="boost must be numeric";throw new t.QueryParseError(i,r.start,r.end)}e.currentClause.boost=n;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,r){typeof define=="function"&&define.amd?define(r):typeof ce=="object"?he.exports=r():e.lunr=r()}(this,function(){return t})})()});var le=[];function N(t,e){le.push({selector:e,constructor:t})}var X=class{constructor(){this.createComponents(document.body)}createComponents(e){le.forEach(r=>{e.querySelectorAll(r.selector).forEach(n=>{n.dataset.hasInstance||(new r.constructor({el:n}),n.dataset.hasInstance=String(!0))})})}};var Q=class{constructor(e){this.el=e.el}};var Z=class{constructor(){this.listeners={}}addEventListener(e,r){e in this.listeners||(this.listeners[e]=[]),this.listeners[e].push(r)}removeEventListener(e,r){if(!(e in this.listeners))return;let n=this.listeners[e];for(let i=0,s=n.length;i{let r=Date.now();return(...n)=>{r+e-Date.now()<0&&(t(...n),r=Date.now())}};var ee=class extends Z{constructor(){super();this.scrollTop=0;this.lastY=0;this.width=0;this.height=0;this.showToolbar=!0;this.toolbar=document.querySelector(".tsd-page-toolbar"),this.secondaryNav=document.querySelector(".tsd-navigation.secondary"),window.addEventListener("scroll",K(()=>this.onScroll(),10)),window.addEventListener("resize",K(()=>this.onResize(),10)),this.onResize(),this.onScroll()}triggerResize(){let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onResize(){this.width=window.innerWidth||0,this.height=window.innerHeight||0;let e=new CustomEvent("resize",{detail:{width:this.width,height:this.height}});this.dispatchEvent(e)}onScroll(){this.scrollTop=window.scrollY||0;let e=new CustomEvent("scroll",{detail:{scrollTop:this.scrollTop}});this.dispatchEvent(e),this.hideShowToolbar()}hideShowToolbar(){var r;let e=this.showToolbar;this.showToolbar=this.lastY>=this.scrollTop||this.scrollTop<=0,e!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),(r=this.secondaryNav)==null||r.classList.toggle("tsd-navigation--toolbar-hide")),this.lastY=this.scrollTop}},I=ee;I.instance=new ee;var te=class extends Q{constructor(e){super(e);this.anchors=[];this.index=-1;I.instance.addEventListener("resize",()=>this.onResize()),I.instance.addEventListener("scroll",r=>this.onScroll(r)),this.createAnchors()}createAnchors(){let e=window.location.href;e.indexOf("#")!=-1&&(e=e.substr(0,e.indexOf("#"))),this.el.querySelectorAll("a").forEach(r=>{let n=r.href;if(n.indexOf("#")==-1||n.substr(0,e.length)!=e)return;let i=n.substr(n.indexOf("#")+1),s=document.querySelector("a.tsd-anchor[name="+i+"]"),o=r.parentNode;!s||!o||this.anchors.push({link:o,anchor:s,position:0})}),this.onResize()}onResize(){let e;for(let n=0,i=this.anchors.length;nn.position-i.position);let r=new CustomEvent("scroll",{detail:{scrollTop:I.instance.scrollTop}});this.onScroll(r)}onScroll(e){let r=e.detail.scrollTop+5,n=this.anchors,i=n.length-1,s=this.index;for(;s>-1&&n[s].position>r;)s-=1;for(;s-1&&this.anchors[this.index].link.classList.remove("focus"),this.index=s,this.index>-1&&this.anchors[this.index].link.classList.add("focus"))}};var ue=(t,e=100)=>{let r;return(...n)=>{clearTimeout(r),r=setTimeout(()=>t(n),e)}};var fe=Ae(de());function pe(){let t=document.getElementById("tsd-search");if(!t)return;let e=document.getElementById("search-script");t.classList.add("loading"),e&&(e.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),e.addEventListener("load",()=>{t.classList.remove("loading"),t.classList.add("ready")}),window.searchData&&t.classList.remove("loading"));let r=document.querySelector("#tsd-search input"),n=document.querySelector("#tsd-search .results");if(!r||!n)throw new Error("The input field or the result list wrapper was not found");let i=!1;n.addEventListener("mousedown",()=>i=!0),n.addEventListener("mouseup",()=>{i=!1,t.classList.remove("has-focus")}),r.addEventListener("focus",()=>t.classList.add("has-focus")),r.addEventListener("blur",()=>{i||(i=!1,t.classList.remove("has-focus"))});let s={base:t.dataset.base+"/"};Ve(t,n,r,s)}function Ve(t,e,r,n){r.addEventListener("input",ue(()=>{ze(t,e,r,n)},200));let i=!1;r.addEventListener("keydown",s=>{i=!0,s.key=="Enter"?Ne(e,r):s.key=="Escape"?r.blur():s.key=="ArrowUp"?me(e,-1):s.key==="ArrowDown"?me(e,1):i=!1}),r.addEventListener("keypress",s=>{i&&s.preventDefault()}),document.body.addEventListener("keydown",s=>{s.altKey||s.ctrlKey||s.metaKey||!r.matches(":focus")&&s.key==="/"&&(r.focus(),s.preventDefault())})}function He(t,e){t.index||window.searchData&&(e.classList.remove("loading"),e.classList.add("ready"),t.data=window.searchData,t.index=fe.Index.load(window.searchData.index))}function ze(t,e,r,n){if(He(n,t),!n.index||!n.data)return;e.textContent="";let i=r.value.trim(),s=n.index.search(`*${i}*`);for(let o=0,a=Math.min(10,s.length);o${ve(u.parent,i)}.${l}`);let h=document.createElement("li");h.classList.value=u.classes;let p=document.createElement("a");p.href=n.base+u.url,p.classList.add("tsd-kind-icon"),p.innerHTML=l,h.append(p),e.appendChild(h)}}function me(t,e){let r=t.querySelector(".current");if(!r)r=t.querySelector(e==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let n=r;if(e===1)do n=n.nextElementSibling;while(n instanceof HTMLElement&&n.offsetParent==null);else do n=n.previousElementSibling;while(n instanceof HTMLElement&&n.offsetParent==null);n&&(r.classList.remove("current"),n.classList.add("current"))}}function Ne(t,e){let r=t.querySelector(".current");if(r||(r=t.querySelector("li:first-child")),r){let n=r.querySelector("a");n&&(window.location.href=n.href),e.blur()}}function ve(t,e){if(e==="")return t;let r=t.toLocaleLowerCase(),n=e.toLocaleLowerCase(),i=[],s=0,o=r.indexOf(n);for(;o!=-1;)i.push(re(t.substring(s,o)),`${re(t.substring(o,o+n.length))}`),s=o+n.length,o=r.indexOf(n,s);return i.push(re(t.substring(s))),i.join("")}var je={"&":"&","<":"<",">":">","'":"'",'"':"""};function re(t){return t.replace(/[&<>"'"]/g,e=>je[e])}var ge=class{constructor(e,r){this.signature=e,this.description=r}addClass(e){return this.signature.classList.add(e),this.description.classList.add(e),this}removeClass(e){return this.signature.classList.remove(e),this.description.classList.remove(e),this}},ne=class extends Q{constructor(e){super(e);this.groups=[];this.index=-1;this.createGroups(),this.container&&(this.el.classList.add("active"),Array.from(this.el.children).forEach(r=>{r.addEventListener("touchstart",n=>this.onClick(n)),r.addEventListener("click",n=>this.onClick(n))}),this.container.classList.add("active"),this.setIndex(0))}setIndex(e){if(e<0&&(e=0),e>this.groups.length-1&&(e=this.groups.length-1),this.index==e)return;let r=this.groups[e];if(this.index>-1){let n=this.groups[this.index];n.removeClass("current").addClass("fade-out"),r.addClass("current"),r.addClass("fade-in"),I.instance.triggerResize(),setTimeout(()=>{n.removeClass("fade-out"),r.removeClass("fade-in")},300)}else r.addClass("current"),I.instance.triggerResize();this.index=e}createGroups(){let e=this.el.children;if(e.length<2)return;this.container=this.el.nextElementSibling;let r=this.container.children;this.groups=[];for(let n=0;n{r.signature===e.currentTarget&&this.setIndex(n)})}};var C="mousedown",ye="mousemove",_="mouseup",G={x:0,y:0},xe=!1,ie=!1,Be=!1,A=!1,Le=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(Le?"is-mobile":"not-mobile");Le&&"ontouchstart"in document.documentElement&&(Be=!0,C="touchstart",ye="touchmove",_="touchend");document.addEventListener(C,t=>{ie=!0,A=!1;let e=C=="touchstart"?t.targetTouches[0]:t;G.y=e.pageY||0,G.x=e.pageX||0});document.addEventListener(ye,t=>{if(!!ie&&!A){let e=C=="touchstart"?t.targetTouches[0]:t,r=G.x-(e.pageX||0),n=G.y-(e.pageY||0);A=Math.sqrt(r*r+n*n)>10}});document.addEventListener(_,()=>{ie=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var se=class extends Q{constructor(e){super(e);this.className=this.el.dataset.toggle||"",this.el.addEventListener(_,r=>this.onPointerUp(r)),this.el.addEventListener("click",r=>r.preventDefault()),document.addEventListener(C,r=>this.onDocumentPointerDown(r)),document.addEventListener(_,r=>this.onDocumentPointerUp(r))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let r=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(r),setTimeout(()=>document.documentElement.classList.remove(r),500)}onPointerUp(e){A||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-menu, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!A&&this.active&&e.target.closest(".col-menu")){let r=e.target.closest("a");if(r){let n=window.location.href;n.indexOf("#")!=-1&&(n=n.substr(0,n.indexOf("#"))),r.href.substr(0,n.length)==n&&setTimeout(()=>this.setActive(!1),250)}}}};var oe=class{constructor(e,r){this.key=e,this.value=r,this.defaultValue=r,this.initialize(),window.localStorage[this.key]&&this.setValue(this.fromLocalStorage(window.localStorage[this.key]))}initialize(){}setValue(e){if(this.value==e)return;let r=this.value;this.value=e,window.localStorage[this.key]=this.toLocalStorage(e),this.handleValueChange(r,e)}},ae=class extends oe{initialize(){let e=document.querySelector("#tsd-filter-"+this.key);!e||(this.checkbox=e,this.checkbox.addEventListener("change",()=>{this.setValue(this.checkbox.checked)}))}handleValueChange(e,r){!this.checkbox||(this.checkbox.checked=this.value,document.documentElement.classList.toggle("toggle-"+this.key,this.value!=this.defaultValue))}fromLocalStorage(e){return e=="true"}toLocalStorage(e){return e?"true":"false"}},Ee=class extends oe{initialize(){document.documentElement.classList.add("toggle-"+this.key+this.value);let e=document.querySelector("#tsd-filter-"+this.key);if(!e)return;this.select=e;let r=()=>{this.select.classList.add("active")},n=()=>{this.select.classList.remove("active")};this.select.addEventListener(C,r),this.select.addEventListener("mouseover",r),this.select.addEventListener("mouseleave",n),this.select.querySelectorAll("li").forEach(i=>{i.addEventListener(_,s=>{e.classList.remove("active"),this.setValue(s.target.dataset.value||"")})}),document.addEventListener(C,i=>{this.select.contains(i.target)||this.select.classList.remove("active")})}handleValueChange(e,r){this.select.querySelectorAll("li.selected").forEach(s=>{s.classList.remove("selected")});let n=this.select.querySelector('li[data-value="'+r+'"]'),i=this.select.querySelector(".tsd-select-label");n&&i&&(n.classList.add("selected"),i.textContent=n.textContent),document.documentElement.classList.remove("toggle-"+e),document.documentElement.classList.add("toggle-"+r)}fromLocalStorage(e){return e}toLocalStorage(e){return e}},Y=class extends Q{constructor(e){super(e);this.optionVisibility=new Ee("visibility","private"),this.optionInherited=new ae("inherited",!0),this.optionExternals=new ae("externals",!0)}static isSupported(){try{return typeof window.localStorage!="undefined"}catch{return!1}}};function be(t){let e=localStorage.getItem("tsd-theme")||"os";t.value=e,we(e),t.addEventListener("change",()=>{localStorage.setItem("tsd-theme",t.value),we(t.value)})}function we(t){switch(t){case"os":document.body.classList.remove("light","dark");break;case"light":document.body.classList.remove("dark"),document.body.classList.add("light");break;case"dark":document.body.classList.remove("light"),document.body.classList.add("dark");break}}pe();N(te,".menu-highlight");N(ne,".tsd-signatures");N(se,"a[data-toggle]");Y.isSupported()?N(Y,"#tsd-filter"):document.documentElement.classList.add("no-filter");var Te=document.getElementById("theme");Te&&be(Te);var qe=new X;Object.defineProperty(window,"app",{value:qe});})(); -/*! - * lunr.Builder - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Index - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Pipeline - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Set - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.TokenSet - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.Vector - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.stemmer - * Copyright (C) 2020 Oliver Nightingale - * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt - */ -/*! - * lunr.stopWordFilter - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.tokenizer - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.trimmer - * Copyright (C) 2020 Oliver Nightingale - */ -/*! - * lunr.utils - * Copyright (C) 2020 Oliver Nightingale - */ -/** - * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 - * Copyright (C) 2020 Oliver Nightingale - * @license MIT - */ +"use strict"; +window.translations={"copy":"Copy","copied":"Copied!","normally_hidden":"This member is normally hidden due to your filter settings.","hierarchy_expand":"Expand","hierarchy_collapse":"Collapse","folder":"Folder","kind_1":"Project","kind_2":"Module","kind_4":"Namespace","kind_8":"Enumeration","kind_16":"Enumeration Member","kind_32":"Variable","kind_64":"Function","kind_128":"Class","kind_256":"Interface","kind_512":"Constructor","kind_1024":"Property","kind_2048":"Method","kind_4096":"Call Signature","kind_8192":"Index Signature","kind_16384":"Constructor Signature","kind_32768":"Parameter","kind_65536":"Type Literal","kind_131072":"Type Parameter","kind_262144":"Accessor","kind_524288":"Get Signature","kind_1048576":"Set Signature","kind_2097152":"Type Alias","kind_4194304":"Reference","kind_8388608":"Document"}; +"use strict";(()=>{var De=Object.create;var le=Object.defineProperty;var Fe=Object.getOwnPropertyDescriptor;var Ne=Object.getOwnPropertyNames;var Ve=Object.getPrototypeOf,Be=Object.prototype.hasOwnProperty;var qe=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var je=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of Ne(e))!Be.call(t,i)&&i!==n&&le(t,i,{get:()=>e[i],enumerable:!(r=Fe(e,i))||r.enumerable});return t};var $e=(t,e,n)=>(n=t!=null?De(Ve(t)):{},je(e||!t||!t.__esModule?le(n,"default",{value:t,enumerable:!0}):n,t));var pe=qe((de,he)=>{(function(){var t=function(e){var n=new t.Builder;return n.pipeline.add(t.trimmer,t.stopWordFilter,t.stemmer),n.searchPipeline.add(t.stemmer),e.call(n,n),n.build()};t.version="2.3.9";t.utils={},t.utils.warn=function(e){return function(n){e.console&&console.warn&&console.warn(n)}}(this),t.utils.asString=function(e){return e==null?"":e.toString()},t.utils.clone=function(e){if(e==null)return e;for(var n=Object.create(null),r=Object.keys(e),i=0;i0){var d=t.utils.clone(n)||{};d.position=[a,c],d.index=s.length,s.push(new t.Token(r.slice(a,o),d))}a=o+1}}return s},t.tokenizer.separator=/[\s\-]+/;t.Pipeline=function(){this._stack=[]},t.Pipeline.registeredFunctions=Object.create(null),t.Pipeline.registerFunction=function(e,n){n in this.registeredFunctions&&t.utils.warn("Overwriting existing registered function: "+n),e.label=n,t.Pipeline.registeredFunctions[e.label]=e},t.Pipeline.warnIfFunctionNotRegistered=function(e){var n=e.label&&e.label in this.registeredFunctions;n||t.utils.warn(`Function is not registered with pipeline. This may cause problems when serialising the index. +`,e)},t.Pipeline.load=function(e){var n=new t.Pipeline;return e.forEach(function(r){var i=t.Pipeline.registeredFunctions[r];if(i)n.add(i);else throw new Error("Cannot load unregistered function: "+r)}),n},t.Pipeline.prototype.add=function(){var e=Array.prototype.slice.call(arguments);e.forEach(function(n){t.Pipeline.warnIfFunctionNotRegistered(n),this._stack.push(n)},this)},t.Pipeline.prototype.after=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");r=r+1,this._stack.splice(r,0,n)},t.Pipeline.prototype.before=function(e,n){t.Pipeline.warnIfFunctionNotRegistered(n);var r=this._stack.indexOf(e);if(r==-1)throw new Error("Cannot find existingFn");this._stack.splice(r,0,n)},t.Pipeline.prototype.remove=function(e){var n=this._stack.indexOf(e);n!=-1&&this._stack.splice(n,1)},t.Pipeline.prototype.run=function(e){for(var n=this._stack.length,r=0;r1&&(oe&&(r=s),o!=e);)i=r-n,s=n+Math.floor(i/2),o=this.elements[s*2];if(o==e||o>e)return s*2;if(ol?d+=2:a==l&&(n+=r[c+1]*i[d+1],c+=2,d+=2);return n},t.Vector.prototype.similarity=function(e){return this.dot(e)/this.magnitude()||0},t.Vector.prototype.toArray=function(){for(var e=new Array(this.elements.length/2),n=1,r=0;n0){var o=s.str.charAt(0),a;o in s.node.edges?a=s.node.edges[o]:(a=new t.TokenSet,s.node.edges[o]=a),s.str.length==1&&(a.final=!0),i.push({node:a,editsRemaining:s.editsRemaining,str:s.str.slice(1)})}if(s.editsRemaining!=0){if("*"in s.node.edges)var l=s.node.edges["*"];else{var l=new t.TokenSet;s.node.edges["*"]=l}if(s.str.length==0&&(l.final=!0),i.push({node:l,editsRemaining:s.editsRemaining-1,str:s.str}),s.str.length>1&&i.push({node:s.node,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)}),s.str.length==1&&(s.node.final=!0),s.str.length>=1){if("*"in s.node.edges)var c=s.node.edges["*"];else{var c=new t.TokenSet;s.node.edges["*"]=c}s.str.length==1&&(c.final=!0),i.push({node:c,editsRemaining:s.editsRemaining-1,str:s.str.slice(1)})}if(s.str.length>1){var d=s.str.charAt(0),m=s.str.charAt(1),p;m in s.node.edges?p=s.node.edges[m]:(p=new t.TokenSet,s.node.edges[m]=p),s.str.length==1&&(p.final=!0),i.push({node:p,editsRemaining:s.editsRemaining-1,str:d+s.str.slice(2)})}}}return r},t.TokenSet.fromString=function(e){for(var n=new t.TokenSet,r=n,i=0,s=e.length;i=e;n--){var r=this.uncheckedNodes[n],i=r.child.toString();i in this.minimizedNodes?r.parent.edges[r.char]=this.minimizedNodes[i]:(r.child._str=i,this.minimizedNodes[i]=r.child),this.uncheckedNodes.pop()}};t.Index=function(e){this.invertedIndex=e.invertedIndex,this.fieldVectors=e.fieldVectors,this.tokenSet=e.tokenSet,this.fields=e.fields,this.pipeline=e.pipeline},t.Index.prototype.search=function(e){return this.query(function(n){var r=new t.QueryParser(e,n);r.parse()})},t.Index.prototype.query=function(e){for(var n=new t.Query(this.fields),r=Object.create(null),i=Object.create(null),s=Object.create(null),o=Object.create(null),a=Object.create(null),l=0;l1?this._b=1:this._b=e},t.Builder.prototype.k1=function(e){this._k1=e},t.Builder.prototype.add=function(e,n){var r=e[this._ref],i=Object.keys(this._fields);this._documents[r]=n||{},this.documentCount+=1;for(var s=0;s=this.length)return t.QueryLexer.EOS;var e=this.str.charAt(this.pos);return this.pos+=1,e},t.QueryLexer.prototype.width=function(){return this.pos-this.start},t.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},t.QueryLexer.prototype.backup=function(){this.pos-=1},t.QueryLexer.prototype.acceptDigitRun=function(){var e,n;do e=this.next(),n=e.charCodeAt(0);while(n>47&&n<58);e!=t.QueryLexer.EOS&&this.backup()},t.QueryLexer.prototype.more=function(){return this.pos1&&(e.backup(),e.emit(t.QueryLexer.TERM)),e.ignore(),e.more())return t.QueryLexer.lexText},t.QueryLexer.lexEditDistance=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.EDIT_DISTANCE),t.QueryLexer.lexText},t.QueryLexer.lexBoost=function(e){return e.ignore(),e.acceptDigitRun(),e.emit(t.QueryLexer.BOOST),t.QueryLexer.lexText},t.QueryLexer.lexEOS=function(e){e.width()>0&&e.emit(t.QueryLexer.TERM)},t.QueryLexer.termSeparator=t.tokenizer.separator,t.QueryLexer.lexText=function(e){for(;;){var n=e.next();if(n==t.QueryLexer.EOS)return t.QueryLexer.lexEOS;if(n.charCodeAt(0)==92){e.escapeCharacter();continue}if(n==":")return t.QueryLexer.lexField;if(n=="~")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexEditDistance;if(n=="^")return e.backup(),e.width()>0&&e.emit(t.QueryLexer.TERM),t.QueryLexer.lexBoost;if(n=="+"&&e.width()===1||n=="-"&&e.width()===1)return e.emit(t.QueryLexer.PRESENCE),t.QueryLexer.lexText;if(n.match(t.QueryLexer.termSeparator))return t.QueryLexer.lexTerm}},t.QueryParser=function(e,n){this.lexer=new t.QueryLexer(e),this.query=n,this.currentClause={},this.lexemeIdx=0},t.QueryParser.prototype.parse=function(){this.lexer.run(),this.lexemes=this.lexer.lexemes;for(var e=t.QueryParser.parseClause;e;)e=e(this);return this.query},t.QueryParser.prototype.peekLexeme=function(){return this.lexemes[this.lexemeIdx]},t.QueryParser.prototype.consumeLexeme=function(){var e=this.peekLexeme();return this.lexemeIdx+=1,e},t.QueryParser.prototype.nextClause=function(){var e=this.currentClause;this.query.clause(e),this.currentClause={}},t.QueryParser.parseClause=function(e){var n=e.peekLexeme();if(n!=null)switch(n.type){case t.QueryLexer.PRESENCE:return t.QueryParser.parsePresence;case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expected either a field or a term, found "+n.type;throw n.str.length>=1&&(r+=" with value '"+n.str+"'"),new t.QueryParseError(r,n.start,n.end)}},t.QueryParser.parsePresence=function(e){var n=e.consumeLexeme();if(n!=null){switch(n.str){case"-":e.currentClause.presence=t.Query.presence.PROHIBITED;break;case"+":e.currentClause.presence=t.Query.presence.REQUIRED;break;default:var r="unrecognised presence operator'"+n.str+"'";throw new t.QueryParseError(r,n.start,n.end)}var i=e.peekLexeme();if(i==null){var r="expecting term or field, found nothing";throw new t.QueryParseError(r,n.start,n.end)}switch(i.type){case t.QueryLexer.FIELD:return t.QueryParser.parseField;case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var r="expecting term or field, found '"+i.type+"'";throw new t.QueryParseError(r,i.start,i.end)}}},t.QueryParser.parseField=function(e){var n=e.consumeLexeme();if(n!=null){if(e.query.allFields.indexOf(n.str)==-1){var r=e.query.allFields.map(function(o){return"'"+o+"'"}).join(", "),i="unrecognised field '"+n.str+"', possible fields: "+r;throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.fields=[n.str];var s=e.peekLexeme();if(s==null){var i="expecting term, found nothing";throw new t.QueryParseError(i,n.start,n.end)}switch(s.type){case t.QueryLexer.TERM:return t.QueryParser.parseTerm;default:var i="expecting term, found '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseTerm=function(e){var n=e.consumeLexeme();if(n!=null){e.currentClause.term=n.str.toLowerCase(),n.str.indexOf("*")!=-1&&(e.currentClause.usePipeline=!1);var r=e.peekLexeme();if(r==null){e.nextClause();return}switch(r.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+r.type+"'";throw new t.QueryParseError(i,r.start,r.end)}}},t.QueryParser.parseEditDistance=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="edit distance must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.editDistance=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},t.QueryParser.parseBoost=function(e){var n=e.consumeLexeme();if(n!=null){var r=parseInt(n.str,10);if(isNaN(r)){var i="boost must be numeric";throw new t.QueryParseError(i,n.start,n.end)}e.currentClause.boost=r;var s=e.peekLexeme();if(s==null){e.nextClause();return}switch(s.type){case t.QueryLexer.TERM:return e.nextClause(),t.QueryParser.parseTerm;case t.QueryLexer.FIELD:return e.nextClause(),t.QueryParser.parseField;case t.QueryLexer.EDIT_DISTANCE:return t.QueryParser.parseEditDistance;case t.QueryLexer.BOOST:return t.QueryParser.parseBoost;case t.QueryLexer.PRESENCE:return e.nextClause(),t.QueryParser.parsePresence;default:var i="Unexpected lexeme type '"+s.type+"'";throw new t.QueryParseError(i,s.start,s.end)}}},function(e,n){typeof define=="function"&&define.amd?define(n):typeof de=="object"?he.exports=n():e.lunr=n()}(this,function(){return t})})()});window.translations||={copy:"Copy",copied:"Copied!",normally_hidden:"This member is normally hidden due to your filter settings.",hierarchy_expand:"Expand",hierarchy_collapse:"Collapse",folder:"Folder",kind_1:"Project",kind_2:"Module",kind_4:"Namespace",kind_8:"Enumeration",kind_16:"Enumeration Member",kind_32:"Variable",kind_64:"Function",kind_128:"Class",kind_256:"Interface",kind_512:"Constructor",kind_1024:"Property",kind_2048:"Method",kind_4096:"Call Signature",kind_8192:"Index Signature",kind_16384:"Constructor Signature",kind_32768:"Parameter",kind_65536:"Type Literal",kind_131072:"Type Parameter",kind_262144:"Accessor",kind_524288:"Get Signature",kind_1048576:"Set Signature",kind_2097152:"Type Alias",kind_4194304:"Reference",kind_8388608:"Document"};var ce=[];function G(t,e){ce.push({selector:e,constructor:t})}var J=class{alwaysVisibleMember=null;constructor(){this.createComponents(document.body),this.ensureFocusedElementVisible(),this.listenForCodeCopies(),window.addEventListener("hashchange",()=>this.ensureFocusedElementVisible()),document.body.style.display||(this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}createComponents(e){ce.forEach(n=>{e.querySelectorAll(n.selector).forEach(r=>{r.dataset.hasInstance||(new n.constructor({el:r,app:this}),r.dataset.hasInstance=String(!0))})})}filterChanged(){this.ensureFocusedElementVisible()}showPage(){document.body.style.display&&(document.body.style.removeProperty("display"),this.ensureFocusedElementVisible(),this.updateIndexVisibility(),this.scrollToHash())}scrollToHash(){if(location.hash){let e=document.getElementById(location.hash.substring(1));if(!e)return;e.scrollIntoView({behavior:"instant",block:"start"})}}ensureActivePageVisible(){let e=document.querySelector(".tsd-navigation .current"),n=e?.parentElement;for(;n&&!n.classList.contains(".tsd-navigation");)n instanceof HTMLDetailsElement&&(n.open=!0),n=n.parentElement;if(e&&!ze(e)){let r=e.getBoundingClientRect().top-document.documentElement.clientHeight/4;document.querySelector(".site-menu").scrollTop=r,document.querySelector(".col-sidebar").scrollTop=r}}updateIndexVisibility(){let e=document.querySelector(".tsd-index-content"),n=e?.open;e&&(e.open=!0),document.querySelectorAll(".tsd-index-section").forEach(r=>{r.style.display="block";let i=Array.from(r.querySelectorAll(".tsd-index-link")).every(s=>s.offsetParent==null);r.style.display=i?"none":"block"}),e&&(e.open=n)}ensureFocusedElementVisible(){if(this.alwaysVisibleMember&&(this.alwaysVisibleMember.classList.remove("always-visible"),this.alwaysVisibleMember.firstElementChild.remove(),this.alwaysVisibleMember=null),!location.hash)return;let e=document.getElementById(location.hash.substring(1));if(!e)return;let n=e.parentElement;for(;n&&n.tagName!=="SECTION";)n=n.parentElement;if(!n)return;let r=n.offsetParent==null,i=n;for(;i!==document.body;)i instanceof HTMLDetailsElement&&(i.open=!0),i=i.parentElement;if(n.offsetParent==null){this.alwaysVisibleMember=n,n.classList.add("always-visible");let s=document.createElement("p");s.classList.add("warning"),s.textContent=window.translations.normally_hidden,n.prepend(s)}r&&e.scrollIntoView()}listenForCodeCopies(){document.querySelectorAll("pre > button").forEach(e=>{let n;e.addEventListener("click",()=>{e.previousElementSibling instanceof HTMLElement&&navigator.clipboard.writeText(e.previousElementSibling.innerText.trim()),e.textContent=window.translations.copied,e.classList.add("visible"),clearTimeout(n),n=setTimeout(()=>{e.classList.remove("visible"),n=setTimeout(()=>{e.textContent=window.translations.copy},100)},1e3)})})}};function ze(t){let e=t.getBoundingClientRect(),n=Math.max(document.documentElement.clientHeight,window.innerHeight);return!(e.bottom<0||e.top-n>=0)}var ue=(t,e=100)=>{let n;return()=>{clearTimeout(n),n=setTimeout(()=>t(),e)}};var ge=$e(pe(),1);async function A(t){let e=Uint8Array.from(atob(t),s=>s.charCodeAt(0)),r=new Blob([e]).stream().pipeThrough(new DecompressionStream("deflate")),i=await new Response(r).text();return JSON.parse(i)}async function fe(t,e){if(!window.searchData)return;let n=await A(window.searchData);t.data=n,t.index=ge.Index.load(n.index),e.classList.remove("loading"),e.classList.add("ready")}function ve(){let t=document.getElementById("tsd-search");if(!t)return;let e={base:document.documentElement.dataset.base+"/"},n=document.getElementById("tsd-search-script");t.classList.add("loading"),n&&(n.addEventListener("error",()=>{t.classList.remove("loading"),t.classList.add("failure")}),n.addEventListener("load",()=>{fe(e,t)}),fe(e,t));let r=document.querySelector("#tsd-search input"),i=document.querySelector("#tsd-search .results");if(!r||!i)throw new Error("The input field or the result list wrapper was not found");i.addEventListener("mouseup",()=>{re(t)}),r.addEventListener("focus",()=>t.classList.add("has-focus")),We(t,i,r,e)}function We(t,e,n,r){n.addEventListener("input",ue(()=>{Ue(t,e,n,r)},200)),n.addEventListener("keydown",i=>{i.key=="Enter"?Je(e,t):i.key=="ArrowUp"?(me(e,n,-1),i.preventDefault()):i.key==="ArrowDown"&&(me(e,n,1),i.preventDefault())}),document.body.addEventListener("keypress",i=>{i.altKey||i.ctrlKey||i.metaKey||!n.matches(":focus")&&i.key==="/"&&(i.preventDefault(),n.focus())}),document.body.addEventListener("keyup",i=>{t.classList.contains("has-focus")&&(i.key==="Escape"||!e.matches(":focus-within")&&!n.matches(":focus"))&&(n.blur(),re(t))})}function re(t){t.classList.remove("has-focus")}function Ue(t,e,n,r){if(!r.index||!r.data)return;e.textContent="";let i=n.value.trim(),s;if(i){let o=i.split(" ").map(a=>a.length?`*${a}*`:"").join(" ");s=r.index.search(o)}else s=[];for(let o=0;oa.score-o.score);for(let o=0,a=Math.min(10,s.length);o`,d=ye(l.name,i);globalThis.DEBUG_SEARCH_WEIGHTS&&(d+=` (score: ${s[o].score.toFixed(2)})`),l.parent&&(d=` + ${ye(l.parent,i)}.${d}`);let m=document.createElement("li");m.classList.value=l.classes??"";let p=document.createElement("a");p.href=r.base+l.url,p.innerHTML=c+d,m.append(p),p.addEventListener("focus",()=>{e.querySelector(".current")?.classList.remove("current"),m.classList.add("current")}),e.appendChild(m)}}function me(t,e,n){let r=t.querySelector(".current");if(!r)r=t.querySelector(n==1?"li:first-child":"li:last-child"),r&&r.classList.add("current");else{let i=r;if(n===1)do i=i.nextElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);else do i=i.previousElementSibling??void 0;while(i instanceof HTMLElement&&i.offsetParent==null);i?(r.classList.remove("current"),i.classList.add("current")):n===-1&&(r.classList.remove("current"),e.focus())}}function Je(t,e){let n=t.querySelector(".current");if(n||(n=t.querySelector("li:first-child")),n){let r=n.querySelector("a");r&&(window.location.href=r.href),re(e)}}function ye(t,e){if(e==="")return t;let n=t.toLocaleLowerCase(),r=e.toLocaleLowerCase(),i=[],s=0,o=n.indexOf(r);for(;o!=-1;)i.push(ne(t.substring(s,o)),`${ne(t.substring(o,o+r.length))}`),s=o+r.length,o=n.indexOf(r,s);return i.push(ne(t.substring(s))),i.join("")}var Ge={"&":"&","<":"<",">":">","'":"'",'"':"""};function ne(t){return t.replace(/[&<>"'"]/g,e=>Ge[e])}var I=class{el;app;constructor(e){this.el=e.el,this.app=e.app}};var H="mousedown",Ee="mousemove",B="mouseup",X={x:0,y:0},xe=!1,ie=!1,Xe=!1,D=!1,be=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);document.documentElement.classList.add(be?"is-mobile":"not-mobile");be&&"ontouchstart"in document.documentElement&&(Xe=!0,H="touchstart",Ee="touchmove",B="touchend");document.addEventListener(H,t=>{ie=!0,D=!1;let e=H=="touchstart"?t.targetTouches[0]:t;X.y=e.pageY||0,X.x=e.pageX||0});document.addEventListener(Ee,t=>{if(ie&&!D){let e=H=="touchstart"?t.targetTouches[0]:t,n=X.x-(e.pageX||0),r=X.y-(e.pageY||0);D=Math.sqrt(n*n+r*r)>10}});document.addEventListener(B,()=>{ie=!1});document.addEventListener("click",t=>{xe&&(t.preventDefault(),t.stopImmediatePropagation(),xe=!1)});var Y=class extends I{active;className;constructor(e){super(e),this.className=this.el.dataset.toggle||"",this.el.addEventListener(B,n=>this.onPointerUp(n)),this.el.addEventListener("click",n=>n.preventDefault()),document.addEventListener(H,n=>this.onDocumentPointerDown(n)),document.addEventListener(B,n=>this.onDocumentPointerUp(n))}setActive(e){if(this.active==e)return;this.active=e,document.documentElement.classList.toggle("has-"+this.className,e),this.el.classList.toggle("active",e);let n=(this.active?"to-has-":"from-has-")+this.className;document.documentElement.classList.add(n),setTimeout(()=>document.documentElement.classList.remove(n),500)}onPointerUp(e){D||(this.setActive(!0),e.preventDefault())}onDocumentPointerDown(e){if(this.active){if(e.target.closest(".col-sidebar, .tsd-filter-group"))return;this.setActive(!1)}}onDocumentPointerUp(e){if(!D&&this.active&&e.target.closest(".col-sidebar")){let n=e.target.closest("a");if(n){let r=window.location.href;r.indexOf("#")!=-1&&(r=r.substring(0,r.indexOf("#"))),n.href.substring(0,r.length)==r&&setTimeout(()=>this.setActive(!1),250)}}}};var se;try{se=localStorage}catch{se={getItem(){return null},setItem(){}}}var C=se;var Le=document.head.appendChild(document.createElement("style"));Le.dataset.for="filters";var Z=class extends I{key;value;constructor(e){super(e),this.key=`filter-${this.el.name}`,this.value=this.el.checked,this.el.addEventListener("change",()=>{this.setLocalStorage(this.el.checked)}),this.setLocalStorage(this.fromLocalStorage()),Le.innerHTML+=`html:not(.${this.key}) .tsd-is-${this.el.name} { display: none; } +`,this.app.updateIndexVisibility()}fromLocalStorage(){let e=C.getItem(this.key);return e?e==="true":this.el.checked}setLocalStorage(e){C.setItem(this.key,e.toString()),this.value=e,this.handleValueChange()}handleValueChange(){this.el.checked=this.value,document.documentElement.classList.toggle(this.key,this.value),this.app.filterChanged(),this.app.updateIndexVisibility()}};var oe=new Map,ae=class{open;accordions=[];key;constructor(e,n){this.key=e,this.open=n}add(e){this.accordions.push(e),e.open=this.open,e.addEventListener("toggle",()=>{this.toggle(e.open)})}toggle(e){for(let n of this.accordions)n.open=e;C.setItem(this.key,e.toString())}},K=class extends I{constructor(e){super(e);let n=this.el.querySelector("summary"),r=n.querySelector("a");r&&r.addEventListener("click",()=>{location.assign(r.href)});let i=`tsd-accordion-${n.dataset.key??n.textContent.trim().replace(/\s+/g,"-").toLowerCase()}`,s;if(oe.has(i))s=oe.get(i);else{let o=C.getItem(i),a=o?o==="true":this.el.open;s=new ae(i,a),oe.set(i,s)}s.add(this.el)}};function Se(t){let e=C.getItem("tsd-theme")||"os";t.value=e,we(e),t.addEventListener("change",()=>{C.setItem("tsd-theme",t.value),we(t.value)})}function we(t){document.documentElement.dataset.theme=t}var ee;function Ce(){let t=document.getElementById("tsd-nav-script");t&&(t.addEventListener("load",Te),Te())}async function Te(){let t=document.getElementById("tsd-nav-container");if(!t||!window.navigationData)return;let e=await A(window.navigationData);ee=document.documentElement.dataset.base,ee.endsWith("/")||(ee+="/"),t.innerHTML="";for(let n of e)Ie(n,t,[]);window.app.createComponents(t),window.app.showPage(),window.app.ensureActivePageVisible()}function Ie(t,e,n){let r=e.appendChild(document.createElement("li"));if(t.children){let i=[...n,t.text],s=r.appendChild(document.createElement("details"));s.className=t.class?`${t.class} tsd-accordion`:"tsd-accordion";let o=s.appendChild(document.createElement("summary"));o.className="tsd-accordion-summary",o.dataset.key=i.join("$"),o.innerHTML='',ke(t,o);let a=s.appendChild(document.createElement("div"));a.className="tsd-accordion-details";let l=a.appendChild(document.createElement("ul"));l.className="tsd-nested-navigation";for(let c of t.children)Ie(c,l,i)}else ke(t,r,t.class)}function ke(t,e,n){if(t.path){let r=e.appendChild(document.createElement("a"));if(r.href=ee+t.path,n&&(r.className=n),location.pathname===r.pathname&&!r.href.includes("#")&&r.classList.add("current"),t.kind){let i=window.translations[`kind_${t.kind}`].replaceAll('"',""");r.innerHTML=``}r.appendChild(document.createElement("span")).textContent=t.text}else{let r=e.appendChild(document.createElement("span")),i=window.translations.folder.replaceAll('"',""");r.innerHTML=``,r.appendChild(document.createElement("span")).textContent=t.text}}var te=document.documentElement.dataset.base;te.endsWith("/")||(te+="/");function Pe(){document.querySelector(".tsd-full-hierarchy")?Ye():document.querySelector(".tsd-hierarchy")&&Ze()}function Ye(){document.addEventListener("click",r=>{let i=r.target;for(;i.parentElement&&i.parentElement.tagName!="LI";)i=i.parentElement;i.dataset.dropdown&&(i.dataset.dropdown=String(i.dataset.dropdown!=="true"))});let t=new Map,e=new Set;for(let r of document.querySelectorAll(".tsd-full-hierarchy [data-refl]")){let i=r.querySelector("ul");t.has(r.dataset.refl)?e.add(r.dataset.refl):i&&t.set(r.dataset.refl,i)}for(let r of e)n(r);function n(r){let i=t.get(r).cloneNode(!0);i.querySelectorAll("[id]").forEach(s=>{s.removeAttribute("id")}),i.querySelectorAll("[data-dropdown]").forEach(s=>{s.dataset.dropdown="false"});for(let s of document.querySelectorAll(`[data-refl="${r}"]`)){let o=tt(),a=s.querySelector("ul");s.insertBefore(o,a),o.dataset.dropdown=String(!!a),a||s.appendChild(i.cloneNode(!0))}}}function Ze(){let t=document.getElementById("tsd-hierarchy-script");t&&(t.addEventListener("load",Qe),Qe())}async function Qe(){let t=document.querySelector(".tsd-panel.tsd-hierarchy:has(h4 a)");if(!t||!window.hierarchyData)return;let e=+t.dataset.refl,n=await A(window.hierarchyData),r=t.querySelector("ul"),i=document.createElement("ul");if(i.classList.add("tsd-hierarchy"),Ke(i,n,e),r.querySelectorAll("li").length==i.querySelectorAll("li").length)return;let s=document.createElement("span");s.classList.add("tsd-hierarchy-toggle"),s.textContent=window.translations.hierarchy_expand,t.querySelector("h4 a")?.insertAdjacentElement("afterend",s),s.insertAdjacentText("beforebegin",", "),s.addEventListener("click",()=>{s.textContent===window.translations.hierarchy_expand?(r.insertAdjacentElement("afterend",i),r.remove(),s.textContent=window.translations.hierarchy_collapse):(i.insertAdjacentElement("afterend",r),i.remove(),s.textContent=window.translations.hierarchy_expand)})}function Ke(t,e,n){let r=e.roots.filter(i=>et(e,i,n));for(let i of r)t.appendChild(_e(e,i,n))}function _e(t,e,n,r=new Set){if(r.has(e))return;r.add(e);let i=t.reflections[e],s=document.createElement("li");if(s.classList.add("tsd-hierarchy-item"),e===n){let o=s.appendChild(document.createElement("span"));o.textContent=i.name,o.classList.add("tsd-hierarchy-target")}else{for(let a of i.uniqueNameParents||[]){let l=t.reflections[a],c=s.appendChild(document.createElement("a"));c.textContent=l.name,c.href=te+l.url,c.className=l.class+" tsd-signature-type",s.append(document.createTextNode("."))}let o=s.appendChild(document.createElement("a"));o.textContent=t.reflections[e].name,o.href=te+i.url,o.className=i.class+" tsd-signature-type"}if(i.children){let o=s.appendChild(document.createElement("ul"));o.classList.add("tsd-hierarchy");for(let a of i.children){let l=_e(t,a,n,r);l&&o.appendChild(l)}}return r.delete(e),s}function et(t,e,n){if(e===n)return!0;let r=new Set,i=[t.reflections[e]];for(;i.length;){let s=i.pop();if(!r.has(s)){r.add(s);for(let o of s.children||[]){if(o===n)return!0;i.push(t.reflections[o])}}}return!1}function tt(){let t=document.createElementNS("http://www.w3.org/2000/svg","svg");return t.setAttribute("width","20"),t.setAttribute("height","20"),t.setAttribute("viewBox","0 0 24 24"),t.setAttribute("fill","none"),t.innerHTML='',t}G(Y,"a[data-toggle]");G(K,".tsd-accordion");G(Z,".tsd-filter-item input[type=checkbox]");var Oe=document.getElementById("tsd-theme");Oe&&Se(Oe);var nt=new J;Object.defineProperty(window,"app",{value:nt});ve();Ce();Pe();})(); +/*! Bundled license information: + +lunr/lunr.js: + (** + * lunr - http://lunrjs.com - A bit like Solr, but much smaller and not as bright - 2.3.9 + * Copyright (C) 2020 Oliver Nightingale + * @license MIT + *) + (*! + * lunr.utils + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Set + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.tokenizer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Pipeline + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Vector + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.stemmer + * Copyright (C) 2020 Oliver Nightingale + * Includes code from - http://tartarus.org/~martin/PorterStemmer/js.txt + *) + (*! + * lunr.stopWordFilter + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.trimmer + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.TokenSet + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Index + * Copyright (C) 2020 Oliver Nightingale + *) + (*! + * lunr.Builder + * Copyright (C) 2020 Oliver Nightingale + *) +*/ diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js new file mode 100644 index 0000000..19d744f --- /dev/null +++ b/docs/assets/navigation.js @@ -0,0 +1 @@ +window.navigationData = "eJylndlyHEeSRf+Fz5pFHLWmR28UQJBUc4GhIPGhrQ2WrAoAOazKrM7KAsUZm3+fXCIyY/Hwe4N8aVMTx4977ptHxd//91lv/uyf/fJsu69N0x8/Pfvh2bHqH4d/ObS7896c/s395V8f+8N++PPnutk9++WnH55tH+v9rjPNs1/+vmguumr7+UXfD//7rt2Z1Waa88FzRVzo/uv//RAKXzbbdlc3D7rOUUB2Ve/N7dcjqM1RQPZb+2nTV/35pNsWDOg+nPv7IfFV2x2qXlcGKNB+bLvP+7baXXftGKOLIzivhisSr8PX1elRVThAUdzeXl8835iHwxChu2IyLx1W7vHcg83gQ3nV5tHs98OOaabd03RZXQwqyr56MMPm6dttu8/7fEqV9Sa/+85/zoe/2O9ft6feE9RNb7r7auufOhwVep7/5efQ9LZteygaIc3z67AP79q200WOYkw35p+cbABVn6m2bQNUE4Mtb4bYh67uvzK6BcZesCEthD231ekzoxo5zkZVNoGq7zxctAzaOWaI8KCiLKWZLp7bMy3czXxSNVZN1dUG1OYo1WS6vr6vt8M54MW5f2zHfeiy6itgzkSVZnrT3LflmcYoMlPRohQsQVHhBfWe8C4Swqp3igG66T+w5W37QKxLH9Wd7cncnpvG7PECB6xqbQ/H4dgBh76jGNNt1T0YtAYDVrWON1+/mmb7eKg6cO4MWd56t/zX6WXTd+DiocfCrMOiH6rhbziHJQljc18/UMIRhL6r4GY4a7tKboMzrovHc8NsuYWlrOg8vnDQNjyGEK6BgqYbczoO9wHM2nModJ6GW80a3R/5JGv8hr0+E8lmZDaZQ1ln/JyJxNIDp2DffG22tHqFC7x3w13LQ2dO9MrPhcKc+KZzwXSXGa6f80UF6VaSNeJLWggD724Iqitcp+U4G9wXFlD3tacTedn1UdX5++WL8XHLNDviLiuENe+l2Zse34IvmOoannbr/x7yApfDKBcuzSNV4/vNdOsPjsQFA6639ak3jcEPySGrWV8+wRvTCVEdfw6ZTsNpEN+XBihydk21fzUuQ0XsLUIA439zOO6rpv+1xltJDCnIwdxRiSHFOe7say3mKkAItPxudetJHMWY4JYmt7DDpndztNTRurnffB2OrgNhXUnNOL6w000jgQx3wdFFbPtMkJpnerHL7Mo+yRrhCo1g1guusQHKONvPNdjjfRIbX5sKvijzSWwsOOcIAdh/Pfjs633G7uHYvTHdk+n40n0e23+/eXtdddVhuLeg1rjPIzt9gY5gzesuN+PrTV3qk6wRHBkBSjvv7KFEnILycXy24am3PXdb8+ayPGMcy2edrhS74oReGJHr4jnlvnjOuIgDij4LWDD5yqlIxY+cmpXbNx1MeLlbgQhWvR8ugOvDhRYPXxKB90PDn8FKGgnN8Ld6v4dVWIjwwJW7cprNnRphZR6o+uDHTvSl8505nYb94Qq9blo53dZXe/rROqZVc/1A3USvnGprm7pvu7p5GI6ypxreo6R8mR2t3DRA9W+ubsyhZdaGR0Ij49Itt2/5R/kIVr3nfV8P566vpuP1YoyW5f1wK7S7ro/o9LxynA2WGqCa88PRNBdv6cMrwYF7OG5Qx4OjGBNYjQumua7rp7Z/1VXHR122cpyNuLuJYM17Yx7YZ/wA1Z3NsFsQPovpLncviGSOA7a+6nrmohigmnMzXF3gZxsLER6w6zlKNblOKubuMoIp7/wmivTOcIG3e9FtH99VxyK/C/qGPHeX5rTt6uP0NYo4umjNt9RS8JaQUhTUAA+JlC9ZwuItWrg1v3Ptfduau7l8Q6YZSNbIb4gZVr3jE9NyGwG0Actbcb0xrrlvL66n65eudBRjgvV5oOrrqvv7eps0sorKgOWt8ChJ8CJ3yRECgvm8twa9SU/5Mju4aAoBmv/3pv7n2Xx89eZa166cZvtjWGHw/sBCmuej+TRconv4cnflgO1Uo09EFiI8dzYls1+JIUSOF7sduwJCvMj9DUuSCybyjk+4T6ZksYIIIgM4NBylml7NrYvM7WTI6lb6+hGgeheDOV4Pd+1BQ0j/9Ri2MCxMpPr3//rPH//y3NOlzf1PVVdXn4JhQQ76lx9D3X9EpvB9lywaGdWTNvcLIgdRpmDlK7KB031Rc7+kmhDC8qZJmvuzuoUlvPqGtAzhCfussqoRI21MZROn++Lmfsk1M4wHFGUh1SQ39ws2H9SNSXO/ZLOQboLN/ZI5E1ScKXwHRmYag9hMJYtSsgQlhZfUe4K7SMjq3ilI103/QViS5v6szJLAKTf3i1If1a1Jl6HksxBlipv7Fd+M6tZMc79kDdACa77NGWaJQ3HWpLk/l8OCjDG8u8oLRw77wub+nG2kOFfU3K8JJ5SzgvP4gmFb8F0y5xogbEqb+3M6R2Jn0tyfU1qQNpbv9ZlAOiOxyRxJO+MOfCCecWyXmvtz6pUt8eaa+3GWMBLnhDedCwVcUnO/qFtB2ggvaSGLvElzv6y0GGlD+8LCAZ/Y3C8aPVJ35pr7JWvIql6huV8wLpTuSpv7JZejOBcszQN1Y9rcL+kchVziGwpZ6KGqNWruF2QToTvk5n7J5ZPQmW3uz5gjnvJnmvuVDEFESQ7ijkqMKM+Re63OZgzj1fxpc7+QxEGUCW1pdgvnm/sVqYOBWWruF60rqBrD5n7BNALQoDb3Z6RCjJ5HbO6X5B5IG9EKjVjaq19jA5Jyhs39inIECWPc3J81ziBh5M85Ak/4ryuhuT9r92jCLTf3Z+U+Ttjl5v6s3cehnb1AR6zqlZv7BakP0kb9yAhI3plp7kcJgrCCbPnmfpgxDi3IKjb3w4ReFJPLb+7Puy+eUy58QPFngVxzf15q0QIrtW86lvFStwIRq3v95n7J9eFCjUcvidD7obC5XxboayZp7hcklmE8aOWumGoTm/sFncfpPvSxE37pzLfjC7YY1s1CO77kXDDdprTjS9YEL7Tru5/A636xHV8SeyA2Ei5gybXjS7qQ1b2gHV/SiyFqFqkdXzCvGGlDpQak6lTa8QVvQiN31I4vKyeIMumrcaFUl9SOL8hWjLTh+5GIVb3H8fcqP53vr4d1PVwOVW/EKtZMk7/gDEi1UqHJX/RZCrjSJn9R5jBkk5r8ZeFKqs6kyV+wWYbx6Du0g3RTrslfEoYs542b/DXvzJZ40yZ/7Hcx35JHa/LnM6eWb6qFf1tIGUpqQIdEihctYekWLd2a37f2vnHNBU3+WpoBpI30hphZ3Ztp8pe0AVpghfXGtOpOm/wFpYMoE6rP43RfpslfUgZogRUdJQld5i44QkBsQd6wyR+mGvFCu37RFHjVLzX5C9oVU21Jk7+gsozqkZr8BdWKIVvY5C+rRobx5Frj89YwgskhNfnn/Std5i5fklwskzfT5J9PFgQwGfRDw0G6KdPkL/kCFFjZ60dAqs5tOHfGVdceftt8eL/a78/NdrpDW+2ZmDDLzz/ls9y2pTnmCJTBTdrBL0UcwWZglyDkkd3NccHXH0ewGdj6Qx7Zl5lJ+AVIQugc7CJEAcgfTIXCL4cYVpSLXR4hCOWJZmHhlyoTWJiPXTIxTMl1X3K4xDDhJeq+Z4+PRzv3DFVrDBNeotYQ1Zzx3DZc0bmokkzMYsgxSpbWm1uHWhQpgPQTC5DiivsUPXVT9eeCCvIQyyGHaDn8SYS4BZEi2AzMIqS8bh9u/NjCPRQ6uVIXMPH9wz8Dt4dD24iTr9m/hOGZyddeHo65+YCcZkJCWfTbvc3TH1VmbP8imRjNkp9YwTnQnArot82ch/tts2F/GaKAykKaZ7g1P2cH8zuPhXSPNn3CKsIzJ2gjfp2nYMRvtAt5zynBHqR3iEa7kCSZENWSHb7j70H6N6p4owsSy3z3NynnK/kmFe1Kgs0y6GtPfrBOvCcJJv88tGtO0klo+mfqDHT5fmMPSGkmvtkTMqHWn1lu5cSjJJZ9x8lkVnFnEuV4sxXxB5u0hOvGixfwe/fR2cfvoLtgO2mX0Nks88p1NAzIX08lPXFR7Y5baWee/pnamTf7+sl0N9cX89secdeZbRGp7T8LOjaR1lszNn+Z8bY4P/dNlEMM/MZddlYX7LJz6+um70x1qJuHd6Z/bHfD2eW872W3EgBzuSW+NPd1U4frJ8iRgshNHC+zmz9e1HJjrQCDc/NpipD2aPcXaqe+NsOzRVXvz514il5cEZc/TU8flXSVI/KSG/NQn/ruq+rxobxq/q2Imc38SNViDFntGELTUEZKOA3lRbXfv3QDIXRjgNLO3G/KyFo0zdAO63bI8Tjsr8AxItCBS7GUbmq/oPU+ItBBVDNTuqmvD5lfKvJEE0R4iJocp9rGn1/Qft1z9XmkapR/2231qD/mdnHEC3ZEy3TuuvEdVPvZNB++5H4RcPXFeJEblytE6Ffyzp6rPlanA3+s5+PUbMOOO77bBW5LMSZc6AqClxRm3x7lB4NF5ihgyv4Ysy9CP8E8IHDhZka1/Gm258yP0q2aGSI8L04nc/i0l18JxT4HF3jxEic8Yb94zE0qEnsnkjWO90G0dIALvOx68HjCzlpp292wA77M/qifoF0CCP/H4U/tF3zpSXDkDs5Y2B3gRW6q9JLzp8TfvTOHqw25FZRg9PIVn9QcpZlemf66q5/AjYmjGBNcyR4IfPNAZ2ibMdXVGXBfMhLIcDc/1Co/mxnoAhy539aNuW5PdfYVQaD2aWTG22OGsCd8BZBXCU/+Gdvpqu2yHxIEq+M1+zgO1t6ovhkeu3V1BGveN/fb/I+DLkJHMSa4ZTxQ9R2Opju1TW4+xNW3gqQPlxiwqrV5Gm6CS+8vclE4E5wuMcrBTpo402+a8bvCty1NLhZnBdPsRHm4yXZmdnOsvjSX++zUxZHawzX3ODQTGi2keca+ueUyCa5VIctbYZ0JjtzBxZ2oOuTL7FT1SYiaA1WsV0hUhCp4V30204Oz7lkwygXL8kn9i9NhGiT+YgceZTyQ9OEaA5axjpuf1lqY8d6A27OV42x0jTfoPA2+CHpCauq0+VwKVDOkej7vavBGakKgA68oS6mm9pz56rVqRgQ68MPIgkEXXjJLqaYn4HjSo3ER6E3PezN2jzf5iT4WlU8C4xsXDo0LCYxjBxOUjRDhgStt5TTbOBabeintgWprUN2Au/aR0A3Dpnlt9nuwk68ctKnz1YRCZrqaAARnvJDlrXDzJjh0j98gCeeIUS7utXGCU277rZRUWxqbiZ3TYtA1f4n/m/n68s/tY9Vk2mpCcRKDs4wDytHEFlGSKITI0R5LUwQRaoZ2v59Oj09+u4Ro9kjWiMsNYd3b9fdfwP2lhQgPUZrjVNvcUXd5PoCXah5I+nCFAata0VlQP/MRZzt4hoNbDmw1ZovBrXVj5pdI8NTlgaQPVheyupXp5mD6OBxDflFI8CI3sQbSCCZDwTcRMaQ4B70kJd9HXD/P/JvYw0WGSeHhRW5yCcIIJsP8q9F09Qte5Kar9yOYDONF8Y9qfyaaRsQQJseNQT0EPskaXw+xvHWkS8z02vACWH+Rm/Ruzp+GjT5uGk698mV2uvYghMkx71L8Eqw8Y//Y5Sb7S8QTSjvpFeJo3TyOe7cNvoQ5pHXz0227Mft7pLQY5SIqXEnVCN4T6u8HifeC8H3gDXUzfUPcTd8cB+bqy457hI/pEjO4hU3wIjdepUIEs4axmHvOcPnLHjhzUVymgsfOTJCa59y8QNt0RKADF2cpzbTZdma4jXtE7ydXjrPB4gJUdc5nvkvTVzV4VA9Q2olLjWjaDDZzyBJW/IbdA0kfu/SWJazcUjPLi3dxD9R9p/lJhXnAjGDd279swFeGmcEWYll73Fs6/Z4a8IwIdOByLEWYTvX/4PuckFWt9c7gjmVHMSZc3AqqvnaLRo5MCHSEM95kPSOGXLfVJ6JZzSdZ4934f17sduh4kkLUHLaxBGgtxZjw9uV6WTab18mMiKJu4Tgbrs9HVed4x2PPir9+fR//dq3olkLYHEV26G2PvNZnNWs4oZzkGglkgAVZSPWY7lDjDr0Fo1y4MI9UjdFceaJrYrAFn75WTrP93pyIK6yjGBNcXR6o+o74CjQz2IJrOhLXno+vxieqq7b7UnWgsAClndORDGsVQwpytPj7jxShZyCuyxYiPPPXUso2o7STK9GyvJVYoRHOuMm9IYApL7UH+Kxuvb24trsK3mg+y1vhZgvgAi+xHmJetdfTaJxx4EW9Nw+GuC0UQ7Qcyq8QLNKCHyLIDfNeB9ov1hBVf0ZDHOadVU6cPqGpPMxbMAYk7wx2BKS9QRPO7qBuBx3hMG/JMRLYAUuxEDAFw7xFzUBgB65mhoApGuYtiiaG8eCaHKbbxGHeks8DdaP4696rR/8572iYtyiAy5Qf5i35YrrMDcsVAsB0xXiYt5AnH6ZnS4Z5S24LUSZY6MqhHxKL+vUEmYOQKTfJjy+CU/vEzwmyBi5XPMxb0swM40mHeed9ji3xwiVOcMYeDfPOeyeQNgbDvIF0YEu85HrwcMZOWnmbMMxb1S4845eGeeftKw3dmZamjDugy9xM6UXnT3qYN5nMi4U/kAhPag5C00tHw7wFk4MoE1rJHsdNfI1sM6W7gmHekmYAoCEzzDujC2jolod5Z9Q+DM1we8wM4QmHeWdVI0ba0mHeqtXhcGpkcZi3oI5YffrVZJi3IHQQZUJbxuPQhLPpMG/Jt3KsD5YYoLoVDvOW/JkgIpM8zDubw8cJOx7mnc2UCyWy6tO3RnnISVyVYd5ZtUfDiXqR0TJwit6XwoBpQReiBVZUZ0JDd26Yd0Ye4oV2pvokQs8BKgYV4opgBcIwb8GzUJwLleWDYJJmYZi3JFw51gdrDFDKmjTwKlrLUt4b/fZsxUgbW+MNPE8nA7Ml28zonnBgtmQZCeyAi2YhMCn2WZ5Ha9WMBHbAx4eFwi64ZBbSTU+64wlEwyLguxl5YLag8kFkFAZmy8YFRMZwYLYsGxnGg1baiqHJqtOB2YLO48AU041+nz0CeJLqaGC26HEYtmlzjIZCaorR3MBsJCWm+pY7uaEYbWVhYHbOOVKci3rRm9CcOxmYraktTJjxzmkp7FIGZufESQiRJdsnn00SRTA5Mh3y+RRBgJ5BHJgtmT2QNsJyQxZ4o7Ekom9iGA8uzWHMdCjhwGxJt3KsD1YYoN87kcWi5X+b/xqcW8H5FJ9D8XkT7Q9oXyD2A7wPiMO9BZXHsT5UXYgCK9HVQfVzKMO9FSX3ZUEf7s3o2fXAfxsRI8pzsEtS9J1EGe6dTeHRZW5uCcIAKoMw3FvRL3SZm63eD6AyZIZ7KymCCCpHONxbUY8gbQyHewPrCBeZ2bXh8bS/xM16peHeinrFC+1s7UEElUMa7q0kWHHKHg33VsQTyTvZFeJgYM4N9xbNIQzMyXBvUWkpzoUrXEHdqL8vBO8J8ftB/F4wHe4taZh79Pxwb8kYwUVm/RY2ocvccJUKAdQahmLy6QUP91aqLnqShcO91UT882w03FuyjgR2wOIspJqk4d6Ca8VIGyouIHWnPNxbcvok74SlRjBv1jdziDJW+N7e41gfufQWZazUUlPLC3dxjwO+zHBv0RmwwBsORhN1I0JY8LL2RI9pNNxb8owEdsByLMSYkuHeeZ9FdWsy3FvyWYgyweJWTveFw8ok00hgRzheMucZKehKh3tndA6kjcJwb6BeIvQcyXBvSWshygS3L9nTIg33lnQLRtpgfT6pO/Xh3pJbiqBzlNixVx7uLWp9VLWGw70F1whAAyrIMronHe4tmRzFuWBhHqgbo+HekmtCCAs8fa2YakuHewsuB1EmtLo8Tvcd4RVoRggLrOnIXHsyw70FX0DyznSAL3K7iJIcLfyqJAWADPi6bBnGEw/3zttmkndSJVq0wIpXaERTbm5vCFjOy+wBPgqs8nBv0eqjBVa02QK2xIvXQ4zr9lod7i0lkCL077jh/OFXXXv4bfPh/Zrl/txsx7EL/vdcOSbM8vNP+Sy3bWmOOULL4CYv55YgphkzU3XIKtbOmySdKlkKIP1E4SmeuP1J7qcOi2qQPJl5iP0q3+6r02nYJxMkFP74/K+yL2lNE4TidCGhcTMt2cW+Nn4LpnP5f2UtF/mJA1MslNK/04N/nmc/bKY5xUnaoN6flZ3jrS7x/hyfO8Ijo+pOJl4tq8b7syK51iXen9lawkFKYj3p9JO5mnKyCBFq+8f/A3g0nC8=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index d4677f7..918d8a5 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = JSON.parse("{\"kinds\":{\"64\":\"Function\",\"128\":\"Class\",\"256\":\"Interface\",\"512\":\"Constructor\",\"1024\":\"Property\",\"2048\":\"Method\",\"262144\":\"Accessor\"},\"rows\":[{\"id\":0,\"kind\":64,\"name\":\"gzip\",\"url\":\"modules.html#gzip\",\"classes\":\"tsd-kind-function\"},{\"id\":1,\"kind\":64,\"name\":\"gunzip\",\"url\":\"modules.html#gunzip\",\"classes\":\"tsd-kind-function\"},{\"id\":2,\"kind\":256,\"name\":\"Tunnel\",\"url\":\"interfaces/Tunnel.html\",\"classes\":\"tsd-kind-interface\"},{\"id\":3,\"kind\":1024,\"name\":\"stdout\",\"url\":\"interfaces/Tunnel.html#stdout\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Tunnel\"},{\"id\":4,\"kind\":1024,\"name\":\"stdin\",\"url\":\"interfaces/Tunnel.html#stdin\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"Tunnel\"},{\"id\":5,\"kind\":128,\"name\":\"InteractiveBeacon\",\"url\":\"classes/InteractiveBeacon.html\",\"classes\":\"tsd-kind-class\"},{\"id\":6,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/InteractiveBeacon.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite\",\"parent\":\"InteractiveBeacon\"},{\"id\":7,\"kind\":1024,\"name\":\"_beaconID\",\"url\":\"classes/InteractiveBeacon.html#_beaconID\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"InteractiveBeacon\"},{\"id\":8,\"kind\":1024,\"name\":\"_taskresult$\",\"url\":\"classes/InteractiveBeacon.html#_taskresult_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"InteractiveBeacon\"},{\"id\":9,\"kind\":1024,\"name\":\"_pendingTasks\",\"url\":\"classes/InteractiveBeacon.html#_pendingTasks\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"InteractiveBeacon\"},{\"id\":10,\"kind\":2048,\"name\":\"request\",\"url\":\"classes/InteractiveBeacon.html#request\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected\",\"parent\":\"InteractiveBeacon\"},{\"id\":11,\"kind\":2048,\"name\":\"ls\",\"url\":\"classes/InteractiveBeacon.html#ls\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite\",\"parent\":\"InteractiveBeacon\"},{\"id\":12,\"kind\":1024,\"name\":\"_rpc\",\"url\":\"classes/InteractiveBeacon.html#_rpc\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveBeacon\"},{\"id\":13,\"kind\":2048,\"name\":\"deadline\",\"url\":\"classes/InteractiveBeacon.html#deadline\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveBeacon\"},{\"id\":14,\"kind\":2048,\"name\":\"toUint8Array\",\"url\":\"classes/InteractiveBeacon.html#toUint8Array\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveBeacon\"},{\"id\":15,\"kind\":2048,\"name\":\"ping\",\"url\":\"classes/InteractiveBeacon.html#ping\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":16,\"kind\":2048,\"name\":\"ps\",\"url\":\"classes/InteractiveBeacon.html#ps\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":17,\"kind\":2048,\"name\":\"terminate\",\"url\":\"classes/InteractiveBeacon.html#terminate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":18,\"kind\":2048,\"name\":\"ifconfig\",\"url\":\"classes/InteractiveBeacon.html#ifconfig\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":19,\"kind\":2048,\"name\":\"netstat\",\"url\":\"classes/InteractiveBeacon.html#netstat\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":20,\"kind\":2048,\"name\":\"cd\",\"url\":\"classes/InteractiveBeacon.html#cd\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":21,\"kind\":2048,\"name\":\"pwd\",\"url\":\"classes/InteractiveBeacon.html#pwd\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":22,\"kind\":2048,\"name\":\"rm\",\"url\":\"classes/InteractiveBeacon.html#rm\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":23,\"kind\":2048,\"name\":\"mkdir\",\"url\":\"classes/InteractiveBeacon.html#mkdir\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":24,\"kind\":2048,\"name\":\"download\",\"url\":\"classes/InteractiveBeacon.html#download\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":25,\"kind\":2048,\"name\":\"upload\",\"url\":\"classes/InteractiveBeacon.html#upload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":26,\"kind\":2048,\"name\":\"processDump\",\"url\":\"classes/InteractiveBeacon.html#processDump\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":27,\"kind\":2048,\"name\":\"runAs\",\"url\":\"classes/InteractiveBeacon.html#runAs\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":28,\"kind\":2048,\"name\":\"impersonate\",\"url\":\"classes/InteractiveBeacon.html#impersonate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":29,\"kind\":2048,\"name\":\"revToSelf\",\"url\":\"classes/InteractiveBeacon.html#revToSelf\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":30,\"kind\":2048,\"name\":\"getSystem\",\"url\":\"classes/InteractiveBeacon.html#getSystem\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":31,\"kind\":2048,\"name\":\"executeShellcode\",\"url\":\"classes/InteractiveBeacon.html#executeShellcode\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":32,\"kind\":2048,\"name\":\"msf\",\"url\":\"classes/InteractiveBeacon.html#msf\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":33,\"kind\":2048,\"name\":\"msfRemote\",\"url\":\"classes/InteractiveBeacon.html#msfRemote\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":34,\"kind\":2048,\"name\":\"executeAssembly\",\"url\":\"classes/InteractiveBeacon.html#executeAssembly\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":35,\"kind\":2048,\"name\":\"migrate\",\"url\":\"classes/InteractiveBeacon.html#migrate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":36,\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/InteractiveBeacon.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":37,\"kind\":2048,\"name\":\"sideload\",\"url\":\"classes/InteractiveBeacon.html#sideload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":38,\"kind\":2048,\"name\":\"spawnDLL\",\"url\":\"classes/InteractiveBeacon.html#spawnDLL\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":39,\"kind\":2048,\"name\":\"screenshot\",\"url\":\"classes/InteractiveBeacon.html#screenshot\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveBeacon\"},{\"id\":40,\"kind\":128,\"name\":\"InteractiveSession\",\"url\":\"classes/InteractiveSession.html\",\"classes\":\"tsd-kind-class\"},{\"id\":41,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/InteractiveSession.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class tsd-is-overwrite\",\"parent\":\"InteractiveSession\"},{\"id\":42,\"kind\":1024,\"name\":\"_sessionID\",\"url\":\"classes/InteractiveSession.html#_sessionID\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"InteractiveSession\"},{\"id\":43,\"kind\":1024,\"name\":\"_tunnelStream\",\"url\":\"classes/InteractiveSession.html#_tunnelStream\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"InteractiveSession\"},{\"id\":44,\"kind\":2048,\"name\":\"request\",\"url\":\"classes/InteractiveSession.html#request\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-overwrite tsd-is-protected\",\"parent\":\"InteractiveSession\"},{\"id\":45,\"kind\":2048,\"name\":\"shell\",\"url\":\"classes/InteractiveSession.html#shell\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"InteractiveSession\"},{\"id\":46,\"kind\":1024,\"name\":\"_rpc\",\"url\":\"classes/InteractiveSession.html#_rpc\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveSession\"},{\"id\":47,\"kind\":2048,\"name\":\"deadline\",\"url\":\"classes/InteractiveSession.html#deadline\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveSession\"},{\"id\":48,\"kind\":2048,\"name\":\"toUint8Array\",\"url\":\"classes/InteractiveSession.html#toUint8Array\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited tsd-is-protected\",\"parent\":\"InteractiveSession\"},{\"id\":49,\"kind\":2048,\"name\":\"ping\",\"url\":\"classes/InteractiveSession.html#ping\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":50,\"kind\":2048,\"name\":\"ps\",\"url\":\"classes/InteractiveSession.html#ps\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":51,\"kind\":2048,\"name\":\"terminate\",\"url\":\"classes/InteractiveSession.html#terminate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":52,\"kind\":2048,\"name\":\"ifconfig\",\"url\":\"classes/InteractiveSession.html#ifconfig\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":53,\"kind\":2048,\"name\":\"netstat\",\"url\":\"classes/InteractiveSession.html#netstat\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":54,\"kind\":2048,\"name\":\"ls\",\"url\":\"classes/InteractiveSession.html#ls\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":55,\"kind\":2048,\"name\":\"cd\",\"url\":\"classes/InteractiveSession.html#cd\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":56,\"kind\":2048,\"name\":\"pwd\",\"url\":\"classes/InteractiveSession.html#pwd\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":57,\"kind\":2048,\"name\":\"rm\",\"url\":\"classes/InteractiveSession.html#rm\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":58,\"kind\":2048,\"name\":\"mkdir\",\"url\":\"classes/InteractiveSession.html#mkdir\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":59,\"kind\":2048,\"name\":\"download\",\"url\":\"classes/InteractiveSession.html#download\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":60,\"kind\":2048,\"name\":\"upload\",\"url\":\"classes/InteractiveSession.html#upload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":61,\"kind\":2048,\"name\":\"processDump\",\"url\":\"classes/InteractiveSession.html#processDump\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":62,\"kind\":2048,\"name\":\"runAs\",\"url\":\"classes/InteractiveSession.html#runAs\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":63,\"kind\":2048,\"name\":\"impersonate\",\"url\":\"classes/InteractiveSession.html#impersonate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":64,\"kind\":2048,\"name\":\"revToSelf\",\"url\":\"classes/InteractiveSession.html#revToSelf\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":65,\"kind\":2048,\"name\":\"getSystem\",\"url\":\"classes/InteractiveSession.html#getSystem\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":66,\"kind\":2048,\"name\":\"executeShellcode\",\"url\":\"classes/InteractiveSession.html#executeShellcode\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":67,\"kind\":2048,\"name\":\"msf\",\"url\":\"classes/InteractiveSession.html#msf\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":68,\"kind\":2048,\"name\":\"msfRemote\",\"url\":\"classes/InteractiveSession.html#msfRemote\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":69,\"kind\":2048,\"name\":\"executeAssembly\",\"url\":\"classes/InteractiveSession.html#executeAssembly\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":70,\"kind\":2048,\"name\":\"migrate\",\"url\":\"classes/InteractiveSession.html#migrate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":71,\"kind\":2048,\"name\":\"execute\",\"url\":\"classes/InteractiveSession.html#execute\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":72,\"kind\":2048,\"name\":\"sideload\",\"url\":\"classes/InteractiveSession.html#sideload\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":73,\"kind\":2048,\"name\":\"spawnDLL\",\"url\":\"classes/InteractiveSession.html#spawnDLL\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":74,\"kind\":2048,\"name\":\"screenshot\",\"url\":\"classes/InteractiveSession.html#screenshot\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-inherited\",\"parent\":\"InteractiveSession\"},{\"id\":75,\"kind\":128,\"name\":\"SliverClient\",\"url\":\"classes/SliverClient.html\",\"classes\":\"tsd-kind-class\"},{\"id\":76,\"kind\":512,\"name\":\"constructor\",\"url\":\"classes/SliverClient.html#constructor\",\"classes\":\"tsd-kind-constructor tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":77,\"kind\":1024,\"name\":\"BEACON_REGISTERED\",\"url\":\"classes/SliverClient.html#BEACON_REGISTERED\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":78,\"kind\":1024,\"name\":\"BEACON_TASKRESULT\",\"url\":\"classes/SliverClient.html#BEACON_TASKRESULT\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":79,\"kind\":1024,\"name\":\"_config\",\"url\":\"classes/SliverClient.html#_config\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":80,\"kind\":1024,\"name\":\"_rpc\",\"url\":\"classes/SliverClient.html#_rpc\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":81,\"kind\":1024,\"name\":\"empty\",\"url\":\"classes/SliverClient.html#empty\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":82,\"kind\":1024,\"name\":\"lootEventTypes\",\"url\":\"classes/SliverClient.html#lootEventTypes\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":83,\"kind\":1024,\"name\":\"_events\",\"url\":\"classes/SliverClient.html#_events\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":84,\"kind\":1024,\"name\":\"event$\",\"url\":\"classes/SliverClient.html#event_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":85,\"kind\":1024,\"name\":\"session$\",\"url\":\"classes/SliverClient.html#session_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":86,\"kind\":1024,\"name\":\"job$\",\"url\":\"classes/SliverClient.html#job_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":87,\"kind\":1024,\"name\":\"client$\",\"url\":\"classes/SliverClient.html#client_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":88,\"kind\":1024,\"name\":\"beacon$\",\"url\":\"classes/SliverClient.html#beacon_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":89,\"kind\":1024,\"name\":\"taskresult$\",\"url\":\"classes/SliverClient.html#taskresult_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":90,\"kind\":1024,\"name\":\"loot$\",\"url\":\"classes/SliverClient.html#loot_\",\"classes\":\"tsd-kind-property tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":91,\"kind\":1024,\"name\":\"_tunnelStream\",\"url\":\"classes/SliverClient.html#_tunnelStream\",\"classes\":\"tsd-kind-property tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":92,\"kind\":2048,\"name\":\"rpcHost\",\"url\":\"classes/SliverClient.html#rpcHost\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":93,\"kind\":2048,\"name\":\"rpcCredentials\",\"url\":\"classes/SliverClient.html#rpcCredentials\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":94,\"kind\":262144,\"name\":\"config\",\"url\":\"classes/SliverClient.html#config\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":95,\"kind\":262144,\"name\":\"rpc\",\"url\":\"classes/SliverClient.html#rpc\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":96,\"kind\":262144,\"name\":\"tunnelStream\",\"url\":\"classes/SliverClient.html#tunnelStream\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":97,\"kind\":262144,\"name\":\"isConnected\",\"url\":\"classes/SliverClient.html#isConnected\",\"classes\":\"tsd-kind-get-signature tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":98,\"kind\":2048,\"name\":\"connect\",\"url\":\"classes/SliverClient.html#connect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":99,\"kind\":2048,\"name\":\"disconnect\",\"url\":\"classes/SliverClient.html#disconnect\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":100,\"kind\":2048,\"name\":\"deadline\",\"url\":\"classes/SliverClient.html#deadline\",\"classes\":\"tsd-kind-method tsd-parent-kind-class tsd-is-private\",\"parent\":\"SliverClient\"},{\"id\":101,\"kind\":2048,\"name\":\"getVersion\",\"url\":\"classes/SliverClient.html#getVersion\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":102,\"kind\":2048,\"name\":\"getOperators\",\"url\":\"classes/SliverClient.html#getOperators\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":103,\"kind\":2048,\"name\":\"sessions\",\"url\":\"classes/SliverClient.html#sessions\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":104,\"kind\":2048,\"name\":\"interactSession\",\"url\":\"classes/SliverClient.html#interactSession\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":105,\"kind\":2048,\"name\":\"beacons\",\"url\":\"classes/SliverClient.html#beacons\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":106,\"kind\":2048,\"name\":\"interactBeacon\",\"url\":\"classes/SliverClient.html#interactBeacon\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":107,\"kind\":2048,\"name\":\"jobs\",\"url\":\"classes/SliverClient.html#jobs\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":108,\"kind\":2048,\"name\":\"killJob\",\"url\":\"classes/SliverClient.html#killJob\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":109,\"kind\":2048,\"name\":\"startMTLSListener\",\"url\":\"classes/SliverClient.html#startMTLSListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":110,\"kind\":2048,\"name\":\"startDNSListener\",\"url\":\"classes/SliverClient.html#startDNSListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":111,\"kind\":2048,\"name\":\"startHTTPListener\",\"url\":\"classes/SliverClient.html#startHTTPListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":112,\"kind\":2048,\"name\":\"startHTTPSListener\",\"url\":\"classes/SliverClient.html#startHTTPSListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":113,\"kind\":2048,\"name\":\"startWGListener\",\"url\":\"classes/SliverClient.html#startWGListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":114,\"kind\":2048,\"name\":\"startTCPStagerListener\",\"url\":\"classes/SliverClient.html#startTCPStagerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":115,\"kind\":2048,\"name\":\"startHTTPStagerListener\",\"url\":\"classes/SliverClient.html#startHTTPStagerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":116,\"kind\":2048,\"name\":\"startHTTPSStagerListener\",\"url\":\"classes/SliverClient.html#startHTTPSStagerListener\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":117,\"kind\":2048,\"name\":\"generate\",\"url\":\"classes/SliverClient.html#generate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":118,\"kind\":2048,\"name\":\"compilerInfo\",\"url\":\"classes/SliverClient.html#compilerInfo\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":119,\"kind\":2048,\"name\":\"regenerate\",\"url\":\"classes/SliverClient.html#regenerate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":120,\"kind\":2048,\"name\":\"implantBuilds\",\"url\":\"classes/SliverClient.html#implantBuilds\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":121,\"kind\":2048,\"name\":\"deleteImplantBuild\",\"url\":\"classes/SliverClient.html#deleteImplantBuild\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":122,\"kind\":2048,\"name\":\"canaries\",\"url\":\"classes/SliverClient.html#canaries\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":123,\"kind\":2048,\"name\":\"implantProfiles\",\"url\":\"classes/SliverClient.html#implantProfiles\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":124,\"kind\":2048,\"name\":\"saveImplantProfile\",\"url\":\"classes/SliverClient.html#saveImplantProfile\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":125,\"kind\":2048,\"name\":\"deleteImplantProfile\",\"url\":\"classes/SliverClient.html#deleteImplantProfile\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":126,\"kind\":2048,\"name\":\"lootAll\",\"url\":\"classes/SliverClient.html#lootAll\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":127,\"kind\":2048,\"name\":\"lootAllOf\",\"url\":\"classes/SliverClient.html#lootAllOf\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":128,\"kind\":2048,\"name\":\"lootAdd\",\"url\":\"classes/SliverClient.html#lootAdd\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":129,\"kind\":2048,\"name\":\"lootUpdate\",\"url\":\"classes/SliverClient.html#lootUpdate\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":130,\"kind\":2048,\"name\":\"lootRemove\",\"url\":\"classes/SliverClient.html#lootRemove\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":131,\"kind\":2048,\"name\":\"lootContent\",\"url\":\"classes/SliverClient.html#lootContent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":132,\"kind\":2048,\"name\":\"websites\",\"url\":\"classes/SliverClient.html#websites\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":133,\"kind\":2048,\"name\":\"website\",\"url\":\"classes/SliverClient.html#website\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":134,\"kind\":2048,\"name\":\"websiteRemove\",\"url\":\"classes/SliverClient.html#websiteRemove\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":135,\"kind\":2048,\"name\":\"websiteAddContent\",\"url\":\"classes/SliverClient.html#websiteAddContent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":136,\"kind\":2048,\"name\":\"websiteUpdateContent\",\"url\":\"classes/SliverClient.html#websiteUpdateContent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":137,\"kind\":2048,\"name\":\"websiteRemoveContent\",\"url\":\"classes/SliverClient.html#websiteRemoveContent\",\"classes\":\"tsd-kind-method tsd-parent-kind-class\",\"parent\":\"SliverClient\"},{\"id\":138,\"kind\":64,\"name\":\"ParseConfigFile\",\"url\":\"modules.html#ParseConfigFile\",\"classes\":\"tsd-kind-function\"},{\"id\":139,\"kind\":64,\"name\":\"ParseConfig\",\"url\":\"modules.html#ParseConfig\",\"classes\":\"tsd-kind-function\"},{\"id\":140,\"kind\":64,\"name\":\"ListConfigs\",\"url\":\"modules.html#ListConfigs\",\"classes\":\"tsd-kind-function\"},{\"id\":141,\"kind\":256,\"name\":\"SliverClientConfig\",\"url\":\"interfaces/SliverClientConfig.html\",\"classes\":\"tsd-kind-interface\"},{\"id\":142,\"kind\":1024,\"name\":\"operator\",\"url\":\"interfaces/SliverClientConfig.html#operator\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":143,\"kind\":1024,\"name\":\"lhost\",\"url\":\"interfaces/SliverClientConfig.html#lhost\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":144,\"kind\":1024,\"name\":\"lport\",\"url\":\"interfaces/SliverClientConfig.html#lport\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":145,\"kind\":1024,\"name\":\"ca_certificate\",\"url\":\"interfaces/SliverClientConfig.html#ca_certificate\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":146,\"kind\":1024,\"name\":\"certificate\",\"url\":\"interfaces/SliverClientConfig.html#certificate\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":147,\"kind\":1024,\"name\":\"private_key\",\"url\":\"interfaces/SliverClientConfig.html#private_key\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"},{\"id\":148,\"kind\":1024,\"name\":\"token\",\"url\":\"interfaces/SliverClientConfig.html#token\",\"classes\":\"tsd-kind-property tsd-parent-kind-interface\",\"parent\":\"SliverClientConfig\"}],\"index\":{\"version\":\"2.3.9\",\"fields\":[\"name\",\"parent\"],\"fieldVectors\":[[\"name/0\",[0,46.052]],[\"parent/0\",[]],[\"name/1\",[1,46.052]],[\"parent/1\",[]],[\"name/2\",[2,37.579]],[\"parent/2\",[]],[\"name/3\",[3,46.052]],[\"parent/3\",[2,3.65]],[\"name/4\",[4,46.052]],[\"parent/4\",[2,3.65]],[\"name/5\",[5,14.411]],[\"parent/5\",[]],[\"name/6\",[6,37.579]],[\"parent/6\",[5,1.4]],[\"name/7\",[7,46.052]],[\"parent/7\",[5,1.4]],[\"name/8\",[8,46.052]],[\"parent/8\",[5,1.4]],[\"name/9\",[9,46.052]],[\"parent/9\",[5,1.4]],[\"name/10\",[10,40.943]],[\"parent/10\",[5,1.4]],[\"name/11\",[11,40.943]],[\"parent/11\",[5,1.4]],[\"name/12\",[12,37.579]],[\"parent/12\",[5,1.4]],[\"name/13\",[13,37.579]],[\"parent/13\",[5,1.4]],[\"name/14\",[14,40.943]],[\"parent/14\",[5,1.4]],[\"name/15\",[15,40.943]],[\"parent/15\",[5,1.4]],[\"name/16\",[16,40.943]],[\"parent/16\",[5,1.4]],[\"name/17\",[17,40.943]],[\"parent/17\",[5,1.4]],[\"name/18\",[18,40.943]],[\"parent/18\",[5,1.4]],[\"name/19\",[19,40.943]],[\"parent/19\",[5,1.4]],[\"name/20\",[20,40.943]],[\"parent/20\",[5,1.4]],[\"name/21\",[21,40.943]],[\"parent/21\",[5,1.4]],[\"name/22\",[22,40.943]],[\"parent/22\",[5,1.4]],[\"name/23\",[23,40.943]],[\"parent/23\",[5,1.4]],[\"name/24\",[24,40.943]],[\"parent/24\",[5,1.4]],[\"name/25\",[25,40.943]],[\"parent/25\",[5,1.4]],[\"name/26\",[26,40.943]],[\"parent/26\",[5,1.4]],[\"name/27\",[27,40.943]],[\"parent/27\",[5,1.4]],[\"name/28\",[28,40.943]],[\"parent/28\",[5,1.4]],[\"name/29\",[29,40.943]],[\"parent/29\",[5,1.4]],[\"name/30\",[30,40.943]],[\"parent/30\",[5,1.4]],[\"name/31\",[31,40.943]],[\"parent/31\",[5,1.4]],[\"name/32\",[32,40.943]],[\"parent/32\",[5,1.4]],[\"name/33\",[33,40.943]],[\"parent/33\",[5,1.4]],[\"name/34\",[34,40.943]],[\"parent/34\",[5,1.4]],[\"name/35\",[35,40.943]],[\"parent/35\",[5,1.4]],[\"name/36\",[36,40.943]],[\"parent/36\",[5,1.4]],[\"name/37\",[37,40.943]],[\"parent/37\",[5,1.4]],[\"name/38\",[38,40.943]],[\"parent/38\",[5,1.4]],[\"name/39\",[39,40.943]],[\"parent/39\",[5,1.4]],[\"name/40\",[40,14.411]],[\"parent/40\",[]],[\"name/41\",[6,37.579]],[\"parent/41\",[40,1.4]],[\"name/42\",[41,46.052]],[\"parent/42\",[40,1.4]],[\"name/43\",[42,40.943]],[\"parent/43\",[40,1.4]],[\"name/44\",[10,40.943]],[\"parent/44\",[40,1.4]],[\"name/45\",[43,46.052]],[\"parent/45\",[40,1.4]],[\"name/46\",[12,37.579]],[\"parent/46\",[40,1.4]],[\"name/47\",[13,37.579]],[\"parent/47\",[40,1.4]],[\"name/48\",[14,40.943]],[\"parent/48\",[40,1.4]],[\"name/49\",[15,40.943]],[\"parent/49\",[40,1.4]],[\"name/50\",[16,40.943]],[\"parent/50\",[40,1.4]],[\"name/51\",[17,40.943]],[\"parent/51\",[40,1.4]],[\"name/52\",[18,40.943]],[\"parent/52\",[40,1.4]],[\"name/53\",[19,40.943]],[\"parent/53\",[40,1.4]],[\"name/54\",[11,40.943]],[\"parent/54\",[40,1.4]],[\"name/55\",[20,40.943]],[\"parent/55\",[40,1.4]],[\"name/56\",[21,40.943]],[\"parent/56\",[40,1.4]],[\"name/57\",[22,40.943]],[\"parent/57\",[40,1.4]],[\"name/58\",[23,40.943]],[\"parent/58\",[40,1.4]],[\"name/59\",[24,40.943]],[\"parent/59\",[40,1.4]],[\"name/60\",[25,40.943]],[\"parent/60\",[40,1.4]],[\"name/61\",[26,40.943]],[\"parent/61\",[40,1.4]],[\"name/62\",[27,40.943]],[\"parent/62\",[40,1.4]],[\"name/63\",[28,40.943]],[\"parent/63\",[40,1.4]],[\"name/64\",[29,40.943]],[\"parent/64\",[40,1.4]],[\"name/65\",[30,40.943]],[\"parent/65\",[40,1.4]],[\"name/66\",[31,40.943]],[\"parent/66\",[40,1.4]],[\"name/67\",[32,40.943]],[\"parent/67\",[40,1.4]],[\"name/68\",[33,40.943]],[\"parent/68\",[40,1.4]],[\"name/69\",[34,40.943]],[\"parent/69\",[40,1.4]],[\"name/70\",[35,40.943]],[\"parent/70\",[40,1.4]],[\"name/71\",[36,40.943]],[\"parent/71\",[40,1.4]],[\"name/72\",[37,40.943]],[\"parent/72\",[40,1.4]],[\"name/73\",[38,40.943]],[\"parent/73\",[40,1.4]],[\"name/74\",[39,40.943]],[\"parent/74\",[40,1.4]],[\"name/75\",[44,8.596]],[\"parent/75\",[]],[\"name/76\",[6,37.579]],[\"parent/76\",[44,0.835]],[\"name/77\",[45,46.052]],[\"parent/77\",[44,0.835]],[\"name/78\",[46,46.052]],[\"parent/78\",[44,0.835]],[\"name/79\",[47,46.052]],[\"parent/79\",[44,0.835]],[\"name/80\",[12,37.579]],[\"parent/80\",[44,0.835]],[\"name/81\",[48,46.052]],[\"parent/81\",[44,0.835]],[\"name/82\",[49,46.052]],[\"parent/82\",[44,0.835]],[\"name/83\",[50,46.052]],[\"parent/83\",[44,0.835]],[\"name/84\",[51,46.052]],[\"parent/84\",[44,0.835]],[\"name/85\",[52,46.052]],[\"parent/85\",[44,0.835]],[\"name/86\",[53,46.052]],[\"parent/86\",[44,0.835]],[\"name/87\",[54,46.052]],[\"parent/87\",[44,0.835]],[\"name/88\",[55,46.052]],[\"parent/88\",[44,0.835]],[\"name/89\",[56,46.052]],[\"parent/89\",[44,0.835]],[\"name/90\",[57,46.052]],[\"parent/90\",[44,0.835]],[\"name/91\",[42,40.943]],[\"parent/91\",[44,0.835]],[\"name/92\",[58,46.052]],[\"parent/92\",[44,0.835]],[\"name/93\",[59,46.052]],[\"parent/93\",[44,0.835]],[\"name/94\",[60,46.052]],[\"parent/94\",[44,0.835]],[\"name/95\",[61,46.052]],[\"parent/95\",[44,0.835]],[\"name/96\",[62,46.052]],[\"parent/96\",[44,0.835]],[\"name/97\",[63,46.052]],[\"parent/97\",[44,0.835]],[\"name/98\",[64,46.052]],[\"parent/98\",[44,0.835]],[\"name/99\",[65,46.052]],[\"parent/99\",[44,0.835]],[\"name/100\",[13,37.579]],[\"parent/100\",[44,0.835]],[\"name/101\",[66,46.052]],[\"parent/101\",[44,0.835]],[\"name/102\",[67,46.052]],[\"parent/102\",[44,0.835]],[\"name/103\",[68,46.052]],[\"parent/103\",[44,0.835]],[\"name/104\",[69,46.052]],[\"parent/104\",[44,0.835]],[\"name/105\",[70,46.052]],[\"parent/105\",[44,0.835]],[\"name/106\",[71,46.052]],[\"parent/106\",[44,0.835]],[\"name/107\",[72,46.052]],[\"parent/107\",[44,0.835]],[\"name/108\",[73,46.052]],[\"parent/108\",[44,0.835]],[\"name/109\",[74,46.052]],[\"parent/109\",[44,0.835]],[\"name/110\",[75,46.052]],[\"parent/110\",[44,0.835]],[\"name/111\",[76,46.052]],[\"parent/111\",[44,0.835]],[\"name/112\",[77,46.052]],[\"parent/112\",[44,0.835]],[\"name/113\",[78,46.052]],[\"parent/113\",[44,0.835]],[\"name/114\",[79,46.052]],[\"parent/114\",[44,0.835]],[\"name/115\",[80,46.052]],[\"parent/115\",[44,0.835]],[\"name/116\",[81,46.052]],[\"parent/116\",[44,0.835]],[\"name/117\",[82,46.052]],[\"parent/117\",[44,0.835]],[\"name/118\",[83,46.052]],[\"parent/118\",[44,0.835]],[\"name/119\",[84,46.052]],[\"parent/119\",[44,0.835]],[\"name/120\",[85,46.052]],[\"parent/120\",[44,0.835]],[\"name/121\",[86,46.052]],[\"parent/121\",[44,0.835]],[\"name/122\",[87,46.052]],[\"parent/122\",[44,0.835]],[\"name/123\",[88,46.052]],[\"parent/123\",[44,0.835]],[\"name/124\",[89,46.052]],[\"parent/124\",[44,0.835]],[\"name/125\",[90,46.052]],[\"parent/125\",[44,0.835]],[\"name/126\",[91,46.052]],[\"parent/126\",[44,0.835]],[\"name/127\",[92,46.052]],[\"parent/127\",[44,0.835]],[\"name/128\",[93,46.052]],[\"parent/128\",[44,0.835]],[\"name/129\",[94,46.052]],[\"parent/129\",[44,0.835]],[\"name/130\",[95,46.052]],[\"parent/130\",[44,0.835]],[\"name/131\",[96,46.052]],[\"parent/131\",[44,0.835]],[\"name/132\",[97,46.052]],[\"parent/132\",[44,0.835]],[\"name/133\",[98,46.052]],[\"parent/133\",[44,0.835]],[\"name/134\",[99,46.052]],[\"parent/134\",[44,0.835]],[\"name/135\",[100,46.052]],[\"parent/135\",[44,0.835]],[\"name/136\",[101,46.052]],[\"parent/136\",[44,0.835]],[\"name/137\",[102,46.052]],[\"parent/137\",[44,0.835]],[\"name/138\",[103,46.052]],[\"parent/138\",[]],[\"name/139\",[104,46.052]],[\"parent/139\",[]],[\"name/140\",[105,46.052]],[\"parent/140\",[]],[\"name/141\",[106,28.706]],[\"parent/141\",[]],[\"name/142\",[107,46.052]],[\"parent/142\",[106,2.789]],[\"name/143\",[108,46.052]],[\"parent/143\",[106,2.789]],[\"name/144\",[109,46.052]],[\"parent/144\",[106,2.789]],[\"name/145\",[110,46.052]],[\"parent/145\",[106,2.789]],[\"name/146\",[111,46.052]],[\"parent/146\",[106,2.789]],[\"name/147\",[112,46.052]],[\"parent/147\",[106,2.789]],[\"name/148\",[113,46.052]],[\"parent/148\",[106,2.789]]],\"invertedIndex\":[[\"_beaconid\",{\"_index\":7,\"name\":{\"7\":{}},\"parent\":{}}],[\"_config\",{\"_index\":47,\"name\":{\"79\":{}},\"parent\":{}}],[\"_events\",{\"_index\":50,\"name\":{\"83\":{}},\"parent\":{}}],[\"_pendingtasks\",{\"_index\":9,\"name\":{\"9\":{}},\"parent\":{}}],[\"_rpc\",{\"_index\":12,\"name\":{\"12\":{},\"46\":{},\"80\":{}},\"parent\":{}}],[\"_sessionid\",{\"_index\":41,\"name\":{\"42\":{}},\"parent\":{}}],[\"_taskresult\",{\"_index\":8,\"name\":{\"8\":{}},\"parent\":{}}],[\"_tunnelstream\",{\"_index\":42,\"name\":{\"43\":{},\"91\":{}},\"parent\":{}}],[\"beacon\",{\"_index\":55,\"name\":{\"88\":{}},\"parent\":{}}],[\"beacon_registered\",{\"_index\":45,\"name\":{\"77\":{}},\"parent\":{}}],[\"beacon_taskresult\",{\"_index\":46,\"name\":{\"78\":{}},\"parent\":{}}],[\"beacons\",{\"_index\":70,\"name\":{\"105\":{}},\"parent\":{}}],[\"ca_certificate\",{\"_index\":110,\"name\":{\"145\":{}},\"parent\":{}}],[\"canaries\",{\"_index\":87,\"name\":{\"122\":{}},\"parent\":{}}],[\"cd\",{\"_index\":20,\"name\":{\"20\":{},\"55\":{}},\"parent\":{}}],[\"certificate\",{\"_index\":111,\"name\":{\"146\":{}},\"parent\":{}}],[\"client\",{\"_index\":54,\"name\":{\"87\":{}},\"parent\":{}}],[\"compilerinfo\",{\"_index\":83,\"name\":{\"118\":{}},\"parent\":{}}],[\"config\",{\"_index\":60,\"name\":{\"94\":{}},\"parent\":{}}],[\"connect\",{\"_index\":64,\"name\":{\"98\":{}},\"parent\":{}}],[\"constructor\",{\"_index\":6,\"name\":{\"6\":{},\"41\":{},\"76\":{}},\"parent\":{}}],[\"deadline\",{\"_index\":13,\"name\":{\"13\":{},\"47\":{},\"100\":{}},\"parent\":{}}],[\"deleteimplantbuild\",{\"_index\":86,\"name\":{\"121\":{}},\"parent\":{}}],[\"deleteimplantprofile\",{\"_index\":90,\"name\":{\"125\":{}},\"parent\":{}}],[\"disconnect\",{\"_index\":65,\"name\":{\"99\":{}},\"parent\":{}}],[\"download\",{\"_index\":24,\"name\":{\"24\":{},\"59\":{}},\"parent\":{}}],[\"empty\",{\"_index\":48,\"name\":{\"81\":{}},\"parent\":{}}],[\"event\",{\"_index\":51,\"name\":{\"84\":{}},\"parent\":{}}],[\"execute\",{\"_index\":36,\"name\":{\"36\":{},\"71\":{}},\"parent\":{}}],[\"executeassembly\",{\"_index\":34,\"name\":{\"34\":{},\"69\":{}},\"parent\":{}}],[\"executeshellcode\",{\"_index\":31,\"name\":{\"31\":{},\"66\":{}},\"parent\":{}}],[\"generate\",{\"_index\":82,\"name\":{\"117\":{}},\"parent\":{}}],[\"getoperators\",{\"_index\":67,\"name\":{\"102\":{}},\"parent\":{}}],[\"getsystem\",{\"_index\":30,\"name\":{\"30\":{},\"65\":{}},\"parent\":{}}],[\"getversion\",{\"_index\":66,\"name\":{\"101\":{}},\"parent\":{}}],[\"gunzip\",{\"_index\":1,\"name\":{\"1\":{}},\"parent\":{}}],[\"gzip\",{\"_index\":0,\"name\":{\"0\":{}},\"parent\":{}}],[\"ifconfig\",{\"_index\":18,\"name\":{\"18\":{},\"52\":{}},\"parent\":{}}],[\"impersonate\",{\"_index\":28,\"name\":{\"28\":{},\"63\":{}},\"parent\":{}}],[\"implantbuilds\",{\"_index\":85,\"name\":{\"120\":{}},\"parent\":{}}],[\"implantprofiles\",{\"_index\":88,\"name\":{\"123\":{}},\"parent\":{}}],[\"interactbeacon\",{\"_index\":71,\"name\":{\"106\":{}},\"parent\":{}}],[\"interactivebeacon\",{\"_index\":5,\"name\":{\"5\":{}},\"parent\":{\"6\":{},\"7\":{},\"8\":{},\"9\":{},\"10\":{},\"11\":{},\"12\":{},\"13\":{},\"14\":{},\"15\":{},\"16\":{},\"17\":{},\"18\":{},\"19\":{},\"20\":{},\"21\":{},\"22\":{},\"23\":{},\"24\":{},\"25\":{},\"26\":{},\"27\":{},\"28\":{},\"29\":{},\"30\":{},\"31\":{},\"32\":{},\"33\":{},\"34\":{},\"35\":{},\"36\":{},\"37\":{},\"38\":{},\"39\":{}}}],[\"interactivesession\",{\"_index\":40,\"name\":{\"40\":{}},\"parent\":{\"41\":{},\"42\":{},\"43\":{},\"44\":{},\"45\":{},\"46\":{},\"47\":{},\"48\":{},\"49\":{},\"50\":{},\"51\":{},\"52\":{},\"53\":{},\"54\":{},\"55\":{},\"56\":{},\"57\":{},\"58\":{},\"59\":{},\"60\":{},\"61\":{},\"62\":{},\"63\":{},\"64\":{},\"65\":{},\"66\":{},\"67\":{},\"68\":{},\"69\":{},\"70\":{},\"71\":{},\"72\":{},\"73\":{},\"74\":{}}}],[\"interactsession\",{\"_index\":69,\"name\":{\"104\":{}},\"parent\":{}}],[\"isconnected\",{\"_index\":63,\"name\":{\"97\":{}},\"parent\":{}}],[\"job\",{\"_index\":53,\"name\":{\"86\":{}},\"parent\":{}}],[\"jobs\",{\"_index\":72,\"name\":{\"107\":{}},\"parent\":{}}],[\"killjob\",{\"_index\":73,\"name\":{\"108\":{}},\"parent\":{}}],[\"lhost\",{\"_index\":108,\"name\":{\"143\":{}},\"parent\":{}}],[\"listconfigs\",{\"_index\":105,\"name\":{\"140\":{}},\"parent\":{}}],[\"loot\",{\"_index\":57,\"name\":{\"90\":{}},\"parent\":{}}],[\"lootadd\",{\"_index\":93,\"name\":{\"128\":{}},\"parent\":{}}],[\"lootall\",{\"_index\":91,\"name\":{\"126\":{}},\"parent\":{}}],[\"lootallof\",{\"_index\":92,\"name\":{\"127\":{}},\"parent\":{}}],[\"lootcontent\",{\"_index\":96,\"name\":{\"131\":{}},\"parent\":{}}],[\"looteventtypes\",{\"_index\":49,\"name\":{\"82\":{}},\"parent\":{}}],[\"lootremove\",{\"_index\":95,\"name\":{\"130\":{}},\"parent\":{}}],[\"lootupdate\",{\"_index\":94,\"name\":{\"129\":{}},\"parent\":{}}],[\"lport\",{\"_index\":109,\"name\":{\"144\":{}},\"parent\":{}}],[\"ls\",{\"_index\":11,\"name\":{\"11\":{},\"54\":{}},\"parent\":{}}],[\"migrate\",{\"_index\":35,\"name\":{\"35\":{},\"70\":{}},\"parent\":{}}],[\"mkdir\",{\"_index\":23,\"name\":{\"23\":{},\"58\":{}},\"parent\":{}}],[\"msf\",{\"_index\":32,\"name\":{\"32\":{},\"67\":{}},\"parent\":{}}],[\"msfremote\",{\"_index\":33,\"name\":{\"33\":{},\"68\":{}},\"parent\":{}}],[\"netstat\",{\"_index\":19,\"name\":{\"19\":{},\"53\":{}},\"parent\":{}}],[\"operator\",{\"_index\":107,\"name\":{\"142\":{}},\"parent\":{}}],[\"parseconfig\",{\"_index\":104,\"name\":{\"139\":{}},\"parent\":{}}],[\"parseconfigfile\",{\"_index\":103,\"name\":{\"138\":{}},\"parent\":{}}],[\"ping\",{\"_index\":15,\"name\":{\"15\":{},\"49\":{}},\"parent\":{}}],[\"private_key\",{\"_index\":112,\"name\":{\"147\":{}},\"parent\":{}}],[\"processdump\",{\"_index\":26,\"name\":{\"26\":{},\"61\":{}},\"parent\":{}}],[\"ps\",{\"_index\":16,\"name\":{\"16\":{},\"50\":{}},\"parent\":{}}],[\"pwd\",{\"_index\":21,\"name\":{\"21\":{},\"56\":{}},\"parent\":{}}],[\"regenerate\",{\"_index\":84,\"name\":{\"119\":{}},\"parent\":{}}],[\"request\",{\"_index\":10,\"name\":{\"10\":{},\"44\":{}},\"parent\":{}}],[\"revtoself\",{\"_index\":29,\"name\":{\"29\":{},\"64\":{}},\"parent\":{}}],[\"rm\",{\"_index\":22,\"name\":{\"22\":{},\"57\":{}},\"parent\":{}}],[\"rpc\",{\"_index\":61,\"name\":{\"95\":{}},\"parent\":{}}],[\"rpccredentials\",{\"_index\":59,\"name\":{\"93\":{}},\"parent\":{}}],[\"rpchost\",{\"_index\":58,\"name\":{\"92\":{}},\"parent\":{}}],[\"runas\",{\"_index\":27,\"name\":{\"27\":{},\"62\":{}},\"parent\":{}}],[\"saveimplantprofile\",{\"_index\":89,\"name\":{\"124\":{}},\"parent\":{}}],[\"screenshot\",{\"_index\":39,\"name\":{\"39\":{},\"74\":{}},\"parent\":{}}],[\"session\",{\"_index\":52,\"name\":{\"85\":{}},\"parent\":{}}],[\"sessions\",{\"_index\":68,\"name\":{\"103\":{}},\"parent\":{}}],[\"shell\",{\"_index\":43,\"name\":{\"45\":{}},\"parent\":{}}],[\"sideload\",{\"_index\":37,\"name\":{\"37\":{},\"72\":{}},\"parent\":{}}],[\"sliverclient\",{\"_index\":44,\"name\":{\"75\":{}},\"parent\":{\"76\":{},\"77\":{},\"78\":{},\"79\":{},\"80\":{},\"81\":{},\"82\":{},\"83\":{},\"84\":{},\"85\":{},\"86\":{},\"87\":{},\"88\":{},\"89\":{},\"90\":{},\"91\":{},\"92\":{},\"93\":{},\"94\":{},\"95\":{},\"96\":{},\"97\":{},\"98\":{},\"99\":{},\"100\":{},\"101\":{},\"102\":{},\"103\":{},\"104\":{},\"105\":{},\"106\":{},\"107\":{},\"108\":{},\"109\":{},\"110\":{},\"111\":{},\"112\":{},\"113\":{},\"114\":{},\"115\":{},\"116\":{},\"117\":{},\"118\":{},\"119\":{},\"120\":{},\"121\":{},\"122\":{},\"123\":{},\"124\":{},\"125\":{},\"126\":{},\"127\":{},\"128\":{},\"129\":{},\"130\":{},\"131\":{},\"132\":{},\"133\":{},\"134\":{},\"135\":{},\"136\":{},\"137\":{}}}],[\"sliverclientconfig\",{\"_index\":106,\"name\":{\"141\":{}},\"parent\":{\"142\":{},\"143\":{},\"144\":{},\"145\":{},\"146\":{},\"147\":{},\"148\":{}}}],[\"spawndll\",{\"_index\":38,\"name\":{\"38\":{},\"73\":{}},\"parent\":{}}],[\"startdnslistener\",{\"_index\":75,\"name\":{\"110\":{}},\"parent\":{}}],[\"starthttplistener\",{\"_index\":76,\"name\":{\"111\":{}},\"parent\":{}}],[\"starthttpslistener\",{\"_index\":77,\"name\":{\"112\":{}},\"parent\":{}}],[\"starthttpsstagerlistener\",{\"_index\":81,\"name\":{\"116\":{}},\"parent\":{}}],[\"starthttpstagerlistener\",{\"_index\":80,\"name\":{\"115\":{}},\"parent\":{}}],[\"startmtlslistener\",{\"_index\":74,\"name\":{\"109\":{}},\"parent\":{}}],[\"starttcpstagerlistener\",{\"_index\":79,\"name\":{\"114\":{}},\"parent\":{}}],[\"startwglistener\",{\"_index\":78,\"name\":{\"113\":{}},\"parent\":{}}],[\"stdin\",{\"_index\":4,\"name\":{\"4\":{}},\"parent\":{}}],[\"stdout\",{\"_index\":3,\"name\":{\"3\":{}},\"parent\":{}}],[\"taskresult\",{\"_index\":56,\"name\":{\"89\":{}},\"parent\":{}}],[\"terminate\",{\"_index\":17,\"name\":{\"17\":{},\"51\":{}},\"parent\":{}}],[\"token\",{\"_index\":113,\"name\":{\"148\":{}},\"parent\":{}}],[\"touint8array\",{\"_index\":14,\"name\":{\"14\":{},\"48\":{}},\"parent\":{}}],[\"tunnel\",{\"_index\":2,\"name\":{\"2\":{}},\"parent\":{\"3\":{},\"4\":{}}}],[\"tunnelstream\",{\"_index\":62,\"name\":{\"96\":{}},\"parent\":{}}],[\"upload\",{\"_index\":25,\"name\":{\"25\":{},\"60\":{}},\"parent\":{}}],[\"website\",{\"_index\":98,\"name\":{\"133\":{}},\"parent\":{}}],[\"websiteaddcontent\",{\"_index\":100,\"name\":{\"135\":{}},\"parent\":{}}],[\"websiteremove\",{\"_index\":99,\"name\":{\"134\":{}},\"parent\":{}}],[\"websiteremovecontent\",{\"_index\":102,\"name\":{\"137\":{}},\"parent\":{}}],[\"websites\",{\"_index\":97,\"name\":{\"132\":{}},\"parent\":{}}],[\"websiteupdatecontent\",{\"_index\":101,\"name\":{\"136\":{}},\"parent\":{}}]],\"pipeline\":[]}}"); \ No newline at end of file +window.searchData = "eJzEvWt347aSLvxfoq9zztnduUz2fFPL7m6nfdG25HT2nA9aNAXLjCVSISlfctb731+CV4AEUFUs0LPW7EliVeF5UCgULgRQ/++HNHnJfviv//v/fniK4u0P//XTf/wQBwfxw3/9ECaHQxIf73/4jx9O6b74wyHZnvYi+z/ND//7MT/si1/DfZBloijkhx/+v/9oyvnxY1vQMU3y5P70sAzCp2An2vKegzQK7rUSe6IGhP/44RikIs5VgkbU88Mxf3NhlQL/6wMZ4+PPv1hAojgX6UMQDlA49bgVf51ElrtqUosw69IHMtWmliHjfPjHx86x5tlbHKJhZkEt7gZrdGyg6+ggkhO+drO8VeABfxJBmMQXZ3jk+1Ij2rKhVyLLIhp2VqmMA9e8Njsmcebs7I0M2297UOZKVkI8zz1PUzzKTJTSoBVr9ozOooKie4sbFum1KjLFbd3g6yB7IkHnhcJIYMVnP0d7p7/K35m+qkGY6iUFeD56Lf+BgpjFlShgtJKzBewsyAMk2LYSpYEprbNMk6LkzNVAtQizjfpApmrVMryWWpYuiwOZHTH+3VC3AR5JiD4gz19FeMplO+GBharDg795iYU7ZGvISS3OA52n4WOUizA/pYRaB7oWjwJu5NfwCSM/AL44bC+jmFD18LDdVwpkYHXCHz//HqSu+FBJcKf8Ooxxzl+K8ILDNwGsKzqM2VMpC9iu5m2B+z3Yn9wtpgI+19JUyI//+Od/fvi5a7IzIY7LIM2jYN9i529HFVYRYTXbVeE3xYryc+wO7J0YHe0fP/3awok4TLZug/agZq0KYFWlJhbwrSCDtyps8Ic0Ofy2urkmwUulP7Mk9kEgT8jweeILPExFkNNM36p4MX2/O2Gtf2z1xtBQdo32UaFg2jWqf3DuGv3SFVSsvY+n/HOSHoL8c9+nHk5xmBejlVKsSR7oww1VEH+dUNAraQ52lhcWXsq9sDDZYypvVPDGAK6+QZyD/lCsAtbFOICpel/WBy5cYV2SZelHsd/L4Htexv8U1dwWHZ88EI1u1OBweFyvl4uPK7E7FEJYB7AqeWUCm8OiwmIRZI9oM/RkfeAiKq1JMiNOLjJksFMk+Zio8NbKcfDCNAiffkvuV0V5J1RdzRr+OMB1N8mz8ed5Xvz/qyJqoI0wVPHIAmmGvgKbQRk5o3iHtkJfwRsDpAV0cTb6zSmXIyl+lmfX8ssFaQ6DDpvH9yR92ifBtphOlWVjrWLR880HaRmjFpvLZ8LE0KjgjQHSDJ9580TaV/QGmfYVfYjarShvlGVNiyji00FBU2XIUB+6HZrV1/nt+dnm8uITGmmWPRZlbzf76B4E1bRtDM4vLxc3Z+cUAvUc2Af++R/ni7v1/NMlgQBms5xggfPb3y8WlPqL9DkKvWCvv17cnm2W89v1v/H4+WOUbjdy88KxBYrncHd9e764+XJ98d/nZ3gSpzgVYbKLo7+FY/ccYNF1upW6mLax0IQ43W69WOIxZnl4hGuoV8CI+rVYLBFgH/PcH+6KCJx5Qca4loEAzbdsPDrnagYkG4Xmd45LXd9sPl/Yg5gGMYuTzUOEiV4tcyPmp4vr+a01cOiQ91EcpIh44UZcn/+xxuHl4tVxjgiHhnEfHZXmOQZ0JSL1dnqs/tuT4znRtdWDjDiFJ7m+Idp0bVOBi2/z9XzzZb65nl/QeGSP0VOQB5tdsImDyBejP25uaTReE8enbDL25uzf1/OriwWZw2b7VpQSOc4k0big4qiRDDGU2tn8qg0n2p6fjdFAkNM1ljeXlzSg2THZw2hDZdsscbW6UBY/OAr1AQNvLBaXNytrhLBwCPdJhogRSAYYV7QQofmii4/ijPVerJVK/TvH9a7OfkYVPztsf0bUq2FswfoJi/UTF6tYfH7AgRVLzg8e0D5uPn5EVq9AbKQ9oP78CwW1lOaj/vgrpa6VNB/15w8fCaiVNBf1R1K7/uipXX8kteuPntr1R1K7/uipXX8kteuPPtr19mJ5fnW2+fDLP3C4aXQUh20tz0L+dDn/dv7xE7557/fBk/h476OFv9ys1pvbzY8fNx8+bD7+4wMheOySLN+kQ1XPfNCOMOTjwSsaPj/JQv+J7AgNk06Jx2H5BYl73HGxvs4vP2/QE4DHYP+w8TAL+Ha+WMy/4aPqkwjD4MlHXG2QsU7fIPM9vUZGR9ca2UN8rZHRHatG9tCbvn+9uL1c3tzYVzYa8MtjlO6PSYJZ1bhHlIvl1/nqK3JAiY7yxAN/Zvvz5m79+cMv9k2ywWx6c8ofPvyC2SiDZ7o0cDnj9Yhe9A8yvtTxx6DoJ2QGUscfg6K/kBlIHU8MmlmFLHL5fbOaX1p3Ms2zC6l4fNlkwR6xsYnnIokUhOhcJJGCkI9+SbKH7Jee7CCxSfWX2B7rXWMTK18T8GuBqhmIJKqm4HJY3C5+RA59YRr+yB71SjzrpqoBELGPCiL+8tNvSSwyNOovP/1Zy7OQf5v/Pt/cfPrtfIF0sD+D52CT3P8pQr5v3d0W/4d0qVNa/J8fxB8pkD9yMddfb8/PN2fn1i+cOmr+mAqx2fJbFo3oAWt+vtp8+Pjr5nxhPSeiYwYiKxVEiDgkgsD+50cidqHgCVtOg0jYUsED9uLrfCP/9xG5/xE+Bhv5v4/s/Y/Li+u7Pzbfzm+vzy83i9t/L9c3m/nyYoNdDe6j+PS6eRJpLPabMH075skmOEYbD7tu3y6WG+xYkT1Fxw1/tFh++nb2+ePm69V8gV+IH++ftg8fN4+HIPSxHlc54HfNVRI+dtB7LNBr9B4PD2v1HhP0yrnHxMfuc9k/kA5Z9gV23b8u5ytk6D8+HoOMHf3X88V8sdosL++wY1wQBmG2Oe5PbOxV0eHPLr6cr7A2Lvr8NtpVb+qwkC++neP7e/QkfPRziYnv3xLUy5ex66vl5vcf2xC3+Sf2s0Z8OG6ef2zDXKXom8umNAmH1KY0k29241lNxObjx5/kpGscoU7ZL6diMlRMxkZyapW9cpLbSvhPdz1OnbJXTnJDBf9hr8epU+btBi/nm/P58uZyU42vODIvx2AjgmOy31Sjq0cWV9/IFA5PPvDr+UVB4OKsIoMnUs8xCibRtmLlhdHVt5F0Dk8TcCl4UH2kIuHPR2oWFB+pKfB95GJ5dVG4x/zbkjonj46HqHCO4Onob16+uJ1f4acqYRocfMxVfvuO3VF6Yc/FbudnVxfXG+TGThpsD1G8Ye/sFCvgT+e3N6vNh//crL+sNrfn1uPz/Q906b1Ik0wq5rtskwrEQXo8l+Xt+fxujfx6pnI5piI45ewvaSqXM+TGiEpjy94b6Rj8OrZlfvXfMr+ObZlf/bfMryNa5lefLfPxx81qXjTMv0YapdDPgqJ9/vJum6LkcT5TKPr2maLI+UgqgRcm1+frzfX68mrzO3IAi0W+ifP9YfPMHrcU7OKfZPjin/4YICcyHTx7DqNgj6j9Rw+1/3w5XyFnTw8FDn/WtFqsLuSeNtLboyzMIrmnzfby2/niM3buED5w0eYXf2xW6PlYEL1uMg/zsRIVPxEtYX3MPhtc9Iq6Qfawim6w0RvADbaHnd/LKxzk/sBF+tf1H/jp/V/xq4/ZvcSkNKqE9dOmNTK6SWtkDy16tpRfuYrBaLH+Y/NhM78+2yA5bI/y+1YxJIX5a6EZxNuNXzbIlY/Gg73+qRl8HG2PjxPY4+MIe3z0Y48vt3efsBbYpad7fp2vVpv5f9/dnm9W/75GHlg5ZJvg71MqNu43yXH4n1ZnFxvCF677bBttvHzlkjMj5Jwo50fYan8B2bTV9gJ/V3p+tbq7/iK71e3Nhf0um77zGxyyU7yTPSpNXM8GI/fRLq7Pbr6vNvINjpvN8sJ+vVDfSyvKSV6yjbytmWyOEeZ+IYrH8qvjArKZw/ERdQMZ2EErpqY3xUpsTthGK2anSbEIC3yMthX+RbEgrHeeKUNvxSQqVoX11rOfcbjjRPnG3ZHx87W7YrG8IMyAKgrHyMs8aHGxvi3Ai8XaajG/PL8lbPWGUZ4WJIo1WxYGe5H62es18EFPlUyMfMybFsixaRuyR6QCCzsHCUP++DtfyM20f2yQH1UPQSg30ip53lr5+vf5JXZUiOLnYM8fDT6V/Xxzd33xB3K4L7v45hRHr+zRsPoESmVQf/z0xwN1vVyjQLxVPkTXHiHK7UeEq185F8kvzuxXH5TSZ9EWc92hZmv7JLX4dnFtvSenopVvtkUx4qqcC/Hi+mJ9UXSZ/0aiRnEk396O/mYjIx8ZapHJrwvpyJ27LLRXQm3QuhTLfa43y9ubL7fn9uNnBrDC0ptjmuxSgTmJ1quT2blurpaX52u7tU0swuRw3IscY3IMh8/zi0sagYcg2vtCx7iciQPN9axMei7YvdDq5NKJcZxwtb6dX3z5ap2OmqBmWZ4G0e4RMRvtV8jmgPLpq7XjPRYjjcIH5TNYOepFFhSTT7d36/PPN7f25wONRO7TUy4ekhTziCCKx9d/f7q9ONt8v7k9u7xYrTdXji8LRkaPb/dptN28JOl2H2X55oD63kDhJim1BMdwk5Ragp64zVerm8UF3ZMK5CSMfHrSdbH+Xa+LUZvEIy6WwOWfPLFAB7Y+kRGRzcilF9qap5edXBoh3thazvc359eLmzPHFGYI2Mz+N6Ljiql+WzXLt7qbza+//vzPzQfrqttEJUsULT6Lu/XnzY8f7ZNWA4VT/lCoYOavGHysO/Y40J3RwKPnitqz104ymqQPpywGmKu5O2YOMVu/fGgYY+yg19Icz+err84bszZCj8XaC3lpFstleTm3b5raeBz3AWbLFG2P8z82o3g8iteNZy7lum+zvHEvEAxcykXg5phglwgILuuLq/PVen613Mw/rW4ui4kSlZRMR5zlweG4Ce6zZH9yZYwaz+72/LKYAPzOYJeKfTEVePbIDh34DLxGRD8bo14I7L1v7yTWk/URBovJ47fLm/mZXAW73tq14rch8aX+US6McQ/xGutvPpdwY73Fbye2TxC3+PEczs4/z++AAG3ksRUPwQkdoFFcvharRTqRx2K56JPFtVyzXs1vRzhNLFeuh8CVoZTOB93BjZRGdHE7q14nhx7L1oR8dOv1v5fuVtGfeG76cF5xxNTd/co0ak2qcyCuQt34t3eX9qcEDOCpTC3oBbnoD99uft98XRQD4dr6WcdAoegNT8nz5jGUSaIQX3kQXNAdgvPgt42HknLkd5HWL/ZWFAypRmoRMKfu0PvV5Kx9IDVpZQ+J3svUNLdXwZ+JOXevCaZo2z8xj2g39G2gUUwCrcV5oMsgDx/xoMdanAe6SA6HKMejho08D/YsqtJ/IFG3ESpbCFzXo9xFn9PqW+pglqAAvLKsAWExKxkATuY0xwMG6ThnUmLPopS6THZnQR64IpAmyIxDZlBTdTVJXkxa5akIDkQ0+Rmh0oLCvFYlWweiV3e2rXRGwistvWrfhbe2cS3CbN0+kKmitQyvRZWzEhDGDHNUoiFugbuW/0ADxpU0D/JrkuUxCfax0+BB391RzHs6eTDwXSZSWm1PnQYTmlRZD3X9QgHceQAEBjINDzOQAXDgQKYB4gYyAHKdBnF2TFL3REHDzRUVHvitOCS5mG+39ZkHJIG0VAtaNR6JJcWpjh6cSq5raD32odPgQV8GWb54FPIYER69QCzm340S08NDuf+qHE2EvbzUwBxRBKAx6zgN+blV4AGfPwc0YNEq8IAvsrOilxCG+2xbyXN7dZjEsQjzCwn4HOwpPbtWjTpVZu9Ok9e3u9tLQheXGlKWC/3plMaCYP77Rp7pbq+5iKUAIaIKVYdpcCFSUkQt5D0E1ctEntQmBLVGnhvL0yKiJnEehIQR9EFqha0Ws5cXaLs0AjYZ9I6uqJDBldXRJxGE7sVRJcFcG/VgTNWrRCZdGSkQqIVRzXrsukiFw439bkDUqkgFxS+K3MDgmkgFxS2JAEDMikgDRS+IAGBKRfn1hFZDKhxqMeSGA9ZCKhpmKeQGA1dCKhxuIeQGxK2DVFTCMsgNjV8FqfDERZCbArQGUoFRSyA3HGoFpGLiF0BuYOz6R8UmLX8Ar8asfjTPRi9+3MCYtY+Ki176uGExKx8VFr3wccMi1j3aYI5c9gBdCLPQ0PoRep0BhQ/KcksPIeTVFmB4KgNfwL9FeS7cnzFV2D8bcRYoYn2ngmKXd8C8sViqUSNYXOh4imDrIHvKFskpJoyTUiWsVTyBL5RLSlQWhAtOwGACLzm1cQS54oSGTuSCUx8+KetNuI/Dy81+J0euNgfQg8VmN0GyrjYzL8tNzExsxC1BLYAQgWb3rQLKjpnLkOvq4hBgSynlxZwanL2iUuwdVvEtDGElX9bA2ZJE6Ko1/RBYpCLIwfMefQZhpYU58QFTKC/gkuCzWoMPXQgSq54Vf/ZT73Ysohq/0fND41b8daqyOeAppK2OB/hiLRxnNAdIOyU2gTORhWl0zHHrjY7DVtMbQ8MYWhHjVCnmLbhihpFSzseYhY502fhQlzmngTT8vFYZBT5o3+EUyNrGraiXdqbMvVrZd2tvHZHc5l3lPMw8e1zIU1ATGcUPLorQHRTLkI8uD2iFmG0/BDPVu5WadPqko6BmTx19685JlIDN2gM+djpceGjPpoeM2rEBQW/KAccdxXrASasyAlw90ihfowuTrShWkQ/RzuXBPVHuEUcLsPFzpS7L8+nzOE+TI/B91AA4E60i9JW0VzXHVBE+6mRiEnaafqicv0b5zRH4Zm20SaGYYN6rQxL59FanXiPyuH/DpWxD0vgqgq1IR/B4bBX9EFk/puChHROPvNHzQ+MujkL1oRo0j1Or6IfIjfLmP5pEgnnw307AMNKDsVIT9DTiw3FSk3yXkV+xMmX0d7ZxLfTpFO23uDFRZVH96b5R9kiovoM5wjLVn+pby/7slCGOwpjoZPeNng8a3RQZ/NhjIFOvC9BffgiUEJ+BrISw34RQdL7cAKclDDR2CebYBBJ+frv4SieAO0iBonAm7k/U0DXb1ko+CGC+PRsooD9Bo0jc3D+csjDIxertcJ/sybEtafSzVt8HrbWQUrkAD6EZKOW1Lu44BorO6sv1eSyHU/e0x0Am28Wi1fTSc5JlED4FO7JZdsmxVfQS6uNwf9qKq/UlOZBEleoh9+YvNZmv67V7LmYn85jniBkZhcz3LyOpvPiKMDWRs+uxLbSlrOYxVGR/XkZHsvPWfGRhxwjzWgOF1Hox1mny0JfPfP8ij6WvT/EFmcvLTp5Qz4tljT8y38Tb+Wv4GMQ7sYSOHBopPYk3UReAO4GIJLYOj/KafDaOVdFe8tI88lAkihLtcJOB1YgzTihiV8Hroi44ic/TNAH2DgzUDsFr2BYhmiJ8kFsm+/06OojkRG7FY6Gat6o+yCD3rdXNLsR5Rxx0EAfp21lyCCLkXqvKolTetspeCLXtvcrTYhK1w216axuBTQlZV4IPapfRIcorU/2WRNDBNgOzvSygMtefTQH+iBVVlW45jlSn7I0Q6jqFjRD+agWeEOrWg40Q/gYEnpA85H3+GmU5ueeVlOTGiWjUvZFCnNmzEcKe30OR6b1OiuSBfSEUuZm0eiw0t5fRPX0/KStV96WqJzLF6ByF9KlrAd0o+rJKvS08xiqdqpfZzymeFy4LfA4wzXpOcZDvE8z3APxuzueI3nPKHR3cy40oIuJVTi7JEaVT87JfQfiQadq0aNTDRt0rqfKFZPouaMtKtPo+aMk9g8XHSmbMdpPcOAg/VpbyOEJdi/xLMnLTKRb5LvG77bROg4eHKKybLhtJLK9KqRswm5Qik5uvTd7m3jo9IHSKPojMixLoYSlotEZSUL5T6s3TEjF8qNQlmV8qLbCm+uuik36rNEChPlb2amPbJgky94toJviXSskLgdVTdFwLaGJtYpEVmrlAzalxVCSNEY0hObAaxOr5V2USdKTzF8Je/V8Fh01RSHPPNSFisRlzhg/EwyrimmHTjWZ56jwqC6j6biILMZTxdF1e8z0JPvisKoTahD0TWAg+B/uTe8KGotgU442k1evW6gUI0NGktFffWkP3L4biPA8CJ9QWQOSDIobaQXdgRrEh3MjEU1qdwhA6amkjlLW63uicndIAvJti47PtlL0ROk8p07WOi0gRS0NCMwWy7ce1UqPKIeOMJc5LPAZx79GE6r7Myz30aXwH2swoxrSH/arPaBvMRk1z3WSSPNiP7McNKVkEpze7yXHMJfW92EzpUXJ5nsbBHn2I1qjA7FVuEiYjGTV4PYuFOsNuFJqran2+Itq7x2sHo/ta2SehaqtwLKNqo9AzJWWVNIoUfpUF0YJ6FX61hVCfoscRVl0I/WlXXlgCuNUXxhyjV2BoqshVGI2s3Ss/RfL0BMEPKwW/ntcjgbBfpTHxqsyOiVyYmauJuFwBbNU5iKm3LDA7dySK4JdFBzHcx0WIzvDGT+8yiv3GTyXo58YP/gZMJeljUkKFq2cj+M8WdaXsD0ckpzQUF2dkImmtGhHu/bjJZHmww313U3m0WiMp2JxvUzcQOKTbtXy6pZkOaCNNbdpxG8DFDdeOOo8epSFiyMEZRc3qTUpPI3pUX9OrV1lpwYbsq76ndxmxx3jYoP6evMxMcJSnOShavW1VBkWioylKXn3MRAa2oKL1np7Vhx3jVGqFPfnTgNYoVzITG3pRKXcr/kL4TiPqx2MGwA7LNLI874A3Ykxw2C2YfrXArovtrR47KNoL3+OGewdEueBe1WPsinAITTrr5gS/OvuZiH3Y/uwHevV1/oGInT0GH7yBF/5Gh6+UPBD4BL8PPCRwj3wlGEOglqG7ffUXX96vbSWNJVMtOn1Rmu+EPG8u0uXpfh+F3wjjc31ybyeysoBjWQB5hLbe3BLjOcl7ilPQSaPnIBcj+VTK09hnJY8E56eUGls1Q2VKIT6ibRRHskieex3qUqb3sbNoB51aAQy4bUrwQO37l1pKOh3dbC+7OlpIt/Nmr+9f2sYcQ6ltQ2+ErvJ9tpgvBO6OrupWhWJYCBGu58JERtLwSmJEDyu0vDVIObmmzjRyymMRfXg1GXWVtztdB+lOOI+/6ZLcdNRmWFPldVHeHB58WccAhnxap1cjKwHwbR0zBdzjOjgSiOuDJhLY+4NWEqrbpUmWNYJOr1MFuU5nBDVWX5XkuVxlBdjxBoizvNREep9WNYAK7IJ2Mkg/xNBZLJZB7s7TZSAShsdKywuFP/4YxeH1lUfCEIAxoddT0EX1/HcKtGNCrIfgOi6sujuW+wukqTt5qLPmYRQGoVQMFUUmkbs4Ox3lPVmxpZvj1ClzLKN0qzMhz4QDW8CtELNjDcFMVW6lJj4gouMg9wK7KpjNeb2qnkNxmrMR4ppzAGasZiM16baujoLa0+3ou7e04IbsYVdqyPaESFSPtVDwt40GF3qdRrudSIHdzR56rihxCZRpsEaxKHNh+aRyKZ9nbLhQmOxLxbxV5BKB07L1CCCTspmA1emP/C0SzqNSjQx3+tOHMo5LtRDzbBQZqnowqlKBBr5G0mjQuzj66yS+f1HeqjOYtJNiGtUAZ6prJ8aM1iSYGebVPaUGrq+b9WvOLqPqkn6+cPZhHdtDteh7fOVUoSjfOZvaML90avCkb50AAfyTLBoF4lMsQxJWd8McIW1EvToc6jhlI8tzudGIs2OnSbK8JXTeip2IhXwXD1g3aIJMs5tBTSbQJJm9HDkDHULSZqF65YxG/y25d5m6+JlpYBXAVMfi90lDZlM+Kk5KsmODYwuEaxsHFDYbXotISoPnAC76Z56Eifud1hb12EkzIKHHajs41MO0LrMinhLtTIp9OtRtThnu8J5TB9QxDqR3aee4JX/nd2rQjsxhaR7m0TNot3okChph2GaWwedbtN8XvwIjTyfFNKABzlTDTmzSGNmDQYVKpQaW0TzLgzSHbaoJskdzE6h5aFUkecYtyoDuvwzRZn8m96irL3qVXL6LcFw/XovxpffwV7KzWo8AIJ4b0TDRb4wMgZV2u4yyXM7PgLZTxJjtZwI01VWRm7Qd+ziotlQrYdvhfAPSKAyA8zdM5gQEdBkMaNhlJPACLhOOyDU0Db880VNp8Sl8/0In8LLzBi+3O8n429hf/ct3EMgMyvcPfFG4Ou3zaIQbSDVvJNaLEWYoc1CMJ6CE1tIGxUr5TaSNLDANMWswAy5Aw2QUswovDMv37seCzh4TzAFRS03HrvpchHALQZCQ6i1F3MS6iS7K9Q8LsNEkuuzUHmFAw7pCr1KjfcBEAdn4VgpKq3//gmxzTZDZ4mZQU/U1yYlbe4iFbGu9OmNb2gCPa2cUPJw5yoCPzBmFInA9xgCxRwt8E29jKDyJNx4J/QQLsrfpkvyzLNj+povyOhxmq9GAh9917NWL8x3cxAP/NRxHBAxAJhK4CIQjALq/iQDO+XEEzuOHJA3FDZCE0URDVKoJJgmjlYzSFeUSBdkXe6LMzmgDNhmiJ+ujO5Lx0Eeu+hUb2wuMJHDdAEkB7AdGCriOgKSwEiF0689IImv0/ND4Lu6zKB/B46VV9EMEvINlZIG7goWkAN3AMjJAXcBCEpgvrs7pDIIQ850MSQEZoI1EKBEaSecyiXfYTJBGTvuiAFI+SCIxRLp2Jy9synYkrdsgLqJ19Lf4bX57RWeVNup/Biki1YedlDLOyu++W5nRNwNGWU2QOcaaQU120CSZR4iKUsCv3EO8mcxXjPvYrVfL5gPirxN0H9rAIm3VRpIwtjmuwb21NrLSvHbGfCfrYeE/lSl1sYVo4NX7PjTqtXsY9lZkxyTOsN7dOFWrNIaA+rL9YrmMnpMcCCKKGPclewOgqcqKHPOox3abgtkeemCzoFUC7KtWhxE4BgTQYcNMwNDCmOb11Laoqk4fLDQkQuaOphYjA4UOi0uKAUCigoSOiw8RBnDFfVaFzWRKaZf7NDJM9xlAmWrZCDHdhwxVrBBbFcCgbeGWo0vyX8BjS7UQ+8hSH8x8gKiW8mJU4ISCDtaYFXNGoauMhcAnEYRU/PtSxws8OEntQeMmpyZYxZ2+4E61K2JMlzIBmiqryDHvW8H3NvpY6EsbamXGtuoAHNeuZmhDy2Leu+zLempj1IuXfWEvF0boiM35ZrzlDQ9fjmt5nQet+SES8/PVeRymb8cc2kczswlEJip91JYandbFM4tV9OyP1O3iJ5at0vCnKWy1TMVRxNtV9Pc4ty61s0rbEyX5voJc4HweQSisdREnqah0GGxYZAxRFxNtPUVZVK15URVMo6HBIDNntPzNx55Wn6HTTqUE95CTDmM86lOKMIel4G2fBO7nBBSc2bGVhw4TVfxt++HwUSoFdI88QuWGhI9OqZDII1NOSExyQRUUnU/QDXuRiyrdnjvuqMiRqsICx+wKqcjoDaEBbL9PHhJwtaDK+eiffUhrZWvBd+qrKhqxxzY14vVbjQCl90LwuD6swxN6MgCP7s8aAVqvBihQ+rbGgtzDASJLYDvC4IiYzQgMNDrEaPC0QDOkoO4dypkW9oj8QJi7m2gFN+719aXZq1j4rrMZk3DzeVjFsWeDLFRwEQlNA4xKNougIhOaxlmQB2NobCs9b9ZAXuC2uwn+OreLlLXD4nur165KMIaHq7VUNOyFul6dzOZ+FPu9HPRuzy6g6KiLcg1uATbaQJdlnpUEu54BDdvxepWyLYVPcSjHd7jfmag81NrIboejNE93p0OhAXyOMvEJFNXRZCwuifVHj86INsA7uuFYH7TtL+WrtyIoHMAd/U6Ovc9kgDRvAnWC/DtBUbwrhjjwK/0AtJx1FMrHVhnch1Lqx/mI1CeC/4oEE0B8TOjDYz8kwOCYlcAQH70SsFBQNx6iHeIjZSfF3XQYwhkXP60Y94QisNmg4yBXeF0dxvt0Hxnr0TA4ao3fQ8ev8EF4sDv1sXGdCQaWIY0MLkOZLwKoVX0PH7+mN8FrqR1E8fP6FMdiD3Tmnig7vYMZ2FT7niyvb2PMbQLE27xfNdDwWKt7NDm6+u9xgmiARzlEpNXKfqe3+JXMIi//nUFCbe99kiH7mSbJbXMzrLH+miiv3XEGHwJSTK7XjNPbDTzwnd1GQ2n78jTmlzQ4Pp5DOZJ7oszWtwGbrNCTZU6ghEiB1jfhldnmMI3fr5g7/NB5ZK2iHyLgBMPIAjfDQFJYPEb7baFLpxF2mqOpGHsDriN46wPImjMPN9LMPN7CtmFGCrqHF/kv7GFFgzFHVfkvPGOCA0gLgXoLrmY9to+qcLiu6Qa8OcovkwmQ4UkBTToFKrDiIufPgIeUAkwH0UFMFSsleO5RFgG+3tcBzYT8V9zjfVUFGOOKAoseTZyg0DOMCuCfpSgHDNHBFbywkeZAgnu4CiBu89YJB936Ud0Gc+WnD6b0uKajO+/ctELMnjcEM9WuleL1wDFgbRhD7AR35TsNi7GrJ7OiKso0aryPYndM04BmSaOAtOboEVCHxY2BBlD1VTVxv0gKJPeI1Elx31Mbwhlft2rFJp2/9GBQcxilBhbQ+qkSInb9TokfCmCazj46LkEnDFz/DM4J+vhh9R+4qQFMA7wZ0MfHXQaAgW/SaBfFwR48Ht4nkNSKuIPiCAs8BkW/o9mgUfHlBWM8YCS8HtFkR5pvt7jApgvz45sF3GIDXZoX7cDhw4yHHEeGVXO3vntKYqESdroMOi5v2DT0zqGtQEDVt6dYiKGMp+vyvOgJuOmFAce9NgWZwELwOdifiH5uotgU443k0Ovkad5ngQ9Dmrwf/zJTcBhNU3ifeDSEpIUkvY6OKREqJBnYHGtdHp2hfyBcwo8XYOo99Uy7xcBOs0viTNca4U0+hrWRg5nTWcgD1xTDFX2Q+h8YmrgDkudhiD/4EIYc5xZXI+PHF1A9gbm/RYdqFtL4XmfZ2/r+pdqD7R0KMz44r0qyX5w3whrrrYlyD4qkzyJdnu6hi/4G0FlWKh9P97heptfQuQG+TKPnIBdjSNU/VgX4JzbOUvWPE1gKfDPfRgb3br6FiJoeK3E/iSZ/5ybESoCn0KTApPOYFgCX+yqxv0AGzmA6KNz0xQUmt6PgLFstoNyEQqbYcoBWe2Hy4PrdHdqs1T6YPLB+OnFNDO4CdrC4/T/IxATzksGUnjbf76HOVosw+1sfyFStWobX60gos30lDdivIW804cXNwmW+4mdufnAFwFSh4nfmCS9oi79BQO7tS8IO1/4aZEg46d2PlfR4SCBetGCYEKHDqAcxXotJtTwYoH35Nh3IUAW5BzOMoMYP4Kok84vmqZhzAKcJBmizpNGCvrxrVTKaWrsvbcpcUfzOTVcBpmsoBCadHLQAKLcs+Tpue8XQBKGDe+zEmaDgSK2D4sZoF+jN6neRgmd5OtQke27lGbBFTHCvKZW2TELEWtIFhu/yHapodHAnbVzwl0kYAHOTDnffCDMAP0dpJpcKeRAie2QxaBQqYatCA+/FmY1m73Not8yi4iEauYjYzGHQmXbPzAWKTBpiqerofTMnJeTOGUxKn1BLeefeWSPDn1LrUJbZbinEvzJMwCkDOiLStTUwmvKs+DX6MwifgEs2qhw3aZwJ0lRdVZB7h+1BFKKhOLu8BCfiA9hZ2qhv93vc7Fyro+3OT5DuRC6jfQ6Np0NKeam875Q9EFKtxLCQT+vQmVSG8UYD+0bNkAjpeRoMlREc/IFj7oWZ3AJ5K8xCwRSoUFHKV4jC1ZcbnBC5DXQsQnKDripGs34qftkmCfQ2mSLGNK0J0FRhRY5nXrkbAsb8Plq5K4IL9WqFmEFkwIIUQxBE6Ay8QWMCyAAdHT/MBAx+jnFyTx6Oquo7hA4NihA52noYDdo+9FO9g4F9vauV9vVm0hDe+ZxRK868SYV4/MOCiX8ExFBHC515Gj5GuQhzKPWnjVOgF+CNGPIVUhstylukeFKfgu3iMQDu4Ngo3QfbsFb2Rgj/GlePDPFNLpAIJkjbuKBjtZOOPcIQwovf2EKxBi+qUP2A4QSsEcVIAz+w2KnYWz+VIe4qOBK8oFHx6w0DIggDNTpexhxS2NKQm5GHHrvaStscV2RhGh3JgV6nt9VLYVOEvWnT2PQc2nVGFTCNp1lIEsyrlzDt/jSeAm63GmeU0XvXBLrInWwqYYSXqt1rtKcOCpnIW+1kKfYflPI/47VmGjzPHRrIu/daaDM92EXc4cXEUdv/iE0drf9nRmoPozR6+GMNfVMPe7wh7394uPM51E04zPkd4pDDm/y8m8bBHpmx0yDu4SyXjYDtjFVPnudNiEsCNkz0y7WmSto2Qk7RvmgzcFfYyum+KgC3SUwgNp6RDyrqtnFVQedJg0aGu23chzLu5dZCPDekQzUtjRiU2sJdBkXY0485MVWc+NasioL9nlKTtx3Cq5+IoUE3zwh5ofDl5maFh94lCd5z7JDz28VXCqjc1WbDrsXhuA+gO20acq6oMMHL0wwU6FaBB7xIkyyTWUmjPTJQ1KOU1AsVPTIN9XTger1cfKwGTWcI1gS5JwGNoMZzb6okL4iEo+BmnRp0vE6rlNHYi4/1Z2rouWVFjvsqpgnSVHVVcOJoPYDCPl2p1gX0ZsDGPVGPHg1ZuifLM3byLNKXFHrPwAQ5U1UJvu1KFvERMfs2cgk/YufedioWP8A6gUcPQNd/2rsXfSDcHQy1HtaRSz4t785HMkQPWy0PFMAgM8RHXgdBgFc3w8e0dX0vfIyzW71AToRQl+MNDlHpMukMOp7RPtbup0p76YTE5lHF36FDDuAI3VKrme3zchBvk0N9heirCMBVqI1WWhZU3y16bAvyRpTDbQI6iyR5ioAliI1O2Opy6Az6kblrWzuSJu6lJ1Fjiyb/Dn1piEfoTHrlLDTuioA930n9UWxOhXpQq/sjtXhMk4P4FGQCdVPQRi4si7kvisFfIMSTvApC5E1GG79DEFLuNuKpXSdxKP51EunbPN3B59SsBGNZzl+ynCDdIY+sEWiev+ZpcHd7uQzS4g85LlYaaApZTqF3VMvxRxMfxw3ciIEc6Xmv8kT6FyDjhcPvXuUqc4dJfkGhFcU8WlE8Ca3gVZ7d51hLnuKfwFo8WlE8Ca3KWpci3gH3HSCD7ZsivNuMRa4y2wTk2uvb46NYp++PljTYSuzg1MhWYuVTmF0JUwxTnBbtBqkJGrWkeAWd4HVzO1TqLFKGvR85I8fs/Ug5T3s/GqRrBS4F32XvpwUi7f2U9eBuvHTQtI2XHvigZavpBtyylZyXlu1B2mtdCb5DyypAhJat62EbPUT+mGA29VTwQ6PkgQDStVR4imu5wX+H32AYoGMfXkDAL9PkPriP9lEOvE0xIHHUNMdRGXQyddUBdzVV2kuHM8LbzaGKv0PnG8ARuqBWM25HHBKhdUcMGWSnHFKhdE0MEWwHHTIhdVMMFVpnHRIa0WUttAYdV5nOwv1WEfbSbU3gdrso0u/QaftohD6rVstGIQMfu7TRyHBvX6KpYPvJgAmpm5iJ6MnEt8WPUQClEq+l+InE+3DGowet2KQu14PBZQLtauDYi47BwxU96FOGPTwKE1juAwn5Cmaq1xgcFS02BfDRzT467t1NHDD4XrAJHPdqMEzgIlukQfgEfHYfeF4WtlpsCoTni/s8qI8Yw2QWyX4vQvBdpz6RUFUbQ8IY45xH5xQxb1HOvVelyDFP048ElIc9FEW0nW0H56QPZ3nvmQOjqRVBtrFNoObaK5Jcg48HnYU9ZdDsqjho+FXxjxPa+pW0xybowUMmqcSnPsloBsSeZxzWzjb44EKumQwl6GIJyV/HmSarNb1RWZxSqVwq/JbcjzRSWJVS9qA/k3u/1rrIVm9xGMXuIxQ2alGWtdr+GpBByA+dfpSRjJAhphP1EV8MwFZrdLK8yLI6CnAiN4SbZbUaxu5KtezbGLtUZPRqyw2MRnM0FXv7bxpi59C9WaeiX9+wkEKYTNec9q4sDI27J+uu/Og7sgh6yF0ILMG+l30Scfh4CFLnG5e6pA8/GsJazdOKvsfcRQejzFu6GrHnLD0SxPkKSKQVQAS6HpV7VXUsGasLbjpmuEhn1fTqolZasNX6qu8Q7NzYhGhnrz8v3AEEKfEOQ7Hvbesgg2OdFPLhQxqY1SJSauLtVxUFufva0GeHsw6YGMlc8PWVmzm09arh1zduAtTOK0CgGGdTMoGsUvJCQN6U3Qu6DRo1LyTOU/f36B64SBFvkGJqfghixHJBq3WtMgLcsv+D3fnxuOeDXp5OH05UIHxEaerhY4Np7NYS+4mDIQnaOwcYMuBjB0MSuBcPcODgswcmeNzbBxgC8uNSGOSY2xJDIo+VMvqiBIoQdcORs9Vo/ZI9yhxe7UBZO2gsyCsHgMji7mxOpBCetohHazHgVyIHv6v30Q+1jp9AFS/cSUqMISoOxxOwjIHkJZtFz+MYSV+uWRTfYbHmQiYs1Ww15y3UnOQoyzSYnupdRceWaQBEvL2IHxKnQ+miXB+yABvto8vyPAU+RWFAmyGPUfQqZR1Z4m2SQsObicZzqYka4ShUxhLxRgOeBJpIIOd/WEsghnuzKbAjPo7IMk0K0CwB7jQauRxVXT90FvsEyJJkZBLWan5IXIlDkr6tE3AiYKJyKJXzBDcjoBD6nIoRblvxeah0PTVSITbageVMzYMTK6NKNWVCjisDYebIYgc3WWQgPfHoYsZDji/DqnFGGAsV/BhDpDOejEcq4EhjIYIbawgWgTur1STIroomgxxxLHwoYw6aEjzqWNggxx00EezIY6FDGnuIpMDRx8kJN/6gKVWCDLeuVsz+nbsSPEujomg2vW1ZjBeSynBZbnAgR8u+LHOwtEKbTNMXnnioNMIhR8pBvTgDpZkIfpykkRlNxR8RcJA008CNkXhrwJ3VZg5k/8RSQQ6QZjaU8RFLCB4ezVyQoyOWBnZwNJMhjY00SuDQ6GKEGxnxhAq58b5cbmT7cOj+lnL/s65tC7mW87FljP6SXAvyxpd5nhdFga+DDABnQamIexdEqxfv7lafBuX2Fo6EQHxGGlAQ2E9IAIF/nSKBODqh4f9V6/iov3gtn1ojc3gUr2Gr6IfIKtiPYJFVWn4ofE/S7T4CEoEaabx0mh6ofE7SkNoxHmodD/Bn4piKUJ5SWjyK8OksymQIJPLZtoWEspBtW4gHgtibARqhrFHyRuC31c31KBJ/Zuhv4Sgi6+gAvMlhY5LXml6obKNYMklO+fw+Sam9KJP6eaUf1PoeaF0F4WMUi1sRbEd48aHSTjttD5S+CXH8cipmv6jLPhqfp0J116n6aDaxf1iLLB/Xy7NCOxey6Tx278skOd4H0PeVAZd9p+bFb9Kn5PlrKPvJR7LXSN3HVtcbnXGNVNHx2kQVnYUsKApH0QlbXW90LmK5JBhnnajV9UZn/ZiK7DHZE6f2NaFc0fZA6fZUxlYilbTV8hJpMtzRsV6EyQhHxyArFKEqSclWaLX8URjXk2smXrtyTQh8K8fKBvdWDobKzSmXhRXT30NAnT4kle5Do+uPzvyUJ8UUf1yL1bSCqgyvDVfTK+foY2aANbVyeu5xHtgsolhma9ZTU9htJQo9eVKaHIk6PT/z5aIF6JPkSskHgcfkhQpfqfiY44kHat33lYoHcOSjTX0ClGebMHH3kDzTQ26t5I3AmMhRsfAYM5ZJGYrGxYpjpew1RtSExjHxQ6HMLFws8z6nyYHIQ9SqD5WqRzJr4EyqlUqe+Nqbuj/tRmxfb6Wev93ry2Q33mH3lbJXh/0ahsHx9aqYLAc7sQwiapd+LPUPlf6x0vdAq3yL/DxNk3SRpGn1xhd14658kFzIMkKtDC87MW/3SZBuL4O3Yli9Co7HMVsyVRn7soxDW4YHeoQXCjRK94qeTxrzPeLGiZlJsMfe+4BmLfK5lZt4j7jZoE9dpF5S6fkYIOq3LUYwaR5q8UemfvRzFf1N37+rciRUmj58JZJd4CqiLvPvS71D5GmhX9MIXsfRKPU80Fgs7+YPD1EMPUo8JBIeT0Gn6WOASJInuSMVbMnfOwvNvNX09NUVvt5i/O4aVWo+PKQ+D7CLk1TgbvLpnlLpR6U+4VofhdbX6Mhh9Viq+yaFvHhop0W5hUghhr2SaGdGup+IpEb384aSb1c/E89RSD7tULPZtso+dq6q06dlkfIMCJVTfey01M9rfS+0iiVtMRJuvxXrfLE/j8fs9zVlPJVliNjjN5fTPo+O+7d5GIp9vfIgf1uoywhkGduuDD/7fk/7JNjW+cDpG36l9rHV9jK9l21Q2os8qZeaQa3pjYr8skl19orKvtb0RmXcXKAi43U2UEen34uFXZJ+j7ZATi1rhHouC3ipC/Cy0ojis+BAHYKzQm1bqfmYK70cknjcNsOjVPW7ySBLXIvDccz5jpJOXih7PNyxCtO3Y76+Wt9QG6lUzA++tqVWT+SpWvbka3p2WYw45M30WsfPJkp2DMgH1p46NS/ft/cCzvdh+sJd6Pkbcb6IWL7CI0o6RCq7WjetdX3T+XyK6etyjdTDKfa2Qh9QI6/VB9R8rdr71MIVef7Q5xZmviYSGrkV6sViO7MM/3QxtNNxyvLkUB8m/kDd7CiVw07ZNyHqAS6NkKcTXBqhHzmEfpyA0E8cQj/5IXRRJpx4oG6VRZ2aDxJxKLcoYuqAGil6PmnQQ3bLxFus7siQg3RHxld0Xu2Tl0Xxe7Qtohj5EHihHKrKPhYwaRDFq/ICLHXlIjWzRtMvlTHf9RU+Hj/ul6QWpcYYPmGj6ZfKZxHkp5S+HdZReuhK8EVNPvE3htBj4uvqSUljSV/dlTSO3hZ2FY2iGHkQbBSVTtdfvxpzfrXuUx4Psapkvj9GuRhxZUll9aKUMY5e/xblb8l9y8d2g7KQ8XF7UoWyVr0Q4t2axDy62YDgH6KV3G1zM/zT0i0u9WVpFzzlXeeOAPlZZwcF7B2vFp10v8sBjHpOukXFvybtNnfZo0imrjWY0LciO+1zuXFC8vG0VJP7JiO9vR8yCh7HJFYub9jiRiPoI3gMQK0VbyR5YQQVrDSo2Z+lCsa+bWVct9vjh2gHmrgS83O3XQN0jE1Sjnmz/ZQnnyPc5Y4WbSYPmD9EhMsdZYWs935eZU/CnsPpWBSLI9mXSMdwXEQWj6f4iU4jlGreSBTWOIuypzt5opBsjm2heao1R1Hp+75sGDiLWSnlw/N1OGutSzGe35ORZg8RfoO5Kt26g1Qm6CO0ssKizu5HbWgnIZrLKWRGeFyfiMnhUP7my91wFZ5+Ityi4GfCJX3+VLhDps6FXQQugyy/SrbRQ4TZbO84FLD5odPj0rhGXVjp4Ak3VVywd7Gc1svzqmKLG1E6CidFlzCsuOisHoOPhfdTWGStChcc915Nh0x4qMYFe5EtWjOSul8WqnpcGqTZTceCPrdxRgP8zEaJBsR5DUgAOd6q6OOgTYNKyQA1spSSvoYXHdZZ71L0fQaaDoo22lS1sQ45tdQIFqH8G2lhDNJBPDLTI4HdaQShz4I8IKNvK6WxBNQ3QJM4ypM0infLNHmOtiJ1TuEN4tyXQB0ETOYwyPP6wZEFO1PVgfYwVRXZKLQ28d4kRNNMGpgscKjgZKjZ2ImIjQbynVg0kfny4huQZMZGJThGqOwyJDKoT0YORvjPRk5aSm+5FVlySkN1KDH0kk6K2TsMcCYTdGKT9oYeDKoXKDUY6/19WJzXw8DgEqwPjFuDwcC/g9mS+sjI3EhGaHXSKU8CPETyHb/sVvzlnHXqotxppwXYOAfRZXkevShK2cnHcqN9Dg27JuBZWBfw0BYATYR6VbURA6aBRi6YiaAV3uwH2pTQ7QdS1J8fwHNRXZbpB2hzt1hUc5cVcu16RUn5oOIIIrU28vEuHKUiCEXbKH8rsw7TOT3X6lmt7pfU+esxgvLsuViJRt8PLXinyEQGuV+Eo1DMy+b7IhBF+SPwfoiJSjE1CxRtP5Sg5bSJCGoZbYU3hzAwqZ8u6i+EwbdBdVleCIvGoM2Q9057lYJMPj/lj9Kb3gjDh6bjrxHMVAD7aErvNbIMQalDjF5Xj2ONidrYQQdFctToY2A5fhgi0aSNRw6eIwYmFFHKCGWgRx6qUKTGjFkGcqMHLxRJ/ChmoEYczmyEgCBLGOA0nQmCLGXI05Teb+wbwtIHQb2+inn+8c///PBz11pnQhyXReSJlDc0yicMOmaKCG+jtHrM6zPw4FYnRkf7x0+/tnDlS29QfhkNataqQHttXU0s4FtBBm9V2ODymT0wF0AfXirh8gDABPKEDJ8nvsCroxYk8FbFi+n73Qlr/WOrN4ZGF2qyvUx/d+yOdh6Srbxc+X+aHwz9qivnl66gVOyiLE/f5ND8ue9T8hJp+fJdV6xJ3t2HW6og/jqhoFfSHOxj9Jzk2IoPhL0gw1XuibJQhUg/B9H+lAp0rc0qHlkgLGBSIDNQZi/HNMmT+9PDMgif1EN73aSlw9ZFyahd1LhVXLdFFPHpoKCpMmSoD90ofBc/xclLjIaZnVoFN5ymasb+FMWBsggBoe8beTbyKk/VlzRB5KyRZyOffb+5PcMDb51f+wi4/6Lh/uUL9+769nxx8+X64r/PCfCnOC2mP7tYvlQ1mkXXoZZNYLQxaAU4XWm9WOLKn+Wh/WmVoY7FsGdYtNOWjyY/LW6XEdaC5ZfF7TFyLMLR9UQ4UL/CJO8x4Suuo48oVga6GMeNVufXZ5vP84vLu9tzCtwsE/F281D9FVHtXsXM0epitbi5vj5frElMtvJoZxyL0L6DReOBcgITE6IrWLkoU4Lz+Fnsk6NzLtDIQBsWBk9Ql8gDKGXtMMCi+xy8a2QGce0SDTSoG3wWSOeGHhrUtqVuAXWeFESD1lOseplGrHc93apfPh9tBcV/P4mg6JzrIHsyHVZsC1HEmF5sAjRVXJGb1Jf7OCh3Vith82hyDWd5rcIHvxaveZlqx/wei51CXCiGreIoItpxMjkVMx657E3X4IOWgFsNoEzVbYR4DmU7WGWGcR+rGujYQOVjGzEN+LFTYYLfnSLjIUUL8OmE6UMgqCPvjQ0YynmDB6dV2Ed9v5Agdz4gb9wBSkdMEKEJApynofHBVAtkUIkzQZckwx59GFbeFCD67kOnwjVymBeSC+MzcjZDlyqh/fE4NPjvbZ57LPZzq8GEvhX1MuNCYj6bN9ktJNJGN+p0uW6XJq9vd7fGN95tvidVpDAbvLphDkx9dPCwVPHh/XLhRIKWG7U+gC+TMDBfLbYA7xsFOvBgDo2Z7OiSXmbSqImPLvoO82ndzPgpNdTCqK5tpIDu1zgiv0X5CKPP/mzUvJAY2/aztFP0QoS23ujNj+lLDnd3XFUvhWH6Y0+U2SFtwCZL9GQn7ZImLFSf7FeI44ZGEng/tFNRWl6m6lj1Hr4ztLoixmxxE6Cp8oocr6UXH91T9j7QLPyImLar1bDtlYl9YDwhaIfe1ip8cNfTV3b8tNPyQeGvkzC/XOhi0CiNIqCem9snmUC4tirH9G0jpKnaqiDPu1HtPIAjNLRWJ0ZLmzggm9pCQWnrpfox2tDG8ndm2y4tmSM1DOYumUyEicOokmbCpitZc1ynQ8S7jBsUdhUVE+kiPUjFNb5F+735ZmOrXIswHaQPZKpZLcNzk89JCriJCjN7qMUBCzb0Ge2mwaKbbgisdmzLrdSu4TF3UaGubbuBqqMwW+2039vOShtwZg+FvPOUsq7E6m8ZvdX6oFqbuRuM3VpAZXjttEyTUJR6CBS5/dRKgxbjBeKMHIYtn5jWIj1EsUwx4u5aqhyzzYyQplqqgsx2BLawB0i4bWytJqMD9BAcGaUx8JguPySA7vkWCiYHQ3mXL9fC1fednGqMR7HCQw8ZHyVM8EpbXjxUm9xArFDEmO1pAjRVWJHjrqDg7tIHw/cWtTpOA2Os68m0qKoylzKi+qRUFo7Hm8Uij1Q9pHVZXUdngO85BnClXVULuNpWlWO2rxHSVGNVkLmNGm+FMWWQHWsW1TqAebXajD1XMkTHfTDGgF/NF0TsQxD6gb5YzrfbFJ6mGox/DBTNcVQUL7+E1meXHtZnl+D67JK/PlsG5sS0BozZMXDkoNUVOKPO5Yh1WR9Uayt3Q7FbCajM5O1Daxwb0PlrlOWousxEIzoazPq4+wDL/ag7Ako+2/B3ErvjZYOmCLMBbx4eMgF5ug6bNCqjwVEj/yV5TX1pWVOXj8maL+W3uo0Ms58NoEw1a4QmPrapwSCH1pa/bWzLziL3d1EdNcq2EeJrKARre3Pagup8bRoNepVsbY+yWHAPydb5/goFmojrAfQyMj8xbQHdV+JMUOhgqo6JOpgKQUIHU3VI1AkyA6T6sXMLzMNKAe7nzS00DyslJh7nOwzkUF/R5ny63NLnYX1QdX/8BWqsSoK7T/4CNlclMv32iYJD+MLw4jQhYD++8aAaTezmDQLSySVh1ueFBo7wfeHFkiPy9gD4dynAvb1ygLy7lJi4lToMZDtVtO3HsU9pVkhiMVNFgQMMf7FQQJGfKoCawlFDqycyaPRBNa90uyTbH4HKTO6JNDdkRYsGDB8sNEA12cAzECtKAWbb6CCmCpUSvBZapSESYpaliH3AirTtbCHQdxSwLabfOMEwnVUBRHfWPqjmFm6fYDsEUJmpXYHkB+OdgOQBrIjQYOEjggaoLmWO0FLm6GEpc4QiQikxrRt0EDhPqEiPdAYFDOUPTjDUqulIjwh9UM0t3D7BdgigMlO7AskPxjsByQNsMJ/ecpF9T+XFHOCcc413LxVeWoXRwLjTzkfyGeejZRR62kYpND+pZbgjUh/KGGRroYmnkhoMckLZ8ufMITRc/DRiCN1vQ7ABfbQeXLf3aDdyo/GG/Q6SMPL3YJXWOkte4n0SQBtkihiz5UyApooqchO3Yh8J2ZZqRWyDkO1pdTu2+xV1GnjiHmIN2Ani3TUEdLWt4nbkAXraKvEJXAWv5ZBJY3AIXu9rLS8ULqN4BIV9reWjGeQrkGEutuvEls/a1R6Ndp48RJgb6ChK8KhkYIIcmMwEDNEOE+o8xTlUVd8pwo0Jb9ZTG+VT4+4xWMcVrQYXGj4w0kNGHhuBgPHxfFQwZ0fyMWHcurKBHp7TQXEPz0Gg8FEEHRV5FAGCvRXBFj4YpEOnhQ7yiBAEfxfLwmQYopI4tZqeqKDmoH1DYKehBnAlNt8dEfPQVogZnYdgpoq2UhPHZx0HGaC7KjAidA8ZHaJBcDB89JBx8QOEvcgubtyHhHu4URYliB0gEFj2XPD0Vg8b/5wWot5F4BRhnphTJNlrv1XUuCRuCjm550QyQqIocQlgZpc9ePTc0gQ+iF5w6PIStxAVfJeIRQ9XNsB6bxMe/1Tgen8TOfS5CdzFpRPiBmGVxKlT9EIENQKrBPDj7wBY8d8vqYA+A9UiTA/uA5mqV8swvwAI+TRj4clF+e5NcxVulpVqx1YNsGlTnbEdScPG9SQAEnemRcMlnGoBwMstj0/iIUkJ8OWOx32j5IHA/CEH5j1D/KDW4RofHoF6pkeOP0PgXu+VNV8mWZQDz+/0ZT30ZyO0reqqMLOHg8txIx52WT6omXWe7R6QzSREjDiD7KAwiN3ZaZ9D7V5JeYngGpzdzaUYr5Vl/a9Ph3tUj27hyk4dN2qovlXWyBbH6wZwzwv6HI6KFpuCtAPZAr6A8TFdxyeGdZAGNrL3WJCCe4+EsaNln5NU21J3drhG2lvHG8C7LdGI8zqiLKEubwxuudxNW310U7R1tS59P+lZuSicouwemaLLSajnI5BXePADsLbcSwa4dm6XIPhWBefrj/P7LNmfgG2EDr2dsT8GnSKDCGoFplUeuf7qgfacZlPb/DzOFWe2eJAm7MGdzOC2imvSPEd7EmPgZpUawt56xSwknoP9CW5uA41GkUFEPTmTnOIcOv1Uy3DPz/ShjGdNaqHp7ytpSISDSE0t7OaE7gi3Qj4MCt4SbqV4Jv29iHIHeLtZR5s9l1q4DeeuOk4KYGooIwVcTiiQQimwTApYCoWD/M9jrcWlcBncC/c77z30fa3ABZbzj9Vblgv3JZgeerlB2WhxKdxlYrs6BsA1ph6DU6GU1UpsG6RCkAk8FEq+CKyTPNiTGeRSyxeFUuDmCC9NTb0gOSIXpyYa/UALBlkfARauIi+w4gJ4vXRAvRVa0Wad+OwgCSc+e7DqVd7qBc2z0wHa8NcluRd8zbDGq7GaKPNLFvAwgAEL94pgrz62EBEdRHICLmsbKOStnhcamDmYiQZ6JmalYXY8pNf5czlszXnOBh566CMhjz2oFeGEkgE84e65kYJ62/cUz6G3yRoZ7s3fPpTxxmwtxGtRXII/FYqS4K+phy12VTYH5/k6fv1Csh8K83QH5N/TsINKnAl6lhwCIEmPDrttFLgGL7TrNPJoa3cqTPCv0VZ8L/6cvBDgHwull0aJSeBa5Dfx3r0do6PHIk8qDSY0ZnzSodEjkwG6H7XAkOUjXsF140Wqm1N+BCYaHcosaaQx1mONOQoo4fGCHqz6fO/hKNIsQTynrktyn/I1w5pqrIu+w/hjACSMQr2aMXqoiQe6n1ppmNse2fD+Wh1bc/Z3F8T7yT00yhPKSoXMAVE8r5OV2D9AUzlFjp0W2wBpDCWK4PR70gM0wpij1shtZpSNfRkYV9938GAdizIwtFUxmnVxSqXGOnkS8c1LLKC75CZ57rsGLgrG2/MGhem924pKeDvCVFNcs5DaxHeD0Owy+azMjIieoQ2rx+mYFjKElx0cdNSRPH4uJL6IvPqIAc3kBtLccd0ObxxwB+IT7xNZAJHbRYba2dacSZZH8a7eaBhF6bEq4tgW4Y0casppYYWfdrroqCc0GgmXn7ZC3BMZAzDjmYRG6h0GbB2LcualrYr501HwJMpYAR17UOS4H5JMkMYPL4rgO6ziBnCENZxWJ87m1pAEfoMLQwKxtTekgN3ewxC4THZJDB9bGHDYSz3kwQUEDdShmAEJ/MEYMwVTx0P1Ol9dDlffd4hnOhblw2pbFaNZ10H2BISyWoSbha0HZKpkLcMzJ+YWsQqEv0PcVMHWjt//WAY74Caehpy+vB5rDR40mHVORcXlnHMDghNCDRE3C4TMi0laqFkXna9wANzrIFDv8NA1wGq9Q4xpYSjJASV3o+HOX0V4ysW80D7c79+AIDOUZhrVAW+q+1CcZ/CmoDGgs6BTBsxvqKX9w6g8TAkckbcyUrS9UcKs4myE0Ms3PJ2L7OzychSZKNvuEYckKY0Vum/h2tspRFzIxRNZyILA7/k2NiUN3IIAT+lK5I+Je7iz8Tk0qv4a6nhErBCsrXU8YpcKhF4FTQasXQo1MSB3b/BEBtDFcUc0CN085sSdKJ4g8tye4hxK8mQjlLa6/pz6kEWf3uQ6epxXF+r3jbo3Uuf5C4OTyF/8U8LMSK3Nhp2cOukMNqhpky6bjpfNauIEzKb0LhvXtlaibF/j/eaI3r1mz36o1MDBA+CFGkLIpJADCcpmuOGEShG/9c8OCAhqg7BQjXljgoNN00uIAGnZzWhTfZdw4QQnBQ2rBVirOAxLwopuHFXMpAZDFD3BGWlR3GQHZVLCxGccWdwkCMOVMCEa2fzoiAg0Py0uImja96gIG1R+d6coU8jJz3eY8NCnO/oV4+xHGongtybtVAbj41W0SxHnc3uyXsZAA7S9q3TC014yM6LhPhwMasUbavscKIMrTELGCnB3y2KMQhV5XhlJBh8x+1yIMdJIRf3UWv3u6gq1CPczaw/I+OGzkuH5++oUgisuFWiWtQrQ59W6CiM7mgaK6l8AIO5jsopK+JQ8gB4OpbjPPN4+7yA/6/ADJvQsZg8I+TKmUoux99n6wKTtUgcwfqLQQhPnCA7wVb6FLiH3wbNGxQe4SN3nBwzglQob/Dx+vogfRRrlQQw809AnIeLnSFP1QYbKwAfspyB82qXJKUZ9x2jR71U1NgnsZ5Rxn0/87CqP3k2GFkTF75ui8c+hl70M4t7i+pCA2xKtPC/SQ+972QBxL3yZqmchAr/xZaWCfOXLTWboFdVlX+jO/EDYj0cYwB026aTfZ9zv4dGGf6VqzFlAnwZpMgDTwM8J+kSIUwOYCn6G0KdCnCigqCDnCwYqlGkDTOUuQxxbtZA5ZSKvdX3RQb4QYCFEeSoATYk2t+hTGjHFgClhZxqDGEOZcMA0CPOOPhPq9MNIZjjeIEYZP2MLps7MDYg8yE+oEN5EhloeZ1B+lBwVG/kRcVQcHLvZomFSOo+PXeyRu9fODrJ4jPbbFLyLNJT2021M8A4LKOLTXxe2YJJDlVpHsCmwjeDR/GgjTPvBYIBE6l9VTZhTcBWbMvt2gmMn3go4ac7tBC/ThayRBwMVBmW6ENKhQCeN89coF9TmF42SJwKLZEs1g6QQVmqeSIxoC0nCX1Pgx3PNHUiDOkQAObLrBCjDu7sZ0jSh4otaZxy8fdgljLl+B1zKyMeL+6MRZ2GnSRtpfUy2dCrkSZeBiuIFq2Jdisj8qogxW98EaKq8IjfxMbg+EvKzvFoR91lP8KP8gAHpFUkEEXDkHzDADfwI6HInFn4nfkBASD3kS/EIGt+ivfup+AGBpwhzDQoBHYFXsQbYyDtYKPC7OAqh+YaBwKlV89APoBn3sAOgZtz4LkjvAKQT1ggimHXegAR6gWcmYIjzmCDvKcKjqsq+CQwlwtOA6lxJeHuyxu8BNHLgNoAPDvmtjsFLfLbfo075KcJejvmZwO0HvBTpdznQ3scjHbNTq8Yc1S1sSGM7mhTyPsmADeUGCYIGcrS3kKGM+WhK4MhvIYMb//FegzumOnQXwkFVvPOOdZcR944QpPCHRQeEiKdFzWTUcRIXV/1FVGwsfb8oOjJ+eoycvJiJIHLz8JAJYN7Q55A0Onx4eDY6Lkz7iIYj46CPCDgy9nmMerx45ynSjY9x6OiGCW2e4hqqqtOvAlQg/CqgqQNrFdCHxq4ChuBKS16LXH5WB4apTorZmgY4U107MV6LrhdLCs4sD4+wQZU62E4cndFgT1svsBfLn0iw0fEnP7C/EGF/8QF7GWW5iKN4RwLfK1psCpgo3CeADsJGeDUGJ+HTOrgHjyOrctxYbII0xipFkNeDL5Mw2M+3W/fnrQHebC/1gkoPCpBqrawtfUhyMYJHWir6I7J6kqemgJFiwCJ7ymotDxTuLs6I8CfU9AsBjXmkaAiPfhgESSFPwgSYj5g4NGrjSFh6/kb+h+aXQAhoFTzGgiEJyCitBi86XLhTAtoRi0GI1hJdFW1+kaTA1NFO5ljpMukMZ3WIKZ2f+RxmBOS1tKx1JNw9XwUq9wArBdw4y5qba8j4qfkQWj1XET9DRxhLCe4pCh3GeH6gFOG1H7hXo4DMcPszNXPOeUgFE38Gsg+rtxmUqr4W4bcamOW4luG12+9NDdBQs2dFBbalKy827nSLik041TKAVkdYkcPdrxXijqQDMOPw0Uj5aU8CVtugiCGqrQpn30pHx+9aGcAHbQo3qJfWRFSQvVeF2DLqgCgbRlUNjEa8K0pAdA1FjGlOE6CpqorcxANVHwk5WqkVYXSOATq6e5gJGNoW07CeWhVV1XfoKBoUoau09TAa9Ot6vVwVC88oiS/iyDkb74kyzWsDNlW9J8sz9jfgnrgJDHdHvF8lc4gPUyHi7DGB9rM1QW7AN4Iaw7EqOf1tnyEcYSzVKgUYG2dpb2ZGVnrqr9s6EPbjdlcL1sDeAycM7iYCaqvKazIrkT5HIfRsUU+U274WYGP1dVnmLdSqHPgwgQF0llX/jTxQ0Kuim9CZyMI0OuZFxBvNa6uV4YfepygGb58ZOd1HMe4OGpKITHsYj2q1x07TDxXcC7RGLoQnZ5FkUGODiQp+dLAS0dZb5e/Qfogixl55DQHNq6JW7l3WYDoaaSHWVQgyMbhXoUr6MzS8a6GKvlOgHmIS47ReP1b4MXAhRB8bEW3ATo7Y8VqVZA/XRlhzrFFFvfgA3MeHmI0PRJUuGOK0+rFC7ZAKIdJaaGhZ6A/Js8D5QF+WnZPeAm0yRF/4fTzBiErzhUEtGd5gpoP2BwcVzSN2UZanb7cCvJDZE2X7gxnYbAlNlucNX4ufyWizx0oLtLleKdsHYGhSbKSAmxEjKUDbL0YGqO0XJAHUmGhuCvSgiKSC64wGJoS+aCNi6YrYfuixE6Krz/2qBD3LOMDCvseo1YYzER8ywM/ELSQM7fw9jcD3nvuyntp7AO2yQiP8TmFXgyPG3bZe3MCrk6BFXogENvTqHEixF6JACr69BiFHX4jMKk+jeIePCzqfrNQmRgiI0qe3XIwldF/oeqZz9j1Jt2P5bF8KZc+E/sUh9NcEhNZvxzFU8krNEwnKPELnQZ5IGKjYRhj08OJzbMHb4B321YZ4I8bzqlpOcy9SEeSiCO/IQV2V92R8IwWXTVSFdxrgB5DEQV6rI3egH5KhDfYYMtgBf8iFNOhjqJAGfkNDkQd/DClK3BxyIsdOCyVXhyb1Zt9dmWaXd4ynOuaImNpV0dkMZ2IvKHFVlffUGEYKLtuoCu8UVweQxLiq1ZEbV4dkaHEVQwbbN4ZcSHEVQ4UUVw0NRY6rGFKUuDrkRI6rFkquDk3qzb67Ms0u7xhXdcwRcbWrorMZVqf7QkZejkUGVk3BU3OYSbjMo2m8U2wdYhKDq15NbnQ10KGFVxQdUlAzWYgc1VC0KGHNwIoc12yknD2K1p289yWicZjfV0/3xYDqPtBkwZxlrS65NbzE2j4ferA1EjL4hpQot8ygBFBGBU8eYibhMpCm8U7RdohJjLZ6NbnR1kCHFm1RdEjR1mQhcrRF0aJEWwMrcrS1kTL0qEoMG207aU99yQDvMk4n7uEDqjzZhgu4PdjqW2pcqyPbRKmpj5jbp0SPuUZClk/pMuoQTrbU4h4/rPcJQF+ca3nmgiNJctJJFxV1lhba9BMvTUXdkURsGbyaIqYix6LFJeRwYIr3enZdkkkmvkljhEPepxnUy0LiPJaPkLvfJzHzEK2mJyrkwyodl3EHVnpkFIdcn+JYOB/xqySYzteDMdW3EuE5WlUG8DiRAjTLy3/HvE1U18B6FLW6l4hHziqNUdCD9tM6mLUNpZSXdgT7cyc2ceDoASFDhlILC/Bin2RAbqc+dNiosMFXctiBspz34bNOiU1gHj6RsINSng1bhEUR04yeNir8Fi+/Wd2KQh4IzIOGLzXTVpNNJZWPQT28EC3RKbEJEMJoR4AaSt09AB9O1S5ADKk9CuqVmkcBP9xdy3Cv0fShjDdIaiFeOIUvbaowyM2Qlr913iXttlz/m4AsSp1jjviaB8GDL0XrVUY9UwhA3iYvwC1QDTOtxJmgi2RPAQ0rcSYoKlDowPgwAZoZc/NKtzT6ztUQuh8cwMjgIyzAdXuPgECOBh5Cwbg4wAoC1AjA7xSjegTvKnIHS7iE3IMdjpNZ9Dd49VST9DNm9mEdEaAW5W6+4QK7CkYL702NmEFeI0AK9QABSsDXSJDDPkCEEPz11iAOAUMaivcvqyk34PmdFNPrDXCmandizMEBes62B4R8w1aphQ0Y877yABz9ujJMQH6yI4E/JhiXgoFR3asPju9aMAFMt+rjo7uUEX7YnRB9yU9HwtTyfbrQiP7jo/OM7DncbjOiz/joMCN7C2u+pUHjZ1xD6N7b75mrk5QCHt52hx/Zz95hu77DoUwiSvqs3SUFl7Cx1Afutxu0U98K+Wg/+AW7RmribXodB/tQXlsF1yb9IomBx9F07HKbPqyUuATuMpGCR3t6+KdOhwu/LNTlnUsK/LHT4cKjPlP04PFfKUB4fPAYs0cNwqMWIDo6fu1hAFfnSdFzkpcPsFUJkEQKrUBMCtw5lJOEcSw0aTAHEOh6sB0TeUfYXE3b9fLiTzIjB5SfxsHqvigiaIvwSe6mfANyNLGkVfdJCrXesJPCLz0AUsPelRxpnUuT99O3zBQcJtIUeD0LmlLbAGeombWpfnwPMbChOoiNUt8/GinQMRpBHx4xALXaopGc3gc0JHzjt1VhBXYdnBDQIXhSINdZ0AM4RKYUIvM4Nlo+KODWukMShBWvhUa/430V+73zMdlOykeX0+GstS7FmFtFp/t9FELXF3tos2Ophbr2qtTHRkGIFNPnVfxCBd3p3eBN/VfRLg7yU4pwNpMhMkWdTareKaC2Sr1fML5ZBtMRkRbSBY3z1/AxiHfOc8NmDS9TEisN+6jcV+H1kps02kXQzo0DeJaUBeAnKYMae/AUCzWy17jI9T1I9m3QaaSQDz/RwKxmkFLMmIkMWC0SLV6V1bBAX0PbPj1g3JaPCdbUkufxs9gnRzgMqMK+WnYA7qx+I81vacQUaABYNjh2FqRVjjUxHfIgTE4xNOr+j9nHthmmnB/iN7bR1MDNYAsh3KYw3kKFzOcg2hczgTli9Wj2nIeqgAC7gLQQG3RhNWW5tesWQl66LJQfvZXiddHrBNoL1oFmcYLaCO4qYTTotcjlJ4BSymVTVY6f8XYIaaqwKjj5SDcAQw92Wn2sK8Am+zm0Jh7y6BKgoxbFFjqmcbDu4KhhsJb1NQr2oZ2RpRZ+v9mOCkif9DR1Y4+BGg3iEAiQOE+RU0yNg0gR1/gcFGz7gNDbDwNhn/uB4JsPA2nmMUjsluwAkrgfq1UQ0Qj4FvBqfoIheIYfjTjbK5oky/vbEcxYW4KWMxXfv8ijMp+T9CVIt+X3HaAjGhWY3uAmYTKMUYPpG0kY7MHzZnbg2V4WgDuCZq4we+bgIEecQhAJwuHMSQ0Z0iBSNrdGu7NPN8Zbg+e2dSHAftEQcPagKFIMzwpoBh74eGajYQ9nyZEWzUp5v8FMp4DoGqXCpN8drYCoz4/G+vmLDAqbsYGhT0nzj/JoEG6g00TZXmEGNltEk534BLUJDXmSul8plhcYWBAcwEZk2PaINvfT1pj68tq2+n6BxikztuHivfP4LzLSK8CUGO84ANw2MyKuq5K++i4mlquiE0fxARQyfmu18dFnx8VsCw2tvdeLZTvBgbYIhtLsdrfCm83RF59+l8CCSWmGQR2dXa+MIHBL9IQ9dcAhuMstW+n3aAYTJL0zdBVE9Ad8X/DaDwj+OHH8G0Ah459WG9dugFxzkzmU2wBBpemFSrf+J3PpVv0MMrYogI4APns/vhu+y+DbIZHG3qoqTNcbMCB5npmINeLjw73XWE+Iuj6m0mS8ekqN2lHT6uVhaq3xIM+wh0TsEy/CrMvvlIsy9/G0jUbH7HbSUG6gV5DnBwYyFEewUdHeWw2T+CHanVL4rWBVkv3WqhHWZAVdlDvXkxcbRZhfSKDnwH0J3IBcmL8uIepKANqhV1fbiXoRFGKjed2X6tOQ+i3Kc/BdWBulPxtlL4Qwk3Vzs6EfKrbQMPcZZIfx11uwNef2E9T7uzoa6endrkLmz9bJft/0BfD1GE2U/fKFGdj8doEmy93H7Qojo86OxR/xnb9fSc4xBhMbwoMnNiIWX8A6gkcvQFf/HbrcAI70ZIZSJ6OhV6uvi+RwCGLowSZNkPsOgxHUeFlcleQZG/cuwQCP8jaBVi0LDVTmEwMNfMYTFA3wE5KBAu4DEgq+lqAyCFs1LzYIME9FGOwQoJ+LQNFIo2foioyJRaGGuhaDIvEtvf95UYzPVBZPhV5Y6XmhId7y4J5MotHyQeFWBPsDlUFaK/khgHhEw0QB+5CGhYRxVMANCd7GA2SlmftC+fbmhLVvvSWUb5MTybYOcOiUrgEcdUQXBsc9h9qDJ7yJaiKguNUXkctgB31qUsSYjmUCNFVZkZv+w1IfDN9z1eqY9/iKPyQvmRSK9mInzuM8deadNSpw9/ucJIybXiYN5sUbaIplx0ReSzRX03b/S2RhGpWvxYxltdWK8EmueoEaON1oJyZa9QlIfXo7Ew/BaQ98qwXZ3b9t23J80pQf8p7H2y5t1X2SKpY6289JOg9D8HSxnVqx7tk+JGnQFMIkaBgGMGOApwEAFZCZmzlFERfxg/thDA2qnMJHlQoy8tvBE9lMcq2/S6PcHW77JErVSFH1QwYMwUYeuOALUUBNdHR8/DTHAD7IZifS89dcxPIiMfiNZSjvJaudhYJ5W3eoMPH4a4VEDr/GOo69fW0nQ0m3hyNzsxpJJUEnMcURuYgjTApIE5WoUvVIBveRx8aH8KnHScnVjUl92HcHptnlXT4EmTDJmRjVKhqbYRHs99hI2pdlNoIV2mSPvvDE0dMIh4ycg3o5j8+s8gT4AmnmUh+iqbU9UZqnO/dUzswlqNQ8kTh/PUKb52Ya4hW3g44lgomZZiboeOmgYuuk6B7qs3vibcDrmDen/AhsHQ7RZkmjRbG2127J7ZOsscLABD9O2Ggo7ievQ7ci0ObiQJjphnZwkykG0tNvN5oh8SFgWEFEI+BbwKv5CYbgD9BktHJ8RgxEvTpxup6JBb7vWYmo82Q5pn1+2RIeh7aocOfMABHjLNasM+kxcxcm6sC5raKclZWLE35xBRIz+g3+yX6bjjfPITzcb1Pi+c6nCPfGshOd9tyytfYOiuDpEZgfbipMJVcffWbyqw9/T0qR38o1y8kamhY4WJkIENQMoQPz3nxf1lOoQL063xd+l2GF/vb8oE6eYhPjCXgKJXRfH/KhdXCIzIiOrVMa26GRxEYaalQw9PJ2vpkPYYvRTsYRTZxrl4Gw53hCc5t3eTnNDEp5PG1YSZ9eQV7VuOi4/AI5OfX4oKGTAso277LDYEWlTwDgxw1vEQlRGxmu+TEpURsh7k0QKDaPSIra8rd/p4ezovaA0WlRIXAwL6oOjEuMCoGi0uPpwPjseBA4LrqNTI5qADd0GiiEdWKeug4YsDq5d+pAxNsMakV8dCPl+D61JwGXSmjwtP7kgCZ1qRae3qu4C9U+A/zQZCSgfv16PCRQz2pkuN+8+lDGzy21ELNDBfkjHmZ2rMShjzkNf9tKJdqLq2QLfE7SgB8KlUOlwgS/FeEpzQphAnqq6LDhEV9ze+DYr7hD6L7/gs7rw3Phur2Hz5Idlvfxs4MkfPTswWqtlbyAB2FqGXab9aDM9auEJm85BQbdeDV/2zHpCPJIFfOEGa0gyC8kyJ0PSGxYU4FJYQ2Cx4Q1HRwd1gbQ/Y4C9hIfXQSu23t0DnLPYIa1FpIS1nRYrbXy6CCgPZZOit1uAzhzLRuxyVtQA0I3Y1sL24G5dQSdJOwhB3mEOkQIQl+RoQ++oHExRwcnRB0D/NCTEW7sx4cxtXwf7x3huswYpMBSolAfWmm9K3GQK4pMbkQCwagnymxNG7Cp4j3Z6Xd4TYD4HtOvmtPw8y20ltYlPZm9B+syQiX6fkZX8Og2r+sFmRxpb3/GxtacZ+bPNJzZA2K+rVaCE70G4PgIZqZgaNnbA7IvlYKeWlcHdVW9lHyXFu6QSG1cVcVDH1bwyV24T8LYzrhG9tbCyEq/U9uOaVgvfbeBpnddjYDh2tn3IDtQb5D2dTxdQrNScd0L6yu9021SIyzxRumgvhZSUu7L3wxaL8Vfd3/7J4b6HuJkhv84AlODnJvs2VO4Nd1W73jHcog74p6lXl1j85yJdET0sWsxGwpBx2Q1u9rEMQgARkYhR60Z3R3ihu7wKHq9a0GaJOZ+1kDBwyUhOwnbvZmBxvvc1TLD0u5rDSuLbBxay3hvFqJx3uMOlwGRco+rVz/uXS4TG9p9LishxS/OX0VIGQJM8kzfcFIwWcekMHHAt0IiQ72xjmNvvtvJ4G6/U8jIZ4bSIMyhj4p2TpFWgkdqxfrqs/uBFTupQ7E282wp1OkoOyP8MSkKKcxIZOeEHogASkC82ZQteQ49YAioThCFTMSwFlR0ebHpCXgvGAM+Q70eDJnAQvA52J/owWFAsSnGG0mX15H8zLdn0WzF855V85otFRH9Du6wenYq1du2Y6igXsVFUzl/jfIFdPjQQkYUuiHqFCKaDmpOaKGDnxK66KgPQov0OQrB8xmKGPdJaAOgyQCKHK9P4N7l76FRXuVXKsQYlwcM0MOxmcCwjc9EHkRQApa+rJ/WHkI7TNAKM2NhVRr4cqcRtXxRp/gr7hHPQS35ftCjQ3UGExWbRzj3BnRJn97gXvXoohOv9wxgyJVer0YWAmdRdtwHb6N4bCtdr3SQb1Yb6VAeq8bRWeVBfiJ7QzFNqNV8kUjz03H9dqQ3UVbp5pWuFzqfohg8nGWich/FuGNaOBrzMExOMSFg1TSCVm8sDcMUBTM/8TQ5QY3UvKBECIJt12s0kBMC63w4TRMgUYUGLGp5JiwuR4WGTMhQMQS3jXfo4c7naIfvQj7ciohWuxaxu9p36rIs2BHCaLNJ16j5IEFxNpUF2eMGNFS3kwNDLfepHP6h2bdJgeuGThJGs5g03mkyboUmzsiNleZMy+3E8HNzgNTHf/zzPz/8rH62F8dloRIpeQvlJEP7/NuKMA+AlZ3vM/ClrhOjo/3jp19bOBGH0H5MD2rWqoDnsNqaWMC3ggzeqrDBH9Lk8Nvq5poEL5X+zDAzbphAnpDh88QXeJiKIKeZvlXxYvp+d8Ja/9jqjaHRhZr0GBa9okE/JNuTjP/lXw09yjiolO8L3J8elkH4pA6z3XBSFdeTc3fYipd5ECurdrtcnIkHmR7AvJ9eYRpkodGrj6xFZm3fDg8222xknHSuma1l/O9K2Ubp4bTfX7NoyRImoXYQ+WOyNa2TkMy6AtjE+mOZy4uqMc1eOMl/tKlPU1gz/Tgc90Ul4zyw7X30SBj1iHzUELQT+e8itX0VQoPPinKe23JQbWW2gC1M76NC5DLZ8VhWxezLYvyTLGxwcxRpkCfmd85I1kyUkvxTfYr2xiEHT7EuwT+11J2NHs9QL2gKoraPOBSOlLhL9caVTLZlOetGcsasK8g/0UNSRNUkLdciPKZ1SVld0oRUk6MnpmVBkxGVp/AWZSfwQlc+xBg2xU1Ger7deuQcbLfTUz4Te4+Ut2I/IeWyd1ytL1euh4XxnMviDvk+23fFTUT6+xePlF920xM+u/Zp5G38Djb+ul4vfZJ+zPPjO9H2zHpS0sWY+kkEoY+x+b4tZ0KanlhOMw87+OCYHiak2NpxHWRPvpo8r8uamG4xsOXC/MV1JOmwLXGChWIQh2LfsWeuF8vSOuaTUD4dt0EuKsryuHuZGld+l0gP/F2BWVV6VYWoKT3SSp/EgX5L7vmO/mdVyDTr34Ihfwn8Z1nIFIvLciDiW7EuaDJLlqWvF8ti+bYTqccxOA+PWVnmpAPxPklyyxsheL6ykGBrvzrBJWh+BIHGLz1MRu+uDDF8iqemnGloehnIZEFTjl+lP3L35kp/nGh7LkzFlhmSmiImIsfuzmUpU/XnsnBuhy4LmahHl2X76NJlQRP26WJ+sCggPr2Z77yRJhqS6/2b4/abB6LZp7evQfZoO9BJ5pvdvz0W5TkPeTJpL/eBZPjqnf+xKfg9KlJirOLo4cEP/7K8TJY3KW154YMZaZsipiHH5zYZNW6AlWVMFF9l0Rc3Cx8MoySciOROTrjZI4BSynQU5XWyNDafoKFTFV1p01NeBc/i0ynaM+crfe5ZUex9Xez0lfgi8rIOPj6A9Gsit41k2RN+Dmkgy/WrH/ZZ7jo1zFxs70rRIM49OE5ZXFQVN6XDlNvzi4/LNCkfpGPPHuT2fPjx2BU3PelP1rtS45nfu+9QsRylCAEaf6ajFMVp1CchXbqgTMZavfrEo1wXlnaFTUZ4nUa7nSe+eVvWZHSZ/U8pZZqlUmGE6CEKi0BqO5xPWyp15TlP6vujPT/lj0mzie+Tf9AUPFlFwjQIud9M6iImIpdVMn6ChFripJFCBfISLtQCp4wZKs4nEYePhyD14SB1kfdKkdOSZ+9Z6kVNRFZ+suRvaJVFye+Vk21ptWT9bBTWdCfcLCwxPjepATzwLaee+2iiPYyW7sJ6P2UEX+Dmih/Cj6e48Ip9ErB34RvWssRTU+LU1M+Sl9g3+W1X5pT0Eynvz1m64iYkfSY8Ut6KyQgXswMvW2JaOf5pRsreAHPEU/cFphnxqubyt51RlTf5fkYYxEEacbcxlFKm29T6/mVR3njxuTf3sqtu0bzDntxdHP11EhdLP8RPZWnRNAfua6/zs8VVFzbpBpfW+bxsEmndb8p9Irkb5ZO4LO89aD+K/V7e2r49u2ASbkpKt9Fk+xnF8F9YgrlMlfsXXUET2vS8vIzPPXfWlCba0qanfBUw7xL1WR+CaUJcngYPD1Hoi3Zd3LuSZh8N0klPdUZIJ839UqxznuiD8Yu4z6KcO/AppUxG0QvDKQneikNifu2cTDNtipqMbHVZj3+usi6uuq032enKGqXatPLJu9q5egfqlXP4pF75yJTUj1HMXHvUJUxAjRmwjtOEqoLJIYrZmw1qMRMseR5CD8tKpRT/FGORyz17HsOukAmOezP9z/H4ImuLg7v9Oc286PjC5FUVMME18Gcer1J/gmZkTtHDaebkKXNCO9EU9vC0jZgLyKaICbZrvHyWmPRDxMnDR58JP/PsUsHsDnUJE/TTx0PCjbh1EVOQK5yGS64qYgpyeWRJrUah1xQyQVBREtIzY0td0mTfnA/ulOl0plNtjxycuaHpPKcaT2wPlRMYOt8sZ02l0qSgkp2dDsygWBe0rQqaYLJwiufcK9CnOJimd0eHo0izhL9S0wua4vP18zpZif0D05LiOU+yqphpXix7y3LB7NbyvbKmmAmW5uxHJSZ7SOKQMZu3KmASYnLfittJimLSphj/JMWrCE+5mBfFHu73xpx3eKp1YUFX2ARWjXb88yhdIZNZ1IslpyT4vfgleWEOMnVZL21Zk9FdPEb7bVGcF75hV9gEnzqjreCvCZVSJqB4DF7iM+6DC2Up24leXMjCVIg4e0yYk0mtnAmWYqdUlrJOnkR888J+A6YuLpfFJS+TPR5XCTP7vlLKZBTtaVTIPIHcKiyyg4QSTMayvJr2hNfljtFzkpcP0Pp5wKgsr+Q+6eNFNe3k6JV1Mu3ThxXp6kHhhjf3K1xJvCpyrxQ5EfkvaXA0JkIjMt7V5UzbDf11wImoJkdPTJPjlESr7+ReqFZFTUn2EDyJciRmrg6KYvK6mEnW++cx88tZUYaIp/l6lnmgl01H7xT7IFiWMhXF+yB82ibmzH54ikopk9zrKAaM9O1WcJcpTUmpmGip0gB8T9mn2JqiXtKpzrI1CNX9tW+CuZ/SFFfdYHsS0+yoNCjVpSRvpKuD8VOTlnOp1em+YM1+MbQqUM6kstP9U1XgtMR/D/Yn7ipM5f3clDdtxPgacQ9qqlHjMZrorGZ6ilerr4vkcAhibpQrBozsMWyLmuB9rOjPIuCfXV7yiFbFTLUnI9/GS6Nn/lM2x7qUidYAt8ckzT+/bD2+y5vKIh9etlO/j9+nzrd1n/lUdk+Ovs2eHN/F6slRxPXKnMdYFpS1BU2w17hPMuGFaVnSlFSbZ0Xkc2kxn29TnFCKm+KK637vibAsalqysku0ZLnnaaVx1bKmc4jvQXbw7BQvRZHT21oj7sHeGuvpvpx5tLcsbnpbv3wpd6SXcihJirZNmVO3l105fpcDSVveNLSTo1fWyfE9SMst0yTkpmeprZzVJU1lX09Mk+OUROX0p3YC9vytytf1oJY2FeXStlLPE+nSxFlb3kRXiplzzLqIicjdiiz6m7vBLwtKm4Im+LZTzbCZH3baQqZ4NEdufnno+VVB0/X8anrugWc5OZ+MZlnyMk1emft8ZTnHupypmn19imPB7ORVSXlT0kQN74WpLGhColXRZ0Ee8HhW5WyrciaYtz4XEtyDaU0ZfuiZkplXjwwhaFaCJS83Ice+0O/odOUK2oj85HWlrJ6OT0iu8iBnIHfTIKYc71mEnGPcTQaZVFwlQcki7ganpQ1XOYzIEw5RiXEHn3QWlNNNoFes8Km/e06REXN9u6kQk3urXMZk80aSQaXvNnLB5+tGUSEl6DYQomfkRtGipOA2sCLn3EaRoiTZNpAiZ9V2kxqTRltlNTpvNoIWKVH2gBQ9MzaCEi0V9oDTiNzXCFLUZNcDWqOyWyOJcXn5pUVKWN0bUYgZqpFExvLwNMbjk05rozwxyzTSFti00kaDkPJIEwjhHymy0iK+SgRM2empobWZ+8hc0G5SHpI/qyR9ZXsGmxmZmLjXspQsxPBaA5fAub/cIGRshqb5lBTN+lyfnJMZMWiMScI8GDlGZ112E8SnWVYZEfMqwxRQLwb0GeCfB4AJoNMl9EnQUiPARMYF5xHZjxF+Qd41IOY3BoYFZEJjbSygZDBGwNO7BjVHMYIEuXMQsxAjKIzqHiPyDIPDGyGxcG+Io2YSRlGhpd41MBqRYhckxkgO3GPIzQaM8Cxq+t+Bg43K9+smhk3wq3IhZfSF4Ueg+wMnBxxaVl6YADYNb58DKe8u1I/QWUX0TkNLIoIjQUilayJDzZ1LI0VJlutiR86OS6NJTofr4jou/y2OMDbhrYkfKcMtuHQhp7TtrVrG5bAFxzdy0treqDYuSy2NFvqOvYsb7WI90JwjEs9qzTk206ybFj21rEpqZC5ZFCV8NkgDI2LmRxQhqqdT88HCE15yAtj+hHdcxlcKMWqKVzvDUTldoQkvLomrPsclZG1FwNPTtA7YjMzLiic3rusxMq/iqVFSrdrIkXOr4unR90tGZE9F0CGkSx3QoeZHRdIZuYUxKgMqghIl5emAEfm9WSQhdFJTIyNaFlMsJVLaUjMvep5SCjlCYlI7PeoD4FiC+NSjZm7EXKNIWujkokZStGyi0LeikQt9er5QN5HoQEsQqnJRV1meovioFKAqp/E5P8GPxdgkn72PxKSsnrilOjmNp2nNPi5vJ44gIVGniRo1MyfKxUcu3Gttv8v2kck2rY7udW08Kp1mf80+CTFawkyN0ogMmfD6D58Ss7/eI+bARNoFn/TSaBtilksaKVx+SBcvQkpIN7UxiStVYqMzVVJo0T8Bj85FSaFF/j4yNtukmxQhvaRKhppPEkViHAevFNApIg1EaDkhUXRISSANlOhZH1G0qGkeDcxG5XUkNCGL3KjMjW5yyFSNKhlKbkYAnNq98dkXgZBHSLeoxTpqfkVg4opPqKjNWIkZFN0k8CkTVQ7EHIluCqikiCo6PgsisOgjb654GnNxiQ0118ffMXdDo1IXqsj4XIWAsanTMHw2QmAvhjql8TWJwSYY1KxNySgILELHbSD63TJEJwlUKfjcVEWmAdQWcIS8f4DPIxP9aW5PyewHweNS+enwhNx9EDw2WZ9OgJSdD+iCtHR8Wk8ckX8PR4a+9BuRYQ9Hhbzco+fQA4ggk+ZpHChZ8oCBmJQWTxuQ6XnwgGEKmfhOG6kome7AXVRCarveDio1lx308QSfvE7/dkLMVgfuAKLT0/X2/2j56IDFCv3qmr/rargUc1rnxOeUA6HRSeR6BGhZ49w06GniVDIj88IBlkEngtPsQsv8hrLKOGt4pYBP5mZgQszehiJESNdmYETNzwZs0uMTsmk788QMbAAJfMo1jQQxxxpAgpJUTaNBzqIGTIpHpE3Tpsdj86QB9sEnRtOsQ8yEhiKBTn1mYELLdQbQGZPcTOM0OpsZtGs7In2Zvoc7Nl8ZihgpQZmBFz0jGYYWPQXZkNrInGMIetgkYwNOpKxieIdnuLovMpREYToXcmYwaEFCSwWmL0pG5P4C5n+EZF/aDJCa3QtcH+HSUfUWR4TsU9BwMYIALf0VsLmJT8mlbW8Sc3C5SRCSbqkkqFm2oB5CSquldxB6Hi0cGWziLBMbUqYsHB1KaiwTJXIuLBwtSvIrEy1ytiscLVp6KxOxEfms8NTQCaxszGgZq/C9D5miytYDKTmpwP1MUhKq3r4mPeuUmw4lzZRKhZxXChw0sYmkesMmKXMUYp43ImfRYMI3NksRaKMxyaB69vr/abu3JkmO61zTf2VM2pcQdvrZXXccitKmhicjsDVmQ5PBQBCUIJFoDtHQzLb581O5VhSR+cW7vLKqm3dARuWK6MwvDumPH968+tPLj6Uf/NG9fX2n/cG9bkGn22N6wwpOL7RzvG7Jprsmjjes0fTIBfJ1izKdr5BvWIXphc/olcsu3X1Ib1lnaX84r15Y6fZ43raS0mNf22uX8qGv7k3r97z8eb16cST9zN62GtLLLdEf8pm9eb2j/WG9aYGj2+N6+4pGLx/Ya5cw0uN605pFD31ejy6sAZ/Uq9bSeOQzeuuxvHLdoZcO5dULDd0fz9tWFnrkoF65lND5sN6ydtALDywPLhZ094TymtWBHtj9w8sBnQ7idev/vNDO+vCCP3eNrK9b4eeFO/6rlvS5u9+/fg2fRx7Q3nIkr16l54WEvGZZnruAvHodnke+nIeXszl/O69bwOaBr+dtx/L6tXRe6IHymsVz7vqhvHq1nBeeax5dHufuYeZV6+HAAayRWv7LMfzD11//6VdPt9ZvbqZNu04R+HwMN9tt//sdb3bkd5HP3j8l64/ffPtvP//6/b+/+93ThfT7P7zHHW/+/rUHcvOR/+bL7/7Xt1/99L0vHPOvb9rz337xxfXPrdI3R6WXvo9NSa92c8D1hy7P33739E95PsY/vvvd9394Okp7FT6DHyr0mxK/+OznTz89v/y3r68zR/7jn9/98Z8/++Uv/lLz999/+5XNanJU5T/ff+B+lA/s/fN3r9i3//Hr9lx+iNvTdfT9u99+//tfffnVf95OFPdfX/75my9/+8PHKH/3uv39kKt/uDv2v+zt62+//+Pznu7/5HU7Sj+sWvWLX/7q0fJ/++1muRd6F+/xp7/46ecP7/Kbb7+Je5Y8vs9f/fKmZfOlff7p3ebp7vF9/vhnv/zsJw/v1G5LH2GvP//RL376jz/57PFP+I9ffvvN77/edOJ+fN//8KPPf/TF57/84qc//9XPfvSLxw/hegv84v27L45R8x/rSP7x17/8+duO5fdPF6qPeDQ//tlPfvTrVyTh6y/jG8Dje/2fv/j1T378y3/6xU//r5/8w8M7//7b6/pf//bt06+K+Jn+hWO4uWz+8DfhFfOHP/m79Lqr2O3ie7Cjm+cf3dMrr5aX/MMtKJowGXfxt9vZkfUt0S55Qi/e4WYCr0d3Fy5OxnvcL0j2+E55EbJon6+4E4W7DH5zB7vc/c5+dJfRjwTe5faXwWaXjz+TH0UefSbfnYDHYfwjt/L6jn74m1fu5+5Xjk2l8PBO/vYvf7/7HG+OPhou+PXrdvuXv/+w3f5en7Bf3PH1Hf/x3aZR+tFdv3/3uh2/f/dRdvtVOBse7/aF+e9e80HrSfLQZ/2nv7zp9Qdwc/7EbRm+ZfsD7e4i8w024d1U2d0kjsMISn/3/nfvvn//316q73/2+D7uW4qjbkm3e9j3P9rv4PlJe7uD/eP4+VPKP9T/6bXil08/Rf/ra1kU7Sj2309/sf1yW/rhUn5dOO79n7//6v1Nh7Z91b+9fwv/e86HHJLj//391zdjRV/Y9w9//sN+33/3u7/75ru/u/5Q/vqr9/aU+frj+MN3d0uWvXAYf/huO+TrFXt9fI9v2tvdyfbnP3318Odsfxp/xv/b8cI33/7719cz520f+vfffvnn//XoIT3/8V/7oO6maHnhmE5zs3ycI3g4FTJBy0fZ+2kagxeOAecv+Djx+NNrjgMmMfgoR/H+NHnNCwfyHmet+SjHcprB5oVDwalrPsqR6DQ2LxwIzV/zUY7jq4fz8dVfIRu388q8dKr+P3+F/d9MtfLSBf2PH3/v9/OtvHAA54lWPs43ABMKvPRNBDMJfJxv5G5WgZe+lNN0Ah/nKgFTC7x0oQjmFPg4n8lpfoEXn/JoYoGPciznSQZeOBaeXeDj3Fle8cR5et78OGfwdw9/JzrPwMfav8w58PJRwGQDH+VYookHXjii3YwDH+czktkHXvqEYNqBj/n5vPJz+fjHcRpj/8KB4OD6j3MkOtD+pSOhEfYf50jOo+1fOhYeZv/WowmaKz6T/uhwUMeffOwGi9uyr22xeD7qtzdZ3O39A9osXjiS+66GLx3HvpPhdq+vaUa4/7d/pHaEFz6IFxsS7g7q47UkvHBYLzUl3B3VW9sSXjqG7dPo/RG86Vn0hf3vm7ju9v+Hv8b+H2nOuDuKD2nPeCmmLzZo3Of0zS0aLxzHQ00ad4fyQW0aLxzNI40adwfzIa0aLxzLA80ad4fyAe0aLxzJvmHj/vb218jIC00b9xeOt7VtvHSf3f5Gu7/NvOnX2Qv7f7F54+4Q3ty+8dL38FgDx/338WEtHC99Ly81cdx/NW9t43jpqvFYI8f9hePDWjlefC58oJlDngw/oJ3jhaN5qKHj7mg+qKXjpTvOC00d9zebN7Z1vHQ+7xs77s/mt7V2vHwELzd36HG8vb3jhaN5RYPH3TF9hBaPlz6nl5s87j+lt7d5PPYZvfaz+SscySPNHvc/9z6g3eOlY3mg4eP+WD6g5eOlY3mo6eP+aD6o7QN+Hd80fvjAlmNUix7Q7cbHu9/85F9+8ovPv/jff/KjH//yF1/8+if/9NPPPv/Jr2964IbVfSjOF7+1xpov/jKmPu6rc3fwjxzN5z/67P/49U8++58/+/y1R3O9xv/5eXDNq47m0cag8wE80gz0yEdg/5D/9ui/+IN29Z2H7ZGdfffCBA6P7O4/3v32kV09/dkH7eYr2/rInr56PpHevjMP3CM7++1z56q37+waax829cgO334S3H+c/PMZT4DdOjbBvu4fcv/01f94B42f5509/eW/v9uMAon21nOq+8ZG3NcH7ueb73787ttvn9tiX9rfN999dfPXb/80jyqPfXXHX759b7/7y2E/sMO7P377Pp9+VPzL028uQoDzPp/++L/+8scftM9fPv3Quw57PP9Oxb2+u/nzD9rv8XDw4G6/++GvP2ivzjEP7vS3f/njD9rnP7/77YM7/A//y7fv7T+/+cMf/vndbx/Y2/Uv33Bzkp/xNgDlwX/f8dcf/G+0Kj///Gefnea42tzxr+/54/s/fPfipFYPH8H/+U+v3b9Po/Fx9v4Pv3j1P/93337Ef/3/+PzzX732AP79/fuXZ09+1RG8+jO4HsJH/BQ+//GvPnv/5b99/efXHsf7r/70nb3xoxzLaUH33UXmhSXcHzvvX7HHB5aNf2SfvFr85rnjoRXiH3oWiBeG3zwTPL4Y/ENPP7oG/Obx56V131/xaZ8WLn/x835xsfKHzq14GfDNefX40t+v/tYfP4pXrY3+yHH84d279z+C9qPzrq9/+eWm28LDe/vdIwG3vW3W/Hp0b74y7oM7/P75jz9sn7Jm8X6fLyxS/Og+dXnd/U5fWkn3kb2eFqqOd/ni4tSv2N/ju/sYe3v4q3xsyelX7BlWmn5x7w+sLv2KI+BFpV88iMcWkn71d/Dq43hszehHjuPdK37Cfpzfr989/uP1o/xy/e3DP1s/xm/W/3jsB90H/5L75qCCz/7SHvviU8bxjje24OLeg4Gi8c7f1vgpHTYe3uuf//i2/d1M3fT0p99dz8/ff/Nv/3j7GPPDrE3yF1tx4cL7oo8WvP4c8nd8BwVvtm4L3o7tvv10fhyuaX7+q8fR6fmK8oq6f3vznpe/1OOwg93/4d/f8QKy0b7/8HBb8ws7vk4/+aodH2/40B1/9eUXX3395/ff/P6br4LZCqIjOL3zgw/ljcfxUQ/iOv3+U6Uv/pMXyogO4v5tH3oQ76NVf6Ld75f72e745oLxqxcvbfIXONHRS6X3ZR8v+bPt5e1mK5f810+ePtjfff3//s3f/39/89z6//d/kz8tn66nv/z9N19fmzr+/je+t6e3vvvjH/3R6nfvvvre/vNfjz/7l6+/smegv/+N//V/v/zNJ7+5fDLap/1S//VfP/nN85ttg73wXOOHV+yN6en/0ic9f9pTuntjOr0x3b0xP/1f/mRcPq2r370xn96Y795YojeW0xvL3Rvr0/+VT0r5NPVx98Z6emO9e2OL3thOb2x3b+xP/1fpUPvpjf3ujePp/xq9cZzeOO7eOJ/+r3/SL5+uev91zNMb590bnxL0m/FJW5+2+/et0/vW/fd/jcP8pLRP10UCcI5Okuyk8L2Qnvv4pGso1idtfprbvH/vOUDpPkGpRN9LOmco3Yco1egTTucYpfscpWs6Ep5m6RyldJ+ldE1I4lPtHKd0n6c04jefI5XuM5WuSUn5k3r59CLpSOdYpftcpWtcUvmk9qez5/6952il+2zla1xSpaPO53Dl+3DlFL/5nK4sF6drYFL7pKVPe273b4br03288jUxqVM28zlf+T5f+RqZNPDCeA5Yvg9YtoBNClg+ByzfByxbwBbu+RywfB+wPILrRz7HK9/HK18Dk/GsyOd45ft45WticsKDPucr3+erXMI3l3O+yn2+yjUx+emsGJ/2ke/ffM5Xuc9Xsbvf01kxP73Mdf/mc76K3ADtDojJLnAPvM9XuSYmt096fXrzfTjLOV/lPl/lmpjc8c3nfJX7fJVrYvLAN5/zVe7zVa6ZyRPffE5YuU9YsYQtfPM5YeU+YeWamXLBN58TVu4TVq+ZKYneXM8Jq/cJq9fMlEwnRj0nrN4nrF4zUwq++Zywep+wes1Mqfjmc8KqPGbZc1bDN8OT1n3Cqj1rdXzzOWH1PmH1mpky8M3nhNX7hNVrZgpeO+s5YfU+YfWambLwzeeE1fuE1WtmKl4A6zlh9T5h7ZqZmujN7Zywdp+wds1MxYS1c8LafcLaNTMVE9bOCWv3CWv2CIYJa+eEtfuEtWtmKiasnRPW5GH+mpmKCWvwPH+fsGZP9Jiwdk5Yu09Yu2amYsLaOWHtPmHtmpmKCWvnhLX7hLVrZhomrJ0T1u4T1q+ZaZiwfk5Yv09Yv2amYcL6OWH9PmH9mpmGCevnhPX7hPVrZhomrJ8T1u8T1q+ZaZiwfk5Yv09Yv2amYcL6OWFdfjJeM9MwYR1+Nd4nrNvvRkxYPyes3yes22M+PVX0c8D6fcC6BQzT2c8B6/cBG9fIdEznOAds3AdsXCPTMZ3jHLBxH7Bhj/n4sD3OARv3ARvXyHSM9jgHbNwHbNjPSIz2OAds3AdsXCPT6/XXyaXct0iMc8DGfcDGNTIdoz3OARvSLnGNTH96AByfpnIfkgFNE/cBG9Y4gdEe54SN+4SNa2Y6RnucEzbuEzYv4Qc2zwmb9wmbljD8XTTPCZv3CZvXzAzM9jwnbN4nbF4zM/D3yTwnbN4nbF4zMzCe85yweZ+wGSdsnhM27xM2r5kZhR565zlh8z5h035I4mV7nhM2pfXrmpmB2Z7QAHafsGlNYHjZnueEzfuErWtmBmZ7nRO27hO2Uvhpr3PC1n3CliUMT4x1Tti6T9iyhGG21zlh6z5h65qZeaFGw3PA1n3A1jUyM9GFZJ0Dtu4Dtnr8eZ0Dtu4Dtq6RmRn3fA7Yug/YukZmFvy8zgFb0sR6jczEaC9oZtV2VmtoxUZh33b/9pvXjvdbYyvG27fp+6W99XJNzsSE+zZ9v7S5Xq7hmZhT36bvl3bXi6UNHzF8m75f2l4v1wwtbny9QOvrRZpfL9cYLXzQ8G36fmmBvVyTtPB67Nv0/dIIe7mGaeETg2/T90s77OWap4Xp8236fsmftd0vvLYmauo/tfVf87Q4f9jcL/nzBn/OHzX5a5u/teMvzh81+2u7v7XlL84fNf1r2//R+M8BpOZ/bf93ALhwAokA1AAcAS4cQWIAdQCHgAtnkChALcAx4MIhJA8QEEguAhdOIZhAEhRIrgIXjiG4QBIYSC4DF84h2EASHEiuAxcOIvhAEiBILgQXTiIYQRIkSK4EgUOBEySBguRSkDiJYAVJsCBl5yhOIohBEjJIpgBPpygXgCQKGySTgKdzlAtAEoUOkmnA0zmKBUAPkvBBMhF4Oke5ACRRCCGZCqTESQRFSMIIyWQgMRclkIQklJBMB1LiJIImJOGEZEKQ2H4SiEISUkimBClzEkEVkrBCMil4Oke5ACRRaCEVx1FOIuhCEl5IJgZP5ygXgCQKMSRTg6dzFAuAMiRhhmRy8HSOcgFIolBDMj14Oke5ACRRuCGZIFznhsACkEQhh2SK8HSOcgGCeUmiScLTOcoFIIlCD8k04ekc5QKQROGHZKKQmHsSCEQSgkimConJJ4FCJGGIVJ3qOYkgEUkoIpkuJKafBBqRhCOSCUNi/kkgEklIIpkyJCagBCqRhCWSSUNiBkogE0loIpk2JKagBDqRhCeSiUNiDkogFEmIIpk6JCahBEqRhCmSyUNiFkogFUmoIpk+JKahBFqRhCuSCURiHkogFknIInXvOcJJBLVIwhape+8RTiLIRRK6SKYRiakogV4k4YtkIpGYixIIRhLCSKYSickogWIkYYxkMpGYjRJIRhLKSKYTiekogWYk4YxkQpGYjxKIRhLSSG4aTEgJWCOJaySjisSMlIA2kthGMq5ITEkJeCOJbyQji8SclIA4khhHcuRgUkrAHEmcIxldJGalBNSRxDqS8UViHkrAHUm8IxlhJCaiBOSRxDySMUZiJkrAHkncIxllJNaeBPSRxD6ScUZi8UnAH0n8IxlpPJ2jXACSKAaSjDUSy08CBkniIMlo4+kc5QKQRLGQZLyRWIAScEgSD0nTe9ZxEoFEkphIMuZInZMILJLERZJRR2LQSUAjSWwkGXekwUkEHkniI8nIIzHsJCCSJEaSjD2ezlEuQB06JYlGH4mNJgGVJLGSZPyR2GkScEkSL0lGIImtJgGZJDGTtBx+OYnAJkncJBmFJGaXBHSSxE7S8n6enETwkySAkpb39eQkgqEkQZRkLvJ0jnIBSKJASjIbeTpHuQAkUTAlmY+kyUkET0kCKsmMJDGpJDCVJKiSDUnSxCRmUJUsqpJNSRKzSgZWycIq2ZgksatkcJUsrpLNSRLDSgZYyQIr2aAksaxkkJUsspJNShLTSgZayUIr+eI9jzGJGWwli61ks5LEuJIBV7LgSjYsSawrGXQli65k05LEvJKBV7LwSjYuSewrGXwli69k85LEwJIBWLIASzYwSSwsGYQli7BkE5PExJKBWLIQSzYySWwsGYwli7FkI5PMxpLBWLIYSzYyyWwsGYwli7FkI5PMxpLBWLIYS07eG56TCMaSxViykUlmY8lgLFkHXRiZZDaWTOMudOCFkUlmY8k09uI0+OIaLPb9jMMvJIgmJpmNJtMQDB2DYWKS2WgyDcPQcRjZg8hJpqEYOhbDxCSz0WQajqHjMUxMos8QcqiDMnxUBhtPpnEZOjDjGJnBZwKNzRBhycfoDOxskUFYsghL9hEabDwZhCWLsOSyySEASxZgyT5Qg40oA7BkAZbsgzXYiDIASxZgyT5gg40oA7BkAZbsgzaCIUUALFmAJfvADTaiDMCSBViyD94IxgcBsGQBlmxektmIMgBLFmDJ5iWZjSgDsGQBllzj/l0ZfCWLr2TjkszGlMFXsvhKNi7JbEwZfCWLr2TjkszGlMFXsvhKNi7JbEwZfCWLr+Qa9/nKwCtZeCWblmQ2qgy8koVXcvUc8pkAvJKFV3L1HPKZALyShVeyaUlmo8rAK1l4JZuWZDaqDLyShVdy82FrfCYAr2ThlWxaktmoMvBKFl7JpiWZjSoDr2Thldzinq0ZdCWLrmTDkszGlUFXsuhKNizJbFwZdCWLrmTDkszGlUFXsuhKNizJbFwZdCWLruTuQeQkg65k0ZVsWJLZuDLoShZdyX1zZwZcyYIrufsQSj4TAFey4Eo2K8lsZBlwJQuuZLOSzEaWAVey4Eo2K8lsZBlwJQuuZLOSzEaWAVey4Eo2K4m+BMih2Eo2Knm6UH/Sxqep6ohjyKHYSjYqiQqArWSxlTw8h3wqga1ksZVsVJIZ6TLYShZbycODyKcS2EoWW8nDx/PyqQS2ksVWslFJZqTLYCtZbCUblWRGugy2ksVWslHJ05Ueh+qDrWSxlWxU8nSl5wKQRLGVbFSSG3auzmArWWwlG5VEBcBWsthKNirJrHwZbCWLrWS3FZpnIYOsZJGVbFCCffkzuEoWV8kzHAqQQVWyqEqensFxnWKiliUFIIOiKtlVBaeoyIAqWVAlT4/g/KTlT1eSaxmgShZUydMjuGhYQQZUyYIq2Yzk6Ub5SXv6AqtMOQGokgVVshnJ042SpibJgCpZUCWbkTzdKfEsAlTJgirZjCQ6jwFVsqBKNiOJzmNAlSyoks1IcucmA0CVLKiSl09wUGnsUgZUyYIq2VGFJw4BU8liKtmI5OlezwcAQRRTyUYk+Yq09BFAEMVU8vIgDkwymEoWUymXzV25gKkUMZVy8SBOOoICplLEVIoRSeYhewVMpYipFCOSp6cFnGIDTKWIqRQjkqenBf4nwDwbYirFiOTpaYELwFwbYirl4rNt4KlQwFSKmEoxInl6WoBregFSKUIqxYTk6WEBJ84AUilCKsWE5OlhgT8CmHpDSKWYkDw9LGABIJUipFJMSJ4eFrgATfIiQTQhCQtAEIVUSirxjbEAqRQhleKkgjfGAqJSRFSKiwrfGAuIShFRKS4qfGMsICpFRKW4qPCNsYCoFBGV4qLCN8YColJEVIqLCt8YC4hKEVEpLip8YywgKkVEpbio8I2xgKgUEZWSc3xjLEAqRUilOKnwjbEAqRQhleKjVvDGWEBUiohKcVHhG2MBUSkiKsVFhW+MBUSliKiUPOIbYwFSKUIqxUkluDECqRQhleKkEtwYgVSKznflpBLcGGnKK53zykkluK/RtFc675VPfBXcWWnqq9PcV35rDv4JNP2VBNFN5dpvhgpAEnUOrLK7NdM0WDoPlpsKD34uNBWWzoV1TIaFv7gLTYel82G5qXDHm0JTYumcWG4qwc2dpsUSUyluKsHNHUyliKmUmjY3d0CVIqhSHFUmX9EAVYqgSnFUiQpAEgVViqNKVIAmY5MkOqrwmPACqFIEVUrtuwKQRFGV4qoSPJ+AqhRRlVLDCUsLmEoRUyluKpNnpANTKWIqxU1l4hQwBUyliKkUNxXuflXAVIqYSnFTmfyABKZSxFSKEQlOT1tAVIqISjEgwUlYC3hKEU8p5iN58fx4ACpFQKU4qCycI68AqBQBleKgEhWADAqolBZnEDilCKcU55TFUxIDpxThlOKcsvjhDDilCKcU55SoAGRQOKU4p+AnAJpSRFOKa0pwLQZNKaIpxTVl4ZS8BTSliKYU15SoAKRQNKW4pgQXMtCUIppSXFO4/14BTSmiKaX7JJXYAlyAU4pwSnFOWXwpA04pwinFOWXx4yVwShFOKc4pUQHIoXBKcU7hDoAFOKUIpxTTkXLhhzvglCKcUkxHCncALMApRTilmI4U7gBYgFOKcEoxHSmXwh8iJFE4pZiOFO4AWIBTinBKMR0p3AGwAKcU4ZQyfMpUjjJwShFOKaYj5cIXFOCUIpxSTEfCApBE4ZQy8+Z6AKBSBFTK9CROvKgCqRQhlTI9iXwuAKoUQZViRlK4C2EBVCmCKsWQpCSeHxlUpYiqFEOSkvjOCKpSRFWKIUlJ3HACqlJEVYohSeFZwAuoShFVKcsn8OVzAVSliKqUtWvMBlUpoirFkKRwH8ACqlJEVYohSeE+gAVUpYiqFEOSwn0AC6hKEVUpy5PIUQZVKaIqxZSkcB/AAqxShFWKKUnhPoAFWKUIqxRTksJ9AAuwShFWKaYkhfvwFWCVIqxSTUkK9+GrwCpVWKVefDppnpgZWKUKq1RTksJ9+CqwShVWqaYkhfvgVWCVKqxSTUkK98GrwCpVWKUerILNTxVYpQqr1IsnkWd6BlapwirVmKRwJ74KrlLFVaoxSeFOfBVcpYqrVGOSEswrDq5SxVWqMUkJ5hYHV6niKtWYpATzi4OrVHGVmnxyc44yuEoVV6nGJCWYZxxcpYqrVHOSEsw1DrBSBVaqOUkJ5hsHWKkCK9WcpARzjgOsVIGVak5SKj4rV4CVKrBSzUkKd6KrACtVYKWakxTuRFcBVqrASjUnKdyJrgKsVIGVak5SuBNdBVipAivVnKRwJ7oKsFIFVmr2qfY5iQArVWCl+lgV/tFVQVaqyEo1KOHpWivAShVYqeYkhTvRVYCVKrBSsweRTwWAlSqwUrMHkU8FgJUqsFLNSQp3oqsAK1VgpZqTFO5EVwFWqsBKNScp3ImuAqxUgZVqTlIatgFVgJUqsFLNScICtOqDBPFYWQR/MlWAlSqwUs1JCs+1UQFWqsBKNScpPNdGBVipAivVnKRwL7wKsFIFVqo5SWm4yEkFWKkCK9VXG4kKQBJ1wRFfcaThSimV1hzRRUd81ZGGwFZp3RFdeMRXHokKQBJ18ZFjtAqtrFNp+ZHT+iM+RoAW16m4Aonk8FiDhG+MtAqJLkPi65BEBSCHuhSJzwWGvTYqLUaiq5H4WBUeOldpQRJdkcSYpHRcDaDSoiTiKtWYpPB8KRVcpYqrVGMSXN+tgqpUUZVqSFJ4upUKqlJFVaqrSscW5QquUsVVqkFJWABiKLJSm8ewUXeBCrJSRVZq8xgGi+lADEVWqkFJ4flaKshKFVmpRiWF52upYCtVbKU2zyFfS8BWqthK7ZdNAbCVKrZSjUrKoK7NFWilCq1Us5LCk/hXwJUquFLNSgrP91IBV6rgSu11c0cAXKmCK9WspHBXwgq4UgVXau+7ArQykwTRcYXvCGArVWyluq3wHQFopQqtVJOSMvhcBlqpQivVpCQqALRShVaqzwLGdwSQlSqyUofHkB+NQFaqyEr1ScD4hgCwUgVW6gEr2B5eAVaqwEo9YCUoACkUWKkOKwM7gFWAlSqwUh1WeNKgCrBSBVaqwwpPGlQBVqrASnVY4c5PFWClCqxUh5WgAMBKFVipPk6Fz0RwlSquUt1V+EwEVqnCKtVZhXtvVWCVKqxSnVWiApBDYZXqY1WCTwBiKKpSZ998ApBCQZXqqDL5hgKoUgVVqqNKVABSKKhSfahK8AlACMVUqo9U4U8ASKUKqVQTkjKRlSqQShVSqU4qUQFIoZBKdVIJbupAKlVIpTqp8EIiFUilCqlUJ5WoAMRQSKWuTYeHCqRShVTq2vxGAVGpIip1s5RKBVCpAirVV1PBrmsVPKWKpzT3lIm35Aae0sRTmg9T4X6gDTyliac09xSefKyBpzTxlOaewpOPNfCUJp7S3FN48rEGntLEU9rFY8hrGoKnNPGU5p7Ck4818JQmntLcU3jysQae0sRTmnsKTz7WwFOaeEpzT+HJxxp4ShNPae4pPPlYA09p4inNPYUnH2vgKU08pbmncOelBp7SxFOaewp3XmrgKU08pbmn8ORjDTyliac09xSefKyBpzTxlOaesvDRqIGnNPGU5p4SFYAkiqe0tOnt0MBTmnhKS5veDg08pYmntMNT8OGogac08ZRmPFK5/1UDT2niKc14JCwASRRPacYjlTtwNfCUJp7SjEcqd+Bq4ClNPKWZj1Sewa0BqDQBlWY+UrkDVwNQaQIqzXykXvDe2ABUmoBKMx8JC0ASBVSag0oQZQCVJqDSHFSCKAOoNAGVVjyJ+GuvAag0AZVWPInYnbIBqDQBlVY8iXxFAlBpAiqteBL5ggKg0gRUWmm7ApBEAZVW4mH1DTyliac045Ga+GwGT2niKc14JCwAQRRPaT5QhR9zG3hKE09pxiOVO8E18JQmntKMR+rThwjNbw08pYmnNOORymsdNfCUJp7SzEcqz4PXAFSagEozIKncCa6BqDQRlWZAUrkPWwNRaSIqzYCkpgGtsA1ApQmotDo274ccCqi0OjfvhxiKpzRf4v3ahY5SBDHUVd6PZd65AC30riu9+1Lvia8FtNi7rvbuy71nPhVpwXdd8d2XfI8KQAx11fe2AeZGC7+fVn5v8eUM136XFDqooAU0Wv5d13/3BeAzNqI2WgJe14D3ReCjApBDXQfeeKRyN8ZGS8GLpzTjkZrxZ3sDT2niKc18JCwAORRQaT1vLsgAKk1ApXXPIT9aAKg0AZVmPhIWgBwKqLS+me6mAag0AZXWN/dl8JQmntKOwSo4aKsBqDQBldY9iI3OBACVJqDSuuew07QCDUClCai04TnkpzMAlSag0obnEFWsgag0EZU2/HqI4/YaiEoTUWmj7ApADoVUmglJ5a6kDUilCak0E5Ja+FQCUmlCKs2EJCwAQRRSaWMzfrQBqTQhlWZCUgs25TYglSak0kxIwgKQRCGVZkJSuTdsA1JpQirNiKQWvpyAqTQxlWZGEhaAJAqqtLmZZaQBqjRBleaowt1FGqBKE1Rp05PIPzhBVZqoSpt9VwCSKKzS5i6JwCpNWKVNT2KnGS4asEoTVmnTk8iXNHCVJq7SlieRf3ACrDSBlbY8idwYC7DSBFaaOUnleT0bwEoTWGnmJJW7FDeAlSaw0sxJKncpbgArTWClmZNU7lLcAFaawEozJ6mVXQFgpQmsNIOSsAAkUWSlmZTU2vDmCrTShFba2t2dwVaa2Eo3KqkVG1862EoXW+lGJWGBcxK72Eq/5Pgz6GArXWylX0r8GXSwlS620i+eRDydO9hKF1vpl7YrcE5iF1vpl777DM5J7GIr/TJ2n8E5iV1spV88iXhF6mArXWylG5VU7tndwVa62Eo3Kqncs7uDrXSxlW5UUhs+4nSwlS620o1KwgKQRLGVnjyJnAOwlS620pM331DjRQda6UIrPbVNjoBWutBKNymJcgS00oVWuklJbfiQ1oFWutBKNymp3Lm9A610oZVuUhIWgCAKrfTsDTjYDNiBVrrQSndaCb4FoJUutNKdVoJvAWilC610pxXun9+BVrrQSndaaY26cHWglS600p1WuH9+B1rpQivdJwHDrisdZKWLrHSXFV5Ls4OsdJGV7rISJBlkpYus9OxB5EsqyEoXWenFr4h8SQVZ6SIr3WWFF+PsICtdZKW7rHS+IoKsdJGV7rISFYAgiqx0lxXund5BVrrISvehKjTnTgdX6eIq3Zyk8nR8HWClC6x0h5WoAORQYKX7QBX+xdYBVrrASjcnwf75HVilC6t0UxKcdagDqnRBle6owp3rO6BKF1TpjipRAcigoEp3VOHVVDugShdU6WYkHCEglS6k0p1UeDrDDqTShVS6k0pUADIoptLr2EQIUKULqnRDEo4QmEoXU+lGJEGEIIEiKt1FpeNIqw6i0kVUuotKVAAyKKLSXVSiApBBEZXuotIRhTqIShdR6a3uCkAKRVS6CQk+WIKndPGUbj6C00514JQunNJb3AOxg6Z00ZTumsJjQzpoShdN6a4pUQHIoGhK99EpCEodMKULpvQejwroYCldLKW7pQwkuQ6W0sVSultKVAASKJbS3VJ4OeQOltLFUnqPTa8DpXShlG40Unl4TQdL6WIp3Wik8nLKHSyli6V0txReTrkDpnTBlO6YwmM7OmBKF0zpjim8nHIHTOmCKX34dEscA8CULpjSHVOuM8jBvQQwpQumdMeUqAAEUTCl+xr1fDMDS+liKd0tZfClFCyli6V0t5SoAARRLKUPDyJfjcBSulhKd0uZFwKpDpbSxVK6WwpPbNvBUrpYSvfhKTzksYOldLGU7pYysU92B0vpYindaISfykBSukhKNxip3Ku9g6R0kZRuMBIWgByKpHSXlCAFICldJKW7pAQpAEnpIindYCRKAUhKF0npPkAlSgHkUCSlu6REKYAciqR0X6AeJyvvACldIKX7CBVMETBKF0bpzig8NKEDo3RhlO6MEhWAGAqjdGcU9P0OitJFUfraNRmConRRlL52TYagKF0UpfvwFFoPqYOhdDGU7obC3QM6GEoXQ+luKDw+pYOhdDGU4YbCBQYYyhBDGW4o7IkDDGWIoQw3lIm/EAcYyhBDGW4oUYFzDIcYyvCl6elLHCAoQwRluKDw8JYBgjJEUIYLysQUDBCUIYIyXFCukztTgXMOhwjKcEGJCpxzOERQhi9Mzx/hOYVD/GS4nyx8shvgJ0P8ZLifRAUgheInw/1kYWPfAD8Z4ifDx6bgj6wBfDKET8ZmCZUBfDKET0YK2woH4MkQPBmOJzy99AA8GYInw/EkKgAZFDwZZiF8NxxgJ0PsZPiwlOALgAwKnYy8eSocQCdD6GTk+GfyADkZIifD5YTn1x4gJ0PkZORwivYBbjLETYa7Cc9uPcBNhrjJcDeJCkAIxU2Gz/HF/wCIoLDJcDZZuFzEADYZwibD2SQqABkUNhmmINRQNcBMhpjJcDNZ+DQywEyGmMlwM+G5uQeYyRAzGW4mUQGIoJjJcDOJ/gkQQjGTUcL26gFiMkRMho9FWfjzdoCZDDGT4WYSFYAQipkMXzUFFzQbQCZDyGSYgOAalwPAZAiYDBOQ4CIEYjJETIYPRFnYXXSAmQwxk2EE0i7Y6XeAmQwxk2EEEhaADIqZDDeT6J8AGRQzGYYg7YJLPQxQkyFqMgxBwgKQQlGTUTfD5geoyRA1GZupvQagyRA0GaYg7YL9CAawyRA2GeYgjeeXHwAnQ+BkmINEBQBOhsDJaB5EbPAcACdD4GSYg/CZCGwyhE1G2wwAGMAmQ9hktF0MgU2GsMnwgSj4UA5uMsRNhkEIwtkANxniJsMcpF34ZgpwMgRORpu7ApBBgZPR1q4AZFDgZPTL5iwAORkiJ6OnXQHIoNDJ6H4xxDbzAXQyhE6GSUhwIQA5GSIno3sI+YkA5GSInIzedgUghkInY7dmygA6GUIno3sQsS/LADoZQiejexDXJ7V+Oqs8lQCdDKGTYRLSeI2EAXQyhE6GSUhLfCkAOhlCJ8MkpCX0pwF0MoROhs/sxW19A+hkCJ0Mk5DG40sH0MkQOhlGIY3Hag+wkyF2MoxCwgKQRLGTMeLxUAPoZAidDJOQlritDehkCJ0Mk5CWuKUL6GQInYyxdgUgiEInw1egx55tA+RkiJwMn9gLJ2UaACdD4GSYhLSEADeATobQyZhlVwBiKHQy5qadBuRkiJyM6SnkqxHIyRA5GS4n3L1xgJwMkZPhchIVgBiKnIxjFXq+IoOcDJGTMTc/UgBOhsDJWJfNiQRyMkROxvLLIfLVADsZYidj5V0ByKHYyVjx7MMD6GQInYwVzz48gE6G0MkwCWn5giEAOhlCJ8MkJCwAMRQ6GWYhYQGIoeDJMAtpmZtsAU+G4MkwCwkLQA4FT6ZZSONxzhPwZAqeTLOQxsu1TMCTKXgyzUIaL9cyAU+m4Mk0C2m8XMsEPJmCJ9M0pGVcYnUCn0zhk3lpuwLnJE7hk3nZPCBO4JMpfDIv8Y/lCXoyRU+mYQj3z5qAJ1PwZF48h/iIPIFPpvDJTJvHwwl8MoVPpmkId0uZoCdT9GQmjyG2mk3Qkyl6MlPZFYAYCp/MtIsh+MkUP5nJY8jfIgjKFEGZqe8KQAxFUGby3yn4M2OCoEwRlGki0nik9gRCmUIoM22msZlgKFMMZRqJtIKdMiYYyhRDmWYiYQFIoiDKNBNpJUOrzQRDmWIo00efcJeCCYoyRVGmK0pUAIIoijLzZtqGCYoyRVGmjz5pk48AgiiOMo1FWsFptSY4yhRHmdmDyHclcJQpjjJNRhqvvDSBUqZQyiy7IAKlTKGUeSxBj21HEyhlCqXMYwl6viABpUyhlGky0gr+VptAKVMoZZqNhAUgiYIps8RzEE+wlCmWMks8B/EESplCKbN4Dvm+CJYyxVJmmbsCkEPRlFk8h7jq0QROmcIps3oO+aYAnDKFU6ZzSlQAciicMp1TeLD8BE6ZwinTdKTxYPkJnDKFU6ZzCg+Wn8ApUzhlOqfwYPkJnDKFU6YPQuFuVhM4ZQqnzA2nTOCUKZwyTUdQNSdgyhRMmY4pPFZ/AqZMwZTpmBIUAEyZginTbARHwUyglCmUMpuHEH+wT8CUKZgyW9kVgBAKpkzHFF4AbQKmTMGUaToSZQg4ZQqnzBa3Hk7wlCmeMn2ZFMwQaMoUTZmuKRWHAU3QlCmaMl1TogIQQtGU2cPBeBMsZYqlTLeUyj8RwFKmWMp0S4kKQAjFUqavkcI9hCZgyhRMmWYj3Gg0wVKmWMrs3tMQexxPsJQpljKNRhpPdDDBUqZYyuxhf9cJkjJFUmaPr4PgKFMcZbqjNOzlN8FRpjjKdEcJCoCjTHGU6Quk4L8fFGWKokxDET4FwFCmGMp0Q+FJHiYYyhRDmW4oUQFIoBjK9OVReJWfCYYyxVCmmUjjFQgnIMoURJmOKDxFwgREmYIo0xElKgApFESZI16YYoKhTDGUOeOFKSYYyhRDmWYirfHNHBBlCqJMR5SoAORQEGXOuPF6gqFMMZQ548brCYYyxVCmG0rjH2dgKFMMZc6+KwApFEOZvjxKcB6AoUwxlDk9hfzjDAxliqHMuXYFIIaCKHPFlDfBUKYYylwx5U0glCmEMp1QGv84A0KZQihzlV0BiKEYyvTlUbDH8ARDmWIo0w2FJ8mYYChTDGWuzSMhEMoUQplOKG1hQw0QyhRCmU4oUQFIoRDKdEKJCkAKhVCWEwovYrmAUJYQynJCiQqcc7iEUJaJCH8JCwRliaAsFxSeJmSBoCwRlOXLo/As9gsEZYmgLF8ehTs2LBCUJYKyDEQaT1SyQFCWCMryASg8Df4CQllCKMsHoHAvoQWGssRQlhsKT1WywFCWGMpyQwkKgKEsMZTly6Pwwm8LEGUJoixHFJ4sZAGiLEGU5YgSFYAkCqKszRiUBYayxFCWG0rHX+kLDGWJoSw3lKgABFEMZbmh8HQjCwxliaEsNxRejHSBoSwxlJU8iPgrc4GhLDGU5YYSFABDWWIoy0gkAIQFhrLEUJYbSsdfiQsQZQmirBx3OlxgKEsMZRmJtIFtlgsMZYmhLCOR8nQ5gR/KCwxliaEsI5HGS68tMJQlhrLcUKICEEQxlJU3nWwWGMoSQ1luKDzlxAJDWWIoyxdH4R7YCwxliaEsI5HGc1YsMJQlhrKMRBqvZ7rAUJYYynJDiQpAEsVQ1m61+QWGssRQlplI41kzFiDKEkRZxZOIDZcLFGWJoixXFF5PdIGiLFGU5YrC64kuUJQlirJcUQZfT0BRlijKqrskgqIsUZTlijL5ggKKskRRlivKRARZoChLFGW5okw+G0FRlijKckWZfDKBoixRlOWKMhFlFyjKEkVZhiKNFxJcoChLFGVVHxrFj1jAKEsYZfmoFF6JcAGkLIGU5ZDCQ7UXQMoSSFkOKbwS4QJIWQIpy0elTGwDXkApSyhlOaVEBSCJQimrbaZhX0ApSyhltc1TIkjKEklZBiONx2ovkJQlkrJMRsICEEShlNU2s7AvwJQlmLIcUxZ2L1iAKUswZbW4B+wCS1liKavHbYgLMGUJpizHFB6tvQBTlmDKckzhwcoLMGUJpiyzkbAAxFAwZfXdrRk0ZYmmLB+ZEnyJoClLNGVt1kdZgClLMGX5+ijBlwgpFE1ZPi4l+hIhheIpyz2FB2wv8JQlnrLcU4IC4ClLPGWN3W8VEJUlorKG55BvSmAqS0xlGZEEXwKQyhJSWU4qi39xAqksIZXlw1KiAhBDIZU1Nv1fF5DKElJZvjxKv3zS+qepNikAQRRSWU4qvKzqAlJZQirLx6XwsqoLTGWJqSwzEobRBaayxFSWm8riR1QwlSWmstxUuA/vAlNZYirLjKRf+BEVUGUJqixDkn7hyxmoyhJVWYYkYQEIoqjKMiQJC0AQRVWWIUm/DpeEhkxQlSWqsgxJwgIQRFGVZUgSFoAgiqosU5J+4dsasMoSVlnGJGEBSKK4ylqb9mxglSWsspxVuPfnAlZZwirLh6ZMPhXAVZa4yloeRP6lAq6yxFXW8iDyTQFgZQmsrOVB5B8aACtLYGUtD2LwGUAQBVbWWrsCEESBlXS5eBLxmnpsvS9x++JzDQ8jXhaPracaSWtc89V5cdVj66lG1hplW+McytsXn2tYLNE7j42nElVLtPBZ4dh4KtG0hEWT1xU8tp5qdK0xtjXO8bx98bnGDK8Sx8ZTiaklVnyhOLaeamhIDVF6wkfYY6vWSBpSc5Se8Ip5bD3V0JCmvK1BIU0a0hT3ijg2nkpoRlPcMeLYeCqhGTVS6QkfyY+tpxoa0tS3NSikSUOaNr+xj62nGhrSY0BLkDDQmNsXn2tYb53ZqafGsfVUQ1OaPaV4Pzm2ao2sKXWVmTgrzbH1VENTas6CM3Ic204VNKPZL6Q4KuHYeqqhITVs6QlvTcfWUw1NaW7bGpTSrCnNm989x9ZTDU1pjjt2HxtPJTSkPtiF/f/YeqqhId0tZH9sPdXQkO7Wsj+2ao2iIS1+KQ2eGYBsbl98rpF3Jy2oze2LzzXsUlo79bQ9tp5qaExL3d1awG5uX3yu4TENnn+Ab25ffK5hF9OMP+yOracaGlMjmZ6RH46tpxqaU1OZnqPPg3JaNKcGM3ENymnRnNa439mxUUtUjWmNu54dG08lNKXmM50XiD62nmpoSo1o4hqU0qop9UXveT3PY+uphqbUoKZfZ5qiizrQzu2LzzU8pS2oQSmtmtLNKJlj46mEhtTAJjzxgXhuX3yu4SEN7nGgPLcvHjWMbXrGDgTHVq3RNKUmNz3j4LFj66mGxrR5TIOnBuCe2xefa1hMeVjwsfVUQ2NqhtN5CeZj66mGxtQYJ65BMW0aU5Oc8HQB+7l98bnG2J0uwD+3Lz7XmLvTBQTo9sXnGrEBHRtPJTSmzkDR6QIQdPvic420O13Agm5ffK6Rd6cLcNDti881yu50ARG6ffG5Rt2dLoBCty8+1/CYotQfW081NKYmPZ1X6z62nmpoTE17egl+hIEP3b74XGNua1BMu8bU132JTjlQotsXjxrjsjvlAIpuX3yukXanHFjR7YvPNeK20WPjqYTGdGwfTUGMbl98rlF3pxyg0e2LzzXa7pQDN7p98blG351yQEe3Lz7XGLtTDvTo9sXnGh7T4Pc1ANLti8817K7Po92PracaGlNTobAGONLti881LKYFLezYeqqhMTUbYs06Np5KaEydk3iV9mPrqYbG1EWJF2o/tp5qaEwdlXj4+bH1VENj6q7EI9CPracaGlOnJR6Efmw91dCYui7Vwk1JwEu3Lz7XsJhWtI1j66mGxtSNqeLopWOr1lgaU2cmHg99bD3V0JiaHPUaRB2s6fbF5xqWU167+9h6qqE5NT/qPKr12HqqoTl1c+IVvI+tpxqaU2enFuQU3On2xecallMeH3lsPdXQnDo+teDpA/Tp9sXnGpZTXoX52HqqITlNLlCNL+uJBCqpQCUXKF6L+dh6qpG0huWUl1M+tp5qZK1hOW18q0wkUEkFKpkn4YTSx7ZThaoVPKWc9EQClVSgkgsUL6x8bD3V6FrDUto56YkEKqlAJZ81jQcdHVtPNabWsJR2TnoigkpKUMkJqnPSExFUUoJKTlC8TO+x9VRDU+oE1YOkE0ElJahkoNT7QCJIZFBJDSqZKPXOV+RECJUUoZIjFI8gObaeamhOTZSCXknH1lMNzamJUueBJMfWUw3NqYlS57VDj62nGppTE6XOYzGOracamlNHKB5NcWzVGopQyUSp8yKgx9ZTDc2pmVLnEQ3H1lMNzakzFA9qOLaeamhOnaF4XMOx9VRDc+oMxUMbjq2nGppTM6XOoxuOracamlNDpc7jE46tpxqaU0OlzkMUjq2nGppTQ6XOoxSOracamlNDpc4DFY6tWkMdKrlD8ViFY+uphubUUKnzcIVj66mG5tRQqfOAg2PrqYbm1B2KxxwcW081NKfuUDzs4Nh6qqE5dYeaQU7JoZI6VHKHWkFOyaGSOlRyh1pBTsmhkjpUcodaQU7JoZI6VDJV6ivIKUFUUohKxkp9BTkliUoqUcklinswH1tPNTSnLlEryClJVFKJSsZKnTvxHltPNTSnLlHcj/fYeqqhOXWJ4q64x9ZTDc2pudLgzrTH1lMNzam50rgEOSWKSkpRyVxpXIKcEkUlpahkrjQuQU6JopJSVDJXGtyj8th6qqE5NVca3Kny2HqqoTk1Vxrcr/LYeqqhOTVXGpcgp0RRSSkqmSuNoG9kIopKSlHJXGkEfSMTUVRSikrmSoMXBjm2nmpoTs2VRgpyShSVlKKSwdLg5UGOracamlODpcELfBxbtYZaVDJYGinIKVlUUotKBksj6KyVyKKSWlQyWBopyClZVFKLSgZLIwU5JYtKalHJYGkE/XESWVRSi0oGSyPow5LIopJaVDJYGkEflkQWldSiksHSCPqwJLKopBaVDJYGT7h/bD3V0JwaLA2ec//YqjXUopLB0uBp94+tpxqaU5OlwTPvH1tPNTSnJksjBzkljEqKUclkaeQgp4RRSTEqmSyNHOSUMCopRiWTpZGDnBJGJcWoZLI0gq4OiTAqKUYlk6VRgpwSRiXFqGSyNAJDToRRSTEqmSyNwJATYVRSjEomS4Mn4j62nmpoTo2WRoBziTQqqUYlo6URwFoijUqqUcloKa5BOVWNSnMzt/qx9VRDc2q0FHUoTqRRSTUqGS1FnYETaVRSjUqHRrECJdKopBqVjJa4Q3Eii0pqUcktKuhQnMiiklpUWp7S4ApEFpXUotLylOKsOcfWUw1N6SrbGpRStahksBSs+nhsPdXQlBosDZ7z+9h6qqEpNViKa1BK1aKSwdII7DaRRSW1qGSwNCp3+kpkUUktKhksjcq9ThNZVFKLygZLo3JfzUwWldWissHS4Fm0j62nGklr5G0NyGlWi8oGS4Mnwz62nmoUrWFX08B/M2lUVo3KRkvxZwo5zapR2WhpVB4IkEmjsmpUvoxtDchpVo3Kl810S8fWU42pNXZDTTJpVFaNyslzyk9SmTQqq0ZlX82HezllwqisGJWTx5QfxjJhVFaMyiZLIyD1TBiVFaNy2nWPzoRRWTEqmyyNgOUzYVRWjMqpby5jmTAqK0blNDaXsUwYlRWjssnSCLoHZMKorBiVTZYGT4B8bD3V0JiaLIU1CKOyYlTezVN3bD3V0JyaLI2gm0ImjMqKUTl7TvkBNxNGZcWobLKE84If204VNKXZU8qPt5koKitFZXOluAalVCkqmyuNoLNEJorKSlE5e0r5QSoTRWWlqJzXtgalVCkqmyuFCSOKykpR2VwpvAIRRWWlqFw8pcHVlCgqK0Vlc6URdNvIRFFZKSqbK41gqFomispKUdlcKa5BOVWKymU3ci8TRWWlqGyuFH8vlFOlqFw2g6AzSVRWicrGSsFQpEwQlRWisqnS6MF9gSAqK0RlU6W4BqVUISqbKo2gM00miMoKUbl6SrmjdyaIygpRuXpKg8dbgqisEJVr29aglCpEZVOl+N9CKVWIyg5RPB/tsfVUQ1PqENWDx1uCqKwQlR2ieFLZY+uphubUVCk84wiiskJUdojitTKPracamlNTpfDqQRCVFaKyQ9TgCSUyQVRWiMoOUWENyqlCVHaIGjhlzrH1VENz6hA1gnOfICorRGWHqLAG5VQhKjtERecLQVRWiMoOUdH5QhCVFaKyQ1R0vhBEZYWo7BAVnS8EUVkhKpsqhecLQVRWiMoOUdH5QhCVFaLybqK8Y+uphubUIYqn7jy2nmpoTh2iwhqUU4Wo7BAVnS8EUVkhKncfY4otdJkcKqtDZUOlzE2vmRgqK0NlM6UctBWQQmVVqOyT5+GCXMfGUwnNqIkSL2p2bDyV0Ij6gKgVlKCEKkFl86RyCUpQQFWgsi9MhCsgHxtPJTSfDlBB58hMAJUVoLIDVNA5MhNAZQWo7AAVdI7MBFBZASo7QAWdIzMBVFaAyg5QQefITACVFaCyA1TQOTITQGUFqOwAFXSOzARQWQEqmybh+tbHtlMFzajzU9C9MhM/ZeWnbJY0gu6VmfgpKz/l6ZzPF1HSp6z6lI2SRtBDM5M+ZdWnbJQ0gh6amfQpqz5lw6QR9NDM5E9Z/SkfY6Gu99hLGVKC+CkrP2Xnp6CTZyZ+yspP2YdCsYJl0qes+pRdn3javGPrqYaGdHlIg1OW9CmrPmUfCRV9opRRxafs+BR0Nc2ET1nxKTs+BV1NM+FTVnzKjk8rOFkIn7LiU/aBUNHHQRlVeypuTzxP77FVahS1p+L2FNaAkBa1p3LZ/XAqZE9F7akYJEUPtYXsqag9lUvcWFpInorKU3F5CvruFpKnovJUjJHy4keGQvJUVJ6KMVJcA0JaVJ7KVp4KyVNReSouT2E6IKVF5akYIz3dffEaVkieispTSZ7Syp8H0VNReipOT2ENSqnSU0nxAjTHxlMJDalPxdfmJy1/utLQGhRTlaeSvLsJd/MoJE9F5alsh0EVkqei8lR8Lr7+9NVePl31dBwUU5WnYoz09AMVn6EKyVNReSo+F1/jqcEKyVNReSrZ2/T551sheSoqT8UYKTW+hhE8FYWnYor09BuXU0rwVBSeiinS0+9TjgfBU1F4KuZI0XQUheipKD0Vc6Snn5fBR0oxVXoqPhlf8MO8ED0Vpafi9BSMhChET0XpqfiySU8/4mCQbSF5KipPxRjp6edh8NVSSlWeSvFbPrdjFZKnovJUStrWoJiqPJWyveWTPBWVp+KT8Q1ugyokT0Xlqfg6SpPbSgvJU1F5Ki5P0Y2B5KmoPBWXp+gmR/JUVJ5K8Zjyg3oheSoqT6XMbQ3KqdJTcXoKv1vKqdpTcXuKPlOyp6L2VNyeFjciFbKnovZU3J7CGpRTtafi9hQMHCpkT0XtqVQfos+/OgrZU1F7KgZJuMj3se1UQVNqjITLpB/bThU0o4ZI8xI8mJI7FXWnYogU16CMqjsVQ6Tos6CEqjoVI6TgsyBzKmpOxQBpXuf0p6cfMqei5lQMkOIalE81p2KANHlm/2PrqYbm0wAp+DxJnIqKUzE+ij5PSqd6UzE8mhfuwljIm4p6U2ljW4Pyqd5U2m46nkLeVNSbiuFR9GlQPlWbitHRvLA0F9KmotpUetrWoISqNpXuCeVWrELaVFSbitFR8GmQNRW1ptL9+jn4PCFrKmpNxeAorkEZVWsq3TPKDWGFrKmoNRWDo+BcI2kqKk2l+xU0eHIiaipKTcXgKK5BGVVrKiZH0e8dsqai1lR89r3oZCNsKopNxegoiBdZU1FrKiZHM104GoRNRbGpGB3FNSiiqk3F7Cj8QCmhqk3F6ChIF1lTUWsqBkczWAaikDUVtaZicBTXoISqNZWxuYaSNBWVpuKrN6Xg7krSVFSairFRXIMCqtJUfN69YAhrIWkqKk3F4Cj4XkmaikpTmR7Q4N5I0lRUmoqxUVyDEqrSVMyNZjCQthA1FaWmMjdTQheSpqLSVKZHNLixkTQVlaZibDSDsbiFpKmoNJXlIeUuIYWoqSg1lZW2NSikSk3F4Kg93RBq/XRWPeHImopaU1mbGz1JU1FpKstDuvh0I2kqKk1ltW0NCqlSUzE3ij8NCqlSUzE3mjlonCBqKkpN5RjnFDzCETUVpaZicDSDEdKFrKmoNdWLL4THxFzJmqpaUzU44ktYJWmqKk314hOY8k+dStJUVZqqsVFcA1JaVZqqSxNffipRU1VqquZGM/OVtBI1VaWmam7UEv+SrkRNVampXjykfDWuRE1VqamaG81guHglaqpKTfXiIeVLaSVqqkpN1akp8IhK1FSVmqq5UeQRlaipKjXV5DHly3ElaqpKTTWVbQ2KqVpTNTiKLmKVrKmqNdUU/66vJE1VpakaG83MvzQqSVNVaappbGtQSlWaqrFR9C+hjKozVUOjWfgRv5IzVXWmamgU1iBnqupM1dQo/F4JmqpCUzU1Ci7GxExVmamaGc1g3YVKzFSVmaqZUVyDEqrMVM2M4k+DMqrMVM2MZsl8JSVmqspM1SfbC37KVmKmqsxU8yajpExVlalmz2gJ8kUZVWWq5bKrQcpUVZlq2WaUlKmqMtWyySgZU1VjqsUzGtxlyZiqGlMtdVuDMqrGVA2MZmH7q2RMVY2pFs8od+2tZExVjakaGAX5ImGqKkzVuGgW7h1cSZiqClMta1uDMqrCVOtl94mSMFUVpmpcFH6iJExVhanWTUbJl6r6Uq2e0eBOT75U1Zeq+1JYgzKqvlTrNqMkTFWFqdZtRsmYqhpTrZuMkjBVFabqwlS473glYaoqTNWFKaxBGVVjqm2bUVKmqspU2zajpExVlam6MgUTblRSpqrKVFvc/lTJmKoaU3VjCsa6V1KmqspUDY3iGpRRdabadj/tKzlTVWeqbZNRUqaqylSNjGbldsVKylRVmaqhUVyDMqrOVA2Nwk+DnKmqM9W++WFPylRVmaorUzDlRyVlqqpM1dAorkEZVWeqffuLiZypqjNVd6bKfR8qOVNVZ6ruTJUXJarkTFWdqbozBVOxVJKmqtJUXZqCpTgqSVNVaaouTcHUI5Wkqao0VXOjGcwbUomaqlJTNTcKzlmCpqrQVM2NZgt+uxE1VaWm6tQU1qCUKjXVsU0pUVNVaqo+sKk37OBXyZqqWlN1awoaOCtpU1Vtqq5N0dlC2lRVm6prU3S2kDZV1aZqeMSdxytpU1Vtqq5NUYseaVNVbaquTcGcMpW0qao2VdemYC6XStpUVZvqRpsqaVNVbaquTcFMLpW0qao2VdemsAZlVLWpzu3dnrSpqjZVs6PwXCFuqspN1ewoyBdhU1Vsqo5NwZw0lbCpKjbV5S2kwRMpYVNVbKqOTcG8NpWwqSo2VcemYDx2JWyqik11g02VsKkqNlXHptb5WkzYVBWbqmNTWIMyqthUt9hUCZuqYlN1bArm16mETVWxqZoczRbcqQmbqmJTXXHPvErUVJWamlNT47beRtTUlJqaU1NYAzLaFJuaY1MwM04jbGqKTc3kKPpmG2FTU2xqvrxT0DbZSJuaalNzbQpm12mkTU21qRkdzWAumEba1FSb2iX+3dTImppaU3Nr6nxPaGRNTa2puTWFNSClTa2ppcvmuaWRNTW1pmZwNIMlohpZU1Nram5NwYw0jaypqTU1t6awBqVUrakZHM1gmalG1tTUmlrylPI1rJE2NdWm5toULDPVSJuaalNzbYrOFtKmptrU0tydLeRNTb2puTcFs3Q08qam3tTcm6Ia5E1NvakZHs1guatG3tTUm5p7U7DcVSNxaipOzcVpBFdCEqem4tRcnMIalFMVp2Z8NIMlsxqJU1Nxai5OwawQjcSpqTi1HPckbeRNTb2pGR/NEZz5JE5Nxam5OIU1KKUqTs1n1Muf1PFpH1lKEDg1BadmehTMmNbIm5p6U3NvGvxU2kicmopTc3EKa1BGVZya8VFwlyRvaupNzb1p8DigRt7U1Juae1NYgxKq3tSMj2Yw10cjcWoqTs3FKZjro5E4NRWn5uIUzPXRSJyailNzcQpm6mgkTk3Fqbk4BTN1NBKnpuLUXJyCaTYamVNTc2puTsE0G43Mqak5NTenYJqNRubU1Jyam1MwR0Yjc2pqTs3NabImNjKnpubUfFxTWINyqurUfD69YKhqI3Vqqk5tM66pkTk1Nafm5jRZAhuZU1Nzam5OYQ1KqZpTM0AKurI3Iqem5NRMkILbCpFTU3JqbXMhJXBqCk7NwWlyX9JG4NQUnJoPbAprUEAVnJr5ETcfNQKnpuDUHJw4WsRNTbmpOTctbu5txE1Nuan5sKaoBnFTU25q3bvo8dQFjcCpKTg1B6fFUzc1Aqem4NQcnFbGZsFG4NQUnJrpUU3B4yiBU1Nwag5OizseNQKnpuDUHJwWN143Aqem4NQcnIJx9o3AqSk4tR53gGrETU25qTk3LW6Qa8RNTbmpOTdFNYibmnJTMz16ej6kGQMaeVNTb2oj7lvSSJuaalNzbQrGgzfSpqba1HxgU1iDIqra1IyOwlOWtKmpNrURj15uZE1Nram5NV1Hg+PXSgFVa2puTWENiqhaUxubuzxZU1Nram5NK/hVT9bU1JqaW1NYgxKq1tRmPPSukTQ1laZmcLQu7KGNrKmpNTWDo7gGJVStqc14dH0jaWoqTc3YaF2CViOSpqbS1IyN4hqUUJWmNjeXUJKmptLUfPmmS3BTImlqKk3N2CisQdLUVJra2l1CCZqaQlNbm0soMVNTZmrLAxo0FhM0NYWmtuq2BgVUoamZGgVPgMRMTZmpmRnVYNq6RszUlJna2jTgEzI1RaZmYrQulU9WQqamyNTW2taggCozdWcmTEYnZOqKTN3EaAXD6zshU1dk6iZGcQ1IaFdk6peyubl2QqauyNQdmYJnyE7I1BWZuolR9CzbCZm6IlO/+EWUGwQ6IVNXZOobZOqETF2RqV88o9wc0AmZuiJTv6xtDchoV2TqaZNRIqauxNSTZ5R/yncipq7E1FPe1qCMKjF186KoC0UnYupKTD35VZQbAjsRU1di6mkzwr6TMHUVpm5cxBfiTr7U1Zd62gSUdKmrLnWjohVMNtBJl7rqUjcqimtQQFWXet4ElGypqy11g6IVzBTQyZa62lI3KIprUEDVlrpB0QqWqu5kS11tqRsU1cmzTXWypa621A2KEk9D2ImWutJSNydaiZ82OtFSV1rqJkXRdIidcKkrLvXsIeVG5k641BWXuklRW9yo2gmXuuJSNypawYQDnXSpqy51s6LUcUnTTrrUVZd68ZR2/khJl7rqUi+eUhbyTrrUVZe6YVFvkz9S8qWuvtQNi1Yw4UAnX+rqS714TPn3Zydf6upLfTOeqZMuddWlblS0gj6snXSpqy51o6K4BoVUdakbFQV3FbKlrrbUDYqiKwfRUlda6uZEUcpJlrrKUq9ll3KSpa6y1GvcbN/Jlbq6UjckWjm4I5ArdXWlbkgU16B8qiv1Gjfbd1KlrqrUjYjCewqpUldV6oZE4RlPrtTVlXq77M54cqWurtRb2p3x5EpdXam3uMWpEyt1ZaVuSrQyj5rpBEtdYambE8U1KKNKS92cKGjd6CRLXWWpt3iyp06u1NWVujHRCmbD6CRLXWWpt7mtQRFVW+oGRdFzOdFSV1rqfXMFJVjqCkvdlKiu4B9CsNQVlnrf5JNYqSsr9e755MaNTqzUlZV6r9salE9lpd59hAgTWSdW6spK3Ywo+lpJlbqqUt9Ml9fJlLqaUu+ez6CNhVSpqyr1vrY1KKCqSn3shtp1UqWuqtSHN9qzOXZipa6s1E2JogsPuVJXV+qGRE+fND8pkCt1daU+PKOMbJ1cqasr9eH3+eB5mFypqyv14fd57qPUSZa6ylIffhkN7mwkS11lqRsTRQ9fBEtdYalvpszrBEtdYambEq0SPMoSLHWFpW5KFNegjCosdXOioENgJ1nqKkvdmCjoENgJlrrCUndYCqYn6QRLXWGpmxPFNSiiSkt9O4ipEy11paU+x+7KQbTUlZa6SVF05SBb6mpL3aAovHKQLXW1pe62FF05yJa62lJfHtKgvYdwqSsudceloNNEJ17qykvdeSm6chAvdeWlblYUXTlIl7rqUl/xNE+ddKmrLnWjohVMGtNJl7rqUjcsimtQRtWX+vLpm3mIWydf6upLfW1DSr7U1ZfGZRfSQcI0VJjGZbOgyCBgGgpM4xID6CBeGspLw6xoBfPfDOKlobw0LnVbAyI6lJfGJY7oIFwaikvDcanwQ9wgXBqKS+MytjUgokN5aZgVhV8rJHSoLg2jouiOMEiXhurScF0K7giDfGmoLw33pcJeN8iXhvrScF8q/BA3yJeG+tJIHlJunhjkS0N9abgvFfalQb401JeGaVF05RgETEOBaaS+u3IQMQ0lpmFitCo/gw1CpqHINByZKk8vOQiZhiLTcGQKa1BOFZmGmVFdvNzVIGYaykwjx1OUDEKmocg0HJkqD+gahExDkWk4MoU1KKWKTCPHq9wNIqahxDR8+FLQ93WQMQ01puHDl6JrBxnTUGMa2TPKzS2DjGmoMQ03psqt3oOMaagxjewQGh0HZVSNabgxVTamQcY01JjGzpgGGdNQYxpbYxpkTEONaZR4XP0gYRoqTMO4aNXgAkbCNFSYhgtTWINCqsI0XJgq91wdJExDhWmUuPlpkDANFabhwlSDWxMJ01BhGi5MYQ2KqArT2AjTIGEaKkzDRy9FFw4ipqHENHz0UnThIGMaakzDjSm6cJAxDTWmUevuwkHKNFSZhpFRdMISMg1FpuHIFJ2whExDkWlsJswbhExDkWlUjyj/CB2ETEORadS1rUERVWQabRNRIqahxDTaNqJETEOJaZgYrcaDBQch01BkGm03NmQQMg1FptG2ESVkGopMo+0iSsg0FJlG20aUmGkoM43NfHmDkGkoMg1HpsZzew9CpqHINIyM4hoUUVWm0S+7ewo501BnGpv58gYp01BlGt0jGjxIkjMNdabhzhTWoIiqMw1Do2B98kHMNJSZhplRtD75IGYaykzD0Gg1HhI7yJmGOtMwNlrB9EqDpGmoNA2XpmBqpEHSNFSaRo/b8Ac501BnGoZGq/EQ9EHONNSZhqFRXINCqs40hoeU16EdBE1DoWkMD2nw4EPQNBSahkNTC37XEzQNhaZxDGAKLh0ETUOhaZgaBR10BjnTUGcahkY1N2qAH8RMQ5lpGBqtHrQMkDMNdaZhbBTXoJSqNA1joxp0BhkkTUOlaRgb1dxxMe1B0jRUmoa50Yq+WaKmodQ0fBBTWINSqtY03Jo6g8QgaxpqTWMziGmQNA2VpuGDmIKpkQZJ01BpGj6IKaxBKVVpGj5dHq+wMkiahkrTmJsLKTnTUGca7kw9aLUmZxrqTMOdKaxBEVVnGssjGtxWyJmGOtNY8YyOg5RpqDINH8QUzNk3iJmGMtMwNYprUEQVmoZDUzBL1CBoGgpNYzOMaRAzDWWm4cOYOvfLG8RMQ5lp+DCmsAZlVJlpboYxTUKmqcg0fRhTMEPUJGWaqkzThzGFNSChU51pGhoFp/wkZprKTPMSdxydhExTkWmaGa3rmvXwlUxipqnMNJ2ZwhoQ0KnMNC9xs9MkZJqKTNPHMA3udzBJmaYq0/QxTGENCOhUZZppM7XTJGSaikzTkWnwL5VJyDQVmaYjU1iDEqrINFPcMjqJmKYS03RiGgzck4hpKjHN1LY1KKJKTHMzhmkSME0Fppk2ASVemspL03lp8J1xEi9N5aXpvBTWoIAqL02zohXMXzaJl6by0vRRTIMZdBIwTQWm6cAUzLc1CZimAtM0LcpPP5fogXgSME0FprkdxTSJmKYS08yx1U8CpqnANH0Q0+B5FiYB01Rgmg5MYQ1KqQLTzPG0OZN4aSovTeelEdwbiZem8tJ0XopqEC9N5aVZ0i7n5EtTfWkaFoX5Il+a6kvTxzBN/vE4SZimCtN0YQprUEZVmKYLU5QOEqapwjRLPCfJJF+a6kvTuGjN4BZLwjRVmKYLU1iDUqrCNF2Ywk+DUqrCNA2Mgk+DhGmqME3jojWDuzQJ01RhmsZFcQ3KqArTdGGawT2WhGmqMM26W6VhkjBNFaZpXhQ9PJEwTRWmaVwUnrIkTFOFaW6EaZIwTRWm6cI0ebrkScI0VZimC1NYgyKqwjQNjIJOwZOIaSoxzRa33k8CpqnANB2YZnAlJmCaCkzTRzGFNSihCkzTgSlKOQHTVGCaPoopSjkJ01RhmsZFUcoJmKYC02xjl3IipqnENJ2YgskoJxHTVGKaTkyTGycmEdNUYppOTJMHJEwipqnENLtfSLnNexIyTUWmaWJUS8d+ipOQaSoyzb75yUTENJWYpg9lWsGvaTKmqcY0DYziGhRSNabZ47F2k4RpqjBNF6Zg/p1JwjRVmKYLU1iDMqrCNH0sU3TakzFNNaa5Hcs0yZimGtM0MIpOeyKmqcQ0x/Z5lIhpKjHNsYkoAdNUYJoOTIsnvpkETFOBafpIprAGRVSBaY5NRMmXpvrS9HFMwQjIScA0FZimA1NYgyKqwDTHNqIETFOBac5tRAmYpgLTnLuIki9N9aU5txElX5rqS3NuIkq6NFWXpuvSCp6dSJem6tL0kUxhDYqo+tKcm4iSLk3Vpem6tIIHH9Klqbo059zWoIgqL825jSgB01RgmmsbUQKmqcA0TYvCfBEwTQWmueJBy5N4aSovTR/GtBh2JgHTVGCaDkxhDcqoAtN0YFrB8xcB01RgmmuTUeKlqbw0fRzT4l4Lk4BpKjBNB6awBmVUgWmubUYJmKYC07rsMrqImJYS07rsMrqImJYS07rEGV0ETEuBaflApmDC00XCtFSYlg9kCmtARpca0zIwSpcLdzBchExLkWld4pAuIqalxLRMjJ4Og58lFynTUmVaPpQpLgIxXcpMy8zoqQj3fVjkTEudaZkaPRXhTmCLpGmpNC1joyBk5ExLnWkZGj0dBt8lF0HTUmha5kabIhRVtaaV4oEii6RpqTSt5DNA8KR9i6RpqTSttMkpSdNSaVrpyCkv77kIm5Zi00pzX4Ryqtq0jI6eQs6XMdKmpdq0jI4G9d9aRE1LqWmZGz39S3hF8EXWtNSaVs77IpRSxaZlchQEjKhpKTUtH8t0ufDtepE1LbWmlY/LKd8pF3HTUm5aZkdPRbjBZJE3LfWmlT2pKbiwEzgtBaeVPamJ15lZZE5LzWllv6Je52KluBM6LUWnVS67uBM6LUWnZYLEcSdxWipOq3hSg9FZi8hpKTmtUvZFKKxqTqvs2vMXmdNSc1rFs5oYrBeh01J0WmUzqc4idVqqTqscSeVfQIvYaSk7rXIklR/YF7nTUndaZXtNJXda6k5r406L3GmpOy2fO++SBnbOXQRPS+Fp1bwvQlFVeVrGSGHKSJ6WytOqdZsyoqel9LTqZqbcRfS0lJ5W7bvvluhpKT2tGvczWURPS+lp1SOmwf2B7GmpPa269kUop4pPy4c3hWcd8dNSflotbc86EqilArWMk8JvhgRqqUCtFjdKLfKnpf602pHT4NcUAdRSgFqt7YtQUlWglnlS1JF8EUEtJajVNn3zFwnUUoFaxkm1tuAwKKkqUKttL6gkUEsFavXNBZX8aak/re4pzUwuiwBqKUCtnvdFKKYqUMtAKfxqyaCWGtTyVZqCr5YIailBLfOk8KslglpKUKtvr6eEUEsRam2m01tEUEsJanW/ngYToy4yqKUGtfraF6GYKkKtsX1AJYRailBrxA+oRFBLCWqNI6Tc32SRQS01qDXKvgilVBlqjc0PfkKopQi1hl9Lc9CGQgq1VKGWoVK0HMUih1rqUOtYqYmXo1jkUEsdao3jJ39wyyaIWgpRa2yvpgRRSyFqzc3VlBhqKUOteVxNgwc6gqilELVm3hehoKpELYOlqE/AIotaalFr+m0/8xRdizBqKUYtk6UcrEq2CKOWYtSace+9RRi1FKPW9N9ROXgYI41aqlFrzn0RCqpy1DJbym1ch0/UsrQGBVU5aq1NUAmjlmLUWkdQg6+FNGqpRq2V90UoqApSa5Xd50EgtRSklulSGHYCqaUgtVbbhp1EaqlIreWtU8EcpYtQailKrbW58xNJLSWptY6gBo/aZFJLTWqttS9CSRWUypeL/5Iq2NJ2bL4vcvvicxFTqVHh5n9sPJVIWsKjWrCx7th8KpK1iN/8C978j82nIkWL+EW1YBPXsflUpGqRti9yDuvti89FPKwFR9Ifm09FuhYZ+8/knNfbF5+LeF55sr5j86nI1CJrX+Sc19sXjyI+CCqIGtDU7YvPJezSisPjjo2nEprWw6YK3miOzacimtbDpsIilNakaU1HWrHh/9h8KqJpNWsKLs/H1lMNDWs6wopX1mPzqYiGNYWrPBzbThU0qQdP8dyDx+ZTEU1q8qTypH/H5lMRTWq+bIuAUd2++FzEukjzeofH1lMNDetBVBV/IR6bT0U0rE5UcREKa9awmjhFJy8Y1e2LzyV8+gj03GPrqYZG9SAqnj3w2HwqolE9iCosQmnNmlbjpvADoaxmzaphU3jugk/dvnjU8EFRNLXRsU0rFM2pz7h34ZnEjs2nIhrUQ6jCIhTUokGNJ907tp0qaEqLX1Ir/rw7Np+KaE4PnwqLUFCLBrUcQQ3umCBUty8+FwmfVo9tpwqa0oOnanCjAp66ffG5yNoXoaAWDWo9rqnB3Q6I6vbF5yJpdwkBobp98blG2Ifq2HaqoDmtxwUVG1WOzaciGtXDp8IiFNWqUa1HVINbJgjV7YvPRcLeKce2UwXNqa/wdGnB/RKI6vbF5yJzX4SiWjWqddMCcGw91dCktrAF4NimFZrG9OCpFtxxgaduX3wukvdFKKpNo9o2Df/H1lMNTWoLJ5Q4tp0qaEwPnuJp1o7NpyIa09b3RSipTZPajqRi4+6x+VREk9rC4dDHtlMFjamv9HRpwS0GgOr2xaOIr/UUFgGjun3xuUjanTBAVLcvPtfYXFHBp25ffK7gV9QW3C0BqG5ffC5S90Uoql2j2sNB+8e2UwXNaT9yGtwtQahuX3wuMvZFKKddc2rgFP1bKKddc3oIVcNWyGPzqYjmdFy2RYCobl98LrLNKSjV7YvPNTZz8R1bTzU0qbu5+I6tpxoa1HEENSpCQR0a1IOpwiKU1aFZdaYKP1WK6tCo+nCp8FOlpA5N6sFUDdtDj82nIhrWsfZFKKxDwzo9rD1oVAWqun3xuUg4OvrYdqqgUT2cqgc3f3Cq2xefi5R9EQrr1LAeUMVz8h2bT0U0rPGcfMe2UwVN6vSrKk+od2w+FdGoHlIVFqGsTs3q9B/+F+rgdmw91dCo+rR8vFj3sfVUQ5PqUJWCxyGgqtsXn2uEXf2PbacKGtTDqaKfZOBUty8+Fyn7IhTUpUE1dQoyBkx1++JzBb+k9uABApjq9sXnIn1fhIK6NKjrCCpOKnxsPhXRoK7N7R+Y6vbF5wprfxiUU2WqdDBVUCQRUyVlqnSJr6iJlCqpUqVDqTo/hSRSqqRKlQ6lCotAUJMqVTJxCvqGHFtPNarWsLZUHkx2bD3VaFpj09/v2Hqq0bXGNXQ9Rd8t5DSpUCXTpqCfy7H1VGNqjSOpTBiJgCopUKVj9FTn1pRERJWUqJIT1dMDbFCEwqpIlQ6kGkyqiZAqKVKleKa+Y9upgib1ECqeMPDYfCqiUU1tX4SyqkSVjJuCJaWOracamlVfDoqXlDq2nmpoVlP80z8RUCUFqnQA1eBnkERAlRSo0gFUURECqqRAlXJ880/EU0l5Kh08xVMPHptPRTSmB0+FRSipylPJB1ExDCfiqaQ8lZyneH6UY+uphsb04KmBsxQfm09FNKcHT/FEisfmUxEN6jGCanBzeyKgSgpU6RhBNYKrKglVUqFK5cjq4g+WkCopUqUDqcIiFFdFqnQg1QwuzYRUSZEqHcOoZnBpJqdK6lTJzClYoeXYeqqheS3xb6pERpXUqNJhVDxL3LH5VETTeoyiCotQWpWpUolnOj82nkpoVh2psP9BIqFKKlTJtCm3wl8KAVVSoErHGKoZXJhJqJIKVdoIVSKhSipU6RAqnibu2HwqoiE9hCosQilVoUp1k1LiqaQ8leqRUv5BlUiokgpVOoQqLEIpVaFKdZdS8qmkPpWOIVST23UTAVVSoErmTcG6SsdWraFElQ6i4knajs2nIhrUtgkq+VRSn0rtCCpOtHtsPhXRoB5DqMIiFFQ1quRz+OGy3sfGUwlN6iFU0ZdLQpVUqFKLzT8RTyXlqdT81j+5HTSRUCUVqnQIVViEgqpCleIhVMc2raA8lY4hVNFTGflUUp9KxxCqsAglVYkqHUTFs84dm09FNKk9bqNK5FNJfSp1/zW1gtstEVVSokoHUYVFKKhKVKn7bJNsB4mEKqlQpY1QJRKqpEKVDqHimdaOzacimtNDqKIiJFRJhSqNo9s/dnI/Np+KaFSPgVQr+DFERpXUqNIxkIqn9jo2n4poVA+k4pmojs2nIprWEWtqIqFKKlRpHFENWtyIqJISVRpjX4SyqkaVzJvCvBNRJSWqdBBVmBFKqxJVOogqyggRVVKiSsdoqujrJaVKqlTpUKooaKRUSZUqzXBRnmPbqYJG9SAqnibs2HwqolGdbV+E0qpKlea2118ipUqqVGlungCIqJISVToGU/EMXcfmUxHN6lz7IpRVRaoUj6Y6tmkFJap0jKbiWVyOzaciGtRDqcIiFFRVqrR2fakSIVVSpEorHkR9bDyV0KCuzSDqY+uphuZ0bQZRH1tPNTSm8VCqY9upgsbUh1KlC/f4S2RUSY0quVHFRSimalTZvCn6ajMRVVaiypcUf7WZjCqrUWXzpuirzURUWYkqGzdFX20mocoqVDleQurYdqpQtULzb4WfljMBVVagyj6IKi4CMc0qVNm4KZhL5th6qjG0xhFU7gORiaiyElU2bpoFJzc+tp5qaE5TfDnNxFNZeSo7T6ULa1smnsrKU9l5Ki5CQVWeymkzyc+x9VRDg5ri31OZdCqrTuV0BJUfpjLpVFadyqnvi1BQlady2gaVeCorT2XTpmCF1mPrqYbm1LAp94zNoJl8KqtPZbOmMOvEU1l5Km94KhNPZeWpnI+Y8tN2Jp7KylPZeSouQjlVnsp5M23asfVUQ5Oa45bUTDqVVadyPmLKz/yZdCqrTmXXqbgI5VR1Kps0xZ8H5VRxKufjxs8tmJlwKitOZcepdGHhyoRTWXHq/+/s3JMbV3J8vZf++8QE852cHdw1TEwoZIm2dSyLaj3KVT0xe79MMhNMgEgP3BF34qqrToGvfCDxAT9o881I5ciUpmRKmzxSebylOTKlKZnSxnxvhBuplEzp7wT+8t9ubNCR+g2Z0hyZ0pRM6YVMKcU7dZojU5qSKb2QqbYRbqRSMqVNO0KlOTClKZjSC5hSjWQ/zbEpTdmUXqqnmkY4OKUpnNL2m3HKkSlNyZRe1P2UaizsHJzSFE7pBU61jXDjlMIpvcAppQx7otMcnNIUTulv4JTm4JSmcErbPFAbOz8HpzSFU9qG741wA5XCKb3AqfYL4cYqxVN6Rk2tEcINVMqmtMsDtbFdcnBKUzilFzjVNsKNVQqntNPfvhCOT2nKp7RrB6c0B6c0hVPa5YHa2C85OKUpnNJLAVXbCDdWKZ7SC57i8aXm4JSmcEq7PFIbey7HpzTlU9p9s6RycEpTOKVdXlJ54Kc5OKUpnNK++9YIx6c05VPat/NSNQenNIVT2udhyofZNAenNIVT2pvvjXAjlcIp7b/JodIcndKUTulvqqc0h6Y0RVN6QVNKNzZtDk1piqb0Uj3VNsINU8qm9DdsSnNsSlM2pRc2pbRqjDBumFI2pRc21TTCsSlN2ZTObKoBLzXHpjRlU3rmTI2xzoEpTcGUXsCU4hX+8l9vjNBhuoCpthFuoFIwpZfqqcZY58iUpmRKL42mGlkYmgNTmoIpHfJA5ctRNQemNAVTeimeUprXGtIcmdKUTOnvNP7y325s0KHa1vjLf0ctUCqlFyqlNM9PNEelNKVSeqFSbSPcUKVUSs+QiW96lf9yY4IO1Bkx8W02819uTNBhukAppdkWBfmvN0boQI3+eyPcSKVQSs+MqZWArTkspSmW0kvHqUYCtuaolKZUSi8dpwxP6TQHpTSFUnpmTI2FjINSmkIp3edxygNlzUEpTaGU7vX3RrhxSqGUzhJ/fCGI5qCUplBK99+E+zkmpSmT0n0ep43PwkEpTaGU7v33RrhxSqmUXrpO8S2c899ubNBx+k3hlOaglKZQSmcoxev75b/eGCHD1HTdd0YMR6UMpVKm+0YxzXBUylAqZZbKKdXQGTQcljIUS5mZMbWy6w2HpQzFUmamTN7yp0LDgSlDwZTJYKohVmg4MGUomDIzZOoDP3ENx6UM5VJmEfdThmdKhgNThoIpk8GU4UGM4cCUoWDKLLVTbSPMYDWUTJmldko1BA8NB6cMhVNmBk19Q3bNcGzKUDZlVNtLNRyYMhRMmUXcT5nGOOPIlKFkyiylU20j3GClcMpkOGX4ShDDwSlD4ZTJcKohM2g4OGUonDKqDfsNh6YMRVNG5aHKr+6GY1OGsimj+u+NcEOVwikzk6bWFmE4OGUonDLfwCnDwSlD4ZSZQdPks3OUzXBoylA0ZfSy9/MjjANThoIps8j68Z6h4biUoVzKLHVToWGCG6IUTJkZMmk+EGM4LGUoljIzYtI8+jAclDIUSpmZMJnGDsUxKUOZlNFLXX/DBDc6KZEymUg1VDANR6QMJVJmKZfixxZHpAwlUiYTqdZazBEpQ4mUWYhUw/ngeJShPMosin7KNvZrDkgZCqTMouinbGOv5ZiUoUzKZCbVfCPcMKVMymQmZfkDv+GYlKFMyizVUspaNrJtOCxlKJYyGUs1UhUNh6UMxVImYynL138bDksZiqWMXXb9xlLIgSlDwZSx38pQGA5MGQqmTAZTtuHXcWDKUDBlMpiysfFKuAFLwZSxecA2XH+OTRnKpkxmUw1BPcOxKUPZlMlsqqFCZzg2ZSibMplNNaTbDMemDGVTZimdUo5P0jccnjIUT5mMp1xj6nB4ylA8ZTKecmwfzfzXGyN0xGY85RpTh8NThuIps5RPqYb4kuEIlaGEymRC5RojliNUhhIqkwmV6xtGuBFLCZVZCJXyjRHLMSpDGZXJjColQbF3wo1YyqjMUkOlfGPEcpjKUExlMqZqyA0ZDlMZiqlMxlSeh8OGw1SGYiqzlFGphiiN4UiVoaTKZFLVEHIxHKkylFSZpROVaSz2HKgyFFSZBVRNjnfjRrgBS1GVWQqplG+Meo5WGUqrTKZVvjHqOVplKK0ymVaFxqjnaJWhtMosDalUaIx6DlgZCqxMBlaBT5M3HLAyFFiZDKwCz90NB6wMBVZmAVaqIQphOGBlKLAySzGVCo1RzzErQ5mVycwq8OjdcMzKUGZlMrNqRYw4ZmUoszILs1KhcfjlqJWh1Mos9VQqNDwLDlsZiq1MxlaxMWI5bGUotjIZW8WGZ8FhK0OxlZkZlDONScxhK0OxlZkpVCvr3nDgylBwZTK4aqggGA5cGQquTAZXDfEAw4ErQ8GVWZpTBbb/av7bjQ06XJeCKhUbs49jV4ayK5PZVaPk3nDsylB2ZTK7apRUG45dGcquTMzDtTH7OHhlKLwyMQ/Xxuzj6JWh9MosNVWqUVVtOHxlKL4y/bLA9o3ZxxEsQwmWyQSrkRFgOIJlKMEymWA16ogNR7AMJVhmEf9TjeJbwyEsQxGWmYmUS94nN+o5iGUoxDIZYjXqKg0HsQyFWCZDrEZJpOEglqEQyyzyf6pRnGk4imUoxTK5uqpR9Go4kGUoyDIZZDWqIg0HsgwFWTaDrEYloeVAlqUgy85Yynd8WYLlSJalJMsuJEs3asUsR7IsJVl20QDUjaoky6EsS1GWXTpV6Y6fOZZjWZayLLuwLN1oMWM5lmUpy7JLkZVu1K5YDmZZCrPsArN0x496y8EsS2GWXWCWblQWWA5mWQqz7AKzdMePesvBLEthll1glu54t8JyMMtSmGVnMmU6HjNYDmZZCrOsygOWP19YjmdZyrPszKas4vq75r/cmKDDdaFZupFKbzmaZSnNsgvN0o0cdsvRLEtpllWLaCUf27YczLIUZtmlVZVuVANbjmdZyrPswrN0I73YcjzLUp5lZzZlI48tLIezLMVZdtEC1I3sccvxLEt5lp3xVOAJsOWAlqVAy854yjkeR1mOaFlKtOzMp4zjYZLlkJalSMtmKUC+wXz+640ROlZ1HquNtYjDWpZiLTtDKpc6d3MrAMe1LOVadqZUNr1V1gY3VCnYsjoPVT5eYjm0ZSnasjOocooP3FiObVnKtqzJQ7WxrnJsy1K2ZWdU5RR/wLEc3bKUbtmZVMXkTHBvlYNblsItO6OqOG00vA1urFK6ZRcdQNUYIRzcshRu2aXaSrWehRuplG3ZmVP1jbpRy6EtS9GWXZpVqb5hgxuplGzZrAOoGgsiR7YsJVvWLIXWrZfKjVQKtqxdClgbCxHHtSzlWnaGVNE0noXjWpZyLTszqphSc7hn4bCWpVjLzogq2sYA4aiWpVTLzoQqusY75aCWpVDLLtVWjk//tBzTspRp2aVXVeBLxyyHtCxFWjYjrUb1uuWQlqVIy2ak1SgLthzSshRp2Yy0GhWblkNaliItuyAt3Sh2sBzSshRp2VJx1XixHNKyFGnZUnHVeCcc0rIUadml4io2Zh5HtCwlWnamUzE2liIOaFkKtOwMp2LfGK0cz7KUZ1m3lAg0jgAczrIUZ9kZTfVdY+ZxNMtSmmVnMtVPRzzeBjdWKcyyM5jqW1sVx7IsZVnW56HKJ8hYjmVZyrLswrK0bgxVjmVZyrLszKV63VgTOZRlKcqyM5fqdeOtcijLUpRlZyzVt9Z3jmRZSrLsQrK0boQBOJJlKcmyM5Wa7qDxUrmhSkGWnaFUbxtThuNYlnIsOzOp3jU8EQ5jWYqx7Iyk+tB6qdxQpRTLzkSq7xqDjINYlkIsmyFWI7HWchDLUohlM8RqJJJaDmJZCrHsArG0bpwROYhlKcSyC8TSjboay0EsSyGWzYVXunGw4iCWpRDLLhBLNyonLAexLIVYNix6K3y+n+UYlqUMyy4MSzdKFizHsCxlWHYRBdSNPH/LQSxLIZZdRAG1aXgBHMWylGLZmUj1XWPv5SCWpRDLLhBLm0aUh4NYlkIsOxOp3vMZoZaDWJZCLDsDqT40vi/HsCxlWHbmUc62Xgg3WCnCsjOO6hsq2pYjWJYSLDvTqL5RPWE5gGUpwLJL9VXfWNE4fmUpv7JL9VXfehZupFJ8Zfs8Uhuhbw5fWYqv7IKvtGnseRy+shRf2awK2DUeh8NXluIru+ArbRpLK4evLMVXtl+WVtNYWjl+ZSm/srl9VaNHguX4laX8yi78SpvG+szxK0v5lV34lTaN9ZnjV5byK7vwK93I9bccv7KUX9mZRYW+sZBw+MpSfOVmFBU73jVyHL1ylF65Lsut80PNcfjKUXzlcgurhs654/CVo/jK5RZWjbXEcfjKUXzluixq0boTZrw6iq9cLsVqnAYch68cxVeu+7a41XH4ylF85TK+MvwO7Dh85Si+chlfNfLDHYevHMVXLuMry++ejsNXjuIrl/GV5VdYx+ErR/GVW4QCteVXWMfxK0f5lcv8yvKLo+P4laP8yi31WF0j4us4guUowXKZYDXS3R1HsBwlWC63stKNucMRLEcJllvqsaYjR+NOuBFLEZbLCKuRqu44hOUownIZYTVa0DsOYTmKsNyCsHr+eOI4hOUownIZYTXS3R2HsBxFWE4vS2zXWAk4iOUoxHKLZKBu5Mw7jmI5SrHcIhmoHV+z4jiM5SjGcjrXEfCZ6o7DWI5iLKdzHUFj1HMYy1GM5bJsYKPIw3Ecy1GO5fQSG+DxkeM4lqMcy+WeVo0iD8dxLEc5lsuyga2Zw4EsR0GWy0VajSIPx4EsR0GWW4q0WkUejiNZjpIsl+u0WgOWQ1mOoiyXlQMbRR6OY1mOsiyXK7UaRR6Og1mOwiyXK7UaRR6Oo1mO0iyXK7UaRR6Ow1mO4iyXK7UaRR6O41mO8iyXK7UaRR6O41mO8iyXK7UaRR6OA1qOAi2XK7UaRR6OI1qOEi1nc+ELn47iOKTlKNJyWUOwUeThOKblKNNyuVSrUeThOKjlKNRyuVSrUeThOKrlKNVyuVSrUeThOKzlKNZyuVSrUeThOK7lKNdymWs1ijwcx7Uc5Vouc61GkYfjuJajXMvNjKpV5OE4rOUo1nK5UqtR5OE4rOUo1nIZazWKPByHtRzFWi5jrUaRh+OwlqNYy+VKrUaRh+O4lqNcy+VKrUaRh+PAlqNgy+VKrUaRh+PIlqNky+VKrUaRh+PQlqNoy+VKrUaRh+PYlqNsy+VKrUaRh+PglqNwy+VKrUaRh+PolqN0y+VKrUaRh+PolqN0y+VKrUaRh+PolqN0y+VKrUaRh+PwlqN4y2VNwUaRh+P4lqN8y+VSrUaRh+MAl6OAy/mlNVtjEnN8y1G+5WZY1SrycBzfcpRvuVyo1SjycBzgchRwuVyo1SjycBzhcpRwuRlXtYo8HEe4HCVcLtdpNYo8HIe4HEVcLiOuRpGH4xCXo4jLZcTVKPJwHOJyFHG5XKfVKPJwHOJyFHG5XKfVKPJwHOJyFHG5XKfVKPJwHOJyFHG5XKfVKPJwHOJyFHG5XKfVKPJwHONylHG5XKfVKPJwHONylHG5kOsIGqOeY1yOMi4386pWkYfjEJejiMvlQq1GkYfjGJejjMvlQq1GkYfjGJejjMvFXPfSGPUc5HIUcrlcqdUo8nAc5XKUcrlcqdUo8nAc5nIUc7lcqdUo8nAc53KUc7lFZbBR5OE4zuUo53IxlxE0Zg4HuhwFXS7mMoLGzOFIl6Oky2XS1SjycBzpcpR0uUy6GkUejiNdjpIu1+c6gsao50iXo6TLZdLVKPJwHOlylHS5TLoaRR6OI12Oki7X58KXxqjnSJejpMtl0tUo8nAc6XKUdLmZWrWKPBwHuhwFXS6DrkaRh+NAl6Ogy83UqlHk4TjO5Sjn8l3OzuYnjudAl6egy2e9wUaRh+dAl6egyy99sBpFHp7jXJ5yLp/LtBpFHp7jXJ5yLp/LtBpFHp7jXJ5yLj8zq1aRh+cwl6eYy+cqrUaRh+cwl6eYy8/IqlHk4TnI5Snk8jOwahV5eI5xecq4/MyrWkUenkNcniIunxFXo8jDc4jLU8TlM+JqFHl4DnF5irj8jKtaRR6eI1yeEi6/VGg1ijw8B7g8BVy+lGjx8RLPAS5PAZefYVWryMNzfMtTvuUz32oUeXiOb3nKt/zSDKuB/DyHtzzFW35GVa0iD8/RLU/plp9RVavIw3N0y1O65ZdmWI3MWc/BLU/hlp9BVavIw3Nsy1O25WdO1Sry8Bza8hRt+RlTtYo8PEe2PCVbvhRoNRZEjmx5Srb80g2rUeThObDlKdjyM6RqFXl4jmt5yrX8DKlaRR6e41qeci0/M6pWkYfnsJanWMvPiKpV5OE5quUp1fIzoWoVeXgOankKtfwMqFpFHp5jWp4yLb9UZzWKPDyHtDxFWr40w2rsdhzS8hRp+Yy0GkUenkNaniItn5FWo8jDc0jLU6TlTc54bfhmHNLyFGn50hCr9WK5wUqRls9Iq1Hk4Tmk5SnS8kuJVqPIw3NEy1Oi5ZcSrUaRh+eAlqdAyy8lWo0iD8/xLE95ll9KtBpFHp7DWZ7iLD+jqVaRh+dolqc0y89kqlXk4TmY5SnM8jOYahV5eI5lecqyvM1DlU/r8hzL8pRl+YVltYo8PMeyPGVZ3i79BhprIoeyPEVZfuZSrSIPz6EsT1GWn7FUq8jDcyTLU5LlXa564cMAniNZnpIsP1OpVpGH50CWpyDLz1CqVeThOY7lKcfyM5NqFXl4DmN5irH8jKRaRR6eo1ieUiw/E6lWkYfnIJanEMtniNUo8vAcxPIUYvkMsRpFHp6DWJ5CLO9yHUHjjMhBLE8hli8lWo2DFQexPIVYvpRoNQ5WHMTyFGL5BWK1ijw8B7E8hVh+BlKtIg/PMSxPGZbPfbEaRR6eY1ieMixfirT48KjnIJanEMv7nJzd8AI4iuUpxfJLlVajyMNzEMtTiOV9zs1uRHk4iOUpxPJLmVajyMNzEMtTiOWXMq1GkYfnGJanDMvPPKpV5OE5hOUpwvIzjmoVeXiOYHlKsPxMo1pFHp4DWJ4CLD/DqFaRh+f4laf8ys8sqlXk4Tl85Sm+8rlCq1Hk4Tl85Sm+8iGnZTf2PA5feYqv/IKvWkUensNXnuIrn0u0GkUensNXnuIrX0q0Gksrx6885Vd+4VetIg/P8StP+ZUvNVqN9ZnjV57yKx9z4Utjfeb4laf8ysdc+NJYWzl+5Sm/8jOLahV5eA5feYqv/IyiWkUenqNXntIrv+gMtoo8PIevPMVXfsFXrSIPz+ErT/GVX/BVq8jDc/jKU3zls85go8jDc/jKU3zlS6esxovl8JWn+MqXTll8arfn8JWn+MqXQq3GDszhK0/xlc/4qlHk4Tl85Sm+8hlfNYo8PIevPMVXPuOrRpGH5/CVp/jK50KtRpGH5/iVp/zKZ37VKPLwHL/ylF/5RWiwVeThOYLlKcEKmWA10t0DR7ACJVghl2o1ijwCR7ACJVghKw02ijwCh7ACRVghI6xGqnrgEFagCCtkhNUo8ggcwgoUYYUFYTWKPAKHsAJFWCEjrEa6e+AQVqAIKyyVWq0ij8BBrEAhVsiVWo2c+cBRrEApVpiRVKN/T+AgVqAQK2SI5fi2JIGDWIFCrJAhluM7igQOYgUKsUKu03J8967AUaxAKVZQuezFNYxww5VirJAxluNbXgUOYwWKscJSp8V/Gg5iBQqxQoZYjm+aFTiIFSjECrlIy8WGEW6wUooVVPYH+CU6cBgrUIwV1FIG2zDBDVZKsUKmWCzUCxzEChRiBZ2HKt/aKHAUK1CKFXKFlue7EQYOYwWKsUKu0PJ8hVbgOFagHCtkjuUb05fjWIFyrDBDKW//cuo/OhOoCW6sUowVlvos3ahACBzHCpRjBR2+N8KNVQqywkyl7HSsmJ7Ga0dtcEOVgqwwU6k08ex0H6anNrixSkFWWECW5f3wwIGsQEFWWECW5ct/AgeyAgVZYaZSTvG+b+BAVqAgKywgy/xl/X8o+lU4ihUoxQozkWrtVBzDCpRhhZlHNTrNBY5gBUqwwkyjGh584PhVoPwqzCyq0WkucPQqUHoVZhLV6DQXOHYVKLsKM4hqdJoLHLoKFF2FmUM1Os0FjlwFSq7CjKEaneYCB64CBVch98zqGkOcI1eBkqtgzXfTlSNXgZKrMGOoVm/pwJGrQMlVWMqwtG94MBy6ChRdhUVdsLHHceAqUHAVMrjyDSeIA1eBgquwFGHpRhFW4MhVoOQqzBiKb1EZOG4VKLcKWVnQN5wgDlwFCq6CWzJXeEwbOG4VKLcKLu/5fEpR4MBVoOAquLznN7wgjlwFSq7CoizYyCkKHLkKlFyFRVmwkVMUOHIVKLkKi7JgI1UjcOQqUHIVZgrVStUIHLgKFFyFGUK1cpsCx60C5VZhZlCt3KbAYatAsVWYEVQrtylw1CpQahUytWrkJQWOWgVKrYJfBFsbL4SDVoFCqzATqFY+UOCgVaDQKswAqpUPFDhmFSizCjN/amVYBA5ZBYqsgl8kMBuDjCNWgRKrMOOnVoZF4IhVoMQqLLqCjQyLwAGrQIFVWIBVI8MicMAqUGAVFmDVmjAcsAoUWIWQ8Wpj9+eIVaDEKoSMV3lUFDhkFSiyCguyamRYBA5ZBYqswoKsGhkWgUNWgSKrsCCr1ozhkFWgyCqERQGzMVI5YhUosQozfWolNgQOWAUKrMIMn1qJDYHjVYHyqpB5VWgckjleFSivCplXtbwQjlcFyqvCzJ4aXggHqwKFVWGBVa3IcOBgVaCwKmRY1fIgOFgVKKwKGVa1PAgOVgUKq0J033kQHKwKFFaFDKsaHgQHqwKFVSF+J9ceOFYVKKsKM3dqeiEcqgoUVYUZOzW9EI5UBUqqQv9dhnXgQFWgoCr032VYB45TBcqpQv9dhnXgMFWgmCpkTNXyQjhMFSimCjNyanohHKUKlFKF3n3nhXCQKlBIFWbg1PRCOEYVKKMKM29qeiEcogoUUYUZNzW9EI5QBUqowkybml4IB6gCBVSx677xQiLHpyLlU7FT33ghkcNTkeKpOKOmlhcSOToVKZ2KmU41vJDI0alI6VTMdKrhhUSOTkVKp+KMmlpeSOToVKR0Ks6kqeWFRA5ORQqn4gyaWl5I5NhUpGwqzpyp5YVEDk1FiqbiDJpaXkjk2FSkbCqq7hsvJHJoKlI0FTOaCnyUPXJoKlI0FTOaCnyUPXJoKlI0FTOaCjwkixyaihRNxYymGv5Q5NBUpGgqLhVWHV9QGDk4FSmcimrZ/rlSz8iRqUjJVJwpk23EhCMHpiIFU3GGTK6RMRM5LhUpl4ozZZo29Mbb4EYqBVMxiwcGPvIXOTQVKZqKM2YygX+nHJiKFEzFDKYCH/mLHJiKFExF/a2fGjkwFSmYihlMBZ6hRg5MRQqmYu6AFfjgX+TQVKRoKs6YKTT0JyJHpiIlU3EhUy0hxMiRqUjJVFykA1sahpFDU5GiqVikA1sfhxuulE3FLB3Y0FCLHJyKFE7FLB3YWoo4OhUpnYozamqpdEWOTkVKp2Ius2qodEUOUEUKqGJRDmx8YQ5RRYqoYlEO5GlG5CBVpJAqFuXA1nvlBizFVLEoBzaGCQeqIgVVsSgHtl4sN2ApqopZObC1mnCwKlJYFWf01NIaihytipRWRZtFLBo3wvGqSHlVnNlTS2shcrgqUlwVbdawaMw+jldFyqviDJ8aWguRw1WR4qo4o6eWwkHkaFWktCrmQquGOEHkeFWkvCpmXtWQSYgcr4qUV8UsGthQg4scr4qUV8XcDKshsxc5ZBUpsopZNbChkBc5ZBUpsoq51irweTuRY1aRMquYVQMbMnuRY1aRMqs486eWuEDkkFWkyCrO/KklLhA5ZBUpsoqLZmBLXCByzCpSZhVnANUSF4gcs4qUWUWXh2tjIeGgVaTQKs4EqiUuEDloFSm0ijOBco3K4MhBq0ihVZwJlPV8QkPkoFWk0CrOAEo3Us4jx6wiZVbRL3IrjYnHMatImVX0+YTF53ZFDlpFCq1irrSKfNg6ctQqUmoVfRZkbSwBHLaKFFvFXGnV0C2MHLeKlFvFRS9QN/QCIweuIgVXMZdaNfL/IkeuIiVX0S88IDbOSBy6ihRdxZlDuUa1ZOTQVaToKs4Yyk4fmP02HLmKlFzFmULZRppG5MBVpOAq5oZYsXFY48hVpOQq5oZYsXHO4tBVpOgq5oZYsXHO4thVpOwq5nKr2NixOHgVKbyKudyqNeY5ehUpvYq5I1ZrzHP4KlJ8FTO+ao15Dl+VP/zvv/5xuvwabo/h+P8ux+H3P/7zv/7rH/vDYXxeHv/463/+sTstf6qU0X/N1/vHf/7PP7TpwvT//+///lUuk/7XX2B//rt0wf3hA1npJk8SrKh+OrzKrEz/oDJjJzcfrCR9EJmRx+kXNmO61UzSpZSbOejaUEr5Wd9N3y//1Cw39tc/pldnZLaPx9twv6N79K56VCu0M9x303DYDYcX9Pa1r17+dF4Q2+r11laobWmxLe381lasbYmfcbgcbn+u0+dAL2zyqtcX5oVjA4x9DH+wNV1bEw7Xt8ncbZpU1+fL+XQgJk2s3lzq8iMyefq9u38eHXptwdVzqZMbur/vFbZUD4xeODCyJZ2cztpWQDP8R7bmZja1rXpg9MKBcT6/j/cHmkXOVDeVggfzP00BAKHF8zii5dDVQzbFzxeDSniLn/fTy5/rHk/1XtVPmzRtltUjiVuIrF5PZKgFV6+22gg/xvWUbu1rvB2RMd8hY8JHvV6P4+f+dMFP6tCTCp/vdnhHq66z1aob4vLP9DJM0vKrYPntyquU7hXTpU6P4fB43tCOoar3uexd00f3wil8e0OfO/bV0qKSFHi+x1DuOxW7Lr9SGVP+VS6rgtXll8v/ViuX/zutg3Ctur3Nf4A3nViNxFRUVt6eLb9sftsqauHT3+/D58v5Dx4G9Rvw0k1ysoRv17jKjjXC5et+Hw+n/eM0oqGZ+Gzl5vRCW38uB/QCq02jDEK5pWnk3faP8Yb3SGfq0a6ET/k4YddJqa72VbQWPuHjMblyn+MRGfP1sqq6KLyn52N8PeGJFWy9uKheNk1fpns6jvhFJWGKdWV2eZymYMIyMVLD0eVXnmjiq9yGf+ILufpCZQtwsg+djA6X43H4dToMaDT7vt6Mpe5Qtnd6u4y34fA87rFJVZsUbnvI5Pvpii1qZFE2ipDFz+GxP2ObBj24bFdANsfr5MYRoxYZlX/yZPTyOmJjDhmT7afZ2HRomOb01+n4QLtY6NANOvkNvt2mQxraontd7/dJ2yMv10LX6WV/PLzvb9h1spXNKPSAX2Zfeve8nH6jxbVz9doj/MDD/kDW6NotNCpvl6Z4YTPzlls+oVdYzb2yxeVNz5Q9z5RFxfh8xaRy9YMLXh7D2+30QHuhrge/8V25gnA4gOHbLzypptdT2Y15N9Jd/Mkr+vv0mCxjs7o2G4pZ4SlkMXsb3k53Yjig1c+Y4vcY4ba+WEYjOIXx1nstXpOxxU+0toybH73tx/7+gS/j6su4Yv0nQyPZxPder9zG+TICIbIAzpk0IvMyrZDvn/sbuncf0QahhRtEMTUdkLA1tDkIXQywhndD5CN24Ad3RuZ3vpwu+xs+FFWPGovTraPwM01GmCiN6jQ6i8fiKPd98TZUceunX8IXMhm/jjcchuvq/WwyVdY8FYUz73S57vEO1KMTe8qxWUzmsSUw+fjcXz/3v/EYCMhBkH6t2RQ+LfqIHCLhwfPlvP8Y9MuOhCfwDi58Z9mUU3p3/drd92cSGq2HqPCEWdtMBifDJNxa2xTOx9t0zj6cT+nP6gGPvAIlPBhWxl6HfToIoxEfDHLYg/Cpk9EUncGm0OITfvCwbJzCIDdSOi9mc2S2BYMWMum8TaaWACD+DGhGCMPNlbF0lCMWI7LofmLxficn32CQIyo8zNXWvlLM5HyiXxfNuCj0mW/Px/A63g7olKjrCJk2woF8P552sz+KJlisQznCKOzL83RGY83Um4kt7qCVutvJHP6krg6y9V3e7fpO+DEWg/O/r426OljZC4fJYovz0ebmVnWQpOwYTjp3F9v4nFHHKmNfQrR9OcAXqjJdrvhrTjq3l8s9bqe3t82TGPQkBp5EONeft8uAhoSuiYHpihtYorlO+ik34WHT1Yalk/3PY7h/3ZL/jiZ7RPEW64SzcrI2nS+eaHT1aKfPgZb/0xQGaKbeAmwnG0UHPXnMr6c3PH+qm+mV1ND1Nr6ezgON8HhbG8ujvBeG8g4ab5h9vQsbYVjnsN8d0sr/ejrsHziQh84bM22XGTyfh9/TaKDL/yyhWHmWVUwZ5ltXJnpSUPzx1cjbnS5YP4Cy5WyqrMyZOOwn1/6E3ZKUZbjCtWLS2VB+5OXEl1O9tgrmPCwx0cr2g/kO/ix8A8/V2nGwnXBK7C+H4cwfLudex/XWV+L8Tni+TMPnbbz9mYb5g6y8wSNfUxjVOhzoOcJ2lR2nZQvU4YgHNSIs1hSoA+hhlhDIv4Tb7OFIRl7EvLlMbGWlM3vAbqJ11QHFSx+8Oa09mtbCkbha2z8f72MKLx33DxQFDgGdU0owIam2/dvXoBHSENBY8oVhamHgsLrG5vbrTIgkn1lM2x+/8O1dI7TpICrgfvz272SsBY9euu3grmV+wOF92gGm/0sVOPUoqTcT6Wr1PrlBN+wH2HpXCuXuQomNqSAM0h7eP0c8k1W9GmhdorTTr7KJ2LIqz51kxFeh24jqamKni8c1/RIOuffx60IsojA1BES0NnDrsDAJIxvzVba3btE7gltX0lu/jZ/Dy/4+TMdDuqG7OqmjFx6WDu/plHknd1mvyTmLIN2lWV9HD69DOBmX62xfiEdv3sObFy5R788Ljh8Gh+af1COc7Zz+RRgligYUbyGlecuMnu6Hcbe/73c0kadHjpBwxs3WTuN9d335OL7qHZOKU8fStZAYr3bv20NzX7NjJXQUZoPX0+/tYyOHU7gEnKZj3O/dZXjcJ+dyuO02uUz1iqaVcHYyVkkuUmqQW7vHMrvn6RBHj+O9qgMtXhjcO5yHPckIqLeWWSpTZofGB129gIayr4ZCMAL4/1E6e+ZLYGDs6gB5qmuXGzqPb3iRqMH7tAiVtUfschar1MNIUrzVC4XTgHBCzmavKLMRHQOE828xczv9mrwJks/ltKlf4o8MPl82xmxtTDiZzyPO6PUoqtk54DMlGKY6YahiMn1H86RmUoBRQsnlmrUExXanIxU57davclrXfnCP2M/pOpzvKJ2FkyEmCBvruaiMBc4HDocrQcG5oYL8WtN3w9u6rhNltFPFGQviyTmZfTwvl+FM7NYLsFu/l9QfW+0S98DW208w2aMMwrTGw+fxfLrgeHK9pAvXNhwzr0/lqS9AcQnsergS2h3P5+FAs9F8ven0UfhhxjOBkwql95ZD9eR2CFeQ8TNh1E2qXB1r0VLHb/rbPc5a8ej2uuJkq5zSnCJCQrad/vb0wEt6/Ymlh+npb8cLXskrM8LtYPy8ns7pFIvvB+3ZwhmxmEK7v63PKK5UGjjpKM4WH/vb24Bu0NTuk1MlgCZ1cSe75+FBIuIKxdjzR81HKLlJ8iJrfmMcbDaQ9Kui/JYpzjf1tDMhD0hpvmCx+Iq+V30aSz21ZJZofNvUkQpbQmGuxHJ8iQuGEtUMKrsxEbBJ1NLnSFfH6VEB8XMjPZbNlvArrt+HDfn+e+khZdrOp9US7zt1GsOsrfEDS9PSdn/cUowU12rULNlKT2azredhk8HrPVqLyo4eYlnnovS4Ml4e1ImvJ1mQwoDFDuZwdW5+KCmEQZjYlS0+/lwxgVTVsE0inzJb4wcJ77s6vNgLU8I2tWy23nCcNHyIjjOpg3UdgCtb6hoJsbZEvKRFB4crjVMbFKcG78JKA37X5/719XQhqYY+orQB6cZ9o7V8OLxgCrKdPB7h6EsWd9cRJ7yhMkMhl5wt8SnqWuHD4r9j7/U2fv59H0ngtBpCwp0MW32M1Gbtq0gxarLJp/TViZ+pA1DZIaW+FLK8W7Pzpv8IJ9R5lKvUlUjv9OsHX4/zCw3yC8t5XHXSA/lil26hAU1dVU6WaTjLzU5vYzyeLsiwro+UYoxWW+MGmqs+o//BgxebzDCrSxqFS2iymAg5jofWJ18NI0z/ZIQlo3O0FQdtEUVSEGmV0ghk+Th+Xc7jnoBGFOO3HSxeUqiILvG8Mhew6AIeLvCDgTFfIDvAxLpH1iE60Au3BrB+GzYEEpEbC0DFCQtDwfZxYO47INsQuxNmJYFt4pY6dA7XP3zFmBhYZKsry5mWhsjAKk2FSybQ01t4+h+Oa+pfpd6Iq2H/wyGcrLFLT11l/4PFsdhklp7K8xCWZs8W6UqLidQPhs7f4wveC1BqMaSDq/iDaTTZvD/2jyf2YxSikj/wEMAc63bU6S0/+CRgdPtNbPVNpJkAyeT4fKQP/TrePsnRXKM5/u+aZEdkXdv/g+mIDDPDsq7X/MHkmU751+mwh3dF5LSrkhuppOXrs+H0rWgoUKFAO5Tidj8Z/tnut96cRgUXECzshDV+9XVYx1RhQmchnu2k8ezqCo30VBSY7GFz/MmszhfAxSj1+t2Xqqc+xvIDDn9l15iu+YPxX665WU18vSX3JS7a/2RDzrb5JFiUVg1pcC7+ZGj9uRy4G6/zMcuX6PufjCUwvLvexrcUWWOOIHUCT9dBOFDKMtKFaM6dR5y2K9kZKZz+M6Mvf07UN+zQDID8aWlaZbH8vB633ptCtiG7UVjxN9v+Gm8fyaPNebH4gF47zj/Zg4hRdn1HYjf/tmlmha+jr+JR/blJWajtKGk8+HYwWNYECX2IYxKTlQOZt4gVSs14+/d4ITk+NQmTR4To0aGuCTJwaAvFzTUaQp7C4u7lEkf8Jaun7sWe/rBnEEL1MY2F8AIcN1Vcj7TSyZOuc5vTsfC07FA4phc7hMkex27r4x9gmrknttzuFt7aOrwfClUK8N1ceTdzv+qfXmmDc219MVsu9gPDaUMjAhehjrIrDQRdiyNq07l1sorLqF0d6+zLiBanDYBNsjnWGQ6lZrQvAhW92B8ajiRjL6Bkcag8dWL/frK4P5KEzoAiqVB56sThz8no7ZPYRCHkAJvVDz7W/X45vb6+7+/v9FScitiQeRjG4r1lMs/ssUjjarIL53hxgG6833mqW4eAC8t04lWuMovLImo3zJUMzl5aaEPlRNDG00m3i8lKS1cDJeN0IGzUSatkJtNMBqxHNaqdUJnl8Lzdpv9djs1EHqKO6vXSoNVi8XiaHLb7/o0EUdFyJSxEzBYf4/Q2x68LHkR9h4SlyqFEOcinsAFyiKQOHL0gWct7lLfkYOMUH39SZOJzFh8ZHiifMyBnSUmdt9qexvZQ+F8a16rtGWQPuU5KGtWq7VlsD1VDe+EU/f17W45j67VE9pw0JRKhHUiILLInBfmFEskMJaCbOrDOP6IvlZwga6YhdmHKv1MW6I4tp2nlQOXCAaTxxdVRHkopPOzxkP6gwJ1QUNSgAiQnRrDSlzqwySUrwT/Y3qejVMECCrJMg9BfT29yl844u9Pn9by/kEiwr3emIJQ+m20+xoZFlOkk3DKOB3SkwIdH4Tl3skEypesotzBz6Di8PHGmSw1ujTBAPluhJ1ZT5wtb6YtJljZ6Z0gnU0m/2nCgULrajQ2cMcBNMxqyXY307Q3X6/5GvdY6w9dAbqKPcJ3iw8G8nXvZy674un9iHQxdRz6l7vZxOO9RKCd26CgqTHVYUFOeF5syfYWBAVT8TTdZ3kUUuhroQkx4ZG4NUV8KapwgEhOFIfHlUvTQVD+JM3mlckIf7Dhcb8NcXHd4Hw4fk0eyf8H37xH9kspEHYcSiP3a3z+bFb8oYqG1h0oiYdD9SKMWdTKaMKQw2TjcTtdNMmtfxy7K7uU8bAAwJ40wplhdiAgdVAMkClNAj8Njf8J51sqgs5OwImUxRI6LBh0XhWlux9ONSJg5tKcJ7ydVB22S+QISLNTrLJW6Maf7NEH/zBbwk9abpBFGS47n8/vpb5L+5OqJEkv0KAq1esEklRyok1NicV2isHbkeLkvJek4260+UxbtYycUgUwmxwtOZbUoT0n4Di8zDh+2RweLMlxK9pAXJg9Ndj+HOz1VTZscUkuFQsIgzMVbzW6CCrrG4tOmLRyRyCAX+1ak/EhYEIcNbyPfqdAbmRVuqJf7lYi0Y7ll6ffZiD/beoN0JUvSg0ZzDs4kd14YY2QEGGztYrly3PXSd8pkDEWHFFNK+Gv6tVbBlnODN1D04mDkCdlOuTbNBbX1SQykhqZfwke67q+n3S+1Ozx+79RufznuMJOI6KQnvNfaqMHmajdCiPuyOd2+x3qCdMKVtjZK7rGeGMJquiNO6YkogcSCMw/Zv9Mv+DNhuc3xedvQf1PXelrpJrORRkNfRUtHZDLDyP7UcZkojHwOn1fiNFSfYPk3svE8XJLnSkrxUIRaCX2FbOnlD3OkmUyiEmrh7rGYJE+qOsSTe9D374VnnDmjE58ja4AFUhsQ3DOraIqw/H+5BFZ6rWU3bHGMfalZ8CVcA4WZEZTsbSj3ZEHJ3isIswg91nxPRPG9Gny2uEm27ByxXDgKw491Ai4+8CNNPGHhzJp6i20hITxhHGLAOdERFRw6YbnMcJml9MbHFTteKBE4lI1YtioMKZUEn8d6pHUShNk2ydB4JWLIdXFXkL6px+3PdTzhuFiP9k1AmioIz/vDBXWX6ZF0kBee3iYjw3nEfmRACuqmZEFNv6Tf9BfFKD0aHKGHwKcwT2g2+T7cTo+kRIUfO6DHls7cXxQTIKmpAJggiOfpr19YBQG1ayiNl4R70Q1jk3przAuKK95pCf9C4wtw7FSnIcUP8r86+S3gIrEe6fIFiB4Z6Ux/fHGNZZAsPDgpXuiQDL/2FK2ljtvrDC3Zbga+gHTE/RouRIuiLmOzQBPWCjnh0EuGd4uW2q7Epoi7gJQadRQeaJDllIN1G+7Ua9B1mZqWdgWaLdMAVx2vcFW8VrhIJ5ObYrwaDAXpGPg9HJ4PGi1EFeC2OAI/MIhXGaTc63sYp1BaBju89jAkQtnsdRQWnuRLsy1pUParByUwDyIocPTSfq3ghDNgFB5ZyS3QZRIlC3moafZSp2GxPgt+4RdcuyBrY5/wsxfHCYn1dQXCtHAViAf1x9OL8/Dtfv4Y0+XoS0J6xaGE11UQMvRsnVpFMWVfWMn0S3aGXa3u0q5PE1V7lJIAXvT06yfTcPiazI1fZK3A5WdFek+LV3lkevOy0YgEfXsvTBFOxhEawGFZjWS/oEOPhn4VDuqnvDDguLniBkbUU11rmMJSlQjuArvP4fN1m56sEKmYHgvE8IRy2MPvE+loF3HGZlkhlZW6pL9PD3qc7FHpAkgITHcpHfsnkqzZowZR0phhsjNi5TFTg2kj/kKnB00P7FH1pzQaOvzeNmKISAtNPMmSIXyWrTOArJAps/PI1JF0K3VBiyWa+uHqKR/hdF82o/hT+7g8qvaQoIlJLySjyebtsj+/JZyw36zhro7Qx1KBE4UFOMV4gcmbBiKmDgpYn/c3K9T0IOYZiY86wdmWvmVWGmDjzO9KDGWzMpn6O8CeYYVZUdPFbvvn7Xzd3yYTVFfYhTpTW1g+9Lo/nal8DKaTMjMkdxVJ0IB27PSruHBSqYEN70f7YnFBypAA5ZgSmBIe49JVUkYrno/Vii+V4ptLZUmYIKJsS6g+UVYItpNNmhmjFEr60cLzSTJFIa2uA466bGyQE6Mga0VZYVZQugrNjnP1qhuFOr+LRnw67uG9GMkHO2GUkCk8RgLH4NAaIY2ZDf6ZDroohBlRMyYnJMlckXG9LhUPJv7gQ7fAZ+0jCDX92hXGtQsj3E1eT7f7Y9Zcx0kIuo79m5IhZQDKC3XnZvO57A6vbLZe2ZwwIPl6ptLwSNZbGEjbtFbxKE7aQRImNLtTUEagrBCDbEuDTR3egtwoJ5R1mOx97W98/y0sdQsZnNI2Ntk0KYzsLG4SIzvrgC1yi0iutRNGx7Mxpg8YYl1wepE22Hm9DcP9useDICI+KB6RzJyuw+Ql5SQF3PJdmjUhQ5iHki7CZDjiviFwHcjV0pDXKF34nufzZsOsxTaUERaeJ0vbBCQk1GCEyZavz8ssUUbN2foMIq3IKk4zMlQXtPjymTyMKlOUEbTzkAUuTLgr1yueKX4fETl3Ja6gndCbpsbfhiX7c+tWK4z711aYThiwpJe6738N20xTnKNgIJThhMWijSONrTdfX9ZkL0yyBaNP6nKg/H4lPGMgc2ls3nEVYUCCnkqYoUKtkoaCAfWMV8JJuDGKc5ECQvJKqIaEjN4HvKkHpNOghJVmxeT9QTPZFIozrK1WnVDjD1mmo6p2XD10s/3hB3teTv98DljuW2H9EwutDbwQbxbjX2+LfjUzobVCVfTQ0ccLM4PSWrHpLZwmQf2+IX/LCQW9wCrJsa3bm2lIMNaQAKelARW4QIJPjBJkmnDoUiDnIPRf0AXIUyAfBnzDybR0mD8kXWQU7ohgevgIQu8GX4cxj3YdEBd3Qm8xmWeqNxUOVViQvvZC6etk95ZSkU609BYJdIB748QL1mz3/vKHL5MNaGwGeNviRfZB0iSUNmj6R2Bmwnq2yeT743GFzmwvTC53jyYqFDc6YQScXoKMdNQf0gDZd8Lch8l60lwiswd5IAASoSvZtAaIP+h4TevjSA4ZCgkDwFlVO3C4ozC/Z7rE9bxPLcV/fz94IvoMAfYn8S4yNzsgZyU0IhWk06oi+q4tTFopOisX2rShQ7BeAa9UwlPpZPeWjmevX8eS4U7AnEGUHGC2F+qkThfInQLot0arAgQ1HbyuKGy9na6wCRz1HToMlhoMtbbJs7D+e7h4WM8H4p0+X3wjD1FrBpfG30EYQZ2sMhXh0ztDKz/0l3OQKhmFwQ0ijI2bsfQlIQa0RAwQcVu1whJ+nnF/O6Dopak3GlicQJ0DRkBfxBuVNCPpbcR6vKY+IZgSFnLlaVw5YPdQyttJB914TXq42N01daqSEdbXv433x+62M3qn1E53Sm+afqPziHAAbYyShkA98vOFO2U2apPRHtV991iUWWbuijxi1GFUSDbfbgMWtkbRRAdF0esEgYR27YUR0HSNXY6bD5RARZQW6zQsM9JhNBlPfT2u4/1Es+YjSjd0HdgWyvkk27QOo/bjFTRjUdK+votJmjEWUW9DBx0pnXQggNX763ijjCp6dM+wJknjrm+35wutxKi3NGEZ3fv+/LoR1ELVvsLkvg0Zq+dOL+zcnIzs7ntSwqxRnbDc0nTM4ARIkHZFJ3Tukj3sjXqUmNEJ/YZkZ6O00qP3LSwv5xy/GisVl6aHfKZOeFArllmtU9RO9kfmGJXTGrUI39/hsL/+zsV11/0JnfV8QOu1ULTqfdhvShnqjFc4e/WwgwujrO/D793sr6PhjE5hwhSVyVLWJcF8CGnpCNO+Jlt0inmUKNgJNa4mQ6kKiSoqe9SSsRPCr/fTMae5oQHdI3/Xr9mnwrF3envHL79eS4Sh1aUo+HgmLbWQ5qKFTi5eqIT/fvpFarfqfTFCY4lYslxVLG78tNLDL1ASisKCvvdx/Hi836ZBj5eziBwVYW3S+4i/va1xORxPfEln8CWpyJfYI+TR+nJ2jMW9iSAX0wPv7CGDEnoEaA1SnQaatjhhsky6/x3Kttr4Qq6uJoxFsSMKKVG6wOnydr2NB4JHbV1OH1bvQtjxYDY8Hqh2W0RhRgjxOGGIJ1nd5H7UdV26xLqNgu9VJqUB3R74hioWXbNpRJf/LoKGUISK3RjhVzmnqR4Ee9XaQFiYMJYeZPNuUJwU8j2dUB4qmcS5VLUHEEGMyECTSicUxkqWn098dnV13n0sJVJ9X15sV3IfVAen2E7o+6cQG943q5EoHChzlA5njNTVsMJA02JmyxFcXcrSF+e4F/rGtVU6mk2t1m6F5ai1QZrXWJ8S+jIpeqECQW0Yj636lNSXb90LZUCK2dSrCVmtF/m+FFL1Ukdutrq4S9jVrxsiForSC1XsFqvNzEtXJ3b2oJIoFPzKweT94/0+vM1/g+67Nl02115IuRfT2Sx1xGtHVOqqUHus+13tGcKC841dxg+vxR+EDmm2eptOWNxHq0VUywbRC6N4i+06hRV/tXpmlHh9/5MFZ6OdUr9V6QYzGWqKp9QdEcrq7IWBxWSYeGbV6vwDG0t4OnUawxGy2tWPEH6JwvDL+9fn5ChtNaoCysdR0uNcsvYYPq/7F5JMFVALXyVMBn3/83I7HXef+/vHjjubaNRdVpjmlI0We7N1ZFRhVCcySiLVSL+mJKiYUu0BPYdNOQGBa2eL3JgtQNYVT8SVk4MrXrMrJMiV3CFX/LlQ3LNQLhFKYDkWrz1C38qS+NsX970vMcK+3E9f6vT64u71pVCwL1mLfTlaK1B1VB34k6q8B6VhmGqou4OmpdOvtbFv8SI1CNYYyKU2YMWAVwqdyhU0ilDgZOkOOgd2pa2n7sL6qwRd1SpJBnrGoUpzk02G06xH/YpOHwHVPiphwdvpSPoDdLULL2yHfXrdLuxRoQJ5CC2t3rQ1wADLp9IB0h2kVe/l2jTQizL7gWsqI/RaTx/DJtiJYihO5rAnO/f3vcKGkNquzPmZ3J7hNu3GJPUvIvAAs3b6VUaXhRwYX5SZdYBRGISxgOry9E0jkuICIAdhmVdL9dHUB1QImlghVKqt4gXU1MTCCrMHa3Mk/lenypa10pYMZtBQ0Ss3dICQozApCV19l88Am/CDqak7KPJaYZAJX+M23Mfn7TCcjsx16pQBC48szIjG15nT2o7MJerE4LLxWKHiUTkhYFnb2oU3Zc03wnN3u9yrdj5glYNFrhdGlpF9Ml7rxFcnLPLJ9qilOuQmxD7Z0iZ3uV5fXUlUkaYctQVYbe12ubJJO6GTiO2Sp6+lV83PRiuXY2Rr7RIQu3aQVGGhrQcENacJ/6PhwCV9mjo2ZUsEzAqPjqcLdGHCfikq/xJuCZfD+XkcjjivxdTlaUa6uyymaLTJ1K84F0lLbX0+zuS+UHcb4aa72Er/7HrC53ZTqzNbYc5qtvc4kMesdyQhic6mvvBqVPuA0sKzydJtoBGPgKoMlTDSAaZo9jeSZVDSTReskbRvjdK+han5yz9GLqJDHqp0SGAkG9ApWTs4iHhwxaz0O5xojTpKbYNU4yCsHk0GT/vz6V+0/ybKvBYGNk8Xhkz0KFveC0NtKSvx7Ubamuu6hsWUfDFTHtoIozbJ9m1/4FLDNUp1jMLU/mKQMLgkH1+/xCBdnMAad4eodjYICyArmzmSg40G1FlAGBcqRnmLPXqRP/gyv4jCfW3JgMa9EQ+kyR4Jj6C+zcJAWraz49uCo6TwH93YjuuuWp+vxSvDYm7bN7jetsUDejFWmu7t2C6BqEGZdBz+Gj+G/0MaCemeeGhP6oX6Ass1WjmnfYcSxoCASdtqL9bzSvd/PAcSDrDQ4ERYAb1c6fP0xhSL9Wjr9YBAvbBT12L7ft1/XY5n2rWtt0gkBj5AkH6AEXUccRpVlRfQK2RakzGCSav1T5r9jCuXbB1hdYVbqSA9BV9xVifqZB+EqQKnK05fRd3Ng5Ahn665UBqfOiLacY1Q2ud0/Tzp3XX/cd29f+4P24iUw8piMqP37RZmatfCCNOMJkMblZaI3CppC7XT3D9tfmukwTxy0oSJitDbYKM8WK+OURokvc89yUg7zDrptxeWQkyW7qfd4X2Pa/YCygoSrhX347AnmfD1llxOrkaYfz7Zw4l2EfnqFhLaxWGpZHD6BCMZHmjAWmms+E5Ss3pUQOuBJwTp2nOnO6erS9966UHnTpbViJYMK53l93EXo+t3ymGXA6WfSUdrIranA8mIqGMPUufqPq02t+F4Pr1gW3WIT3qimWwN5zNVPjN1rqkVpn5Mtv5cDsTb8139+aRRgvvzctqosSE5mCCdP8nr3vScsXXMx5fYoi8YKgqDmH/vf+1348vfpFuLQr6MMJ3v79OD0HZ0vDKF7SmpSMLfIxoetl43XNEkh+YSAaQ9FaRTRmGvsk1XSFtXeEHDxSAMxMzm8OeqE7KccKGj5Ya29qxcyX5zq1SpMNT69xf+2A5J+slsfAyHw/5jl3Agik/gVoc/MoUrfJD8lBJ+x2wqhXKRKRS4kq0r2RQpEVKohE643E0noOvbM52aycqCGpB0Qoz1Mdxehtt436mwO+KGLh4ptkrf/mpucpNSBTe2ieSrf36Lj7eEjrBbgipuhExwtRk3j41F0n9sjn1sLGv+Y5vcY2MxfemIzja12e0Zk/XUFVZo1Cbv+10SOWXfQL1ZCVes2jT7Buo0H6FrO9m8DOf94UAkSfBSIwybLMbO44izpAJebIRlQosxJh0+4AVHmGv3MeDoZx23L0ynJPZbDwC0/FXJd7FltwLfNRQGGXpIQC/H8sKEY4G2EZoMdGsBKLT46ECSCSpSlV+zr0uMVkUIf0SQ1V/7xcZKLlcWPZvezf78lqQl3lFedkCFcBoO99L+g5Pdl3F/O573f8bn43N/vdI1OqLyKmES4mSW6nvZerH3wlTcyc5G0iugNBYljABNlh57vGx2KAosraL9OJHzEmovGaDaM5QC8mnTKO4YhO61k77I6WrUDaxVwl0ZSQ6qFUzxDLWDBCypsl++HE3JrIuuXIB0OOEGe9pE3CLyIkCRZvolfCu3F0fzUFXnkcKCcISd9y94XY0RRVmExWrn/f0xNyAl5WpIH6NU9BghX0pGP8fj6fVEQjcoYKnFT5okk7JsI44P1jkQwsPweXjFdWtoIZLWvZ43JVD1cuNLwpYHabMoJJvn0ycmh0HhslzZQJvNHKcXR0W3TR2WtcJa+cXa3Nrv7/F0wR/V1NPaChej2WKKt2zl1A3SDZV+j2SPK2MyNf2wwhru2dp5POxJ9+q6jNAKD0mzrec96dTRO6tLUoQaAam8Hk16j1IGxfd0GS7Pzxc8nSJy8twP7ui+f31QW0i7ANpbOOEhbrb6MryON/K4aI2DCKQTHjMnsyiHO6JmSlaYDD9Zef7eLU7k7nD7c32Mu9TZkBypUX8JYbJQyjRn6oKURukDEfqGR+GpqdQsbLbkegUtjqgTpk/wGjtdHSzTnYFs6R9ZJd5cj6GGsK5xNsWK3k+HduRDQZ63WqWgoEu4F8Zs8eU24kZIxkpBbpkSKkcm66jJBZEgQu23NGj/rD0IYbpMfyldpeklt507cPpJ+dhaSMbOuFizTiFQQtA7r9OJr+HxgkJjoHbbVb+Ed7jZBnSddAzVBVBSEMuZTxkheZgvsZUVtkjYQ+rPjW9pW+XayQeskiN9u2/jheYq9KjqRyqpdx4vb9dx8tM34WZbx5W8MLxezCUPZzoCYnvVrujFX2G8vpDO4t4hUQNh1uJkCVcc1j11Yjmcxw4Iu/RTjI9pnOP5h84OUCekIdtWR2FMZLZOxA4QhtRmXUmgDCEKwzfJOiuQiRq/GVi1HKhyRmGZarrCbfgcSWqXRnqNUVjnOBsjdeTo0G2g6EKazpxMPq9HUvKRMh6R2QhmLbwA6XxAGhpY6k4YbNisQrY+VPoSc/IgfRuF1OFMEh/qdd4U6qNW+U9blMq1L6ICOjhImhSqi5zpfhWRChAIVSppk8Tz/UEl/3UdydVB+LE+95gRI5lmIwT+k5H3yU9OUczNYl/L5U8Ll2yFmQymIHi3izgND6Wuiu9tvDM6TK7ehXph1eTn/m/cm1OjvVF4tP7cfwyP8YM0y0MFpx5qBX0pvtcQqJ28G+nt5gttUtpQQ7uic6G8sHzjc385vQ53AnyRmnEQdjz53N8+xl+798M0oB+4tga57+InTuYO5/39fjrgDRQliwtT6xdznA+Dcik6YUXCYo55Vo9Swjphjv1i7nRJo5vcHSqGFjLnxVyCEff3EZfNeeTFKvEw+f3y50FSzSw66ArPT5OlnDU1zeK5QS4pw6jjIUIvcLI5fdiP553ITQbU9USDmp8W9lKY7CbH9w1Pb1eH5Xph44ls6n76F7lDFL8HFVYtjLpMZuewBv4uEX0X6YD+ncQtNs9a68AJs5uzqfNweSNdmep2EL0wfPF5tPjp6gQcoQWU71SHPcoLt9J5enS769dGWFChRgPCw0GylQztFqPEhav3buEcLfaoLVTGIlwtV1vMwyLHQjj+J4PPx6vypL8a2iqFWZypC2eaS5uDC65Sg2pmXUCpho7f2kvdhPVamzgF6oGgQbVJC4/VxTRVllBYWsJCK2QvzL2qDW9vGgVXIJImFZsotulJph5kWsMtA4SdHgNE4oViGeultg9h0YeGhxBWxMxtXEnMCVkU5nhMdsbbn9RrCe2wGvnJICTRgZCENE602H+kQzS+ANILBc7deSDzQhyZ1S/xq0CHPCPdiBZLr6QPaB3VKk+/xhHNeg4zws1g2LwLlDYlniGTmRSYGS7HjYYqajzdQZleJ3Vwkm1OLRZ15+7EQ+zxPpKU8FoRqYR8Qc5QSWNTi2WqOY9CJ9KPspSpoGMJSuv2MDA9dHi3QOY9kPkAjd2i1PNjK2RsXz1GKHXWQQh0PqcRwXl99WsXCjNMpk7309tlUbe6Pl/OpwPJ7DE9EuISjorThR5e65CUMIAyWWFdvto/EhLwbIpz+eqEaWH10+cHrRJAQrDQmEBB/1wNyVDar2o5MNiCMFN7vjCN7yAX3YKGqhUqvNBeqrGO3Cor/eLjkWL3iIqmbScc3ePl9Bhvkz/DNVFzaP5D4xInTNLOxo/DmTWOIr8w6510mVmMLxqov05EOjA4lAcCqUdStYKtdZzFh87hGtrVSsujs/mVxZJXgyK2FgLBwkLXbP3+2N/ouQTF8ksi3mRY6LYXw+OV3DCKXIMH5qRnlfF5wRL5EakEgcKrg3dhHcxwYS3ifJFNt0eErJwB3C91HZLR8bqpwYgRZTpID7fJ2nU80ZeBlKR+8rh08QrorkCsTDyw7rv9v563YZdqYdAIiPWGI1Sd+bzjLDWN+HLugT57BNA/FCTSovwaCdkQJKLrBNrpSnAMhOG18txM0+RXot5HvYH6kkrrhYoys1XSxq8mjyXj0EtdfLptTCdAJOEmjQg8zvfDPrVdw95LnewhTP2aTW0M1SpGwpyq2RCV4KxTvZywhXgytPHL6qIfIU5NdlpSnnXrLl9CkdJ+iZ/P8+O0VRut1ValPCZZup73f4Zb807rnFrQghSC6mz/z5yjn8PtOABN+tgIh/HzNv0/MqfrMJT07pIZg+3UQWJpbAL1w4sGRcKhaN6a1T2FtU3qMPyiSzk6l1oQw7BC3wxL5CCGorVsvtF0QyThWHzFkp4KGu62rLG2LObQJM2V+BOweWjMALoGvizWvhxxQ7Ecii5kKC86lGuFcrwMRVozlO7DAeoiu/wfx/KvoD4hlmHflwrnvly0L0GLvhwF+nIK6cvN9z0EfYD+dRoiCRZ+lX+pIIkotVYtv2AggXyrgg6xk8NfTiIgr6oi5Jd1ICeooLWTgn5oCjx77db0qvLfVQ22QTdfKrmShsORamGFiHxz4UoFpnDdY12M5cv4kYZzV5ubDsx1UkLxk6SKRekf0lzA2rVREOyQguXL8NhdHufP3S8sxIByc4X1MpWtHXY0UaqPEnooqzlcDVknsyihtENli94aVpeWLZqX1Ln1crmefo008a3+HJ2GjD3pyjc83sbhstnMTB13scI6lsnYLHb0Sop5IqJI0C1dSXUyarskNwZvcTI3bTI3Xs5YVqF295S03cVkKGFyFB/E1alQNBagE70FNOHhawU4IQShnmG+NE2aQCl4wcPVhYVil9Q0lSlwqUOEBqSkQaxMGeEZ83J6e3987nGeuq7lhbWwNfBl3O0fD5KBSA5DMhd5skS1LOoJLx1T44WMeVQdaeCM3wmTTmaDcxrBYbzdlqwCrHmP8n+V0PuazdLInau3sV6YlTVb+udzuP3Z397mzls4dak2KXQ+V5NcvLXOhRLmaU4GSVZC9WGFc5wEiHCrH2no/bLJFazjV15YS5E2FHQzKC9fmPsxvrw+76m9+P3P58tItEJrAm6ES9GIy59Nne9shCUX4+sradzWO1ySL7yXCy36cfXtBKF2xHgdLgeC41D7N6FXtthp8jhkEuLvnTD+vhg/DkmsJiWd49UBt3kV0o5s8nb6NXOdLelDKWBCVbDFKGsOJYwLxVySOUacMSA9eKjBnX6VTdZCA2gv9DtKr3I8nmoEV44bsIEHiMBFoZpYuQg9g7rak+g7IODCPuhsn3VXJ1WGchANBTutTQiisM4mxYs/T/8ajkuB1+JI4nGI+k0Ko8dMGFrXAxpy31Uv/ZS309vpsj9vZKvqo34QnmEWY2xLsrpGLkJPKqETsdjFFqe1ps7g6IT8eCTpCjWhgl735TBvNDhyaxt5ofvEJy7X9xylI/Y5F7nun4/xffjNJbQiuRIl3DSz2dmtTSFj3A4VqapIy8mzya3IqUeVnEqIQCdzV1yT4+qVMWqAG6At4aADoAfhZQ+RFl/iJlrarWO5he0DoVoj8fsGU1x/LoMky35sctuaC5VUy8454zRmv26nB1lwK0+hh2Y7UoX58euCx1ZdPiHshnBN/WsZjKpRX8YI9TRRmGxT2aULoEKHu8n2WoQv83Gu+/s99X3Cx2mkR7um8EBor4dFSDpLrvvpaIrPjSiZX/blUzIH3hH72j3M8ybC1zcQ8DQlcqosNPG00GrJAji3UNIIDWgUEMDpF/zbAL8i/HdwDSionab1KkEDMo3Q2TKCAEmEhSDCv4jQfWgVvOkhWxz6UKkekkx0CR1rreDPFPwZhFwhD0FrYZh+7jCIt966a5twH6/6FGJjNaXuhYV21/2fJASNmWS94pVBKnUYry8fx1e9SM3SJkrI2RXmc9b2NtK1yBmXPjE2SNXoMImRrffEJJWSQ8mBwtDCdUixvtP5eRv2JNyJmlN3wvqqyt62CyWSVhKmUxGD3DYXUHhGC2XAiOHtZhdQBoUWOpbJLJGLr0Mhpkz6YGDdg/ndASrpSrxPd7AOSI8j6Q6u07ly/xgoj66/gBO6t7M5NuuwDmU5YUgEWTue3kjZmKmzLp3Q7UQ2U6rk/vHEcU9TR2+cMMstmSVABqU1d0Kgf31P+zaeqSh/SDiwyGEFJcvnIVL2NFMGjS97UYC2zAY2Uiicnn5BChOkmkNT9MnvLVug9+u2CLLnQCd7CFdL63KoOFpEsnkGstINJP7bgtU0tDLVqx6YeGs7XQcaBLD1gcJLd9pEid5u+yvxdKrhFkp8JKzhEfDIvJAWrNcZaB8zWx/7Q8lFC0JMMBtOescjHumo/qCHmrJeWC41my25IcRyQJahvbrQ90eWqcILOr4Xl2v6JR0VtemNTkpdCDjZhKVamK44W09rCllSkCpNt24FP3jRyepw+TWcxyupjEI9NjoFyFKYHAXW80ZJXkh9UoJGqboTIszFOFkBkiAkumVoeSqU3J6tknGBal2kituLoTk4O20rw+/D+/7yRl8vGhIdDDjpZrhcYumMTENRKDdSWEFTG+TniK6n37QQASAVhuuXK6QcYXZ2Ex14qMXw/idfrza/mYaoKqSPsH5I/bPlCuO1cf8e3T8oEwlZ6cb69vY9uv0Aty907tIFtp41SiwXikaAKd6nRkWVQrYEJhlvOqD8HaH+7/W8J3y8Vi/T0kNOspIksHC8raac0ujOiKVo6pMH9GkOQhnvZIzrWJVwTz35oZdrB1hFqlhQX2IzFFEnsA40TjrpAsmLHJn6C0krSjbMtp4mriAIV57fl5CNL8cpXyq0INPDQ4AnrIsEhIl6yKbqIF9AFTlArfo1SCN90bfH6xdZw1FdYe/hLlYtt+Jja2kngHydzbdEyjWQVTj9Eu5E4/20LUdAYuBOKHl5HR808OlR2xgl3ckXQ6xkGIr9S6cbPUHVkwxCgBBShE7WCmRTlQdJoAD/XQBl6iB92bdhOn4cqY6DrfXbvBABTAf9cdPmsM6wMsIEqxwx2JFD/rRS1w5DFAr2J2sUwqsONUeUShIkU/SmujqFUUvx1PU2vuxfTmfyulwdc4BZ2gtLdZmOlaiyvMRxYFhB9NoDOA/COox8rf0Nq3D2SEwBEk+nC5RRHeDPAlRFBWFT+HzR4/MT5Z5EFM2D3Gu1arBBmaP2kLkePCx4wlqA6vI0mR1lBLuiF6CcUEwtWyZpjh3KbRDmXWRTbNPRadijNF5hOnA2SaMUsUdKs2vaIQyrsA4rEE5Q0nDGclGSyuCRz9pZyDeHHa0T9txI9jdxlxpgBQCwYo+b6e9dp/16YcvKbGdzd/XZEaCwLwGRWKZTFK/9XJfvOugpTAfhWmz7DqlGSF2KbIkm6vqIgL2w2nOy9hhfnq/X/eGDykJU5vJ7LBurhpxdA4GVIHU40hUP4xm/0rqmrFym2r4DHLyg92UPxQtrvyctf4dcvS8WphEveL//PG+kh22dFVziDKZSdBWuU2StQwpBgEsNLNJQIaQ9BGICSGAGYUb9dSN3iATnDBBbI53zHI5QHToadlLH/VtwMBlFSf9CqbMrPglELLldXqWy4B2sVV7gH2jIKZ/2SuEatjkYRBTHtWrl6rLB+M/L7w1dRVhM2GMq2WEgKGoNITx2ZlMUftZpG0roW/zzecKZsN6gBVRYzPJPmpMRIqqME8p0z2amc/oTq6AgPysKZ8htf8Bl0jWDVMIbuu2Pn6cLfs2oJElIEBc7O1wxiaQWhBklt/3lOKYcyL/3WDvK1k3FvHCnWqzllLr3YU+Xb1efMnuhBMTtYIfLrL1PlidbfwEvPFwkCdWNuxBRo1krxN2TKZLR3iGJXyUsvL7l5KbNQunRqacH1AChlDU92AlJdnWtbfAKhd6hn0knrDWYTc8KkmzL+LrNZIk1mXKIWjvMGlisO2H8drruk8hzRovEXITn9cXQCctKR5z5otcUp9WhAYk5YRjmNrwmunQYSF9bV+OfKMx6r41t8sNq8hOF+Yq3pLE0UOkopZE+gYVsCihF11EourlegFZ71jXfrvgwTrpAD2+JEGD5mR7V7kENr1GQGAdSI0aYM1yuA60SyNG0nrQKUtNUSXXTDlJSvHhmkStuG07U3FCtjTiElR7lAqgDBLqCQvmgGlLtNdT+rRPCC+Ud2KtuRQU9ujDMOuHpcLnI7c8hZWPR7J2+R6XykNMYgVJZSEb2wgP55oK0yrHHFbTlrBTFG9hi/zicB+aBkFMCtaoxrg8EbrEw8Li54OaBUAdzOAZK03uL/cT37s+XdG7AC49BdZEl/UZLpVZq+7MvSM0bZB4mpzCDeGt+835QcXgP70coblsucCMt33sUTIilmEdFkPCC1Fzthdpz9bXeyU6Ymk3WBwJYQnvItbXgo/gffvxywc3KhlqI9h1EFoR517V9+l3Q+SZCjO8H++RsehmzVC6271Ef1eKyTb9+toys1jfDCjV/BewdxW7TcoEt+a7fuBYe2GprPPxG57cfzq0W/0aM/ocjbpmr28+GqB/ksfdC9alifVOf0fdIhwEiQ3GNDEGrDS89vNUX24xuNDwgBzEKm5gsGlrbZkvojAltzTvxHRerJM6q0VmngPNVibZbjwViL5N2iPFICkPar3yxQzB0ncqhlfjslSyl/KfTgfjWKM5mI2xxQliCLG8GAvI3IEc6CsvaF9vb2jMkBCLt2H7b0AClUIMPAw6zk4YHZpMb3ZhanK2kI3gnncT/fNIs6ioBY/lXZYiC8XKQ8MXTh6bLvjgVoSQnhDKwAzSALrmVsJHHEkaHHoAKFB2VATZngBMaSCqG/rrTAQAOOgH+FjYjCwnJFpKZLWh0QmceBVpRykJsH2SjlAV7DvZnB9U50N5IATRQLsAxGjRGHMglOXCRIBdFeahp8nBX8KKVX1Os/ZpiACnWPYA8CDMEEOoCbSoFJcUqQIUuqFKpsDpuUAcWQQAqAiyMkLIdoRE3KFlNyz38iwC/4uocgE/Vrd4VJLmAvd7BvgSR/j6uvyAlB5zlDrBDBzGjDvTgoXxfdxAh72Bj6qBVVQfecVdwnVbg/SkNcBSuoSDNXMFJUYE9BecsBXeq18AKxBg0WNZm/VWsaGhZrcH11dB0UcNzaLiuhhVWr1wKngjS+XVYNbDFMcF56Rg479kg71l6Rr4PF7L5oDbBvZCBTYbG5+0w4ISdgAR/9CoGL8zvXq1iJY56f7RiZ+9+HS8kkFezg3xvqiy8ZZkt0wIUy2Oh9LGMubgug3aN98CCCEsUNHublktYamF6WqjQsADVoXpiWiThF0xPkDRVdrVSUu6UA+05aIM+LZfrIrlWTsPfRkgKgaUCVCuVh3fkoSbeQ36eh2cL3ZrjAJkNZl384M/gamE9v8DVQKdPrQWnETYP+AYKinKnJQ9+wRIFkn7TCgC/AKr1sHD2cPf9mrwJreM6kKbtYOJ30M2rg+hHB9NdQRROQdWLMrAcgSSzKpvCtGzBvwW0rsBnV3BXWsGSAk6rBssaLGvIktQgu6FB7lbDggixyumXeCalfO+/xxfqFtWhFFdy8JwwFXk1S9oToL54AL015A/pKMzQSVcgfaC9Q0JRwjKAbIiVYUCHAClvW+xtsjDR8qmEmbnJ2O10mDaJxybRJqJuflaowjJZfOJuQD3qAhbAJwnCqoHFYro7smGgOjslzItfrGHkhhJYnVBi4Db8eoz34YxIbN8hXW5YaF0Jf2rwWjUk8OmwdtYW5jXAxWlGAIoZOPDDnNRnOF2Hz+MuOUjoC9Z7n3CGIhwZcY21hhwJAzkS4Kd5qJgFiVYdhJkIt8+XYX+gwMAj7Xz4AA4+QBRKJm0aDUUkPWUh0dgKGx3fxvHBuGco20H6wscvUhiF2nr1sKlKdeluV6znrlFabgBvelVkjEKtzMly0vzB1uuonI7CRl+TpesL/tiosN0ItctvbIY/Ui/uoWuIgqOHEpY1FvN8zWSPIjhQtKWkzioxTmVmUTI1rENS/dWN9U1YvF5yJrPgwUjzUBpFD6pD+eTrIU9YpFrsfl9v1qMus9B3Skl3O7jIN0VhPSKicAZU0ojak6SIaFQJ+xMrG31ONMKVMDn19rzs8QaKAAMU9Ez+KqzukFYIefHT6g49HKT4KV14s+OhHRfiTk7qXUw2H1S8xNRv2AqFRidL9/t7+m/25JiskfIYxKi0l3q7qUvJJ/FFkRzcKnID52YvlB25ff2+7t/wCOtRqrEXSiHc959XPL5MncdjhVIIk5n78/K2m97ibSRFPWgqCX3c+/7X8P54XA+aySZXOOfNwNLuhKtvsn6annt/eXDmtUJIF853IOCko7C/wf1wG4bL/R3rVvfId40gqBSh9szCoubX3N5y3tJRGPxZr05j+qhaK0KEMAozzu5zOh16ZwatJrLJt5h5fD5QUVJA9R5SDbf7sL8d3lMC0/7lPp6fmJ5FlGzphLnZYPMx3JB3GtEh0AlTkO8pPwyXMtRNqr3QESsCUKRWzSNgJy3lSseRx3SeZDtoI4VWYS5wCjfuGG2CgJZ8LUwHnqwRiXFdlxgZ6UAbrvuNlqn3qAe3dOinAC1Ru07tIJDTWcJe0hrmRdMAm0SilZ2Tvq9kaKuh52p02QvPOdDekCQJubo4Rnr4XYwRN9ej8gBhAXq2RAM9qqtL7rWC0LsSVtUVu7dh/3m6vC2NNLeREaVRN70gXYu32LZWtxHy72zlOExL52mWicXLOsoZEbpAYPMxzVpyLKuPd9CtREMPGG0h3uidfKjD1TbHB42yBKH+XapMhozTVsA9Mg3Nan8wfifTtIK2RxoKEdJ7I4Tmo1nJHtAlCPYaYcpvdfnNXo6qESBKE4Wn6GyZcvUeJdxE4AFRmMqfzZKPgHLlDEjrGEiBBiqs/Q+WvHSh7VgK6INDiFx4/GdUtusyGwABayAl/0koYBGiLZOrD/+1UDaGlaCp1TGyvaK14CAxALSh4ZP1UJTWCyWe89W35VzIk1+7Ekmd+sUsn2iNCt9WJT5hlkk2TXoKVTZ9gQm+gCWA/joKj5334TFcUIuwHjXuCSDKFWB9AW6npfoBy1XoLEfOSlirJoUx1vvbhetzU2dlG2FmIZXiRH5noXtWGPBJxnbPx6vyZ7qbI7AsNaZJPVtAjRS0UGRrWxdn6mRZV54yCNNiF3v8cyKhTPEX0LukRouOJPVXEE7z2Q5+UNSwVXqwSXZSY6PaDkLv8te+I1WEqNZOmEQ52Znuhn3dKPdBCI2SOfq60WlGCBUXO/h1o2R+IUyc7ZDXjQoRpMtxskNeN8rFF+ZIL6Wfu/kwv3teTr/Rea1D9RfigZkssh8QJZyIX9htOO7OJ0Qd6sOHMHJ8T7KMBDcg7URIAu/Xyjpwm32/ZgNJJ9Z0vQPpV1SDMel+XuxsT4a6Rg0gP2qgp6N4ScpXmM7GtL9SvQTHEtiSNgghhrHTYGrD5YYhhgZpWF48IfC1UvTnc3/FD1O9fUjBi8LansYFdtV5LkU8sJqoq4NEsSSlxJ8OIXLJ/D+5y9VvtVTjSItx6OWwF+PqvnrRQ5bVv/cobH+FarsQqoJTs5sv7urX78rrB00dkPr14vVyc8HvPoevLx/L5aXuFb7UtgiirvAUwgcwejuekKl6rw6gqg2nPFBZmN6UdMdcr7Rpx113tioJaUHsaUyGt4ptKMMSEvN6YfZRNkoDs5NXV4dRHARPgjT0sNrd3jIKPEINl7RF3P399LF/7Hdv+91ljz5mQKNeaGz8wgFWFMiXAqnTcaBor0f12JDqrkBbWVvoCgLZ+hp6BOsonZn52vTwVddVq1UQKUjPJadpid8Iq6OkByUsLZhMve/v73gQoDImoUdABqmr/apQ3IAICaEWhBiDlCx8nNA6GtBJRxyUnazsDGmqgNJ35HYS58BpxvXSboXy3PeP1HoUx8pQjmGQOgPnVK94OJ/SH+KsGtSTRgm/aGWObaJT4+wojUXMRnG2TkAsTQuraBdLt+uBe+DaqdJOOquKxePwerqcaDB8Wm9qugBSEVrarhXsl9hrAuXpv9gzl0JxTWHV/P08fh32l+PpmPpRoleM5N2kWiz3y+d198tAA5Zdj6V90Comja5ube7mZiwb4ygdU7jc1sZZo4jaCocsMTod3Hepwg7ZrUNW0uAftev8LqWSIbtI9VE4b4ndFLmgokwoGVfqLRO76UBNggaqdseVsO/BfTx8UDF3rBkFToh0kUkWpzmwJ1axfBR4Y9LZkKzOym3EGUONydaOFdLY0mT2sX/Z+Om9Qy4K9PGQdlWs7e7S/9iUzqKcA0gGmX4J3/J1/3UhgjE9QvzQCVOtrTAtZDn7taUH9MqIwjTXcu2NX4X2TfBeg9R7vQ44nu1R1FiqNzeb2UotIoFkKUy7Tv98/0kcH5SYIU2ouqFE3og6SVlgihZq+iwUJllhrnAj8a0LKPURjitKKP64mt0qRKGk2XJo0+L48IPIV5o6eCVVw56tYAxSQ1wrjXQkMzmJ7OV5OuOXqOr4tzaQYOukzmGyzslo1grxUtertsUGTWo3+N+4P6YrZbUYChsPzRZvXLK1rQkTBFHFp2dkdxNFqBOwSkmc78XjEWvkR+SwWOj8CN2FlIOa1CBdUtJFjpc7m4auHFJMB6LpoLg1Sr3ddJnhSDq6omoEab+X2VRK3mzcMpoZsKs4UKSOUv+5XKf1blBZGYQFHKRhSCUM5gt9Ps6t61h0HRC0AhmtKNR6nq/zbdmBRt2DoGGm9tJocLoCqyCBMm8spJpKtZprwy9/aDLJZB4lU4Puh5c69Rvzm3QP1J3HgF9nhK0I6itsMmyQUBIoHcSfmH4cru0VTilUprOq/TrQC8/JQ8KLkcTzHmXnBmlEIZl6XqnAj0IBGG2ksdxk7eutMYVQohk8tIMC3SgsKN/EZlCzBJicvTTX4UGP5rpDaUXijWIyw2299UlUGgKcjTGR/Lo/i/xtPbFeOToad9A3F0qElF91DqRHpvkq9HY9Oix3wkrQxdZWTQadkDtpitfjOHkEGKOjEzwI+kHTRhWgfj0oKPpaWwRLQ+WP4+mSO/XsX0inHY+O5Z3YGTmStj8eNYsBnQ3lQTnEgzoJuFUKNGamx/LwWOUBg9g/HHFvCjSuLJT0rztNkCYWTpb/jz0SbWUwXL1QiixdgN8ie7SHAcwS1qFWdjcSS0jbC6Rl5H7DbX96e8d58riXjtjQsEc1wBo5mMKC5FSejnsIBnSa1kLd0sUOo7+N0pylwcatNGSPkg6jNJXueaDtZUydk2FL5jnUj/vijXuQoxAPmj+XA3mXvuY9vbCQ4rE/7A/33fWMl3vkNSmhtNu0kb8Nj432cJ02IDzzLZbexpSUgKF0rTMhTEEpxkacBFoLQErRwmLqPB42oX5n6/wP+xNz5Lbq3bok6PbCRJXH/v6Bs8jqBQTa8Kq1RYSFiJ63a0EZnLiEiX7purQrZj1+xEboAojidh7q0bywKGcxua3UCIh5CY+vyRh2+erkukokTRj8nO0dxueF1DHVRoUn3tXU9N9dk5wubmter7LSzOnpYIKdhpoD50fVIBYUhOfByWqCkGjI1yuEEy62k525gyV2dKt7hOHshSS4WNwo/tWRoJLH54Varo8hBQIfmyoKU6cHGqEnV4zh1gd1tVAvzBR9DLfP04WciCKaswacQQOtYS30aQYdKA1wQAehPDdcfNNqpo76m1WcUIiL0uEHL0KmdlKsdC5tsgE8ClpK3zBuYRqQAr/MxPvpdtxdp9MxBhB1Dy6pJarxbGrJZSOsjk5mhpSTSMBZ/dWEn2rbi7QOX+cP76R+x2RtOv99XndciS/W4f6xydswTTki6oIlAITH82TyX+MFTzlESI2wNqJYGl9f77gpTkRs1Aoj4duQQX2iKT7qtGtCnZ+GY5/0g48fA06NQPW6OgqRxWN87M/H523jf5n6TGuFSQyztft1jw90ERWuOOHBdrbFrB01QRKeSKZT2+trKr3bJDabOgcXFAKtMA8R290fia5FHdPXOb87LfXCQlZsnSTLmjrmbsuQWltpgdiS9lLviV6unSpr6jQsW7ZwK93C0YWwEpbCp+k1x9wLQ6nYOElCqzNwhaLFxB5X2lWzdStUmMZmH1TDuM5AANxspX7XxjaZQbV6S4E1Vrro3vaXO+1YrVFDolIyZ4QqVY/b6e1t8l3QW7V1irCTjqznBadC2jrAJ80an6xcBlJ8gjILelDR7NesFvktTsa3OTgotbQHsc8ect7dqnUrPbvOl8IOnK21iEKRl1s1lnvoz9eXv5x+wZ+BqnUPFbc9HNN6iDX2kJTTQ/BOAULTUM6qhRk1FIzYmrKsctQdyEx3oKXagdwSqH0qkCaefsHBC2S6NQhTQ/crFeHPehAt7KEwuYNAbgcqaEG4EDyPOIUFVQVqEHMNwijWE39ujbT9SmgdmJ0yMJKhTZQKIPWshVrxz8v+RnK/fB3BDWuiuNBTf17SsTu1Hhg2rcIDymXSwsDFtDLQcilTT2ojTEaZ7PzzOXy9kXWmrg4AiWAnTA96Xj4u4xfumIFanmihGl029Jn6ZL8Nm34hqORQShOfl3TUSbse04wPOcdCMp4MHsa3y/RZcUpZtS2VIVgUOksxUNEWWNcSUOFddR7yD1BSA8XhVWUNConAFQfsBFoYapWuCML61eeFKVxHvSwi6NpHyPO3oDrohaV65Tqb0nUkUAEa2NKg42T2eU17+3BkA6n1GBd6yM/L3PKkMXzqWKQVqtw9rymJe9ExhZ7js1rHJ5Mu7hHuBvVmZ2Vb6PNKC2Qiyj61IA9gQUIF/DXt13bOoKoahPVky5VpQMchnVhoGmal6wPprFw7A0bY1ew5LcnTy95v0Izq6uS+aV0WPmha4rcnRpTkLvStJlO3ad3D4V9X11f1wuSGZIlGGDXSUCo8F3bQHmK4QHOn7RW6Z4BUuytrm/Jrz6JV1VRI+qcb3EQAetQA0ws5//PxujMa135rjQ5hwndGfY/6kKiLk2aqlyOz+2s/+bDTHB9+X0/YzQio7A1aSigtLAgoljfZhQHxfA3p0lpYwbABqXW7TAgyFG8VMr9tabEC7eCgh14o1cggSALdSyJskmU9iOs2WbJwPIzSMuY62Ik6cIw7uzrGoBQKzrJfu59A6p2069j8RtIbIEsGEgTvhS7Jr/3tRDX0evTJglDGqljCsLreNCZTssXn13A5Etk7jTJ84OwEjQ9SF+If2MbTy6MwcQc56R30xumE3kTuAo3Ga50ypEEiE0QLSmqOgS4S0LZmuhX4M2h5063sQ8iYf43n9AdkDY4BU3TZLr7You5wRHJeTgjxUgtUHFSqoynC7SUZefsX9lQUynYTxlu/hpfJDXrQLa/OnAuly4P0CDnZvJOWeLbOGvQlkBnKKhUgacmCG+5BjCMKI0v5urv8QEyBvqqr3qFTl3B+ZvP745F7Y6o+fBQ8t56EQZJ/ei4HzyVbYzYX/u4JEROO5TZknlS+EF4mXO21B2F/7Wxp25hvOm7XwxQ6kGkPxStRmBGJrsF+knoQl51xVdO34FxDxzEtzVDK18bYV9cqNcWbD+WkCU3FNHQW1x76vUh7NeYLL2cY5qGn94tS6qD/g4cMwShdGt5aFcquZmSgpBaErGyyS9MN6vJ6J3Q7v95AFvr0i8jfmTpQ4YS05OttsjL8PrzvL28DDVCbWqLQCoug1hRqmsFQ58CCVLVUamMxOx2hvvY3iigmXxOxVQVjXJh9thifKzI5HVisje9g/Hrh4fvr7ToMt02Y3dTnBSuMNky2Um7p8h6wV4gqRzvoQ9IJySGyvJR60Po45N90UMPTCekrucJ43VzAIcHdko2oO6FUztdbSxPY1O1mnJCKTea2xcRIXbeD4Fgn3dfeqmFGLKPvB9kunbCPObJMb7pHpuHDSfdIZHr71dCwgA4MnXTfzNbZIYekFzqovOiEZapgmxtsFpnu4balS+d8x63pqFHPGOgcqqXFe9n8dgRqi9QoQJrWC1PWkuHx2rxtpErhQBzJCytSFuvcXWu0hsIWLTxzfr3NKXufnxuMaurSMCuMBM3mYDch4yKg4QzjQngwxKapojgazsU/m35JBwWyvR3SDt06bAHCrMiv99PtfB1HgnFRa3PhS5j+8fh13yVpqHF3PeEAM2qQI+TLxeL1nSQvqR7NY+GKtlhLbtTpPLwNm0PFdPiuzSpAJlKx16/xdqTd17GfIj1ZZkP752N8H36zPf9QBb90dxtvHylaznQYCSjApIRh/6/rfjfsr+N5d335OL4S6RHU/EU4HFeDnyifXCHVXOl7nKwtN5bMnY6LaWy2ToMT9kCazX5+tG2i8LL8TS72mDeJaIYQP1QG6Zus42HCDNcZThFyXU+WIIx9JzvTSYFBXHVU0gqd+N84jlj3GhDSo8nC7piqd09I26Ju9ivJLf7vv/5xPV2H82lap/7zv/77f//3/wPsnPYL"; \ No newline at end of file diff --git a/docs/assets/style.css b/docs/assets/style.css index a16ed02..2ab8b83 100644 --- a/docs/assets/style.css +++ b/docs/assets/style.css @@ -1,1413 +1,1611 @@ -@import url("./icons.css"); - -:root { - /* Light */ - --light-color-background: #fcfcfc; - --light-color-secondary-background: #fff; - --light-color-text: #222; - --light-color-text-aside: #707070; - --light-color-link: #4da6ff; - --light-color-menu-divider: #eee; - --light-color-menu-divider-focus: #000; - --light-color-menu-label: #707070; - --light-color-panel: var(--light-color-secondary-background); - --light-color-panel-divider: #eee; - --light-color-comment-tag: #707070; - --light-color-comment-tag-text: #fff; - --light-color-ts: #9600ff; - --light-color-ts-interface: #647f1b; - --light-color-ts-enum: #937210; - --light-color-ts-class: #0672de; - --light-color-ts-private: #707070; - --light-color-toolbar: #fff; - --light-color-toolbar-text: #333; - --light-icon-filter: invert(0); - --light-external-icon: url("data:image/svg+xml;utf8,"); - - /* Dark */ - --dark-color-background: #36393f; - --dark-color-secondary-background: #2f3136; - --dark-color-text: #ffffff; - --dark-color-text-aside: #e6e4e4; - --dark-color-link: #00aff4; - --dark-color-menu-divider: #eee; - --dark-color-menu-divider-focus: #000; - --dark-color-menu-label: #707070; - --dark-color-panel: var(--dark-color-secondary-background); - --dark-color-panel-divider: #818181; - --dark-color-comment-tag: #dcddde; - --dark-color-comment-tag-text: #2f3136; - --dark-color-ts: #c97dff; - --dark-color-ts-interface: #9cbe3c; - --dark-color-ts-enum: #d6ab29; - --dark-color-ts-class: #3695f3; - --dark-color-ts-private: #e2e2e2; - --dark-color-toolbar: #34373c; - --dark-color-toolbar-text: #ffffff; - --dark-icon-filter: invert(1); - --dark-external-icon: url("data:image/svg+xml;utf8,"); -} - -@media (prefers-color-scheme: light) { +@layer typedoc { :root { + /* Light */ + --light-color-background: #f2f4f8; + --light-color-background-secondary: #eff0f1; + --light-color-warning-text: #222; + --light-color-background-warning: #e6e600; + --light-color-accent: #c5c7c9; + --light-color-active-menu-item: var(--light-color-accent); + --light-color-text: #222; + --light-color-text-aside: #6e6e6e; + + --light-color-icon-background: var(--light-color-background); + --light-color-icon-text: var(--light-color-text); + + --light-color-comment-tag-text: var(--light-color-text); + --light-color-comment-tag: var(--light-color-background); + + --light-color-link: #1f70c2; + --light-color-focus-outline: #3584e4; + + --light-color-ts-keyword: #056bd6; + --light-color-ts-project: #b111c9; + --light-color-ts-module: var(--light-color-ts-project); + --light-color-ts-namespace: var(--light-color-ts-project); + --light-color-ts-enum: #7e6f15; + --light-color-ts-enum-member: var(--light-color-ts-enum); + --light-color-ts-variable: #4760ec; + --light-color-ts-function: #572be7; + --light-color-ts-class: #1f70c2; + --light-color-ts-interface: #108024; + --light-color-ts-constructor: var(--light-color-ts-class); + --light-color-ts-property: #9f5f30; + --light-color-ts-method: #be3989; + --light-color-ts-reference: #ff4d82; + --light-color-ts-call-signature: var(--light-color-ts-method); + --light-color-ts-index-signature: var(--light-color-ts-property); + --light-color-ts-constructor-signature: var( + --light-color-ts-constructor + ); + --light-color-ts-parameter: var(--light-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --light-color-ts-type-parameter: #a55c0e; + --light-color-ts-accessor: #c73c3c; + --light-color-ts-get-signature: var(--light-color-ts-accessor); + --light-color-ts-set-signature: var(--light-color-ts-accessor); + --light-color-ts-type-alias: #d51270; + /* reference not included as links will be colored with the kind that it points to */ + --light-color-document: #000000; + + --light-color-alert-note: #0969d9; + --light-color-alert-tip: #1a7f37; + --light-color-alert-important: #8250df; + --light-color-alert-warning: #9a6700; + --light-color-alert-caution: #cf222e; + + --light-external-icon: url("data:image/svg+xml;utf8,"); + --light-color-scheme: light; + + /* Dark */ + --dark-color-background: #2b2e33; + --dark-color-background-secondary: #1e2024; + --dark-color-background-warning: #bebe00; + --dark-color-warning-text: #222; + --dark-color-accent: #9096a2; + --dark-color-active-menu-item: #5d5d6a; + --dark-color-text: #f5f5f5; + --dark-color-text-aside: #dddddd; + + --dark-color-icon-background: var(--dark-color-background-secondary); + --dark-color-icon-text: var(--dark-color-text); + + --dark-color-comment-tag-text: var(--dark-color-text); + --dark-color-comment-tag: var(--dark-color-background); + + --dark-color-link: #00aff4; + --dark-color-focus-outline: #4c97f2; + + --dark-color-ts-keyword: #3399ff; + --dark-color-ts-project: #e358ff; + --dark-color-ts-module: var(--dark-color-ts-project); + --dark-color-ts-namespace: var(--dark-color-ts-project); + --dark-color-ts-enum: #f4d93e; + --dark-color-ts-enum-member: var(--dark-color-ts-enum); + --dark-color-ts-variable: #798dff; + --dark-color-ts-function: #a280ff; + --dark-color-ts-class: #8ac4ff; + --dark-color-ts-interface: #6cff87; + --dark-color-ts-constructor: var(--dark-color-ts-class); + --dark-color-ts-property: #ff984d; + --dark-color-ts-method: #ff4db8; + --dark-color-ts-reference: #ff4d82; + --dark-color-ts-call-signature: var(--dark-color-ts-method); + --dark-color-ts-index-signature: var(--dark-color-ts-property); + --dark-color-ts-constructor-signature: var(--dark-color-ts-constructor); + --dark-color-ts-parameter: var(--dark-color-ts-variable); + /* type literal not included as links will never be generated to it */ + --dark-color-ts-type-parameter: #e07d13; + --dark-color-ts-accessor: #ff6060; + --dark-color-ts-get-signature: var(--dark-color-ts-accessor); + --dark-color-ts-set-signature: var(--dark-color-ts-accessor); + --dark-color-ts-type-alias: #ff6492; + /* reference not included as links will be colored with the kind that it points to */ + --dark-color-document: #ffffff; + + --dark-color-alert-note: #0969d9; + --dark-color-alert-tip: #1a7f37; + --dark-color-alert-important: #8250df; + --dark-color-alert-warning: #9a6700; + --dark-color-alert-caution: #cf222e; + + --dark-external-icon: url("data:image/svg+xml;utf8,"); + --dark-color-scheme: dark; + } + + @media (prefers-color-scheme: light) { + :root { + --color-background: var(--light-color-background); + --color-background-secondary: var( + --light-color-background-secondary + ); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); + --color-text: var(--light-color-text); + --color-text-aside: var(--light-color-text-aside); + + --color-icon-background: var(--light-color-icon-background); + --color-icon-text: var(--light-color-icon-text); + + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-alert-note: var(--light-color-alert-note); + --color-alert-tip: var(--light-color-alert-tip); + --color-alert-important: var(--light-color-alert-important); + --color-alert-warning: var(--light-color-alert-warning); + --color-alert-caution: var(--light-color-alert-caution); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } + } + + @media (prefers-color-scheme: dark) { + :root { + --color-background: var(--dark-color-background); + --color-background-secondary: var( + --dark-color-background-secondary + ); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); + --color-text: var(--dark-color-text); + --color-text-aside: var(--dark-color-text-aside); + + --color-icon-background: var(--dark-color-icon-background); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + + --color-link: var(--dark-color-link); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); + --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); + --color-ts-class: var(--dark-color-ts-class); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-alert-note: var(--dark-color-alert-note); + --color-alert-tip: var(--dark-color-alert-tip); + --color-alert-important: var(--dark-color-alert-important); + --color-alert-warning: var(--dark-color-alert-warning); + --color-alert-caution: var(--dark-color-alert-caution); + + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); + } + } + + html { + color-scheme: var(--color-scheme); + } + + body { + margin: 0; + } + + :root[data-theme="light"] { --color-background: var(--light-color-background); - --color-secondary-background: var(--light-color-secondary-background); + --color-background-secondary: var(--light-color-background-secondary); + --color-background-warning: var(--light-color-background-warning); + --color-warning-text: var(--light-color-warning-text); + --color-icon-background: var(--light-color-icon-background); + --color-accent: var(--light-color-accent); + --color-active-menu-item: var(--light-color-active-menu-item); --color-text: var(--light-color-text); --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-menu-divider: var(--light-color-menu-divider); - --color-menu-divider-focus: var(--light-color-menu-divider-focus); - --color-menu-label: var(--light-color-menu-label); - --color-panel: var(--light-color-panel); - --color-panel-divider: var(--light-color-panel-divider); - --color-comment-tag: var(--light-color-comment-tag); - --color-comment-tag-text: var(--light-color-comment-tag-text); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-private: var(--light-color-ts-private); - --color-toolbar: var(--light-color-toolbar); - --color-toolbar-text: var(--light-color-toolbar-text); - --icon-filter: var(--light-icon-filter); - --external-icon: var(--light-external-icon); - } -} + --color-icon-text: var(--light-color-icon-text); -@media (prefers-color-scheme: dark) { - :root { + --color-comment-tag-text: var(--light-color-text); + --color-comment-tag: var(--light-color-background); + + --color-link: var(--light-color-link); + --color-focus-outline: var(--light-color-focus-outline); + + --color-ts-keyword: var(--light-color-ts-keyword); + --color-ts-project: var(--light-color-ts-project); + --color-ts-module: var(--light-color-ts-module); + --color-ts-namespace: var(--light-color-ts-namespace); + --color-ts-enum: var(--light-color-ts-enum); + --color-ts-enum-member: var(--light-color-ts-enum-member); + --color-ts-variable: var(--light-color-ts-variable); + --color-ts-function: var(--light-color-ts-function); + --color-ts-class: var(--light-color-ts-class); + --color-ts-interface: var(--light-color-ts-interface); + --color-ts-constructor: var(--light-color-ts-constructor); + --color-ts-property: var(--light-color-ts-property); + --color-ts-method: var(--light-color-ts-method); + --color-ts-reference: var(--light-color-ts-reference); + --color-ts-call-signature: var(--light-color-ts-call-signature); + --color-ts-index-signature: var(--light-color-ts-index-signature); + --color-ts-constructor-signature: var( + --light-color-ts-constructor-signature + ); + --color-ts-parameter: var(--light-color-ts-parameter); + --color-ts-type-parameter: var(--light-color-ts-type-parameter); + --color-ts-accessor: var(--light-color-ts-accessor); + --color-ts-get-signature: var(--light-color-ts-get-signature); + --color-ts-set-signature: var(--light-color-ts-set-signature); + --color-ts-type-alias: var(--light-color-ts-type-alias); + --color-document: var(--light-color-document); + + --color-note: var(--light-color-note); + --color-tip: var(--light-color-tip); + --color-important: var(--light-color-important); + --color-warning: var(--light-color-warning); + --color-caution: var(--light-color-caution); + + --external-icon: var(--light-external-icon); + --color-scheme: var(--light-color-scheme); + } + + :root[data-theme="dark"] { --color-background: var(--dark-color-background); - --color-secondary-background: var(--dark-color-secondary-background); + --color-background-secondary: var(--dark-color-background-secondary); + --color-background-warning: var(--dark-color-background-warning); + --color-warning-text: var(--dark-color-warning-text); + --color-icon-background: var(--dark-color-icon-background); + --color-accent: var(--dark-color-accent); + --color-active-menu-item: var(--dark-color-active-menu-item); --color-text: var(--dark-color-text); --color-text-aside: var(--dark-color-text-aside); + --color-icon-text: var(--dark-color-icon-text); + + --color-comment-tag-text: var(--dark-color-text); + --color-comment-tag: var(--dark-color-background); + --color-link: var(--dark-color-link); - --color-menu-divider: var(--dark-color-menu-divider); - --color-menu-divider-focus: var(--dark-color-menu-divider-focus); - --color-menu-label: var(--dark-color-menu-label); - --color-panel: var(--dark-color-panel); - --color-panel-divider: var(--dark-color-panel-divider); - --color-comment-tag: var(--dark-color-comment-tag); - --color-comment-tag-text: var(--dark-color-comment-tag-text); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); + --color-focus-outline: var(--dark-color-focus-outline); + + --color-ts-keyword: var(--dark-color-ts-keyword); + --color-ts-project: var(--dark-color-ts-project); + --color-ts-module: var(--dark-color-ts-module); + --color-ts-namespace: var(--dark-color-ts-namespace); --color-ts-enum: var(--dark-color-ts-enum); + --color-ts-enum-member: var(--dark-color-ts-enum-member); + --color-ts-variable: var(--dark-color-ts-variable); + --color-ts-function: var(--dark-color-ts-function); --color-ts-class: var(--dark-color-ts-class); - --color-ts-private: var(--dark-color-ts-private); - --color-toolbar: var(--dark-color-toolbar); - --color-toolbar-text: var(--dark-color-toolbar-text); - --icon-filter: var(--dark-icon-filter); + --color-ts-interface: var(--dark-color-ts-interface); + --color-ts-constructor: var(--dark-color-ts-constructor); + --color-ts-property: var(--dark-color-ts-property); + --color-ts-method: var(--dark-color-ts-method); + --color-ts-reference: var(--dark-color-ts-reference); + --color-ts-call-signature: var(--dark-color-ts-call-signature); + --color-ts-index-signature: var(--dark-color-ts-index-signature); + --color-ts-constructor-signature: var( + --dark-color-ts-constructor-signature + ); + --color-ts-parameter: var(--dark-color-ts-parameter); + --color-ts-type-parameter: var(--dark-color-ts-type-parameter); + --color-ts-accessor: var(--dark-color-ts-accessor); + --color-ts-get-signature: var(--dark-color-ts-get-signature); + --color-ts-set-signature: var(--dark-color-ts-set-signature); + --color-ts-type-alias: var(--dark-color-ts-type-alias); + --color-document: var(--dark-color-document); + + --color-note: var(--dark-color-note); + --color-tip: var(--dark-color-tip); + --color-important: var(--dark-color-important); + --color-warning: var(--dark-color-warning); + --color-caution: var(--dark-color-caution); + --external-icon: var(--dark-external-icon); + --color-scheme: var(--dark-color-scheme); } -} -body { - margin: 0; -} + *:focus-visible, + .tsd-accordion-summary:focus-visible svg { + outline: 2px solid var(--color-focus-outline); + } -body.light { - --color-background: var(--light-color-background); - --color-secondary-background: var(--light-color-secondary-background); - --color-text: var(--light-color-text); - --color-text-aside: var(--light-color-text-aside); - --color-link: var(--light-color-link); - --color-menu-divider: var(--light-color-menu-divider); - --color-menu-divider-focus: var(--light-color-menu-divider-focus); - --color-menu-label: var(--light-color-menu-label); - --color-panel: var(--light-color-panel); - --color-panel-divider: var(--light-color-panel-divider); - --color-comment-tag: var(--light-color-comment-tag); - --color-comment-tag-text: var(--light-color-comment-tag-text); - --color-ts: var(--light-color-ts); - --color-ts-interface: var(--light-color-ts-interface); - --color-ts-enum: var(--light-color-ts-enum); - --color-ts-class: var(--light-color-ts-class); - --color-ts-private: var(--light-color-ts-private); - --color-toolbar: var(--light-color-toolbar); - --color-toolbar-text: var(--light-color-toolbar-text); - --icon-filter: var(--light-icon-filter); - --external-icon: var(--light-external-icon); -} + .always-visible, + .always-visible .tsd-signatures { + display: inherit !important; + } -body.dark { - --color-background: var(--dark-color-background); - --color-secondary-background: var(--dark-color-secondary-background); - --color-text: var(--dark-color-text); - --color-text-aside: var(--dark-color-text-aside); - --color-link: var(--dark-color-link); - --color-menu-divider: var(--dark-color-menu-divider); - --color-menu-divider-focus: var(--dark-color-menu-divider-focus); - --color-menu-label: var(--dark-color-menu-label); - --color-panel: var(--dark-color-panel); - --color-panel-divider: var(--dark-color-panel-divider); - --color-comment-tag: var(--dark-color-comment-tag); - --color-comment-tag-text: var(--dark-color-comment-tag-text); - --color-ts: var(--dark-color-ts); - --color-ts-interface: var(--dark-color-ts-interface); - --color-ts-enum: var(--dark-color-ts-enum); - --color-ts-class: var(--dark-color-ts-class); - --color-ts-private: var(--dark-color-ts-private); - --color-toolbar: var(--dark-color-toolbar); - --color-toolbar-text: var(--dark-color-toolbar-text); - --icon-filter: var(--dark-icon-filter); - --external-icon: var(--dark-external-icon); -} + h1, + h2, + h3, + h4, + h5, + h6 { + line-height: 1.2; + } -h1, -h2, -h3, -h4, -h5, -h6 { - line-height: 1.2; -} + h1 { + font-size: 1.875rem; + margin: 0.67rem 0; + } -h1 { - font-size: 2em; - margin: 0.67em 0; -} + h2 { + font-size: 1.5rem; + margin: 0.83rem 0; + } -h2 { - font-size: 1.5em; - margin: 0.83em 0; -} + h3 { + font-size: 1.25rem; + margin: 1rem 0; + } -h3 { - font-size: 1.17em; - margin: 1em 0; -} + h4 { + font-size: 1.05rem; + margin: 1.33rem 0; + } -h4, -.tsd-index-panel h3 { - font-size: 1em; - margin: 1.33em 0; -} + h5 { + font-size: 1rem; + margin: 1.5rem 0; + } -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} + h6 { + font-size: 0.875rem; + margin: 2.33rem 0; + } -h6 { - font-size: 0.67em; - margin: 2.33em 0; -} + dl, + menu, + ol, + ul { + margin: 1em 0; + } -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} + dd { + margin: 0 0 0 34px; + } -dl, -menu, -ol, -ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 40px; -} -@media (max-width: 640px) { .container { - padding: 0 20px; - } -} - -.container-main { - padding-bottom: 200px; -} - -.row { - display: flex; - position: relative; - margin: 0 -10px; -} -.row:after { - visibility: hidden; - display: block; - content: ""; - clear: both; - height: 0; -} - -.col-4, -.col-8 { - box-sizing: border-box; - float: left; - padding: 0 10px; -} - -.col-4 { - width: 33.3333333333%; -} -.col-8 { - width: 66.6666666667%; -} - -ul.tsd-descriptions > li > :first-child, -.tsd-panel > :first-child, -.col-8 > :first-child, -.col-4 > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child, -.tsd-panel > :first-child > :first-child, -.col-8 > :first-child > :first-child, -.col-4 > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child > :first-child, -.tsd-panel > :first-child > :first-child > :first-child, -.col-8 > :first-child > :first-child > :first-child, -.col-4 > :first-child > :first-child > :first-child { - margin-top: 0; -} -ul.tsd-descriptions > li > :last-child, -.tsd-panel > :last-child, -.col-8 > :last-child, -.col-4 > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child, -.tsd-panel > :last-child > :last-child, -.col-8 > :last-child > :last-child, -.col-4 > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child > :last-child, -.tsd-panel > :last-child > :last-child > :last-child, -.col-8 > :last-child > :last-child > :last-child, -.col-4 > :last-child > :last-child > :last-child { - margin-bottom: 0; -} - -@keyframes fade-in { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; - } - to { - opacity: 0; - } -} -@keyframes fade-in-delayed { - 0% { - opacity: 0; - } - 33% { - opacity: 0; - } - 100% { - opacity: 1; - } -} -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } -} -@keyframes shift-to-left { - from { - transform: translate(0, 0); - } - to { - transform: translate(-25%, 0); - } -} -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; - } - to { - transform: translate(100%, 0); - } -} -body { - background: var(--color-background); - font-family: "Segoe UI", sans-serif; - font-size: 16px; - color: var(--color-text); -} - -a { - color: var(--color-link); - text-decoration: none; -} -a:hover { - text-decoration: underline; -} -a.external[target="_blank"] { - background-image: var(--external-icon); - background-position: top 3px right; - background-repeat: no-repeat; - padding-right: 13px; -} - -code, -pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 14px; -} - -pre { - padding: 10px; -} -pre code { - padding: 0; - font-size: 100%; -} - -blockquote { - margin: 1em 0; - padding-left: 1em; - border-left: 4px solid gray; -} - -.tsd-typography { - line-height: 1.333em; -} -.tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-typography h4, -.tsd-typography .tsd-index-panel h3, -.tsd-index-panel .tsd-typography h3, -.tsd-typography h5, -.tsd-typography h6 { - font-size: 1em; - margin: 0; -} -.tsd-typography h5, -.tsd-typography h6 { - font-weight: normal; -} -.tsd-typography p, -.tsd-typography ul, -.tsd-typography ol { - margin: 1em 0; -} - -@media (min-width: 901px) and (max-width: 1024px) { - html .col-content { - width: 72%; - } - html .col-menu { - width: 28%; - } - html .tsd-navigation { - padding-left: 10px; - } -} -@media (max-width: 900px) { - html .col-content { - float: none; - width: 100%; - } - html .col-menu { - position: fixed !important; - overflow: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - width: 100%; - padding: 20px 20px 0 0; - max-width: 450px; - visibility: hidden; - background-color: var(--color-panel); - transform: translate(100%, 0); - } - html .col-menu > *:last-child { - padding-bottom: 20px; - } - html .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; + max-width: 1700px; + padding: 0 2rem; } - .to-has-menu .overlay { - animation: fade-in 0.4s; + /* Footer */ + footer { + border-top: 1px solid var(--color-accent); + padding-top: 1rem; + padding-bottom: 1rem; + max-height: 3.5rem; + } + footer > p { + margin: 0 1em; } - .to-has-menu :is(header, footer, .col-content) { - animation: shift-to-left 0.4s; + .container-main { + margin: 0 auto; + /* toolbar, footer, margin */ + min-height: calc(100vh - 41px - 56px - 4rem); } - .to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; + @keyframes fade-in { + from { + opacity: 0; + } + to { + opacity: 1; + } + } + @keyframes fade-out { + from { + opacity: 1; + visibility: visible; + } + to { + opacity: 0; + } + } + @keyframes fade-in-delayed { + 0% { + opacity: 0; + } + 33% { + opacity: 0; + } + 100% { + opacity: 1; + } + } + @keyframes fade-out-delayed { + 0% { + opacity: 1; + visibility: visible; + } + 66% { + opacity: 0; + } + 100% { + opacity: 0; + } + } + @keyframes pop-in-from-right { + from { + transform: translate(100%, 0); + } + to { + transform: translate(0, 0); + } + } + @keyframes pop-out-to-right { + from { + transform: translate(0, 0); + visibility: visible; + } + to { + transform: translate(100%, 0); + } + } + body { + background: var(--color-background); + font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", + Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji"; + font-size: 16px; + color: var(--color-text); } - .from-has-menu .overlay { - animation: fade-out 0.4s; + a { + color: var(--color-link); + text-decoration: none; + } + a:hover { + text-decoration: underline; + } + a.external[target="_blank"] { + background-image: var(--external-icon); + background-position: top 3px right; + background-repeat: no-repeat; + padding-right: 13px; + } + a.tsd-anchor-link { + color: var(--color-text); } - .from-has-menu :is(header, footer, .col-content) { - animation: unshift-to-left 0.4s; + code, + pre { + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + padding: 0.2em; + margin: 0; + font-size: 0.875rem; + border-radius: 0.8em; } - .from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; + pre { + position: relative; + white-space: pre-wrap; + word-wrap: break-word; + padding: 10px; + border: 1px solid var(--color-accent); + margin-bottom: 8px; } - - .has-menu body { - overflow: hidden; + pre code { + padding: 0; + font-size: 100%; } - .has-menu .overlay { - visibility: visible; - } - .has-menu :is(header, footer, .col-content) { - transform: translate(-25%, 0); - } - .has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); - display: grid; - grid-template-rows: auto 1fr; - max-height: 100vh; - } - .has-menu .tsd-navigation { - max-height: 100%; - } -} - -.tsd-page-title { - padding: 70px 0 20px 0; - margin: 0 0 40px 0; - background: var(--color-panel); - box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); -} -.tsd-page-title h1 { - margin: 0; -} - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: var(--color-text-aside); -} -.tsd-breadcrumb a { - color: var(--color-text-aside); - text-decoration: none; -} -.tsd-breadcrumb a:hover { - text-decoration: underline; -} -.tsd-breadcrumb li { - display: inline; -} -.tsd-breadcrumb li:after { - content: " / "; -} - -dl.tsd-comment-tags { - overflow: hidden; -} -dl.tsd-comment-tags dt { - float: left; - padding: 1px 5px; - margin: 0 10px 0 0; - border-radius: 4px; - border: 1px solid var(--color-comment-tag); - color: var(--color-comment-tag); - font-size: 0.8em; - font-weight: normal; -} -dl.tsd-comment-tags dd { - margin: 0 0 10px 0; -} -dl.tsd-comment-tags dd:before, -dl.tsd-comment-tags dd:after { - display: table; - content: " "; -} -dl.tsd-comment-tags dd pre, -dl.tsd-comment-tags dd:after { - clear: both; -} -dl.tsd-comment-tags p { - margin: 0; -} - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; -} -.tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; -} - -.toggle-protected .tsd-is-private { - display: none; -} - -.toggle-public .tsd-is-private, -.toggle-public .tsd-is-protected, -.toggle-public .tsd-is-private-protected { - display: none; -} - -.toggle-inherited .tsd-is-inherited { - display: none; -} - -.toggle-externals .tsd-is-external { - display: none; -} - -#tsd-filter { - position: relative; - display: inline-block; - height: 40px; - vertical-align: bottom; -} -.no-filter #tsd-filter { - display: none; -} -#tsd-filter .tsd-filter-group { - display: inline-block; - height: 40px; - vertical-align: bottom; - white-space: nowrap; -} -#tsd-filter input { - display: none; -} -@media (max-width: 900px) { - #tsd-filter .tsd-filter-group { - display: block; + pre > button { position: absolute; - top: 40px; - right: 20px; - height: auto; - background-color: var(--color-panel); - visibility: hidden; - transform: translate(50%, 0); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + top: 10px; + right: 10px; + opacity: 0; + transition: opacity 0.1s; + box-sizing: border-box; } - .has-options #tsd-filter .tsd-filter-group { - visibility: visible; + pre:hover > button, + pre > button.visible { + opacity: 1; } - .to-has-options #tsd-filter .tsd-filter-group { - animation: fade-in 0.2s; + + blockquote { + margin: 1em 0; + padding-left: 1em; + border-left: 4px solid gray; } - .from-has-options #tsd-filter .tsd-filter-group { - animation: fade-out 0.2s; + + .tsd-typography { + line-height: 1.333em; } - #tsd-filter label, - #tsd-filter .tsd-select { - display: block; - padding-right: 20px; + .tsd-typography ul { + list-style: square; + padding: 0 0 0 20px; + margin: 0; } -} - -footer { - border-top: 1px solid var(--color-panel-divider); - background-color: var(--color-panel); -} -footer:after { - content: ""; - display: table; -} -footer.with-border-bottom { - border-bottom: 1px solid var(--color-panel-divider); -} -footer .tsd-legend-group { - font-size: 0; -} -footer .tsd-legend { - display: inline-block; - width: 25%; - padding: 0; - font-size: 16px; - list-style: none; - line-height: 1.333em; - vertical-align: top; -} -@media (max-width: 900px) { - footer .tsd-legend { - width: 50%; + .tsd-typography .tsd-index-panel h3, + .tsd-index-panel .tsd-typography h3, + .tsd-typography h4, + .tsd-typography h5, + .tsd-typography h6 { + font-size: 1em; } -} - -.tsd-hierarchy { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-hierarchy .target { - font-weight: bold; -} - -.tsd-index-panel .tsd-index-content { - margin-bottom: -30px !important; -} -.tsd-index-panel .tsd-index-section { - margin-bottom: 30px !important; -} -.tsd-index-panel h3 { - margin: 0 -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid var(--color-panel-divider); -} -.tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 3; - -moz-column-count: 3; - -ms-column-count: 3; - -o-column-count: 3; - column-count: 3; - -webkit-column-gap: 20px; - -moz-column-gap: 20px; - -ms-column-gap: 20px; - -o-column-gap: 20px; - column-gap: 20px; - padding: 0; - list-style: none; - line-height: 1.333em; -} -@media (max-width: 900px) { - .tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 1; - -moz-column-count: 1; - -ms-column-count: 1; - -o-column-count: 1; - column-count: 1; + .tsd-typography h5, + .tsd-typography h6 { + font-weight: normal; } -} -@media (min-width: 901px) and (max-width: 1024px) { - .tsd-index-panel ul.tsd-index-list { - -webkit-column-count: 2; - -moz-column-count: 2; - -ms-column-count: 2; - -o-column-count: 2; - column-count: 2; + .tsd-typography p, + .tsd-typography ul, + .tsd-typography ol { + margin: 1em 0; } -} -.tsd-index-panel ul.tsd-index-list li { - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; -} -.tsd-index-panel a, -.tsd-index-panel .tsd-parent-kind-module a { - color: var(--color-ts); -} -.tsd-index-panel .tsd-parent-kind-interface a { - color: var(--color-ts-interface); -} -.tsd-index-panel .tsd-parent-kind-enum a { - color: var(--color-ts-enum); -} -.tsd-index-panel .tsd-parent-kind-class a { - color: var(--color-ts-class); -} -.tsd-index-panel .tsd-kind-module a { - color: var(--color-ts); -} -.tsd-index-panel .tsd-kind-interface a { - color: var(--color-ts-interface); -} -.tsd-index-panel .tsd-kind-enum a { - color: var(--color-ts-enum); -} -.tsd-index-panel .tsd-kind-class a { - color: var(--color-ts-class); -} -.tsd-index-panel .tsd-is-private a { - color: var(--color-ts-private); -} - -.tsd-flag { - display: inline-block; - padding: 1px 5px; - border-radius: 4px; - color: var(--color-comment-tag-text); - background-color: var(--color-comment-tag); - text-indent: 0; - font-size: 14px; - font-weight: normal; -} - -.tsd-anchor { - position: absolute; - top: -100px; -} - -.tsd-member { - position: relative; -} -.tsd-member .tsd-anchor + h3 { - margin-top: 0; - margin-bottom: 0; - border-bottom: none; -} -.tsd-member [data-tsd-kind] { - color: var(--color-ts); -} -.tsd-member [data-tsd-kind="Interface"] { - color: var(--color-ts-interface); -} -.tsd-member [data-tsd-kind="Enum"] { - color: var(--color-ts-enum); -} -.tsd-member [data-tsd-kind="Class"] { - color: var(--color-ts-class); -} -.tsd-member [data-tsd-kind="Private"] { - color: var(--color-ts-private); -} - -.tsd-navigation { - margin: 0 0 0 40px; -} -.tsd-navigation a { - display: block; - padding-top: 2px; - padding-bottom: 2px; - border-left: 2px solid transparent; - color: var(--color-text); - text-decoration: none; - transition: border-left-color 0.1s; -} -.tsd-navigation a:hover { - text-decoration: underline; -} -.tsd-navigation ul { - margin: 0; - padding: 0; - list-style: none; -} -.tsd-navigation li { - padding: 0; -} - -.tsd-navigation.primary { - padding-bottom: 40px; -} -.tsd-navigation.primary a { - display: block; - padding-top: 6px; - padding-bottom: 6px; -} -.tsd-navigation.primary ul li a { - padding-left: 5px; -} -.tsd-navigation.primary ul li li a { - padding-left: 25px; -} -.tsd-navigation.primary ul li li li a { - padding-left: 45px; -} -.tsd-navigation.primary ul li li li li a { - padding-left: 65px; -} -.tsd-navigation.primary ul li li li li li a { - padding-left: 85px; -} -.tsd-navigation.primary ul li li li li li li a { - padding-left: 105px; -} -.tsd-navigation.primary > ul { - border-bottom: 1px solid var(--color-panel-divider); -} -.tsd-navigation.primary li { - border-top: 1px solid var(--color-panel-divider); -} -.tsd-navigation.primary li.current > a { - font-weight: bold; -} -.tsd-navigation.primary li.label span { - display: block; - padding: 20px 0 6px 5px; - color: var(--color-menu-label); -} -.tsd-navigation.primary li.globals + li > span, -.tsd-navigation.primary li.globals + li > a { - padding-top: 20px; -} - -.tsd-navigation.secondary { - max-height: calc(100vh - 1rem - 40px); - overflow: auto; - position: sticky; - top: calc(0.5rem + 40px); - transition: 0.3s; -} -.tsd-navigation.secondary.tsd-navigation--toolbar-hide { - max-height: calc(100vh - 1rem); - top: 0.5rem; -} -.tsd-navigation.secondary ul { - transition: opacity 0.2s; -} -.tsd-navigation.secondary ul li a { - padding-left: 25px; -} -.tsd-navigation.secondary ul li li a { - padding-left: 45px; -} -.tsd-navigation.secondary ul li li li a { - padding-left: 65px; -} -.tsd-navigation.secondary ul li li li li a { - padding-left: 85px; -} -.tsd-navigation.secondary ul li li li li li a { - padding-left: 105px; -} -.tsd-navigation.secondary ul li li li li li li a { - padding-left: 125px; -} -.tsd-navigation.secondary ul.current a { - border-left-color: var(--color-panel-divider); -} -.tsd-navigation.secondary li.focus > a, -.tsd-navigation.secondary ul.current li.focus > a { - border-left-color: var(--color-menu-divider-focus); -} -.tsd-navigation.secondary li.current { - margin-top: 20px; - margin-bottom: 20px; - border-left-color: var(--color-panel-divider); -} -.tsd-navigation.secondary li.current > a { - font-weight: bold; -} - -@media (min-width: 901px) { - .menu-sticky-wrap { - position: static; + .tsd-typography table { + border-collapse: collapse; + border: none; } -} - -.tsd-panel { - margin: 20px 0; - padding: 20px; - background-color: var(--color-panel); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -.tsd-panel:empty { - display: none; -} -.tsd-panel > h1, -.tsd-panel > h2, -.tsd-panel > h3 { - margin: 1.5em -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid var(--color-panel-divider); -} -.tsd-panel > h1.tsd-before-signature, -.tsd-panel > h2.tsd-before-signature, -.tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: 0; -} -.tsd-panel table { - display: block; - width: 100%; - overflow: auto; - margin-top: 10px; - word-break: normal; - word-break: keep-all; - border-collapse: collapse; -} -.tsd-panel table th { - font-weight: bold; -} -.tsd-panel table th, -.tsd-panel table td { - padding: 6px 13px; - border: 1px solid var(--color-panel-divider); -} -.tsd-panel table tr { - background: var(--color-background); -} -.tsd-panel table tr:nth-child(even) { - background: var(--color-secondary-background); -} - -.tsd-panel-group { - margin: 60px 0; -} -.tsd-panel-group > h1, -.tsd-panel-group > h2, -.tsd-panel-group > h3 { - padding-left: 20px; - padding-right: 20px; -} - -#tsd-search { - transition: background-color 0.2s; -} -#tsd-search .title { - position: relative; - z-index: 2; -} -#tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 40px; - height: 40px; -} -#tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: var(--color-text); -} -#tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; -} -#tsd-search .field input, -#tsd-search .title { - transition: opacity 0.2s; -} -#tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -#tsd-search .results li { - padding: 0 10px; - background-color: var(--color-background); -} -#tsd-search .results li:nth-child(even) { - background-color: var(--color-panel); -} -#tsd-search .results li.state { - display: none; -} -#tsd-search .results li.current, -#tsd-search .results li:hover { - background-color: var(--color-panel-divider); -} -#tsd-search .results a { - display: block; -} -#tsd-search .results a:before { - top: 10px; -} -#tsd-search .results span.parent { - color: var(--color-text-aside); - font-weight: normal; -} -#tsd-search.has-focus { - background-color: var(--color-panel-divider); -} -#tsd-search.has-focus .field input { - top: 0; - opacity: 1; -} -#tsd-search.has-focus .title { - z-index: 0; - opacity: 0; -} -#tsd-search.has-focus .results { - visibility: visible; -} -#tsd-search.loading .results li.state.loading { - display: block; -} -#tsd-search.failure .results li.state.failure { - display: block; -} - -.tsd-signature { - margin: 0 0 1em 0; - padding: 10px; - border: 1px solid var(--color-panel-divider); - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; - overflow-x: auto; -} -.tsd-signature.tsd-kind-icon { - padding-left: 30px; -} -.tsd-signature.tsd-kind-icon:before { - top: 10px; - left: 10px; -} -.tsd-panel > .tsd-signature { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; -} -.tsd-panel > .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signature.tsd-kind-icon:before { - left: 20px; -} - -.tsd-signature-symbol { - color: var(--color-text-aside); - font-weight: normal; -} - -.tsd-signature-type { - font-style: italic; - font-weight: normal; -} - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - border: 1px solid var(--color-panel-divider); -} -.tsd-signatures .tsd-signature { - margin: 0; - border-width: 1px 0 0 0; - transition: background-color 0.1s; -} -.tsd-signatures .tsd-signature:first-child { - border-top-width: 0; -} -.tsd-signatures .tsd-signature.current { - background-color: var(--color-panel-divider); -} -.tsd-signatures.active > .tsd-signature { - cursor: pointer; -} -.tsd-panel > .tsd-signatures { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; -} -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { - left: 20px; -} -.tsd-panel > a.anchor + .tsd-signatures { - border-top-width: 0; - margin-top: -20px; -} - -ul.tsd-descriptions { - position: relative; - overflow: hidden; - padding: 0; - list-style: none; -} -ul.tsd-descriptions.active > .tsd-description { - display: none; -} -ul.tsd-descriptions.active > .tsd-description.current { - display: block; -} -ul.tsd-descriptions.active > .tsd-description.fade-in { - animation: fade-in-delayed 0.3s; -} -ul.tsd-descriptions.active > .tsd-description.fade-out { - animation: fade-out-delayed 0.3s; - position: absolute; - display: block; - top: 0; - left: 0; - right: 0; - opacity: 0; - visibility: hidden; -} -ul.tsd-descriptions h4, -ul.tsd-descriptions .tsd-index-panel h3, -.tsd-index-panel ul.tsd-descriptions h3 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} - -ul.tsd-parameters, -ul.tsd-type-parameters { - list-style: square; - margin: 0; - padding-left: 20px; -} -ul.tsd-parameters > li.tsd-parameter-signature, -ul.tsd-type-parameters > li.tsd-parameter-signature { - list-style: none; - margin-left: -20px; -} -ul.tsd-parameters h5, -ul.tsd-type-parameters h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} -ul.tsd-parameters .tsd-comment, -ul.tsd-type-parameters .tsd-comment { - margin-top: -0.5em; -} - -.tsd-sources { - font-size: 14px; - color: var(--color-text-aside); - margin: 0 0 1em 0; -} -.tsd-sources a { - color: var(--color-text-aside); - text-decoration: underline; -} -.tsd-sources ul, -.tsd-sources p { - margin: 0 !important; -} -.tsd-sources ul { - list-style: none; - padding: 0; -} - -.tsd-page-toolbar { - position: fixed; - z-index: 1; - top: 0; - left: 0; - width: 100%; - height: 40px; - color: var(--color-toolbar-text); - background: var(--color-toolbar); - border-bottom: 1px solid var(--color-panel-divider); - transition: transform 0.3s linear; -} -.tsd-page-toolbar a { - color: var(--color-toolbar-text); - text-decoration: none; -} -.tsd-page-toolbar a.title { - font-weight: bold; -} -.tsd-page-toolbar a.title:hover { - text-decoration: underline; -} -.tsd-page-toolbar .table-wrap { - display: table; - width: 100%; - height: 40px; -} -.tsd-page-toolbar .table-cell { - display: table-cell; - position: relative; - white-space: nowrap; - line-height: 40px; -} -.tsd-page-toolbar .table-cell:first-child { - width: 100%; -} - -.tsd-page-toolbar--hide { - transform: translateY(-100%); -} - -.tsd-select .tsd-select-list li:before, -.tsd-select .tsd-select-label:before, -.tsd-widget:before { - content: ""; - display: inline-block; - width: 40px; - height: 40px; - margin: 0 -8px 0 0; - background-image: url(./widgets.png); - background-repeat: no-repeat; - text-indent: -1024px; - vertical-align: bottom; - filter: var(--icon-filter); -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-select .tsd-select-list li:before, - .tsd-select .tsd-select-label:before, - .tsd-widget:before { - background-image: url(./widgets@2x.png); - background-size: 320px 40px; + .tsd-typography td, + .tsd-typography th { + padding: 6px 13px; + border: 1px solid var(--color-accent); + } + .tsd-typography thead, + .tsd-typography tr:nth-child(even) { + background-color: var(--color-background-secondary); } -} -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.8; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-widget:hover { - opacity: 0.9; -} -.tsd-widget.active { - opacity: 1; - background-color: var(--color-panel-divider); -} -.tsd-widget.no-caption { - width: 40px; -} -.tsd-widget.no-caption:before { - margin: 0; -} -.tsd-widget.search:before { - background-position: 0 0; -} -.tsd-widget.menu:before { - background-position: -40px 0; -} -.tsd-widget.options:before { - background-position: -80px 0; -} -.tsd-widget.options, -.tsd-widget.menu { - display: none; -} -@media (max-width: 900px) { - .tsd-widget.options, - .tsd-widget.menu { + .tsd-alert { + padding: 8px 16px; + margin-bottom: 16px; + border-left: 0.25em solid var(--alert-color); + } + .tsd-alert blockquote > :last-child, + .tsd-alert > :last-child { + margin-bottom: 0; + } + .tsd-alert-title { + color: var(--alert-color); + display: inline-flex; + align-items: center; + } + .tsd-alert-title span { + margin-left: 4px; + } + + .tsd-alert-note { + --alert-color: var(--color-alert-note); + } + .tsd-alert-tip { + --alert-color: var(--color-alert-tip); + } + .tsd-alert-important { + --alert-color: var(--color-alert-important); + } + .tsd-alert-warning { + --alert-color: var(--color-alert-warning); + } + .tsd-alert-caution { + --alert-color: var(--color-alert-caution); + } + + .tsd-breadcrumb { + margin: 0; + padding: 0; + color: var(--color-text-aside); + } + .tsd-breadcrumb a { + color: var(--color-text-aside); + text-decoration: none; + } + .tsd-breadcrumb a:hover { + text-decoration: underline; + } + .tsd-breadcrumb li { + display: inline; + } + .tsd-breadcrumb li:after { + content: " / "; + } + + .tsd-comment-tags { + display: flex; + flex-direction: column; + } + dl.tsd-comment-tag-group { + display: flex; + align-items: center; + overflow: hidden; + margin: 0.5em 0; + } + dl.tsd-comment-tag-group dt { + display: flex; + margin-right: 0.5em; + font-size: 0.875em; + font-weight: normal; + } + dl.tsd-comment-tag-group dd { + margin: 0; + } + code.tsd-tag { + padding: 0.25em 0.4em; + border: 0.1em solid var(--color-accent); + margin-right: 0.25em; + font-size: 70%; + } + h1 code.tsd-tag:first-of-type { + margin-left: 0.25em; + } + + dl.tsd-comment-tag-group dd:before, + dl.tsd-comment-tag-group dd:after { + content: " "; + } + dl.tsd-comment-tag-group dd pre, + dl.tsd-comment-tag-group dd:after { + clear: both; + } + dl.tsd-comment-tag-group p { + margin: 0; + } + + .tsd-panel.tsd-comment .lead { + font-size: 1.1em; + line-height: 1.333em; + margin-bottom: 2em; + } + .tsd-panel.tsd-comment .lead:last-child { + margin-bottom: 0; + } + + .tsd-filter-visibility h4 { + font-size: 1rem; + padding-top: 0.75rem; + padding-bottom: 0.5rem; + margin: 0; + } + .tsd-filter-item:not(:last-child) { + margin-bottom: 0.5rem; + } + .tsd-filter-input { + display: flex; + width: -moz-fit-content; + width: fit-content; + align-items: center; + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + cursor: pointer; + } + .tsd-filter-input input[type="checkbox"] { + cursor: pointer; + position: absolute; + width: 1.5em; + height: 1.5em; + opacity: 0; + } + .tsd-filter-input input[type="checkbox"]:disabled { + pointer-events: none; + } + .tsd-filter-input svg { + cursor: pointer; + width: 1.5em; + height: 1.5em; + margin-right: 0.5em; + border-radius: 0.33em; + /* Leaving this at full opacity breaks event listeners on Firefox. + Don't remove unless you know what you're doing. */ + opacity: 0.99; + } + .tsd-filter-input input[type="checkbox"]:focus-visible + svg { + outline: 2px solid var(--color-focus-outline); + } + .tsd-checkbox-background { + fill: var(--color-accent); + } + input[type="checkbox"]:checked ~ svg .tsd-checkbox-checkmark { + stroke: var(--color-text); + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-background { + fill: var(--color-background); + stroke: var(--color-accent); + stroke-width: 0.25rem; + } + .tsd-filter-input input:disabled ~ svg > .tsd-checkbox-checkmark { + stroke: var(--color-accent); + } + + .settings-label { + font-weight: bold; + text-transform: uppercase; display: inline-block; } -} -input[type="checkbox"] + .tsd-widget:before { - background-position: -120px 0; -} -input[type="checkbox"]:checked + .tsd-widget:before { - background-position: -160px 0; -} -.tsd-select { - position: relative; - display: inline-block; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-select .tsd-select-label { - opacity: 0.6; - transition: opacity 0.2s; -} -.tsd-select .tsd-select-label:before { - background-position: -240px 0; -} -.tsd-select.active .tsd-select-label { - opacity: 0.8; -} -.tsd-select.active .tsd-select-list { - visibility: visible; - opacity: 1; - transition-delay: 0s; -} -.tsd-select .tsd-select-list { - position: absolute; - visibility: hidden; - top: 40px; - left: 0; - margin: 0; - padding: 0; - opacity: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - transition: visibility 0s 0.2s, opacity 0.2s; -} -.tsd-select .tsd-select-list li { - padding: 0 20px 0 0; - background-color: var(--color-background); -} -.tsd-select .tsd-select-list li:before { - background-position: 40px 0; -} -.tsd-select .tsd-select-list li:nth-child(even) { - background-color: var(--color-panel); -} -.tsd-select .tsd-select-list li:hover { - background-color: var(--color-panel-divider); -} -.tsd-select .tsd-select-list li.selected:before { - background-position: -200px 0; -} -@media (max-width: 900px) { - .tsd-select .tsd-select-list { + .tsd-filter-visibility .settings-label { + margin: 0.75rem 0 0.5rem 0; + } + + .tsd-theme-toggle .settings-label { + margin: 0.75rem 0.75rem 0 0; + } + + .tsd-hierarchy h4 label:hover span { + text-decoration: underline; + } + + .tsd-hierarchy { + list-style: square; + margin: 0; + } + .tsd-hierarchy-target { + font-weight: bold; + } + .tsd-hierarchy-toggle { + color: var(--color-link); + cursor: pointer; + } + + .tsd-full-hierarchy:not(:last-child) { + margin-bottom: 1em; + padding-bottom: 1em; + border-bottom: 1px solid var(--color-accent); + } + .tsd-full-hierarchy, + .tsd-full-hierarchy ul { + list-style: none; + margin: 0; + padding: 0; + } + .tsd-full-hierarchy ul { + padding-left: 1.5rem; + } + .tsd-full-hierarchy a { + padding: 0.25rem 0 !important; + font-size: 1rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-full-hierarchy svg[data-dropdown] { + cursor: pointer; + } + .tsd-full-hierarchy svg[data-dropdown="false"] { + transform: rotate(-90deg); + } + .tsd-full-hierarchy svg[data-dropdown="false"] ~ ul { + display: none; + } + + .tsd-panel-group.tsd-index-group { + margin-bottom: 0; + } + .tsd-index-panel .tsd-index-list { + list-style: none; + line-height: 1.333em; + margin: 0; + padding: 0.25rem 0 0 0; + overflow: hidden; + display: grid; + grid-template-columns: repeat(3, 1fr); + column-gap: 1rem; + grid-template-rows: auto; + } + @media (max-width: 1024px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(2, 1fr); + } + } + @media (max-width: 768px) { + .tsd-index-panel .tsd-index-list { + grid-template-columns: repeat(1, 1fr); + } + } + .tsd-index-panel .tsd-index-list li { + -webkit-page-break-inside: avoid; + -moz-page-break-inside: avoid; + -ms-page-break-inside: avoid; + -o-page-break-inside: avoid; + page-break-inside: avoid; + } + + .tsd-flag { + display: inline-block; + padding: 0.25em 0.4em; + border-radius: 4px; + color: var(--color-comment-tag-text); + background-color: var(--color-comment-tag); + text-indent: 0; + font-size: 75%; + line-height: 1; + font-weight: normal; + } + + .tsd-anchor { + position: relative; + top: -100px; + } + + .tsd-member { + position: relative; + } + .tsd-member .tsd-anchor + h3 { + display: flex; + align-items: center; + margin-top: 0; + margin-bottom: 0; + border-bottom: none; + } + + .tsd-navigation.settings { + margin: 1rem 0; + } + .tsd-navigation > a, + .tsd-navigation .tsd-accordion-summary { + width: calc(100% - 0.25rem); + display: flex; + align-items: center; + } + .tsd-navigation a, + .tsd-navigation summary > span, + .tsd-page-navigation a { + display: flex; + width: calc(100% - 0.25rem); + align-items: center; + padding: 0.25rem; + color: var(--color-text); + text-decoration: none; + box-sizing: border-box; + } + .tsd-navigation a.current, + .tsd-page-navigation a.current { + background: var(--color-active-menu-item); + } + .tsd-navigation a:hover, + .tsd-page-navigation a:hover { + text-decoration: underline; + } + .tsd-navigation ul, + .tsd-page-navigation ul { + margin-top: 0; + margin-bottom: 0; + padding: 0; + list-style: none; + } + .tsd-navigation li, + .tsd-page-navigation li { + padding: 0; + max-width: 100%; + } + .tsd-navigation .tsd-nav-link { + display: none; + } + .tsd-nested-navigation { + margin-left: 3rem; + } + .tsd-nested-navigation > li > details { + margin-left: -1.5rem; + } + .tsd-small-nested-navigation { + margin-left: 1.5rem; + } + .tsd-small-nested-navigation > li > details { + margin-left: -1.5rem; + } + + .tsd-page-navigation-section { + margin-left: 10px; + } + .tsd-page-navigation-section > summary { + padding: 0.25rem; + } + .tsd-page-navigation-section > div { + margin-left: 20px; + } + .tsd-page-navigation ul { + padding-left: 1.75rem; + } + + #tsd-sidebar-links a { + margin-top: 0; + margin-bottom: 0.5rem; + line-height: 1.25rem; + } + #tsd-sidebar-links a:last-of-type { + margin-bottom: 0; + } + + a.tsd-index-link { + padding: 0.25rem 0 !important; + font-size: 1rem; + line-height: 1.25rem; + display: inline-flex; + align-items: center; + color: var(--color-text); + } + .tsd-accordion-summary { + list-style-type: none; /* hide marker on non-safari */ + outline: none; /* broken on safari, so just hide it */ + } + .tsd-accordion-summary::-webkit-details-marker { + display: none; /* hide marker on safari */ + } + .tsd-accordion-summary, + .tsd-accordion-summary a { + -moz-user-select: none; + -webkit-user-select: none; + -ms-user-select: none; + user-select: none; + + cursor: pointer; + } + .tsd-accordion-summary a { + width: calc(100% - 1.5rem); + } + .tsd-accordion-summary > * { + margin-top: 0; + margin-bottom: 0; + padding-top: 0; + padding-bottom: 0; + } + .tsd-accordion .tsd-accordion-summary > svg { + margin-left: 0.25rem; + vertical-align: text-top; + } + /* + * We need to be careful to target the arrow indicating whether the accordion + * is open, but not any other SVGs included in the details element. + */ + .tsd-accordion:not([open]) > .tsd-accordion-summary > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h1 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h2 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h3 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h4 > svg:first-child, + .tsd-accordion:not([open]) > .tsd-accordion-summary > h5 > svg:first-child { + transform: rotate(-90deg); + } + .tsd-index-content > :not(:first-child) { + margin-top: 0.75rem; + } + .tsd-index-heading { + margin-top: 1.5rem; + margin-bottom: 0.75rem; + } + + .tsd-no-select { + -webkit-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + } + .tsd-kind-icon { + margin-right: 0.5rem; + width: 1.25rem; + height: 1.25rem; + min-width: 1.25rem; + min-height: 1.25rem; + } + .tsd-signature > .tsd-kind-icon { + margin-right: 0.8rem; + } + + .tsd-panel { + margin-bottom: 2.5rem; + } + .tsd-panel.tsd-member { + margin-bottom: 4rem; + } + .tsd-panel:empty { + display: none; + } + .tsd-panel > h1, + .tsd-panel > h2, + .tsd-panel > h3 { + margin: 1.5rem -1.5rem 0.75rem -1.5rem; + padding: 0 1.5rem 0.75rem 1.5rem; + } + .tsd-panel > h1.tsd-before-signature, + .tsd-panel > h2.tsd-before-signature, + .tsd-panel > h3.tsd-before-signature { + margin-bottom: 0; + border-bottom: none; + } + + .tsd-panel-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group { + margin: 2rem 0; + } + .tsd-panel-group.tsd-index-group details { + margin: 2rem 0; + } + .tsd-panel-group > .tsd-accordion-summary { + margin-bottom: 1rem; + } + + #tsd-search { + transition: background-color 0.2s; + } + #tsd-search .title { + position: relative; + z-index: 2; + } + #tsd-search .field { + position: absolute; + left: 0; top: 0; - left: auto; - right: 100%; - margin-right: -5px; + right: 2.5rem; + height: 100%; } - .tsd-select .tsd-select-label:before { - background-position: -280px 0; + #tsd-search .field input { + box-sizing: border-box; + position: relative; + top: -50px; + z-index: 1; + width: 100%; + padding: 0 10px; + opacity: 0; + outline: 0; + border: 0; + background: transparent; + color: var(--color-text); + } + #tsd-search .field label { + position: absolute; + overflow: hidden; + right: -40px; + } + #tsd-search .field input, + #tsd-search .title, + #tsd-toolbar-links a { + transition: opacity 0.2s; + } + #tsd-search .results { + position: absolute; + visibility: hidden; + top: 40px; + width: 100%; + margin: 0; + padding: 0; + list-style: none; + box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); + } + #tsd-search .results li { + background-color: var(--color-background); + line-height: initial; + padding: 4px; + } + #tsd-search .results li:nth-child(even) { + background-color: var(--color-background-secondary); + } + #tsd-search .results li.state { + display: none; + } + #tsd-search .results li.current:not(.no-results), + #tsd-search .results li:hover:not(.no-results) { + background-color: var(--color-accent); + } + #tsd-search .results a { + display: flex; + align-items: center; + padding: 0.25rem; + box-sizing: border-box; + } + #tsd-search .results a:before { + top: 10px; + } + #tsd-search .results span.parent { + color: var(--color-text-aside); + font-weight: normal; + } + #tsd-search.has-focus { + background-color: var(--color-accent); + } + #tsd-search.has-focus .field input { + top: 0; + opacity: 1; + } + #tsd-search.has-focus .title, + #tsd-search.has-focus #tsd-toolbar-links a { + z-index: 0; + opacity: 0; + } + #tsd-search.has-focus .results { + visibility: visible; + } + #tsd-search.loading .results li.state.loading { + display: block; + } + #tsd-search.failure .results li.state.failure { + display: block; + } + + #tsd-toolbar-links { + position: absolute; + top: 0; + right: 2rem; + height: 100%; + display: flex; + align-items: center; + justify-content: flex-end; + } + #tsd-toolbar-links a { + margin-left: 1.5rem; + } + #tsd-toolbar-links a:hover { + text-decoration: underline; + } + + .tsd-signature { + margin: 0 0 1rem 0; + padding: 1rem 0.5rem; + border: 1px solid var(--color-accent); + font-family: Menlo, Monaco, Consolas, "Courier New", monospace; + font-size: 14px; + overflow-x: auto; + } + + .tsd-signature-keyword { + color: var(--color-ts-keyword); + font-weight: normal; + } + + .tsd-signature-symbol { + color: var(--color-text-aside); + font-weight: normal; + } + + .tsd-signature-type { + font-style: italic; + font-weight: normal; + } + + .tsd-signatures { + padding: 0; + margin: 0 0 1em 0; + list-style-type: none; + } + .tsd-signatures .tsd-signature { + margin: 0; + border-color: var(--color-accent); + border-width: 1px 0; + transition: background-color 0.1s; + } + .tsd-signatures .tsd-index-signature:not(:last-child) { + margin-bottom: 1em; + } + .tsd-signatures .tsd-index-signature .tsd-signature { + border-width: 1px; + } + .tsd-description .tsd-signatures .tsd-signature { + border-width: 1px; + } + + ul.tsd-parameter-list, + ul.tsd-type-parameter-list { + list-style: square; + margin: 0; + padding-left: 20px; + } + ul.tsd-parameter-list > li.tsd-parameter-signature, + ul.tsd-type-parameter-list > li.tsd-parameter-signature { + list-style: none; + margin-left: -20px; + } + ul.tsd-parameter-list h5, + ul.tsd-type-parameter-list h5 { + font-size: 16px; + margin: 1em 0 0.5em 0; + } + .tsd-sources { + margin-top: 1rem; + font-size: 0.875em; + } + .tsd-sources a { + color: var(--color-text-aside); + text-decoration: underline; + } + .tsd-sources ul { + list-style: none; + padding: 0; + } + + .tsd-page-toolbar { + position: sticky; + z-index: 1; + top: 0; + left: 0; + width: 100%; + color: var(--color-text); + background: var(--color-background-secondary); + border-bottom: 1px var(--color-accent) solid; + transition: transform 0.3s ease-in-out; + } + .tsd-page-toolbar a { + color: var(--color-text); + text-decoration: none; + } + .tsd-page-toolbar a.title { + font-weight: bold; + } + .tsd-page-toolbar a.title:hover { + text-decoration: underline; + } + .tsd-page-toolbar .tsd-toolbar-contents { + display: flex; + justify-content: space-between; + height: 2.5rem; + margin: 0 auto; + } + .tsd-page-toolbar .table-cell { + position: relative; + white-space: nowrap; + line-height: 40px; + } + .tsd-page-toolbar .table-cell:first-child { + width: 100%; + } + .tsd-page-toolbar .tsd-toolbar-icon { + box-sizing: border-box; + line-height: 0; + padding: 12px 0; + } + + .tsd-widget { + display: inline-block; + overflow: hidden; + opacity: 0.8; + height: 40px; + transition: + opacity 0.1s, + background-color 0.2s; + vertical-align: bottom; + cursor: pointer; + } + .tsd-widget:hover { + opacity: 0.9; + } + .tsd-widget.active { + opacity: 1; + background-color: var(--color-accent); + } + .tsd-widget.no-caption { + width: 40px; + } + .tsd-widget.no-caption:before { + margin: 0; + } + + .tsd-widget.options, + .tsd-widget.menu { + display: none; + } + input[type="checkbox"] + .tsd-widget:before { + background-position: -120px 0; + } + input[type="checkbox"]:checked + .tsd-widget:before { + background-position: -160px 0; + } + + img { + max-width: 100%; + } + + .tsd-member-summary-name { + display: inline-flex; + align-items: center; + padding: 0.25rem; + text-decoration: none; + } + + .tsd-anchor-icon { + display: inline-flex; + align-items: center; + margin-left: 0.5rem; + color: var(--color-text); + } + + .tsd-anchor-icon svg { + width: 1em; + height: 1em; + visibility: hidden; + } + + .tsd-member-summary-name:hover > .tsd-anchor-icon svg, + .tsd-anchor-link:hover > .tsd-anchor-icon svg { + visibility: visible; + } + + .deprecated { + text-decoration: line-through !important; + } + + .warning { + padding: 1rem; + color: var(--color-warning-text); + background: var(--color-background-warning); + } + + .tsd-kind-project { + color: var(--color-ts-project); + } + .tsd-kind-module { + color: var(--color-ts-module); + } + .tsd-kind-namespace { + color: var(--color-ts-namespace); + } + .tsd-kind-enum { + color: var(--color-ts-enum); + } + .tsd-kind-enum-member { + color: var(--color-ts-enum-member); + } + .tsd-kind-variable { + color: var(--color-ts-variable); + } + .tsd-kind-function { + color: var(--color-ts-function); + } + .tsd-kind-class { + color: var(--color-ts-class); + } + .tsd-kind-interface { + color: var(--color-ts-interface); + } + .tsd-kind-constructor { + color: var(--color-ts-constructor); + } + .tsd-kind-property { + color: var(--color-ts-property); + } + .tsd-kind-method { + color: var(--color-ts-method); + } + .tsd-kind-reference { + color: var(--color-ts-reference); + } + .tsd-kind-call-signature { + color: var(--color-ts-call-signature); + } + .tsd-kind-index-signature { + color: var(--color-ts-index-signature); + } + .tsd-kind-constructor-signature { + color: var(--color-ts-constructor-signature); + } + .tsd-kind-parameter { + color: var(--color-ts-parameter); + } + .tsd-kind-type-parameter { + color: var(--color-ts-type-parameter); + } + .tsd-kind-accessor { + color: var(--color-ts-accessor); + } + .tsd-kind-get-signature { + color: var(--color-ts-get-signature); + } + .tsd-kind-set-signature { + color: var(--color-ts-set-signature); + } + .tsd-kind-type-alias { + color: var(--color-ts-type-alias); + } + + /* if we have a kind icon, don't color the text by kind */ + .tsd-kind-icon ~ span { + color: var(--color-text); + } + + * { + scrollbar-width: thin; + scrollbar-color: var(--color-accent) var(--color-icon-background); + } + + *::-webkit-scrollbar { + width: 0.75rem; + } + + *::-webkit-scrollbar-track { + background: var(--color-icon-background); + } + + *::-webkit-scrollbar-thumb { + background-color: var(--color-accent); + border-radius: 999rem; + border: 0.25rem solid var(--color-icon-background); + } + + /* mobile */ + @media (max-width: 769px) { + .tsd-widget.options, + .tsd-widget.menu { + display: inline-block; + } + + .container-main { + display: flex; + } + html .col-content { + float: none; + max-width: 100%; + width: 100%; + } + html .col-sidebar { + position: fixed !important; + overflow-y: auto; + -webkit-overflow-scrolling: touch; + z-index: 1024; + top: 0 !important; + bottom: 0 !important; + left: auto !important; + right: 0 !important; + padding: 1.5rem 1.5rem 0 0; + width: 75vw; + visibility: hidden; + background-color: var(--color-background); + transform: translate(100%, 0); + } + html .col-sidebar > *:last-child { + padding-bottom: 20px; + } + html .overlay { + content: ""; + display: block; + position: fixed; + z-index: 1023; + top: 0; + left: 0; + right: 0; + bottom: 0; + background-color: rgba(0, 0, 0, 0.75); + visibility: hidden; + } + + .to-has-menu .overlay { + animation: fade-in 0.4s; + } + + .to-has-menu .col-sidebar { + animation: pop-in-from-right 0.4s; + } + + .from-has-menu .overlay { + animation: fade-out 0.4s; + } + + .from-has-menu .col-sidebar { + animation: pop-out-to-right 0.4s; + } + + .has-menu body { + overflow: hidden; + } + .has-menu .overlay { + visibility: visible; + } + .has-menu .col-sidebar { + visibility: visible; + transform: translate(0, 0); + display: flex; + flex-direction: column; + gap: 1.5rem; + max-height: 100vh; + padding: 1rem 2rem; + } + .has-menu .tsd-navigation { + max-height: 100%; + } + #tsd-toolbar-links { + display: none; + } + .tsd-navigation .tsd-nav-link { + display: flex; + } + } + + /* one sidebar */ + @media (min-width: 770px) { + .container-main { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); + grid-template-areas: "sidebar content"; + margin: 2rem auto; + } + + .col-sidebar { + grid-area: sidebar; + } + .col-content { + grid-area: content; + padding: 0 1rem; + } + } + @media (min-width: 770px) and (max-width: 1399px) { + .col-sidebar { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + padding-top: 1rem; + } + .site-menu { + margin-top: 1rem; + } + } + + /* two sidebars */ + @media (min-width: 1200px) { + .container-main { + grid-template-columns: minmax(0, 1fr) minmax(0, 2.5fr) minmax( + 0, + 20rem + ); + grid-template-areas: "sidebar content toc"; + } + + .col-sidebar { + display: contents; + } + + .page-menu { + grid-area: toc; + padding-left: 1rem; + } + .site-menu { + grid-area: sidebar; + } + + .site-menu { + margin-top: 1rem; + } + + .page-menu, + .site-menu { + max-height: calc(100vh - 2rem - 42px); + overflow: auto; + position: sticky; + top: 42px; + } } } - -img { - max-width: 100%; -} - -.tsd-anchor-icon { - margin-left: 10px; - vertical-align: middle; - color: var(--color-text); -} - -.tsd-anchor-icon svg { - width: 1em; - height: 1em; - visibility: hidden; -} - -.tsd-anchor-link:hover > .tsd-anchor-icon svg { - visibility: visible; -} diff --git a/docs/assets/widgets.png b/docs/assets/widgets.png deleted file mode 100644 index c7380532ac1b45400620011c37c4dcb7aec27a4c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 480 zcmeAS@N?(olHy`uVBq!ia0y~yU~~YoH8@y+q^jrZML>b&o-U3d6^w6h1+IPUz|;DW zIZ;96kdsD>Qv^q=09&hp0GpEni<1IR%gvP3v%OR9*{MuRTKWHZyIbuBt)Ci`cU_&% z1T+i^Y)o{%281-<3TpPAUTzw5v;RY=>1rvxmPl96#kYc9hX!6V^nB|ad#(S+)}?8C zr_H+lT3B#So$T=?$(w3-{rbQ4R<@nsf$}$hwSO)A$8&`(j+wQf=Jwhb0`CvhR5DCf z^OgI)KQemrUFPH+UynC$Y~QHG%DbTVh-Skz{enNU)cV_hPu~{TD7TPZl>0&K>iuE| z7AYn$7)Jrb9GE&SfQW4q&G*@N|4cHI`VakFa5-C!ov&XD)J(qp$rJJ*9e z-sHv}#g*T7Cv048d1v~BEAzM5FztAse#q78WWC^BUCzQ U&wLp6h6BX&boFyt=akR{0G%$)mH+?% diff --git a/docs/assets/widgets@2x.png b/docs/assets/widgets@2x.png deleted file mode 100644 index 4bbbd57272f3b28f47527d4951ad10f950b8ad43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmeAS@N?(olHy`uVBq!ia0y~yU}^xe12~w0Jcmn z@(X6T|9^jgLcx21{)7exgY)a>N6m2F0<`Rqr;B4q1>>88jUdw-7W`c)zLE*mq8W2H z-<&Jl_Hco5BuC5n@AbF5GD82~-e8-v=#zCyUX0F-o}8pPfAv`!GN$ff+TL<~@kgt} z62eO?_|&+>xBmM$@p|z`tIKEdpPf8%qI>4r7@jn<=eta*{3~?g(zz{Ke9zc-G^gr? z-7foa?LcS!hmbwzru}ICvbWLlW8;+l-}!^=c32!^nV`+`C*;0-*Y%l94pC;Cb3GXz zzSf%a!{gVr{Y_lVuUj+a)*Ca+!-Hu%xmP&&X-2CuANY8^i{D7Kg6qzP zXz_ps9+lN8ESH{K4`yu&b~I>N9xGlE&;2u*b?+Go!AhN?m-bxlLvtC#MzDF2kFzfHJ1W7ybqdefSqVhbOykd*Yi%EDuhs z4wF{ft^bv2+DDnKb8gj1FuvcV`M}luS>lO<^)8x>y1#R;a=-ZKwWTQQb)ioBbi;zh zD!f5V)8581to1LL7c9!l^PSC$NBPYif!_vAZhmL4)v4U)4UsrLYiH_9rmQDd?)(e5 z^pcH>qvBg*i0dus2r*mp4;zKvu=P#s-ti;2obl`NjjwoYd>e(oo#j_uyRb<7Pv^If zzZ|mGHmV)8^tbO%^>eqMw(@7(&3g{jEp-Najo7V75xI_ZHK*FA`elF{r5}E*d7+j_R diff --git a/docs/classes/InteractiveBeacon.html b/docs/classes/InteractiveBeacon.html index 08682c9..6be82d4 100644 --- a/docs/classes/InteractiveBeacon.html +++ b/docs/classes/InteractiveBeacon.html @@ -1 +1,35 @@ -InteractiveBeacon | sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InteractiveBeacon

Hierarchy

  • BaseCommands
    • InteractiveBeacon

Index

Constructors

  • new InteractiveBeacon(rpc: SliverRPCClient, taskresult$: Observable<Event>, beaconID: string): InteractiveBeacon
  • Parameters

    • rpc: SliverRPCClient
    • taskresult$: Observable<Event>
    • beaconID: string

    Returns InteractiveBeacon

Properties

_beaconID: string
_pendingTasks: Map<string, Subscription> = ...
_rpc: SliverRPCClient
_taskresult$: Observable<Event>

Methods

  • cd(path: string, timeout?: number): Promise<undefined | Pwd>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Pwd>

  • deadline(timeout?: number): { deadline: number }
  • Parameters

    • timeout: number = TIMEOUT

    Returns { deadline: number }

    • deadline: number
  • download(path: string, timeout?: number): Promise<Buffer>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<Buffer>

  • execute(exe: string, args: string[], output: boolean, timeout?: number): Promise<undefined | Execute>
  • Parameters

    • exe: string
    • args: string[]
    • output: boolean
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Execute>

  • executeAssembly(assembly: Buffer, args: string, process: string, timeout?: number): Promise<undefined | ExecuteAssembly>
  • Parameters

    • assembly: Buffer
    • args: string
    • process: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | ExecuteAssembly>

  • executeShellcode(pid: number, shellcode: Buffer, encoder: string, rwx: boolean, timeout?: number): Promise<undefined | Task>
  • Parameters

    • pid: number
    • shellcode: Buffer
    • encoder: string
    • rwx: boolean
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Task>

  • getSystem(hostingProcess: string, config: ImplantConfig, timeout?: number): Promise<undefined | GetSystem>
  • Parameters

    • hostingProcess: string
    • config: ImplantConfig
    • timeout: number = TIMEOUT

    Returns Promise<undefined | GetSystem>

  • ifconfig(timeout?: number): Promise<undefined | Ifconfig>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Ifconfig>

  • impersonate(userName: string, timeout?: number): Promise<undefined | Impersonate>
  • Parameters

    • userName: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Impersonate>

  • ls(path?: string, timeout?: number): Promise<undefined | Ls>
  • Parameters

    • Optional path: string
    • Optional timeout: number

    Returns Promise<undefined | Ls>

  • migrate(pid: number, config: ImplantConfig, timeout?: number): Promise<undefined | Migrate>
  • Parameters

    • pid: number
    • config: ImplantConfig
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Migrate>

  • mkdir(path: string, timeout?: number): Promise<undefined | Mkdir>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Mkdir>

  • msf(payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout?: number): Promise<void>
  • Parameters

    • payload: string
    • lhost: string
    • lport: number
    • encoder: string
    • iterations: number
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • msfRemote(pid: number, payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout?: number): Promise<void>
  • Parameters

    • pid: number
    • payload: string
    • lhost: string
    • lport: number
    • encoder: string
    • iterations: number
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • netstat(timeout?: number): Promise<undefined | Netstat>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Netstat>

  • ping(nonce: number, timeout?: number): Promise<undefined | Ping>
  • Parameters

    • nonce: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Ping>

  • processDump(pid: number, timeout?: number): Promise<undefined | ProcessDump>
  • Parameters

    • pid: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | ProcessDump>

  • ps(timeout?: number): Promise<undefined | Process[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Process[]>

  • pwd(timeout?: number): Promise<undefined | Pwd>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Pwd>

  • request(timeout: number): Request
  • Parameters

    • timeout: number

    Returns Request

  • revToSelf(timeout?: number): Promise<undefined | RevToSelf>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | RevToSelf>

  • rm(path: string, timeout?: number): Promise<undefined | Rm>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Rm>

  • runAs(userName: string, processName: string, args: string, timeout?: number): Promise<undefined | RunAs>
  • Parameters

    • userName: string
    • processName: string
    • args: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | RunAs>

  • screenshot(timeout?: number): Promise<undefined | Screenshot>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Screenshot>

  • sideload(data: Buffer, processName: string, args: string, entryPoint: string, timeout?: number): Promise<undefined | Sideload>
  • Parameters

    • data: Buffer
    • processName: string
    • args: string
    • entryPoint: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Sideload>

  • spawnDLL(data: Buffer, entrypoint: string, processName: string, args: string, timeout?: number): Promise<undefined | SpawnDll>
  • Parameters

    • data: Buffer
    • entrypoint: string
    • processName: string
    • args: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | SpawnDll>

  • terminate(pid: number, timeout?: number): Promise<undefined | Terminate>
  • Parameters

    • pid: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Terminate>

  • toUint8Array(buf: Buffer): Uint8Array
  • Parameters

    • buf: Buffer

    Returns Uint8Array

  • upload(path: string, data: Buffer, timeout?: number): Promise<undefined | Upload>
  • Parameters

    • path: string
    • data: Buffer
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Upload>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +InteractiveBeacon | sliver-script

Class InteractiveBeacon

Hierarchy

  • BaseCommands
    • InteractiveBeacon

Constructors

Properties

Methods

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<Buffer<ArrayBufferLike>>

  • Parameters

    • exe: string
    • args: string[] = []
    • output: boolean = true
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Execute>

  • Parameters

    • assembly: Buffer
    • args: string[] = []
    • process: string = ""
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.ExecuteAssembly>

  • Parameters

    • userName: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Impersonate>

  • Parameters

    • path: string = "."
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ls>

  • Parameters

    • path: string = "."
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<
        {
            id: string;
            wait: (waitTimeoutSeconds?: number) => Promise<sliverpb.Ls>;
        },
    >

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Mkdir>

  • Parameters

    • payload: string
    • lhost: string
    • lport: number
    • encoder: string = ""
    • iterations: number = 0
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • pid: number
    • payload: string
    • lhost: string
    • lport: number
    • encoder: string = ""
    • iterations: number = 0
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • nonce: number
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ping>

  • Parameters

    • fullInfo: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ps>

  • Parameters

    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • path: string
    • recursive: boolean = false
    • force: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Rm>

  • Parameters

    • userName: string
    • processName: string
    • args: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.RunAs>

  • Parameters

    • data: Buffer
    • processName: string
    • args: string[] = []
    • entryPoint: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Sideload>

  • Parameters

    • data: Buffer
    • entrypoint: string
    • processName: string
    • args: string[] = []
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.SpawnDll>

  • Execute arbitrary shellcode (aka "task" in Sliver terminology).

    +

    Note: For beacon interactions this will queue an async task; use the +returned Response.TaskID to fetch results.

    +

    Parameters

    • pid: number
    • shellcode: Buffer
    • encoder: string = ""
    • rwxPages: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • pid: number
    • force: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Terminate>

  • Type Parameters

    • T

    Parameters

    • timeoutSeconds: number
    • fn: (signal: AbortSignal) => Promise<T>

    Returns Promise<T>

  • Parameters

    • path: string
    • data: Buffer
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Upload>

diff --git a/docs/classes/InteractiveSession.html b/docs/classes/InteractiveSession.html index 933de02..3744997 100644 --- a/docs/classes/InteractiveSession.html +++ b/docs/classes/InteractiveSession.html @@ -1 +1,35 @@ -InteractiveSession | sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class InteractiveSession

Hierarchy

  • BaseCommands
    • InteractiveSession

Index

Constructors

  • new InteractiveSession(rpc: SliverRPCClient, tunnelStream: ClientDuplexStream<TunnelData, TunnelData>, sessionId: string): InteractiveSession
  • Parameters

    • rpc: SliverRPCClient
    • tunnelStream: ClientDuplexStream<TunnelData, TunnelData>
    • sessionId: string

    Returns InteractiveSession

Properties

_rpc: SliverRPCClient
_sessionID: string
_tunnelStream: ClientDuplexStream<TunnelData, TunnelData>

Methods

  • cd(path: string, timeout?: number): Promise<undefined | Pwd>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Pwd>

  • deadline(timeout?: number): { deadline: number }
  • Parameters

    • timeout: number = TIMEOUT

    Returns { deadline: number }

    • deadline: number
  • download(path: string, timeout?: number): Promise<Buffer>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<Buffer>

  • execute(exe: string, args: string[], output: boolean, timeout?: number): Promise<undefined | Execute>
  • Parameters

    • exe: string
    • args: string[]
    • output: boolean
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Execute>

  • executeAssembly(assembly: Buffer, args: string, process: string, timeout?: number): Promise<undefined | ExecuteAssembly>
  • Parameters

    • assembly: Buffer
    • args: string
    • process: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | ExecuteAssembly>

  • executeShellcode(pid: number, shellcode: Buffer, encoder: string, rwx: boolean, timeout?: number): Promise<undefined | Task>
  • Parameters

    • pid: number
    • shellcode: Buffer
    • encoder: string
    • rwx: boolean
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Task>

  • getSystem(hostingProcess: string, config: ImplantConfig, timeout?: number): Promise<undefined | GetSystem>
  • Parameters

    • hostingProcess: string
    • config: ImplantConfig
    • timeout: number = TIMEOUT

    Returns Promise<undefined | GetSystem>

  • ifconfig(timeout?: number): Promise<undefined | Ifconfig>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Ifconfig>

  • impersonate(userName: string, timeout?: number): Promise<undefined | Impersonate>
  • Parameters

    • userName: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Impersonate>

  • ls(path?: string, timeout?: number): Promise<undefined | Ls>
  • Parameters

    • path: string = '.'
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Ls>

  • migrate(pid: number, config: ImplantConfig, timeout?: number): Promise<undefined | Migrate>
  • Parameters

    • pid: number
    • config: ImplantConfig
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Migrate>

  • mkdir(path: string, timeout?: number): Promise<undefined | Mkdir>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Mkdir>

  • msf(payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout?: number): Promise<void>
  • Parameters

    • payload: string
    • lhost: string
    • lport: number
    • encoder: string
    • iterations: number
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • msfRemote(pid: number, payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout?: number): Promise<void>
  • Parameters

    • pid: number
    • payload: string
    • lhost: string
    • lport: number
    • encoder: string
    • iterations: number
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • netstat(timeout?: number): Promise<undefined | Netstat>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Netstat>

  • ping(nonce: number, timeout?: number): Promise<undefined | Ping>
  • Parameters

    • nonce: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Ping>

  • processDump(pid: number, timeout?: number): Promise<undefined | ProcessDump>
  • Parameters

    • pid: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | ProcessDump>

  • ps(timeout?: number): Promise<undefined | Process[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Process[]>

  • pwd(timeout?: number): Promise<undefined | Pwd>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Pwd>

  • request(timeout: number): Request
  • Parameters

    • timeout: number

    Returns Request

  • revToSelf(timeout?: number): Promise<undefined | RevToSelf>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | RevToSelf>

  • rm(path: string, timeout?: number): Promise<undefined | Rm>
  • Parameters

    • path: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Rm>

  • runAs(userName: string, processName: string, args: string, timeout?: number): Promise<undefined | RunAs>
  • Parameters

    • userName: string
    • processName: string
    • args: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | RunAs>

  • screenshot(timeout?: number): Promise<undefined | Screenshot>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Screenshot>

  • shell(path: string, pty: boolean, timeout?: number): Promise<Tunnel>
  • Parameters

    • path: string
    • pty: boolean
    • timeout: number = TIMEOUT

    Returns Promise<Tunnel>

  • sideload(data: Buffer, processName: string, args: string, entryPoint: string, timeout?: number): Promise<undefined | Sideload>
  • Parameters

    • data: Buffer
    • processName: string
    • args: string
    • entryPoint: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Sideload>

  • spawnDLL(data: Buffer, entrypoint: string, processName: string, args: string, timeout?: number): Promise<undefined | SpawnDll>
  • Parameters

    • data: Buffer
    • entrypoint: string
    • processName: string
    • args: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | SpawnDll>

  • terminate(pid: number, timeout?: number): Promise<undefined | Terminate>
  • Parameters

    • pid: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Terminate>

  • toUint8Array(buf: Buffer): Uint8Array
  • Parameters

    • buf: Buffer

    Returns Uint8Array

  • upload(path: string, data: Buffer, timeout?: number): Promise<undefined | Upload>
  • Parameters

    • path: string
    • data: Buffer
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Upload>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +InteractiveSession | sliver-script

Class InteractiveSession

Hierarchy

  • BaseCommands
    • InteractiveSession

Constructors

Properties

Methods

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<Buffer<ArrayBufferLike>>

  • Parameters

    • exe: string
    • args: string[] = []
    • output: boolean = true
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Execute>

  • Parameters

    • assembly: Buffer
    • args: string[] = []
    • process: string = ""
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.ExecuteAssembly>

  • Parameters

    • userName: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Impersonate>

  • Parameters

    • path: string = "."
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ls>

  • Parameters

    • path: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Mkdir>

  • Parameters

    • payload: string
    • lhost: string
    • lport: number
    • encoder: string = ""
    • iterations: number = 0
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • pid: number
    • payload: string
    • lhost: string
    • lport: number
    • encoder: string = ""
    • iterations: number = 0
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • nonce: number
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ping>

  • Parameters

    • fullInfo: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Ps>

  • Parameters

    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • path: string
    • recursive: boolean = false
    • force: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Rm>

  • Parameters

    • userName: string
    • processName: string
    • args: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.RunAs>

  • Parameters

    • path: string
    • pty: boolean = true
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<Tunnel>

  • Parameters

    • data: Buffer
    • processName: string
    • args: string[] = []
    • entryPoint: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Sideload>

  • Parameters

    • data: Buffer
    • entrypoint: string
    • processName: string
    • args: string[] = []
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.SpawnDll>

  • Execute arbitrary shellcode (aka "task" in Sliver terminology).

    +

    Note: For beacon interactions this will queue an async task; use the +returned Response.TaskID to fetch results.

    +

    Parameters

    • pid: number
    • shellcode: Buffer
    • encoder: string = ""
    • rwxPages: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Task>

  • Parameters

    • pid: number
    • force: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Terminate>

  • Type Parameters

    • T

    Parameters

    • timeoutSeconds: number
    • fn: (signal: AbortSignal) => Promise<T>

    Returns Promise<T>

  • Parameters

    • path: string
    • data: Buffer
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<sliverpb.Upload>

diff --git a/docs/classes/SliverClient.html b/docs/classes/SliverClient.html index 24260bf..5dcf47a 100644 --- a/docs/classes/SliverClient.html +++ b/docs/classes/SliverClient.html @@ -1 +1,55 @@ -SliverClient | sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

Class SliverClient

Hierarchy

  • SliverClient

Index

Constructors

Properties

BEACON_REGISTERED: "beacon-registered" = 'beacon-registered'
BEACON_TASKRESULT: "beacon-taskresult" = 'beacon-taskresult'
_events: null | ClientReadableStream<Empty> = null
_rpc: null | SliverRPCClient = null
_tunnelStream: null | ClientDuplexStream<TunnelData, TunnelData> = null
beacon$: Observable<Event> = ...
client$: Observable<Event> = ...
empty: Empty = ...
event$: Subject<Event> = ...
job$: Observable<Event> = ...
loot$: Observable<Event> = ...
lootEventTypes: string[] = ...
session$: Observable<Event> = ...
taskresult$: Observable<Event> = ...

Accessors

  • get isConnected(): boolean
  • get rpc(): SliverRPCClient
  • get tunnelStream(): ClientDuplexStream<TunnelData, TunnelData>
  • Returns ClientDuplexStream<TunnelData, TunnelData>

Methods

  • beacons(timeout?: number): Promise<undefined | Beacon[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Beacon[]>

  • canaries(timeout?: number): Promise<undefined | DNSCanary[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | DNSCanary[]>

  • compilerInfo(timeout?: number): Promise<undefined | Compiler>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Compiler>

  • deadline(timeout: number): { deadline: number }
  • Parameters

    • timeout: number

    Returns { deadline: number }

    • deadline: number
  • deleteImplantBuild(name: string, timeout?: number): Promise<void>
  • Parameters

    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • deleteImplantProfile(name: string, timeout?: number): Promise<void>
  • Parameters

    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • disconnect(): Promise<void>
  • generate(config: ImplantConfig, timeout?: number): Promise<undefined | File>
  • Parameters

    • config: ImplantConfig
    • timeout: number = TIMEOUT

    Returns Promise<undefined | File>

  • getOperators(timeout?: number): Promise<undefined | Operator[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Operator[]>

  • getVersion(timeout?: number): Promise<undefined | Version>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Version>

  • implantBuilds(timeout?: number): Promise<undefined | ImplantBuilds>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | ImplantBuilds>

  • implantProfiles(timeout?: number): Promise<undefined | ImplantProfile[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | ImplantProfile[]>

  • jobs(timeout?: number): Promise<undefined | Job[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Job[]>

  • killJob(jobId: number, timeout?: number): Promise<undefined | KillJob>
  • Parameters

    • jobId: number
    • timeout: number = TIMEOUT

    Returns Promise<undefined | KillJob>

  • lootAdd(loot: Loot, timeout?: number): Promise<undefined | Loot>
  • Parameters

    • loot: Loot
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Loot>

  • lootAll(timeout?: number): Promise<undefined | Loot[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Loot[]>

  • lootAllOf(lootType: string, timeout?: number): Promise<undefined | Loot[]>
  • Parameters

    • lootType: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Loot[]>

  • lootContent(lootID: string, timeout?: number): Promise<undefined | Loot>
  • Parameters

    • lootID: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Loot>

  • lootRemove(lootID: string, timeout?: number): Promise<void>
  • Parameters

    • lootID: string
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • lootUpdate(lootID: string, name: string, timeout?: number): Promise<undefined | Loot>
  • Parameters

    • lootID: string
    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Loot>

  • regenerate(name: string, timeout?: number): Promise<undefined | File>
  • Parameters

    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | File>

  • rpcCredentials(): ChannelCredentials
  • rpcHost(): string
  • saveImplantProfile(profile: ImplantProfile, timeout?: number): Promise<undefined | ImplantProfile>
  • Parameters

    • profile: ImplantProfile
    • timeout: number = TIMEOUT

    Returns Promise<undefined | ImplantProfile>

  • sessions(timeout?: number): Promise<undefined | Session[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Session[]>

  • startDNSListener(domains: string[], canaries: boolean, host: string, port: number, persistent?: boolean, timeout?: number): Promise<undefined | DNSListener>
  • Parameters

    • domains: string[]
    • canaries: boolean
    • host: string
    • port: number
    • persistent: boolean = false
    • timeout: number = TIMEOUT

    Returns Promise<undefined | DNSListener>

  • startHTTPListener(domain: string, host: string, port: number, website?: string, persistent?: boolean, timeout?: number): Promise<undefined | HTTPListener>
  • Parameters

    • domain: string
    • host: string
    • port: number
    • website: string = ''
    • persistent: boolean = false
    • timeout: number = TIMEOUT

    Returns Promise<undefined | HTTPListener>

  • startHTTPSListener(domain: string, host: string, port: number, acme?: boolean, website?: string, cert?: Buffer, key?: Buffer, persistent?: boolean, timeout?: number): Promise<undefined | HTTPListener>
  • Parameters

    • domain: string
    • host: string
    • port: number
    • acme: boolean = false
    • website: string = ''
    • Optional cert: Buffer
    • Optional key: Buffer
    • persistent: boolean = false
    • timeout: number = TIMEOUT

    Returns Promise<undefined | HTTPListener>

  • startHTTPSStagerListener(host: string, port: number, data: Buffer, timeout?: number): Promise<undefined | StagerListener>
  • Parameters

    • host: string
    • port: number
    • data: Buffer
    • timeout: number = TIMEOUT

    Returns Promise<undefined | StagerListener>

  • startHTTPStagerListener(host: string, port: number, data: Buffer, timeout?: number): Promise<undefined | StagerListener>
  • Parameters

    • host: string
    • port: number
    • data: Buffer
    • timeout: number = TIMEOUT

    Returns Promise<undefined | StagerListener>

  • startMTLSListener(host: string, port: number, persistent?: boolean, timeout?: number): Promise<undefined | MTLSListener>
  • Parameters

    • host: string
    • port: number
    • persistent: boolean = false
    • timeout: number = TIMEOUT

    Returns Promise<undefined | MTLSListener>

  • startTCPStagerListener(host: string, port: number, data: Buffer, timeout?: number): Promise<undefined | StagerListener>
  • Parameters

    • host: string
    • port: number
    • data: Buffer
    • timeout: number = TIMEOUT

    Returns Promise<undefined | StagerListener>

  • startWGListener(port: number, nPort: number, keyPort: number, persistent?: boolean, timeout?: number): Promise<undefined | WGListener>
  • Parameters

    • port: number
    • nPort: number
    • keyPort: number
    • persistent: boolean = false
    • timeout: number = TIMEOUT

    Returns Promise<undefined | WGListener>

  • website(name: string, timeout?: number): Promise<undefined | Website>
  • Parameters

    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Website>

  • websiteAddContent(name: string, contents: Map<string, WebContent>, timeout?: number): Promise<undefined | Website>
  • Parameters

    • name: string
    • contents: Map<string, WebContent>
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Website>

  • websiteRemove(name: string, timeout?: number): Promise<void>
  • Parameters

    • name: string
    • timeout: number = TIMEOUT

    Returns Promise<void>

  • websiteRemoveContent(name: string, paths: string[], timeout?: number): Promise<undefined | Website>
  • Parameters

    • name: string
    • paths: string[]
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Website>

  • websiteUpdateContent(name: string, contents: Map<string, WebContent>, timeout?: number): Promise<undefined | Website>
  • Parameters

    • name: string
    • contents: Map<string, WebContent>
    • timeout: number = TIMEOUT

    Returns Promise<undefined | Website>

  • websites(timeout?: number): Promise<undefined | Website[]>
  • Parameters

    • timeout: number = TIMEOUT

    Returns Promise<undefined | Website[]>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +SliverClient | sliver-script

Class SliverClient

Constructors

Properties

beacon$: Observable<clientpb.Event> = ...
client$: Observable<clientpb.Event & { Client: clientpb.Client }> = ...
event$: Observable<clientpb.Event> = ...
job$: Observable<clientpb.Event & { Job: clientpb.Job }> = ...
session$: Observable<clientpb.Event & { Session: clientpb.Session }> = ...
taskResult$: Observable<clientpb.Event> = ...
EVENT_BEACON_REGISTERED: "beacon-registered"
EVENT_BEACON_TASKRESULT: "beacon-taskresult"

Accessors

  • get isConnected(): boolean

    Returns boolean

Methods

  • Parameters

    • name: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Parameters

    • name: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Returns Promise<void>

  • Parameters

    • lootId: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.Loot>

  • Parameters

    • lootId: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Parameters

    • implantName: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<undefined | commonpb.File>

  • Parameters

    • jobIds: number[]
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Parameters

    • beaconId: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Parameters

    • domains: string[]
    • canaries: boolean
    • host: string
    • port: number
    • enforceOTP: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • domain: string
    • host: string
    • port: number
    • website: string = ""
    • enforceOTP: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • domain: string
    • host: string
    • port: number
    • website: string = ""
    • acme: boolean = false
    • Optionalcert: Buffer<ArrayBufferLike>
    • Optionalkey: Buffer<ArrayBufferLike>
    • enforceOTP: boolean = false
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • host: string
    • port: number
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • host: string
    • port: number
    • data: Buffer
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.StagerListener>

  • Parameters

    • host: string
    • port: number
    • tunIP: string
    • nPort: number
    • keyPort: number
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • name: string
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<void>

  • Parameters

    • name: string
    • paths: string[]
    • timeoutSeconds: number = DEFAULT_TIMEOUT_SECONDS

    Returns Promise<clientpb.Website>

diff --git a/docs/enums/clientpb.CrackAttackMode.html b/docs/enums/clientpb.CrackAttackMode.html new file mode 100644 index 0000000..a9955ec --- /dev/null +++ b/docs/enums/clientpb.CrackAttackMode.html @@ -0,0 +1,9 @@ +CrackAttackMode | sliver-script

Enumeration CrackAttackMode

Enumeration Members

ASSOCIATION: 9
BRUTEFORCE: 3
COMBINATION: 1
HYBRID_MASK_WORDLIST: 7
HYBRID_WORDLIST_MASK: 6
NO_ATTACK: 10
STRAIGHT: 0
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.CrackEncoding.html b/docs/enums/clientpb.CrackEncoding.html new file mode 100644 index 0000000..f47788f --- /dev/null +++ b/docs/enums/clientpb.CrackEncoding.html @@ -0,0 +1,5 @@ +CrackEncoding | sliver-script

Enumeration CrackEncoding

Enumeration Members

INVALID_ENCODING: 0
ISO_8859_15: 1
UNRECOGNIZED: -1
UTF_32LE: 2
diff --git a/docs/enums/clientpb.CrackFileType.html b/docs/enums/clientpb.CrackFileType.html new file mode 100644 index 0000000..c1a0869 --- /dev/null +++ b/docs/enums/clientpb.CrackFileType.html @@ -0,0 +1,6 @@ +CrackFileType | sliver-script

Enumeration CrackFileType

Enumeration Members

INVALID_TYPE: 0
MARKOV_HCSTAT2: 3
RULES: 2
UNRECOGNIZED: -1
WORDLIST: 1
diff --git a/docs/enums/clientpb.CrackJobStatus.html b/docs/enums/clientpb.CrackJobStatus.html new file mode 100644 index 0000000..7b38741 --- /dev/null +++ b/docs/enums/clientpb.CrackJobStatus.html @@ -0,0 +1,5 @@ +CrackJobStatus | sliver-script

Enumeration CrackJobStatus

Enumeration Members

Enumeration Members

COMPLETED: 1
FAILED: 2
IN_PROGRESS: 0
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.CrackOutfileFormat.html b/docs/enums/clientpb.CrackOutfileFormat.html new file mode 100644 index 0000000..155a193 --- /dev/null +++ b/docs/enums/clientpb.CrackOutfileFormat.html @@ -0,0 +1,15 @@ +CrackOutfileFormat | sliver-script

Enumeration CrackOutfileFormat

Enumeration Members

CRACK_POS: 4

CRACK_POS - 4 | crack_pos

+
HASH_SALT: 1

HASH_SALT - 1 | hash[:salt]

+
HEX_PLAIN: 3

HEX_PLAIN - 3 | hex_plain

+
INVALID_FORMAT: 0
PLAIN: 2

PLAIN - 2 | plain

+
TIMESTAMP_ABSOLUTE: 5

TIMESTAMP_ABSOLUTE - 5 | timestamp absolute

+
TIMESTAMP_RELATIVE: 6

TIMESTAMP_RELATIVE - 6 | timestamp relative

+
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.CrackWorkloadProfile.html b/docs/enums/clientpb.CrackWorkloadProfile.html new file mode 100644 index 0000000..3d5ddac --- /dev/null +++ b/docs/enums/clientpb.CrackWorkloadProfile.html @@ -0,0 +1,7 @@ +CrackWorkloadProfile | sliver-script

Enumeration CrackWorkloadProfile

Enumeration Members

DEFAULT: 2
HIGH: 3
INVALID_WORKLOAD_PROFILE: 0
LOW: 1
NIGHTMARE: 4
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.FileType.html b/docs/enums/clientpb.FileType.html new file mode 100644 index 0000000..f3fa9cb --- /dev/null +++ b/docs/enums/clientpb.FileType.html @@ -0,0 +1,6 @@ +FileType | sliver-script

Enumeration FileType

[ Loot ] ----------------------------------------

+

Enumeration Members

Enumeration Members

BINARY: 1
NO_FILE: 0
TEXT: 2
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.HTTPC2SegmentType.html b/docs/enums/clientpb.HTTPC2SegmentType.html new file mode 100644 index 0000000..e341c52 --- /dev/null +++ b/docs/enums/clientpb.HTTPC2SegmentType.html @@ -0,0 +1,5 @@ +HTTPC2SegmentType | sliver-script

Enumeration HTTPC2SegmentType

Enumeration Members

Enumeration Members

CLOSE: 2
POLL: 0
SESSION: 1
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.HashType.html b/docs/enums/clientpb.HashType.html new file mode 100644 index 0000000..75ab97d --- /dev/null +++ b/docs/enums/clientpb.HashType.html @@ -0,0 +1,244 @@ +HashType | sliver-script

Enumeration HashType

Enumeration Members

AES_128_ECB +AES_192_ECB +AES_256_ECB +AIX_SMD5 +AIX_SSHA1 +AIX_SSHA256 +AIX_SSHA512 +BCRYPT_UNIX +BLAKE2B_256 +BLAKE2B_512_PW_SALT +BLAKE2B_512_SALT_PW +BSDI_CRYPT +CHA_CHA_20 +CISCO_ASA_MD5 +CISCO_IOS_PBKDF2_SHA256 +CISCO_IOS_SCRYPT +CISCO_PIX_MD5 +CITRIX_NETSCALER_SHA1 +CITRIX_NETSCALER_SHA512 +CRAM_MD5 +CRC32 +CRC32C +CRC64Jones +DCC +DCC2 +DES +DPAPI_V1_CTX_1_AND_2 +DPAPI_V1_CTX_3 +DPAPI_V2_CTX_1_AND_2 +DPAPI_V2_CTX_3 +FLASK +GOST_R_32_11_2012_256 +GOST_R_32_11_2012_512 +GOST_R_34_11_94 +GPG +GRUB_2 +HALF_MD5 +IKE_MD5 +IKE_SHA1 +INVALID +IPMI2_PAKP_HMAC_SHA1 +ISCSI_CHAP +JAVA_OBJECT +JWT +KECCAK_224 +KECCAK_256 +KECCAK_384 +KECCAK_512 +KERBEROS_17_DB +KERBEROS_17_PREAUTH +KERBEROS_17_TGS_REP +KERBEROS_18_DB +KERBEROS_18_PREAUTH +KERBEROS_18_TGS_REP +KERBEROS_23_AS_REP +KERBEROS_23_SA_REQ_PREAUTH +KERBEROS_23_TGS_REP +LINUX_KERNEL_CRYPTO_API_24 +LM +MACOS_10_8 +MD4 +MD5 +MD5_PW_SALT +MD5_SALT_MD5_PW +MD5_SALT_PW +MD5_SALT_PW_SALT +MD5_UTF16LE +MS_AZURE_SYNC +MURMUR +MURMUR3 +NET_NTLM_V1 +NET_NTLM_V1_NT +NET_NTLM_V2 +NET_NTLM_V2_NT +NTLM +PBKDF2_HMAC_MD5 +PBKDF2_HMAC_SHA1 +PBKDF2_HMAC_SHA256 +PBKDF2_HMAC_SHA512 +PHPASS +QNX_MD5 +QNX_SHA256 +QNX_SHA512 +RACF +RADMIN_3 +RADMIN2 +RIPEMD_160 +SAMSUNG_ANDROID +SCRYPT +SHA1 +SHA1_UTF16LE +SHA2_224 +SHA2_256 +SHA2_384 +SHA2_512 +SHA256_UTF16LE +SHA3_224 +SHA3_256 +SHA3_384 +SHA3_512 +SHA384_UTF16LE +SHA512_CRYPT_UNIX +SHA512_UTF16LE +SIP_DIGEST +SIPHASH +SKIP_32 +SNMP_V3_HMAC_MD5_96 +SNMP_V3_HMAC_MD5_96__SHA1_96 +SNMP_V3_HMAC_SHA1_96 +SNMP_V3_HMAC_SHA224_128 +SNMP_V3_HMAC_SHA256_192 +SNMP_V3_HMAC_SHA384_256 +SNMP_V3_HMAC_SHA512_384 +TACACS_PLUS +THREE_DES +UNRECOGNIZED +WHIRLPOOL +WINDOWS_HELLO_PIN +WINDOWS_PHONE +WPA_EAPOL_PBKDF2 +WPA_EAPOL_PMK +WPA_PBKDF2_PMKID_EAPOL +WPA_PMK_PMKID_EAPOL +WPA_PMKID_PBKDF2 +WPA_PMKID_PMK +

Enumeration Members

AES_128_ECB: 26401

AES_128_ECB - AES-128-ECB NOKDF (PT = $salt, key = $pass)

+
AES_192_ECB: 26402

AES_192_ECB - AES-192-ECB NOKDF (PT = $salt, key = $pass)

+
AES_256_ECB: 26403

AES_256_ECB - AES-256-ECB NOKDF (PT = $salt, key = $pass)

+
AIX_SMD5: 6300
AIX_SSHA1: 6700
AIX_SSHA256: 6400
AIX_SSHA512: 6500
BCRYPT_UNIX: 3200

BCRYPT_UNIX - Out of order

+
BLAKE2B_256: 600

BLAKE2B_256 - BLAKE2b-512

+
BLAKE2B_512_PW_SALT: 610

BLAKE2B_512_PW_SALT - BLAKE2b-512($pass.$salt)

+
BLAKE2B_512_SALT_PW: 620

BLAKE2B_512_SALT_PW - BLAKE2b-512($salt.$pass)

+
BSDI_CRYPT: 12400

BSDI_CRYPT - BSDi Crypt, Extended DES

+
CHA_CHA_20: 15400

CHA_CHA_20 - ChaCha20

+
CISCO_ASA_MD5: 2410

CISCO_ASA_MD5 - Cisco-ASA MD5

+
CISCO_IOS_PBKDF2_SHA256: 9200

CISCO_IOS_PBKDF2_SHA256 - Cisco-IOS $8$ (PBKDF2-SHA256)

+
CISCO_IOS_SCRYPT: 9300

CISCO_IOS_SCRYPT - Cisco-IOS $9$ (scrypt)

+
CISCO_PIX_MD5: 2400

CISCO_PIX_MD5 - Cisco-Pix MD5

+
CITRIX_NETSCALER_SHA1: 8100

CITRIX_NETSCALER_SHA1 - Citrix NetScaler (SHA1)

+
CITRIX_NETSCALER_SHA512: 22200

CITRIX_NETSCALER_SHA512 - Citrix NetScaler (SHA512)

+
CRAM_MD5: 10200

CRAM_MD5 - CRAM-MD5

+
CRC32: 11500

CRC32 - CRC32

+
CRC32C: 27900

CRC32C - CRC32B

+
CRC64Jones: 28000

CRC64Jones - CRC64-Jones

+
DCC: 1100

DCC - Domain Cached Credentials (DCC), MS Cache

+
DCC2: 2100

DCC2 - Domain Cached Credentials 2 (DCC2), MS Cache 2

+
DES: 14000

DES - DES (PT = $salt, key = $pass)

+
DPAPI_V1_CTX_1_AND_2: 15300

DPAPI_V1_CTX_1_AND_2 - DPAPI masterkey file v1 (context 1 and 2)

+
DPAPI_V1_CTX_3: 15310

DPAPI_V1_CTX_3 - DPAPI masterkey file v1 (context 3)

+
DPAPI_V2_CTX_1_AND_2: 15900

DPAPI_V2_CTX_1_AND_2 - DPAPI masterkey file v2 (context 1)

+
DPAPI_V2_CTX_3: 15910

DPAPI_V2_CTX_3 - DPAPI masterkey file v2 (context 3)

+
FLASK: 29100

FLASK - Flask Session Cookie ($salt.$salt.$pass)

+
GOST_R_32_11_2012_256: 11700

GOST_R_32_11_2012_256 - GOST R 34.11-2012 (Streebog) 256-bit, big-endian

+
GOST_R_32_11_2012_512: 11800

GOST_R_32_11_2012_512 - GOST R 34.11-2012 (Streebog) 512-bit, big-endian

+
GOST_R_34_11_94: 6900

GOST_R_34_11_94 - GOST R 34.11-94

+
GPG: 17010

GPG - GPG (AES-128/AES-256 (SHA-1($pass)))

+
GRUB_2: 7200

GRUB_2 - GRUB 2

+
HALF_MD5: 5100

HALF_MD5 - Half MD5

+
IKE_MD5: 5300

IKE_MD5 - IKE-PSK MD5

+
IKE_SHA1: 5400

IKE_SHA1 - IKE-PSK SHA1

+
INVALID: 9999

INVALID - Invalid hash type

+
IPMI2_PAKP_HMAC_SHA1: 7300

IPMI2_PAKP_HMAC_SHA1 - IPMI2 RAKP HMAC-SHA1

+
ISCSI_CHAP: 4800

ISCSI_CHAP - iSCSI CHAP authentication, MD5(CHAP)

+
JAVA_OBJECT: 18700
JWT: 16500

JWT - JWT (JSON Web Token)

+
KECCAK_224: 17700

KECCAK_224 - Keccak-224

+
KECCAK_256: 17800

KECCAK_256 - Keccak-256

+
KECCAK_384: 17900

KECCAK_384 - Keccak-384

+
KECCAK_512: 18000

KECCAK_512 - Keccak-512

+
KERBEROS_17_DB: 28800

KERBEROS_17_DB - Kerberos 5, etype 17, DB

+
KERBEROS_17_PREAUTH: 19800

KERBEROS_17_PREAUTH - Kerberos 5, etype 17, Pre-Auth

+
KERBEROS_17_TGS_REP: 19600

KERBEROS_17_TGS_REP - Kerberos 5, etype 17, TGS-REP

+
KERBEROS_18_DB: 28900

KERBEROS_18_DB - Kerberos 5, etype 18, DB

+
KERBEROS_18_PREAUTH: 19900

KERBEROS_18_PREAUTH - Kerberos 5, etype 18, Pre-Auth

+
KERBEROS_18_TGS_REP: 19700

KERBEROS_18_TGS_REP - Kerberos 5, etype 18, TGS-REP

+
KERBEROS_23_AS_REP: 18200

KERBEROS_23_AS_REP - Kerberos 5, etype 23, AS-REP

+
KERBEROS_23_SA_REQ_PREAUTH: 7500

KERBEROS_23_SA_REQ_PREAUTH - Kerberos 5, etype 23, AS-REQ Pre-Auth

+
KERBEROS_23_TGS_REP: 13100

KERBEROS_23_TGS_REP - Kerberos 5, etype 23, TGS-REP

+
LINUX_KERNEL_CRYPTO_API_24: 14500

LINUX_KERNEL_CRYPTO_API_24 - Linux Kernel Crypto API (2.4)

+
LM: 3000

LM - LM

+
MACOS_10_8: 7100

MACOS_10_8 - macOS v10.8+ (PBKDF2-SHA512)

+
MD4: 900

MD4 - MD4

+
MD5: 0

MD5 - MD5 - zero must come first in an enum

+
MD5_PW_SALT: 10

MD5_PW_SALT - md5($pass.$salt)

+
MD5_SALT_MD5_PW: 3710

MD5_SALT_MD5_PW - md5($salt.md5($pass))

+
MD5_SALT_PW: 20

MD5_SALT_PW - md5($salt.$pass)

+
MD5_SALT_PW_SALT: 3800

MD5_SALT_PW_SALT - md5($salt.$pass.$salt)

+
MD5_UTF16LE: 70

MD5_UTF16LE - md5(utf16le($pass))

+
MS_AZURE_SYNC: 12800

MS_AZURE_SYNC - MS-AzureSync PBKDF2-HMAC-SHA256

+
MURMUR: 25700

MURMUR - MurmurHash

+
MURMUR3: 27800

MURMUR3 - MurmurHash3

+
NET_NTLM_V1: 5500

NET_NTLM_V1 - NetNTLMv1 / NetNTLMv1+ESS

+
NET_NTLM_V1_NT: 27000

NET_NTLM_V1_NT - NetNTLMv1 / NetNTLMv1+ESS (NT)

+
NET_NTLM_V2: 5600

NET_NTLM_V2 - NetNTLMv2

+
NET_NTLM_V2_NT: 27100

NET_NTLM_V2_NT - NetNTLMv2 (NT)

+
NTLM: 1000

NTLM - NTLM

+
PBKDF2_HMAC_MD5: 11900

PBKDF2_HMAC_MD5 - PBKDF2-HMAC-MD5

+
PBKDF2_HMAC_SHA1: 12000

PBKDF2_HMAC_SHA1 - PBKDF2-HMAC-SHA1

+
PBKDF2_HMAC_SHA256: 10900

PBKDF2_HMAC_SHA256 - PBKDF2-HMAC-SHA256

+
PBKDF2_HMAC_SHA512: 12100

PBKDF2_HMAC_SHA512 - PBKDF2-HMAC-SHA512

+
PHPASS: 400

PHPASS - phpass

+
QNX_MD5: 19000

QNX_MD5 - QNX /etc/shadow (MD5)

+
QNX_SHA256: 19100

QNX_SHA256 - QNX /etc/shadow (SHA256)

+
QNX_SHA512: 19200

QNX_SHA512 - QNX /etc/shadow (SHA512)

+
RACF: 8500
RADMIN_3: 29200

RADMIN_3 - Radmin3

+
RADMIN2: 9900

RADMIN2 - Radmin2

+
RIPEMD_160: 6000

RIPEMD_160 - RIPEMD-160

+
SAMSUNG_ANDROID: 5800

SAMSUNG_ANDROID - Samsung Android Password/PIN

+
SCRYPT: 8900

SCRYPT - scrypt

+
SHA1: 100

SHA1 - MD5

+
SHA1_UTF16LE: 170

SHA1_UTF16LE - sha1(utf16le($pass))

+
SHA2_224: 1300

SHA2_224 - SHA2-224

+
SHA2_256: 1400

SHA2_256 - SHA2-256

+
SHA2_384: 10800

SHA2_384 - SHA2-384

+
SHA2_512: 1700

SHA2_512 - SHA2-512

+
SHA256_UTF16LE: 1470

SHA256_UTF16LE - sha256(utf16le($pass))

+
SHA3_224: 17300

SHA3_224 - SHA3-224

+
SHA3_256: 17400

SHA3_256 - SHA3-256

+
SHA3_384: 17500

SHA3_384 - SHA3-384

+
SHA3_512: 17600

SHA3_512 - SHA3-512

+
SHA384_UTF16LE: 10870

SHA384_UTF16LE - sha384(utf16le($pass))

+
SHA512_CRYPT_UNIX: 1800

SHA512_CRYPT_UNIX - sha512crypt $6$, SHA512 (Unix)

+
SHA512_UTF16LE: 1770

SHA512_UTF16LE - sha512(utf16le($pass))

+
SIP_DIGEST: 11400

SIP_DIGEST - SIP digest authentication (MD5)

+
SIPHASH: 10100

SIPHASH - SipHash

+
SKIP_32: 14900

SKIP_32 - Skip32 (PT = $salt, key = $pass)

+
SNMP_V3_HMAC_MD5_96: 25100

SNMP_V3_HMAC_MD5_96 - SNMPv3 HMAC-MD5-96

+
SNMP_V3_HMAC_MD5_96__SHA1_96: 25000

SNMP_V3_HMAC_MD5_96__SHA1_96 - SNMPv3 HMAC-MD5-96 / HMAC-SHA1-96

+
SNMP_V3_HMAC_SHA1_96: 25200

SNMP_V3_HMAC_SHA1_96 - SNMPv3 HMAC-SHA1-96

+
SNMP_V3_HMAC_SHA224_128: 26700

SNMP_V3_HMAC_SHA224_128 - SNMPv3 HMAC-SHA224-128

+
SNMP_V3_HMAC_SHA256_192: 26800

SNMP_V3_HMAC_SHA256_192 - SNMPv3 HMAC-SHA256-192

+
SNMP_V3_HMAC_SHA384_256: 26900

SNMP_V3_HMAC_SHA384_256 - SNMPv3 HMAC-SHA384-256

+
SNMP_V3_HMAC_SHA512_384: 27300

SNMP_V3_HMAC_SHA512_384 - SNMPv3 HMAC-SHA512-384

+
TACACS_PLUS: 16100

TACACS_PLUS - TACACS+

+
THREE_DES: 14100

THREE_DES - 3DES (PT = $salt, key = $pass)

+
UNRECOGNIZED: -1
WHIRLPOOL: 6100

WHIRLPOOL - Whirlpool

+
WINDOWS_HELLO_PIN: 28100

WINDOWS_HELLO_PIN - Windows Hello PIN/Password

+
WINDOWS_PHONE: 13800

WINDOWS_PHONE - Windows Phone 8+ PIN/Password

+
WPA_EAPOL_PBKDF2: 2500

WPA_EAPOL_PBKDF2 - WPA-EAPOL-PBKDF2

+
WPA_EAPOL_PMK: 2501

WPA_EAPOL_PMK - WPA-EAPOL-PMK

+
WPA_PBKDF2_PMKID_EAPOL: 22000

WPA_PBKDF2_PMKID_EAPOL - WPA-PBKDF2-PMKID+EAPOL

+
WPA_PMK_PMKID_EAPOL: 22001

WPA_PMK_PMKID_EAPOL - WPA-PMK-PMKID+EAPOL

+
WPA_PMKID_PBKDF2: 16800

WPA_PMKID_PBKDF2 - WPA-PMKID-PBKDF2

+
WPA_PMKID_PMK: 16801

WPA_PMKID_PMK - WPA-PMKID-PMK

+
diff --git a/docs/enums/clientpb.OutputFormat.html b/docs/enums/clientpb.OutputFormat.html new file mode 100644 index 0000000..31f997e --- /dev/null +++ b/docs/enums/clientpb.OutputFormat.html @@ -0,0 +1,7 @@ +OutputFormat | sliver-script

Enumeration OutputFormat

Enumeration Members

EXECUTABLE: 2
SERVICE: 3
SHARED_LIB: 0
SHELLCODE: 1
THIRD_PARTY: 4
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.ShellcodeEncoder.html b/docs/enums/clientpb.ShellcodeEncoder.html new file mode 100644 index 0000000..ad0f0af --- /dev/null +++ b/docs/enums/clientpb.ShellcodeEncoder.html @@ -0,0 +1,7 @@ +ShellcodeEncoder | sliver-script

Enumeration ShellcodeEncoder

[ Shellcode ] ----------------------------------------

+

Enumeration Members

NONE: 0
SHIKATA_GA_NAI: 1
UNRECOGNIZED: -1
XOR: 2
XOR_DYNAMIC: 3
diff --git a/docs/enums/clientpb.StageProtocol.html b/docs/enums/clientpb.StageProtocol.html new file mode 100644 index 0000000..91cc13a --- /dev/null +++ b/docs/enums/clientpb.StageProtocol.html @@ -0,0 +1,5 @@ +StageProtocol | sliver-script

Enumeration StageProtocol

Enumeration Members

Enumeration Members

HTTP: 1
HTTPS: 2
TCP: 0
UNRECOGNIZED: -1
diff --git a/docs/enums/clientpb.States.html b/docs/enums/clientpb.States.html new file mode 100644 index 0000000..01e1b4c --- /dev/null +++ b/docs/enums/clientpb.States.html @@ -0,0 +1,5 @@ +States | sliver-script

Enumeration States

Enumeration Members

Enumeration Members

CRACKING: 1
IDLE: 0
INITIALIZING: 2
UNRECOGNIZED: -1
diff --git a/docs/enums/dnspb.DNSMessageType.html b/docs/enums/dnspb.DNSMessageType.html new file mode 100644 index 0000000..e2d9ada --- /dev/null +++ b/docs/enums/dnspb.DNSMessageType.html @@ -0,0 +1,11 @@ +DNSMessageType | sliver-script

Enumeration DNSMessageType

Enumeration Members

CLEAR: 9
CLOSE: 4
DATA_FROM_IMPLANT: 8
DATA_TO_IMPLANT: 7
INIT: 2
MANIFEST: 6
NOP: 0

NOP - aka FINGERPRINT

+
POLL: 3
UNRECOGNIZED: -1
diff --git a/docs/enums/sliverpb.PeerFailureType.html b/docs/enums/sliverpb.PeerFailureType.html new file mode 100644 index 0000000..a98a4fc --- /dev/null +++ b/docs/enums/sliverpb.PeerFailureType.html @@ -0,0 +1,4 @@ +PeerFailureType | sliver-script

Enumeration PeerFailureType

Enumeration Members

Enumeration Members

DISCONNECT: 1
SEND_FAILURE: 0
UNRECOGNIZED: -1
diff --git a/docs/enums/sliverpb.PivotType.html b/docs/enums/sliverpb.PivotType.html new file mode 100644 index 0000000..d397d61 --- /dev/null +++ b/docs/enums/sliverpb.PivotType.html @@ -0,0 +1,5 @@ +PivotType | sliver-script

Enumeration PivotType

Enumeration Members

Enumeration Members

NamedPipe: 2
TCP: 0
UDP: 1
UNRECOGNIZED: -1
diff --git a/docs/enums/sliverpb.RegistryType.html b/docs/enums/sliverpb.RegistryType.html new file mode 100644 index 0000000..acb9c8e --- /dev/null +++ b/docs/enums/sliverpb.RegistryType.html @@ -0,0 +1,8 @@ +RegistryType | sliver-script

Enumeration RegistryType

Registry - Registry related messages

+

Enumeration Members

Enumeration Members

Binary: 1
DWORD: 3
QWORD: 4
String: 2
Unknown: 0
UNRECOGNIZED: -1
diff --git a/docs/functions/ListConfigs-1.html b/docs/functions/ListConfigs-1.html new file mode 100644 index 0000000..7372841 --- /dev/null +++ b/docs/functions/ListConfigs-1.html @@ -0,0 +1 @@ +ListConfigs | sliver-script

Function ListConfigs

diff --git a/docs/functions/ParseConfig-1.html b/docs/functions/ParseConfig-1.html new file mode 100644 index 0000000..47ea53e --- /dev/null +++ b/docs/functions/ParseConfig-1.html @@ -0,0 +1 @@ +ParseConfig | sliver-script

Function ParseConfig

diff --git a/docs/functions/ParseConfigFile-1.html b/docs/functions/ParseConfigFile-1.html new file mode 100644 index 0000000..f03d688 --- /dev/null +++ b/docs/functions/ParseConfigFile-1.html @@ -0,0 +1 @@ +ParseConfigFile | sliver-script

Function ParseConfigFile

diff --git a/docs/functions/clientpb.crackAttackModeFromJSON.html b/docs/functions/clientpb.crackAttackModeFromJSON.html new file mode 100644 index 0000000..20838f1 --- /dev/null +++ b/docs/functions/clientpb.crackAttackModeFromJSON.html @@ -0,0 +1 @@ +crackAttackModeFromJSON | sliver-script

Function crackAttackModeFromJSON

diff --git a/docs/functions/clientpb.crackAttackModeToJSON.html b/docs/functions/clientpb.crackAttackModeToJSON.html new file mode 100644 index 0000000..46eea3f --- /dev/null +++ b/docs/functions/clientpb.crackAttackModeToJSON.html @@ -0,0 +1 @@ +crackAttackModeToJSON | sliver-script

Function crackAttackModeToJSON

diff --git a/docs/functions/clientpb.crackEncodingFromJSON.html b/docs/functions/clientpb.crackEncodingFromJSON.html new file mode 100644 index 0000000..188a5f4 --- /dev/null +++ b/docs/functions/clientpb.crackEncodingFromJSON.html @@ -0,0 +1 @@ +crackEncodingFromJSON | sliver-script

Function crackEncodingFromJSON

diff --git a/docs/functions/clientpb.crackEncodingToJSON.html b/docs/functions/clientpb.crackEncodingToJSON.html new file mode 100644 index 0000000..ab3edce --- /dev/null +++ b/docs/functions/clientpb.crackEncodingToJSON.html @@ -0,0 +1 @@ +crackEncodingToJSON | sliver-script

Function crackEncodingToJSON

diff --git a/docs/functions/clientpb.crackFileTypeFromJSON.html b/docs/functions/clientpb.crackFileTypeFromJSON.html new file mode 100644 index 0000000..f9b2216 --- /dev/null +++ b/docs/functions/clientpb.crackFileTypeFromJSON.html @@ -0,0 +1 @@ +crackFileTypeFromJSON | sliver-script

Function crackFileTypeFromJSON

diff --git a/docs/functions/clientpb.crackFileTypeToJSON.html b/docs/functions/clientpb.crackFileTypeToJSON.html new file mode 100644 index 0000000..b6ef40a --- /dev/null +++ b/docs/functions/clientpb.crackFileTypeToJSON.html @@ -0,0 +1 @@ +crackFileTypeToJSON | sliver-script

Function crackFileTypeToJSON

diff --git a/docs/functions/clientpb.crackJobStatusFromJSON.html b/docs/functions/clientpb.crackJobStatusFromJSON.html new file mode 100644 index 0000000..da048b9 --- /dev/null +++ b/docs/functions/clientpb.crackJobStatusFromJSON.html @@ -0,0 +1 @@ +crackJobStatusFromJSON | sliver-script

Function crackJobStatusFromJSON

diff --git a/docs/functions/clientpb.crackJobStatusToJSON.html b/docs/functions/clientpb.crackJobStatusToJSON.html new file mode 100644 index 0000000..4da9c62 --- /dev/null +++ b/docs/functions/clientpb.crackJobStatusToJSON.html @@ -0,0 +1 @@ +crackJobStatusToJSON | sliver-script

Function crackJobStatusToJSON

diff --git a/docs/functions/clientpb.crackOutfileFormatFromJSON.html b/docs/functions/clientpb.crackOutfileFormatFromJSON.html new file mode 100644 index 0000000..5fe261a --- /dev/null +++ b/docs/functions/clientpb.crackOutfileFormatFromJSON.html @@ -0,0 +1 @@ +crackOutfileFormatFromJSON | sliver-script

Function crackOutfileFormatFromJSON

diff --git a/docs/functions/clientpb.crackOutfileFormatToJSON.html b/docs/functions/clientpb.crackOutfileFormatToJSON.html new file mode 100644 index 0000000..3447332 --- /dev/null +++ b/docs/functions/clientpb.crackOutfileFormatToJSON.html @@ -0,0 +1 @@ +crackOutfileFormatToJSON | sliver-script

Function crackOutfileFormatToJSON

diff --git a/docs/functions/clientpb.crackWorkloadProfileFromJSON.html b/docs/functions/clientpb.crackWorkloadProfileFromJSON.html new file mode 100644 index 0000000..d743177 --- /dev/null +++ b/docs/functions/clientpb.crackWorkloadProfileFromJSON.html @@ -0,0 +1 @@ +crackWorkloadProfileFromJSON | sliver-script

Function crackWorkloadProfileFromJSON

diff --git a/docs/functions/clientpb.crackWorkloadProfileToJSON.html b/docs/functions/clientpb.crackWorkloadProfileToJSON.html new file mode 100644 index 0000000..1946938 --- /dev/null +++ b/docs/functions/clientpb.crackWorkloadProfileToJSON.html @@ -0,0 +1 @@ +crackWorkloadProfileToJSON | sliver-script

Function crackWorkloadProfileToJSON

diff --git a/docs/functions/clientpb.fileTypeFromJSON.html b/docs/functions/clientpb.fileTypeFromJSON.html new file mode 100644 index 0000000..6f3ae2e --- /dev/null +++ b/docs/functions/clientpb.fileTypeFromJSON.html @@ -0,0 +1 @@ +fileTypeFromJSON | sliver-script

Function fileTypeFromJSON

diff --git a/docs/functions/clientpb.fileTypeToJSON.html b/docs/functions/clientpb.fileTypeToJSON.html new file mode 100644 index 0000000..bf20ae5 --- /dev/null +++ b/docs/functions/clientpb.fileTypeToJSON.html @@ -0,0 +1 @@ +fileTypeToJSON | sliver-script
diff --git a/docs/functions/clientpb.hTTPC2SegmentTypeFromJSON.html b/docs/functions/clientpb.hTTPC2SegmentTypeFromJSON.html new file mode 100644 index 0000000..38adc81 --- /dev/null +++ b/docs/functions/clientpb.hTTPC2SegmentTypeFromJSON.html @@ -0,0 +1 @@ +hTTPC2SegmentTypeFromJSON | sliver-script

Function hTTPC2SegmentTypeFromJSON

diff --git a/docs/functions/clientpb.hTTPC2SegmentTypeToJSON.html b/docs/functions/clientpb.hTTPC2SegmentTypeToJSON.html new file mode 100644 index 0000000..730a93b --- /dev/null +++ b/docs/functions/clientpb.hTTPC2SegmentTypeToJSON.html @@ -0,0 +1 @@ +hTTPC2SegmentTypeToJSON | sliver-script

Function hTTPC2SegmentTypeToJSON

diff --git a/docs/functions/clientpb.hashTypeFromJSON.html b/docs/functions/clientpb.hashTypeFromJSON.html new file mode 100644 index 0000000..7ed7616 --- /dev/null +++ b/docs/functions/clientpb.hashTypeFromJSON.html @@ -0,0 +1 @@ +hashTypeFromJSON | sliver-script

Function hashTypeFromJSON

diff --git a/docs/functions/clientpb.hashTypeToJSON.html b/docs/functions/clientpb.hashTypeToJSON.html new file mode 100644 index 0000000..c8b0030 --- /dev/null +++ b/docs/functions/clientpb.hashTypeToJSON.html @@ -0,0 +1 @@ +hashTypeToJSON | sliver-script
diff --git a/docs/functions/clientpb.outputFormatFromJSON.html b/docs/functions/clientpb.outputFormatFromJSON.html new file mode 100644 index 0000000..8e0f2ca --- /dev/null +++ b/docs/functions/clientpb.outputFormatFromJSON.html @@ -0,0 +1 @@ +outputFormatFromJSON | sliver-script

Function outputFormatFromJSON

diff --git a/docs/functions/clientpb.outputFormatToJSON.html b/docs/functions/clientpb.outputFormatToJSON.html new file mode 100644 index 0000000..1b13ecc --- /dev/null +++ b/docs/functions/clientpb.outputFormatToJSON.html @@ -0,0 +1 @@ +outputFormatToJSON | sliver-script

Function outputFormatToJSON

diff --git a/docs/functions/clientpb.shellcodeEncoderFromJSON.html b/docs/functions/clientpb.shellcodeEncoderFromJSON.html new file mode 100644 index 0000000..c9d3481 --- /dev/null +++ b/docs/functions/clientpb.shellcodeEncoderFromJSON.html @@ -0,0 +1 @@ +shellcodeEncoderFromJSON | sliver-script

Function shellcodeEncoderFromJSON

diff --git a/docs/functions/clientpb.shellcodeEncoderToJSON.html b/docs/functions/clientpb.shellcodeEncoderToJSON.html new file mode 100644 index 0000000..5c16538 --- /dev/null +++ b/docs/functions/clientpb.shellcodeEncoderToJSON.html @@ -0,0 +1 @@ +shellcodeEncoderToJSON | sliver-script

Function shellcodeEncoderToJSON

diff --git a/docs/functions/clientpb.stageProtocolFromJSON.html b/docs/functions/clientpb.stageProtocolFromJSON.html new file mode 100644 index 0000000..2db8620 --- /dev/null +++ b/docs/functions/clientpb.stageProtocolFromJSON.html @@ -0,0 +1 @@ +stageProtocolFromJSON | sliver-script

Function stageProtocolFromJSON

diff --git a/docs/functions/clientpb.stageProtocolToJSON.html b/docs/functions/clientpb.stageProtocolToJSON.html new file mode 100644 index 0000000..094ce78 --- /dev/null +++ b/docs/functions/clientpb.stageProtocolToJSON.html @@ -0,0 +1 @@ +stageProtocolToJSON | sliver-script

Function stageProtocolToJSON

diff --git a/docs/functions/clientpb.statesFromJSON.html b/docs/functions/clientpb.statesFromJSON.html new file mode 100644 index 0000000..ef4f726 --- /dev/null +++ b/docs/functions/clientpb.statesFromJSON.html @@ -0,0 +1 @@ +statesFromJSON | sliver-script
diff --git a/docs/functions/clientpb.statesToJSON.html b/docs/functions/clientpb.statesToJSON.html new file mode 100644 index 0000000..06157f1 --- /dev/null +++ b/docs/functions/clientpb.statesToJSON.html @@ -0,0 +1 @@ +statesToJSON | sliver-script
diff --git a/docs/functions/dnspb.dNSMessageTypeFromJSON.html b/docs/functions/dnspb.dNSMessageTypeFromJSON.html new file mode 100644 index 0000000..cdbd3a0 --- /dev/null +++ b/docs/functions/dnspb.dNSMessageTypeFromJSON.html @@ -0,0 +1 @@ +dNSMessageTypeFromJSON | sliver-script

Function dNSMessageTypeFromJSON

diff --git a/docs/functions/dnspb.dNSMessageTypeToJSON.html b/docs/functions/dnspb.dNSMessageTypeToJSON.html new file mode 100644 index 0000000..b331151 --- /dev/null +++ b/docs/functions/dnspb.dNSMessageTypeToJSON.html @@ -0,0 +1 @@ +dNSMessageTypeToJSON | sliver-script

Function dNSMessageTypeToJSON

diff --git a/docs/functions/listConfigs.html b/docs/functions/listConfigs.html new file mode 100644 index 0000000..b70aafc --- /dev/null +++ b/docs/functions/listConfigs.html @@ -0,0 +1 @@ +listConfigs | sliver-script

Function listConfigs

diff --git a/docs/functions/parseConfig.html b/docs/functions/parseConfig.html new file mode 100644 index 0000000..8113c3f --- /dev/null +++ b/docs/functions/parseConfig.html @@ -0,0 +1 @@ +parseConfig | sliver-script

Function parseConfig

diff --git a/docs/functions/parseConfigFile.html b/docs/functions/parseConfigFile.html new file mode 100644 index 0000000..53fd65b --- /dev/null +++ b/docs/functions/parseConfigFile.html @@ -0,0 +1 @@ +parseConfigFile | sliver-script

Function parseConfigFile

diff --git a/docs/functions/sliverpb.peerFailureTypeFromJSON.html b/docs/functions/sliverpb.peerFailureTypeFromJSON.html new file mode 100644 index 0000000..61ac192 --- /dev/null +++ b/docs/functions/sliverpb.peerFailureTypeFromJSON.html @@ -0,0 +1 @@ +peerFailureTypeFromJSON | sliver-script

Function peerFailureTypeFromJSON

diff --git a/docs/functions/sliverpb.peerFailureTypeToJSON.html b/docs/functions/sliverpb.peerFailureTypeToJSON.html new file mode 100644 index 0000000..8dbbe47 --- /dev/null +++ b/docs/functions/sliverpb.peerFailureTypeToJSON.html @@ -0,0 +1 @@ +peerFailureTypeToJSON | sliver-script

Function peerFailureTypeToJSON

diff --git a/docs/functions/sliverpb.pivotTypeFromJSON.html b/docs/functions/sliverpb.pivotTypeFromJSON.html new file mode 100644 index 0000000..a026238 --- /dev/null +++ b/docs/functions/sliverpb.pivotTypeFromJSON.html @@ -0,0 +1 @@ +pivotTypeFromJSON | sliver-script

Function pivotTypeFromJSON

diff --git a/docs/functions/sliverpb.pivotTypeToJSON.html b/docs/functions/sliverpb.pivotTypeToJSON.html new file mode 100644 index 0000000..fe8c3e1 --- /dev/null +++ b/docs/functions/sliverpb.pivotTypeToJSON.html @@ -0,0 +1 @@ +pivotTypeToJSON | sliver-script

Function pivotTypeToJSON

diff --git a/docs/functions/sliverpb.registryTypeFromJSON.html b/docs/functions/sliverpb.registryTypeFromJSON.html new file mode 100644 index 0000000..55be7b0 --- /dev/null +++ b/docs/functions/sliverpb.registryTypeFromJSON.html @@ -0,0 +1 @@ +registryTypeFromJSON | sliver-script

Function registryTypeFromJSON

diff --git a/docs/functions/sliverpb.registryTypeToJSON.html b/docs/functions/sliverpb.registryTypeToJSON.html new file mode 100644 index 0000000..d4f20c5 --- /dev/null +++ b/docs/functions/sliverpb.registryTypeToJSON.html @@ -0,0 +1 @@ +registryTypeToJSON | sliver-script

Function registryTypeToJSON

diff --git a/docs/index.html b/docs/index.html index 275bbfb..e93b3a7 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,43 +1,19 @@ -sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

sliver-script

- -

Sliver Script

-
-

Sliver-script is a TypeScript/JavaScript client library for Sliver, it can be used to automate any operator interaction with Sliver. Sliver-script uses existing Sliver client configuration files and connects to servers using gRPC over Mutual-TLS. It also provides RxJS abstractions for easy interactions with real-time components.

-

⚠️ Support for Sliver v1.5+ is a work in progress.

+sliver-script

sliver-script

Sliver Script

Sliver-script is a TypeScript/JavaScript client library for Sliver, it can be used to automate any operator interaction with Sliver. Sliver-script uses existing Sliver client configuration files and connects to servers using gRPC over Mutual-TLS. It also provides RxJS abstractions for easy interactions with real-time components.

+

This library targets modern Sliver protobuf/gRPC APIs and provides a strongly-typed TypeScript-first client.

NPM Publish License: GPL v3

- - -

Install

-
-

Node v14 or later is required for this package, and it can be installed via npm:

+

Node v24 or later is required for this package, and it can be installed via npm:

npm install sliver-script

+
import { SliverClient, ParseConfigFile } from 'sliver-script'

(async function() {

const config = await ParseConfigFile('./localhost.cfg')
const client = new SliverClient(config)

await client.connect()

const version = await client.getVersion()
console.log(version)

const sessions = await client.sessions()
console.log(`Sessions: ${sessions.length}`)

await client.disconnect()

})() +
- -

TypeScript Example

-
+
import { SliverClient, ParseConfigFile } from 'sliver-script'

(async function() {

const config = await ParseConfigFile('./localhost.cfg')

const client = new SliverClient(config)
await client.connect()
client.event$.subscribe((event) => {
console.log(event)
})

})() +
- -

Basic

-
-
import { SliverClient, ParseConfigFile } from 'sliver-script'

(async function() {

const config = await ParseConfigFile('./moloch_localhost.cfg')
const client = new SliverClient(config)

console.log(`Connecting to ${client.host()} ...`)
await client.connect()

const sessions = await client.sessions()
console.log(sessions)

})() -
+
import { SliverClient, ParseConfigFile } from 'sliver-script'


(async function() {

const config = await ParseConfigFile('./localhost.cfg')
const client = new SliverClient(config);
await client.connect()

console.log('Waiting for new sessions ...')
client.session$.subscribe(async (event) => {
console.log(`New session #${event.Session.ID}!`)
const session = client.interactSession(event.Session.ID)
const ls = await session.ls('.')
console.log(`Path: ${ls.Path}`)
ls.Files.forEach(file => {
console.log(`Name: ${file.Name} (Size: ${file.Size})`)
})
})

})() +
- -

Monitor Events in Real-time

-
-
import { SliverClient, ParseConfigFile } from 'sliver-script'

(async function() {

const config = await ParseConfigFile('./moloch_localhost.cfg')

const client = new SliverClient(config)
await client.connect()
client.event$.subscribe((event) => {
console.log(event)
})

})() -
+
const sliver = require('sliver-script')

(async function() {

const config = await sliver.ParseConfigFile('./localhost.cfg')
const client = new sliver.SliverClient(config)
await client.connect()

console.log('Waiting for new sessions ...')

client.session$.subscribe(async (event) => {

console.log(`New session #${event.Session.ID}!`)

const session = client.interactSession(event.Session.ID)
const ls = await session.ls('.')
console.log(`Path: ${ls.Path}`)
ls.Files.forEach(file => {
console.log(`Name: ${file.Name} (Size: ${file.Size})`)
})

})

})() +
- -

Automatically Interact with New Sessions

-
-
import { SliverClient, ParseConfigFile } from 'sliver-script'


(async function() {

const config = await ParseConfigFile('moloch_localhost.cfg')
const client = new SliverClient(config);
await client.connect()

console.log('Waiting for new sessions ...')
client.session$.subscribe(async (event) => {
console.log(`New session #${event.getSession().getId()}!`)
const session = await client.interactWith(event.getSession())
const ls = await session.ls()
console.log(`Path: ${ls.getPath()}`)
ls.getFilesList().forEach(file => {
console.log(`Name: ${file.getName()} (Size: ${file.getSize()})`)
})
})

})() -
- - -

JavaScript Example

-
-
const sliver = require('sliver-script')

(async function() {

const config = await sliver.ParseConfigFile('./moloch_localhost.cfg')
const client = new sliver.SliverClient(config)
await client.connect()

console.log('Waiting for new sessions ...')

client.session$.subscribe(async (event) => {

console.log(`New session #${event.getSession().getId()}!`)

const session = await client.interactWith(event.getSession())
const ls = await session.ls()
console.log(`Path: ${ls.getPath()}`)
ls.getFilesList().forEach(file => {
console.log(`Name: ${file.getName()} (Size: ${file.getSize()})`)
})

})

})() -
-

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +
diff --git a/docs/interfaces/SliverClientConfig.html b/docs/interfaces/SliverClientConfig.html index d584474..9857715 100644 --- a/docs/interfaces/SliverClientConfig.html +++ b/docs/interfaces/SliverClientConfig.html @@ -1 +1,8 @@ -SliverClientConfig | sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface SliverClientConfig

Hierarchy

  • SliverClientConfig

Index

Properties

ca_certificate: string
certificate: string
lhost: string
lport: number
operator: string
private_key: string
token: string

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +SliverClientConfig | sliver-script

Interface SliverClientConfig

interface SliverClientConfig {
    ca_certificate: string;
    certificate: string;
    lhost: string;
    lport: number;
    operator: string;
    private_key: string;
    token: string;
}

Properties

ca_certificate: string
certificate: string
lhost: string
lport: number
operator: string
private_key: string
token: string
diff --git a/docs/interfaces/Tunnel.html b/docs/interfaces/Tunnel.html index aceaeb6..fb16604 100644 --- a/docs/interfaces/Tunnel.html +++ b/docs/interfaces/Tunnel.html @@ -1 +1,5 @@ -Tunnel | sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface Tunnel

Hierarchy

  • Tunnel

Index

Properties

Properties

stdin: Observer<Buffer>
stdout: Observable<Buffer>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +Tunnel | sliver-script

Interface Tunnel

interface Tunnel {
    id: string;
    stdout$: Observable<Buffer<ArrayBufferLike>>;
    close(): Promise<void>;
    write(data: string | Buffer<ArrayBufferLike>): void;
}

Properties

Methods

Properties

id: string
stdout$: Observable<Buffer<ArrayBufferLike>>

Methods

  • Returns Promise<void>

  • Parameters

    • data: string | Buffer<ArrayBufferLike>

    Returns void

diff --git a/docs/interfaces/clientpb.AllHosts.html b/docs/interfaces/clientpb.AllHosts.html new file mode 100644 index 0000000..03ca680 --- /dev/null +++ b/docs/interfaces/clientpb.AllHosts.html @@ -0,0 +1,2 @@ +AllHosts | sliver-script
interface AllHosts {
    Hosts: clientpb.Host[];
}

Properties

Properties

Hosts: clientpb.Host[]
diff --git a/docs/interfaces/clientpb.AllLoot.html b/docs/interfaces/clientpb.AllLoot.html new file mode 100644 index 0000000..fccf6a9 --- /dev/null +++ b/docs/interfaces/clientpb.AllLoot.html @@ -0,0 +1,2 @@ +AllLoot | sliver-script
interface AllLoot {
    Loot: clientpb.Loot[];
}

Properties

Properties

Loot: clientpb.Loot[]
diff --git a/docs/interfaces/clientpb.Backdoor.html b/docs/interfaces/clientpb.Backdoor.html new file mode 100644 index 0000000..e2b37d2 --- /dev/null +++ b/docs/interfaces/clientpb.Backdoor.html @@ -0,0 +1,2 @@ +Backdoor | sliver-script
interface Backdoor {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/clientpb.BackdoorReq.html b/docs/interfaces/clientpb.BackdoorReq.html new file mode 100644 index 0000000..e5b13b7 --- /dev/null +++ b/docs/interfaces/clientpb.BackdoorReq.html @@ -0,0 +1,5 @@ +BackdoorReq | sliver-script
interface BackdoorReq {
    FilePath: string;
    Name: string;
    ProfileName: string;
    Request?: commonpb.Request;
}

Properties

FilePath: string
Name: string
ProfileName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.Beacon.html b/docs/interfaces/clientpb.Beacon.html new file mode 100644 index 0000000..714c0de --- /dev/null +++ b/docs/interfaces/clientpb.Beacon.html @@ -0,0 +1,31 @@ +Beacon | sliver-script
interface Beacon {
    ActiveC2: string;
    Arch: string;
    Burned: boolean;
    Evasion: boolean;
    Filename: string;
    FirstContact: string;
    GID: string;
    Hostname: string;
    ID: string;
    Integrity: string;
    Interval: string;
    IsDead: boolean;
    Jitter: string;
    LastCheckin: string;
    Locale: string;
    Name: string;
    NextCheckin: string;
    OS: string;
    PID: number;
    ProxyURL: string;
    ReconnectInterval: string;
    RemoteAddress: string;
    TasksCount: string;
    TasksCountCompleted: string;
    Transport: string;
    UID: string;
    Username: string;
    UUID: string;
    Version: string;
}

Properties

ActiveC2: string
Arch: string
Burned: boolean
Evasion: boolean
Filename: string

Argv[0]

+
FirstContact: string
GID: string
Hostname: string
ID: string
Integrity: string
Interval: string
IsDead: boolean
Jitter: string
LastCheckin: string
Locale: string
Name: string
NextCheckin: string
OS: string
PID: number
ProxyURL: string
ReconnectInterval: string
RemoteAddress: string
TasksCount: string
TasksCountCompleted: string
Transport: string
UID: string
Username: string
UUID: string
Version: string
diff --git a/docs/interfaces/clientpb.BeaconIntegrity.html b/docs/interfaces/clientpb.BeaconIntegrity.html new file mode 100644 index 0000000..0a40bdb --- /dev/null +++ b/docs/interfaces/clientpb.BeaconIntegrity.html @@ -0,0 +1,3 @@ +BeaconIntegrity | sliver-script

Interface BeaconIntegrity

interface BeaconIntegrity {
    BeaconID: string;
    Integrity: string;
}

Properties

Properties

BeaconID: string
Integrity: string
diff --git a/docs/interfaces/clientpb.BeaconTask.html b/docs/interfaces/clientpb.BeaconTask.html new file mode 100644 index 0000000..de79e76 --- /dev/null +++ b/docs/interfaces/clientpb.BeaconTask.html @@ -0,0 +1,10 @@ +BeaconTask | sliver-script
interface BeaconTask {
    BeaconID: string;
    CompletedAt: string;
    CreatedAt: string;
    Description: string;
    ID: string;
    Request: Buffer;
    Response: Buffer;
    SentAt: string;
    State: string;
}

Properties

BeaconID: string
CompletedAt: string
CreatedAt: string
Description: string
ID: string
Request: Buffer
Response: Buffer
SentAt: string
State: string
diff --git a/docs/interfaces/clientpb.BeaconTasks.html b/docs/interfaces/clientpb.BeaconTasks.html new file mode 100644 index 0000000..94eb165 --- /dev/null +++ b/docs/interfaces/clientpb.BeaconTasks.html @@ -0,0 +1,3 @@ +BeaconTasks | sliver-script
interface BeaconTasks {
    BeaconID: string;
    Tasks: clientpb.BeaconTask[];
}

Properties

Properties

BeaconID: string
diff --git a/docs/interfaces/clientpb.Beacons.html b/docs/interfaces/clientpb.Beacons.html new file mode 100644 index 0000000..ce72d76 --- /dev/null +++ b/docs/interfaces/clientpb.Beacons.html @@ -0,0 +1,2 @@ +Beacons | sliver-script
interface Beacons {
    Beacons: clientpb.Beacon[];
}

Properties

Properties

Beacons: clientpb.Beacon[]
diff --git a/docs/interfaces/clientpb.Builder.html b/docs/interfaces/clientpb.Builder.html new file mode 100644 index 0000000..f266e41 --- /dev/null +++ b/docs/interfaces/clientpb.Builder.html @@ -0,0 +1,10 @@ +Builder | sliver-script
interface Builder {
    CrossCompilers: clientpb.CrossCompiler[];
    GOARCH: string;
    GOOS: string;
    Name: string;
    OperatorName: string;
    Targets: clientpb.CompilerTarget[];
    Templates: string[];
}

Properties

CrossCompilers: clientpb.CrossCompiler[]
GOARCH: string

The builder's Arch

+
GOOS: string

The builder's OS

+
Name: string
OperatorName: string
Templates: string[]
diff --git a/docs/interfaces/clientpb.Builders.html b/docs/interfaces/clientpb.Builders.html new file mode 100644 index 0000000..cb71504 --- /dev/null +++ b/docs/interfaces/clientpb.Builders.html @@ -0,0 +1,2 @@ +Builders | sliver-script
interface Builders {
    Builders: clientpb.Builder[];
}

Properties

Properties

Builders: clientpb.Builder[]
diff --git a/docs/interfaces/clientpb.C2ProfileReq.html b/docs/interfaces/clientpb.C2ProfileReq.html new file mode 100644 index 0000000..1e2f5a7 --- /dev/null +++ b/docs/interfaces/clientpb.C2ProfileReq.html @@ -0,0 +1,2 @@ +C2ProfileReq | sliver-script

Interface C2ProfileReq

interface C2ProfileReq {
    Name: string;
}

Properties

Properties

Name: string
diff --git a/docs/interfaces/clientpb.CUDABackendInfo.html b/docs/interfaces/clientpb.CUDABackendInfo.html new file mode 100644 index 0000000..e570e7f --- /dev/null +++ b/docs/interfaces/clientpb.CUDABackendInfo.html @@ -0,0 +1,11 @@ +CUDABackendInfo | sliver-script

Interface CUDABackendInfo

interface CUDABackendInfo {
    Clock: number;
    CUDAVersion: string;
    MemoryFree: string;
    MemoryTotal: string;
    Name: string;
    Processors: number;
    Type: string;
    Vendor: string;
    VendorID: number;
    Version: string;
}

Properties

Clock: number
CUDAVersion: string
MemoryFree: string
MemoryTotal: string
Name: string
Processors: number
Type: string
Vendor: string
VendorID: number
Version: string
diff --git a/docs/interfaces/clientpb.Canaries.html b/docs/interfaces/clientpb.Canaries.html new file mode 100644 index 0000000..b60d844 --- /dev/null +++ b/docs/interfaces/clientpb.Canaries.html @@ -0,0 +1,2 @@ +Canaries | sliver-script
interface Canaries {
    Canaries: clientpb.DNSCanary[];
}

Properties

Properties

Canaries: clientpb.DNSCanary[]
diff --git a/docs/interfaces/clientpb.CertificateAuthorityData.html b/docs/interfaces/clientpb.CertificateAuthorityData.html new file mode 100644 index 0000000..225f493 --- /dev/null +++ b/docs/interfaces/clientpb.CertificateAuthorityData.html @@ -0,0 +1,8 @@ +CertificateAuthorityData | sliver-script

Interface CertificateAuthorityData

interface CertificateAuthorityData {
    CN: string;
    CreationTime: string;
    ID: string;
    KeyAlgorithm: string;
    Type: string;
    ValidityExpiry: string;
    ValidityStart: string;
}

Properties

CN: string
CreationTime: string
ID: string
KeyAlgorithm: string
Type: string
ValidityExpiry: string
ValidityStart: string
diff --git a/docs/interfaces/clientpb.CertificateAuthorityInfo.html b/docs/interfaces/clientpb.CertificateAuthorityInfo.html new file mode 100644 index 0000000..58d8ad1 --- /dev/null +++ b/docs/interfaces/clientpb.CertificateAuthorityInfo.html @@ -0,0 +1,2 @@ +CertificateAuthorityInfo | sliver-script

Interface CertificateAuthorityInfo

interface CertificateAuthorityInfo {
    info: clientpb.CertificateAuthorityData[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.CertificateData.html b/docs/interfaces/clientpb.CertificateData.html new file mode 100644 index 0000000..2eb42ab --- /dev/null +++ b/docs/interfaces/clientpb.CertificateData.html @@ -0,0 +1,8 @@ +CertificateData | sliver-script

Interface CertificateData

interface CertificateData {
    CN: string;
    CreationTime: string;
    ID: string;
    KeyAlgorithm: string;
    Type: string;
    ValidityExpiry: string;
    ValidityStart: string;
}

Properties

CN: string
CreationTime: string
ID: string
KeyAlgorithm: string
Type: string
ValidityExpiry: string
ValidityStart: string
diff --git a/docs/interfaces/clientpb.CertificateInfo.html b/docs/interfaces/clientpb.CertificateInfo.html new file mode 100644 index 0000000..d0b74c4 --- /dev/null +++ b/docs/interfaces/clientpb.CertificateInfo.html @@ -0,0 +1,2 @@ +CertificateInfo | sliver-script

Interface CertificateInfo

interface CertificateInfo {
    info: clientpb.CertificateData[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.CertificatesReq.html b/docs/interfaces/clientpb.CertificatesReq.html new file mode 100644 index 0000000..179ec0d --- /dev/null +++ b/docs/interfaces/clientpb.CertificatesReq.html @@ -0,0 +1,3 @@ +CertificatesReq | sliver-script

Interface CertificatesReq

interface CertificatesReq {
    CategoryFilters: number;
    CN: string;
}

Properties

Properties

CategoryFilters: number
CN: string
diff --git a/docs/interfaces/clientpb.Client.html b/docs/interfaces/clientpb.Client.html new file mode 100644 index 0000000..9199858 --- /dev/null +++ b/docs/interfaces/clientpb.Client.html @@ -0,0 +1,5 @@ +Client | sliver-script

[ Events ] ----------------------------------------

+
interface Client {
    ID: number;
    Name: string;
    Operator?: clientpb.Operator;
}

Properties

Properties

ID: number
Name: string
Operator?: clientpb.Operator
diff --git a/docs/interfaces/clientpb.ClientLogData.html b/docs/interfaces/clientpb.ClientLogData.html new file mode 100644 index 0000000..ac9ea9b --- /dev/null +++ b/docs/interfaces/clientpb.ClientLogData.html @@ -0,0 +1,4 @@ +ClientLogData | sliver-script

Interface ClientLogData

[ Client Logs ] ----------------------------------------

+
interface ClientLogData {
    Data: Buffer;
    Stream: string;
}

Properties

Properties

Data: Buffer
Stream: string
diff --git a/docs/interfaces/clientpb.CloseTunnelReq.html b/docs/interfaces/clientpb.CloseTunnelReq.html new file mode 100644 index 0000000..dd7af57 --- /dev/null +++ b/docs/interfaces/clientpb.CloseTunnelReq.html @@ -0,0 +1,3 @@ +CloseTunnelReq | sliver-script

Interface CloseTunnelReq

interface CloseTunnelReq {
    Request?: commonpb.Request;
    TunnelID: string;
}

Properties

Properties

Request?: commonpb.Request
TunnelID: string
diff --git a/docs/interfaces/clientpb.Compiler.html b/docs/interfaces/clientpb.Compiler.html new file mode 100644 index 0000000..4811472 --- /dev/null +++ b/docs/interfaces/clientpb.Compiler.html @@ -0,0 +1,8 @@ +Compiler | sliver-script
interface Compiler {
    CrossCompilers: clientpb.CrossCompiler[];
    GOARCH: string;
    GOOS: string;
    Targets: clientpb.CompilerTarget[];
    UnsupportedTargets: clientpb.CompilerTarget[];
}

Properties

CrossCompilers: clientpb.CrossCompiler[]
GOARCH: string

The server's Arch

+
GOOS: string

The server's OS

+
UnsupportedTargets: clientpb.CompilerTarget[]
diff --git a/docs/interfaces/clientpb.CompilerTarget.html b/docs/interfaces/clientpb.CompilerTarget.html new file mode 100644 index 0000000..5120e1b --- /dev/null +++ b/docs/interfaces/clientpb.CompilerTarget.html @@ -0,0 +1,6 @@ +CompilerTarget | sliver-script

Interface CompilerTarget

interface CompilerTarget {
    Format: OutputFormat;
    GOARCH: string;
    GOOS: string;
}

Properties

Properties

Format: OutputFormat
GOARCH: string

The server's Arch

+
GOOS: string

The server's OS

+
diff --git a/docs/interfaces/clientpb.CrackBenchmark.html b/docs/interfaces/clientpb.CrackBenchmark.html new file mode 100644 index 0000000..4f61189 --- /dev/null +++ b/docs/interfaces/clientpb.CrackBenchmark.html @@ -0,0 +1,4 @@ +CrackBenchmark | sliver-script

Interface CrackBenchmark

interface CrackBenchmark {
    Benchmarks: { [key: number]: string };
    HostUUID: string;
    Name: string;
}

Properties

Properties

Benchmarks: { [key: number]: string }
HostUUID: string
Name: string
diff --git a/docs/interfaces/clientpb.CrackBenchmark_BenchmarksEntry.html b/docs/interfaces/clientpb.CrackBenchmark_BenchmarksEntry.html new file mode 100644 index 0000000..dbce601 --- /dev/null +++ b/docs/interfaces/clientpb.CrackBenchmark_BenchmarksEntry.html @@ -0,0 +1,3 @@ +CrackBenchmark_BenchmarksEntry | sliver-script

Interface CrackBenchmark_BenchmarksEntry

interface CrackBenchmark_BenchmarksEntry {
    key: number;
    value: string;
}

Properties

Properties

key: number
value: string
diff --git a/docs/interfaces/clientpb.CrackCommand.html b/docs/interfaces/clientpb.CrackCommand.html new file mode 100644 index 0000000..c73bad3 --- /dev/null +++ b/docs/interfaces/clientpb.CrackCommand.html @@ -0,0 +1,122 @@ +CrackCommand | sliver-script

Interface CrackCommand

interface CrackCommand {
    AttackMode: CrackAttackMode;
    BackendDevices: number[];
    BackendIgnoreCUDA: boolean;
    BackendIgnoreHip: boolean;
    BackendIgnoreMetal: boolean;
    BackendIgnoreOpenCL: boolean;
    BackendInfo: boolean;
    BackendVectorWidth: number;
    Benchmark: boolean;
    BenchmarkAll: boolean;
    BitmapMax: number;
    BitmapMin: number;
    BrainClient: boolean;
    BrainClientFeatures: string;
    BrainHost: string;
    BrainPassword: string;
    BrainPort: number;
    BrainServer: boolean;
    BrainServerTimer: number;
    BrainSession: string;
    BrainSessionWhitelist: string;
    CPUAffinity: number[];
    CustomCharset1: string;
    CustomCharset2: string;
    CustomCharset3: string;
    CustomCharset4: string;
    DebugMode: number;
    DeprecatedCheckDisable: boolean;
    EncodingFrom: CrackEncoding;
    EncodingTo: CrackEncoding;
    Force: boolean;
    GenerateRules: number;
    GenerateRulesFuncSel: string;
    GenerateRulesFunMax: number;
    GenerateRulesFunMin: number;
    GenerateRulesSeed: number;
    Hashes: string[];
    HashInfo: boolean;
    HashType: HashType;
    HccapxMessagePair: number;
    HexCharset: boolean;
    HexSalt: boolean;
    HexWordlist: boolean;
    HookThreads: number;
    HwmonDisable: boolean;
    HwmonTempAbort: number;
    Identify: string;
    Increment: boolean;
    IncrementMax: number;
    IncrementMin: number;
    KeepGuessing: boolean;
    KernelAccel: number;
    KernelLoops: number;
    KernelThreads: number;
    KeyboardLayoutMapping: Buffer;
    Keyspace: boolean;
    Left: boolean;
    Limit: string;
    LogfileDisable: boolean;
    Loopback: boolean;
    MachineReadable: boolean;
    MarkovClassic: boolean;
    MarkovDisable: boolean;
    MarkovHcstat2: Buffer;
    MarkovInverse: boolean;
    MarkovThreshold: number;
    MultiplyAccelDisabled: boolean;
    NonceErrorCorrections: number;
    OpenCLDeviceTypes: number[];
    OptimizedKernelEnable: boolean;
    OutfileAutohexDisable: boolean;
    OutfileCheckTimer: number;
    OutfileFormat: CrackOutfileFormat[];
    Potfile: Buffer;
    PotfileDisable: boolean;
    ProgressOnly: boolean;
    Quiet: boolean;
    Remove: boolean;
    RemoveTimer: number;
    Restore: boolean;
    RestoreDisable: boolean;
    RestoreFile: Buffer;
    RulesFile: Buffer;
    Runtime: number;
    ScryptTMTO: number;
    SegmentSize: number;
    SelfTestDisable: boolean;
    Separator: string;
    Session: string;
    Show: boolean;
    Skip: string;
    SlowCandidates: boolean;
    SpeedOnly: boolean;
    SpinDamp: number;
    Status: boolean;
    StatusJSON: boolean;
    StatusTimer: number;
    StdinTimeoutAbort: number;
    Stdout: boolean;
    Username: boolean;
    WordlistAutohexDisable: boolean;
    WorkloadProfile: CrackWorkloadProfile;
}

Properties

AttackMode: CrackAttackMode
BackendDevices: number[]
BackendIgnoreCUDA: boolean

--example-hashes (66)

+
BackendIgnoreHip: boolean
BackendIgnoreMetal: boolean
BackendIgnoreOpenCL: boolean
BackendInfo: boolean
BackendVectorWidth: number
Benchmark: boolean

--truecrypt-keyfiles FILE (52) +--veracrypt-keyfiles FILE (53) +--veracrypt-pim-start PIM (54) +--veracrypt-pim-stop PIM (55)

+
BenchmarkAll: boolean
BitmapMax: number
BitmapMin: number
BrainClient: boolean
BrainClientFeatures: string
BrainHost: string
BrainPassword: string
BrainPort: number
BrainServer: boolean
BrainServerTimer: number
BrainSession: string
BrainSessionWhitelist: string
CPUAffinity: number[]
CustomCharset1: string
CustomCharset2: string
CustomCharset3: string
CustomCharset4: string
DebugMode: number
DeprecatedCheckDisable: boolean
EncodingFrom: CrackEncoding
EncodingTo: CrackEncoding
Force: boolean
GenerateRules: number
GenerateRulesFuncSel: string
GenerateRulesFunMax: number
GenerateRulesFunMin: number
GenerateRulesSeed: number
Hashes: string[]
HashInfo: boolean
HashType: HashType
HccapxMessagePair: number
HexCharset: boolean
HexSalt: boolean
HexWordlist: boolean
HookThreads: number
HwmonDisable: boolean
HwmonTempAbort: number
Identify: string
Increment: boolean
IncrementMax: number
IncrementMin: number
KeepGuessing: boolean
KernelAccel: number
KernelLoops: number
KernelThreads: number
KeyboardLayoutMapping: Buffer

--keyboard-layout-mapping FILE

+
Keyspace: boolean
Left: boolean
Limit: string
LogfileDisable: boolean

--debug-file FILE (45) +--induction-dir DIR (46) +--outfile-check-dir DIR (47)

+
Loopback: boolean
MachineReadable: boolean
MarkovClassic: boolean
MarkovDisable: boolean
MarkovHcstat2: Buffer

--markov-hcstat2 FILE

+
MarkovInverse: boolean
MarkovThreshold: number
MultiplyAccelDisabled: boolean
NonceErrorCorrections: number
OpenCLDeviceTypes: number[]
OptimizedKernelEnable: boolean
OutfileAutohexDisable: boolean
OutfileCheckTimer: number
OutfileFormat: CrackOutfileFormat[]

--outfile FILE (28)

+
Potfile: Buffer

--potfile-path FILE

+
PotfileDisable: boolean
ProgressOnly: boolean
Quiet: boolean

--version +--help

+
Remove: boolean
RemoveTimer: number
Restore: boolean
RestoreDisable: boolean
RestoreFile: Buffer

--restore-file-path FILE

+
RulesFile: Buffer

--rule-left (88) +--rule-right (89)

+
Runtime: number
ScryptTMTO: number
SegmentSize: number
SelfTestDisable: boolean
Separator: string

single char

+
Session: string

[a-zA-Z0-9_-]

+
Show: boolean
Skip: string
SlowCandidates: boolean
SpeedOnly: boolean
SpinDamp: number
Status: boolean
StatusJSON: boolean
StatusTimer: number
StdinTimeoutAbort: number
Stdout: boolean
Username: boolean
WordlistAutohexDisable: boolean
WorkloadProfile: CrackWorkloadProfile
diff --git a/docs/interfaces/clientpb.CrackConfig.html b/docs/interfaces/clientpb.CrackConfig.html new file mode 100644 index 0000000..0c4040e --- /dev/null +++ b/docs/interfaces/clientpb.CrackConfig.html @@ -0,0 +1,5 @@ +CrackConfig | sliver-script
interface CrackConfig {
    AutoFire: boolean;
    ChunkSize: string;
    MaxDiskUsage: string;
    MaxFileSize: string;
}

Properties

AutoFire: boolean
ChunkSize: string
MaxDiskUsage: string
MaxFileSize: string
diff --git a/docs/interfaces/clientpb.CrackFile.html b/docs/interfaces/clientpb.CrackFile.html new file mode 100644 index 0000000..e233715 --- /dev/null +++ b/docs/interfaces/clientpb.CrackFile.html @@ -0,0 +1,12 @@ +CrackFile | sliver-script
interface CrackFile {
    Chunks: clientpb.CrackFileChunk[];
    ChunkSize: string;
    CreatedAt: string;
    ID: string;
    IsCompressed: boolean;
    LastModified: string;
    MaxFileSize: string;
    Name: string;
    Sha2256: string;
    Type: CrackFileType;
    UncompressedSize: string;
}

Properties

ChunkSize: string
CreatedAt: string
ID: string
IsCompressed: boolean
LastModified: string
MaxFileSize: string
Name: string
Sha2256: string
UncompressedSize: string
diff --git a/docs/interfaces/clientpb.CrackFileChunk.html b/docs/interfaces/clientpb.CrackFileChunk.html new file mode 100644 index 0000000..c4cdc08 --- /dev/null +++ b/docs/interfaces/clientpb.CrackFileChunk.html @@ -0,0 +1,5 @@ +CrackFileChunk | sliver-script

Interface CrackFileChunk

interface CrackFileChunk {
    CrackFileID: string;
    Data: Buffer;
    ID: string;
    N: number;
}

Properties

Properties

CrackFileID: string
Data: Buffer
ID: string
N: number
diff --git a/docs/interfaces/clientpb.CrackFiles.html b/docs/interfaces/clientpb.CrackFiles.html new file mode 100644 index 0000000..14997fe --- /dev/null +++ b/docs/interfaces/clientpb.CrackFiles.html @@ -0,0 +1,4 @@ +CrackFiles | sliver-script
interface CrackFiles {
    CurrentDiskUsage: string;
    Files: clientpb.CrackFile[];
    MaxDiskUsage: string;
}

Properties

CurrentDiskUsage: string
MaxDiskUsage: string
diff --git a/docs/interfaces/clientpb.CrackJob.html b/docs/interfaces/clientpb.CrackJob.html new file mode 100644 index 0000000..6714c91 --- /dev/null +++ b/docs/interfaces/clientpb.CrackJob.html @@ -0,0 +1,8 @@ +CrackJob | sliver-script
interface CrackJob {
    Command?: clientpb.CrackCommand;
    CompletedAt: string;
    CreatedAt: string;
    Err: string;
    ID: string;
    ResultFileID: string;
    Status: CrackJobStatus;
}

Properties

CompletedAt: string
CreatedAt: string
Err: string
ID: string
ResultFileID: string
diff --git a/docs/interfaces/clientpb.CrackResponse.html b/docs/interfaces/clientpb.CrackResponse.html new file mode 100644 index 0000000..73f2ef6 --- /dev/null +++ b/docs/interfaces/clientpb.CrackResponse.html @@ -0,0 +1,2 @@ +CrackResponse | sliver-script

Interface CrackResponse

interface CrackResponse {
    Job?: clientpb.CrackJob;
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.CrackSyncStatus.html b/docs/interfaces/clientpb.CrackSyncStatus.html new file mode 100644 index 0000000..29290d6 --- /dev/null +++ b/docs/interfaces/clientpb.CrackSyncStatus.html @@ -0,0 +1,3 @@ +CrackSyncStatus | sliver-script

Interface CrackSyncStatus

interface CrackSyncStatus {
    Progress: { [key: string]: number };
    Speed: number;
}

Properties

Properties

Progress: { [key: string]: number }
Speed: number
diff --git a/docs/interfaces/clientpb.CrackSyncStatus_ProgressEntry.html b/docs/interfaces/clientpb.CrackSyncStatus_ProgressEntry.html new file mode 100644 index 0000000..b8b9551 --- /dev/null +++ b/docs/interfaces/clientpb.CrackSyncStatus_ProgressEntry.html @@ -0,0 +1,3 @@ +CrackSyncStatus_ProgressEntry | sliver-script

Interface CrackSyncStatus_ProgressEntry

interface CrackSyncStatus_ProgressEntry {
    key: string;
    value: number;
}

Properties

Properties

key: string
value: number
diff --git a/docs/interfaces/clientpb.CrackTask.html b/docs/interfaces/clientpb.CrackTask.html new file mode 100644 index 0000000..e32e3bc --- /dev/null +++ b/docs/interfaces/clientpb.CrackTask.html @@ -0,0 +1,9 @@ +CrackTask | sliver-script
interface CrackTask {
    Command?: clientpb.CrackCommand;
    CompletedAt: string;
    CreatedAt: string;
    Err: string;
    HostUUID: string;
    ID: string;
    StartedAt: string;
}

Properties

CompletedAt: string
CreatedAt: string
Err: string
HostUUID: string

CrackstationID

+
ID: string
StartedAt: string
diff --git a/docs/interfaces/clientpb.Crackstation.html b/docs/interfaces/clientpb.Crackstation.html new file mode 100644 index 0000000..79d31cc --- /dev/null +++ b/docs/interfaces/clientpb.Crackstation.html @@ -0,0 +1,15 @@ +Crackstation | sliver-script

Interface Crackstation

interface Crackstation {
    Benchmarks: { [key: number]: string };
    CUDA: clientpb.CUDABackendInfo[];
    GOARCH: string;
    GOOS: string;
    HashcatVersion: string;
    HostUUID: string;
    ID: string;
    Metal: clientpb.MetalBackendInfo[];
    Name: string;
    OpenCL: clientpb.OpenCLBackendInfo[];
    OperatorName: string;
    Version: string;
}

Properties

Benchmarks: { [key: number]: string }
GOARCH: string

The cracker's Arch

+
GOOS: string

The cracker's OS

+
HashcatVersion: string
HostUUID: string
ID: string
Name: string
OperatorName: string
Version: string
diff --git a/docs/interfaces/clientpb.CrackstationStatus.html b/docs/interfaces/clientpb.CrackstationStatus.html new file mode 100644 index 0000000..606b83d --- /dev/null +++ b/docs/interfaces/clientpb.CrackstationStatus.html @@ -0,0 +1,7 @@ +CrackstationStatus | sliver-script

Interface CrackstationStatus

interface CrackstationStatus {
    CurrentCrackJobID: string;
    HostUUID: string;
    IsSyncing: boolean;
    Name: string;
    State: States;
    Syncing?: clientpb.CrackSyncStatus;
}

Properties

CurrentCrackJobID: string
HostUUID: string
IsSyncing: boolean
Name: string
State: States
diff --git a/docs/interfaces/clientpb.Crackstation_BenchmarksEntry.html b/docs/interfaces/clientpb.Crackstation_BenchmarksEntry.html new file mode 100644 index 0000000..374188b --- /dev/null +++ b/docs/interfaces/clientpb.Crackstation_BenchmarksEntry.html @@ -0,0 +1,3 @@ +Crackstation_BenchmarksEntry | sliver-script

Interface Crackstation_BenchmarksEntry

interface Crackstation_BenchmarksEntry {
    key: number;
    value: string;
}

Properties

Properties

key: number
value: string
diff --git a/docs/interfaces/clientpb.Crackstations.html b/docs/interfaces/clientpb.Crackstations.html new file mode 100644 index 0000000..59a34e6 --- /dev/null +++ b/docs/interfaces/clientpb.Crackstations.html @@ -0,0 +1,3 @@ +Crackstations | sliver-script

Interface Crackstations

[ Crackstation ] ----------------------------------------

+
interface Crackstations {
    Crackstations: clientpb.Crackstation[];
}

Properties

Properties

Crackstations: clientpb.Crackstation[]
diff --git a/docs/interfaces/clientpb.CreateTunnel.html b/docs/interfaces/clientpb.CreateTunnel.html new file mode 100644 index 0000000..2839452 --- /dev/null +++ b/docs/interfaces/clientpb.CreateTunnel.html @@ -0,0 +1,3 @@ +CreateTunnel | sliver-script

Interface CreateTunnel

interface CreateTunnel {
    SessionID: number;
    TunnelID: string;
}

Properties

Properties

SessionID: number
TunnelID: string
diff --git a/docs/interfaces/clientpb.CreateTunnelReq.html b/docs/interfaces/clientpb.CreateTunnelReq.html new file mode 100644 index 0000000..ef951a3 --- /dev/null +++ b/docs/interfaces/clientpb.CreateTunnelReq.html @@ -0,0 +1,3 @@ +CreateTunnelReq | sliver-script

Interface CreateTunnelReq

[ Tunnels ] ----------------------------------------

+
interface CreateTunnelReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.Credential.html b/docs/interfaces/clientpb.Credential.html new file mode 100644 index 0000000..83568c2 --- /dev/null +++ b/docs/interfaces/clientpb.Credential.html @@ -0,0 +1,9 @@ +Credential | sliver-script
interface Credential {
    Collection: string;
    Hash: string;
    HashType: HashType;
    ID: string;
    IsCracked: boolean;
    OriginHostUUID: string;
    Plaintext: string;
    Username: string;
}

Properties

Collection: string
Hash: string
HashType: HashType
ID: string
IsCracked: boolean
OriginHostUUID: string
Plaintext: string
Username: string
diff --git a/docs/interfaces/clientpb.Credentials.html b/docs/interfaces/clientpb.Credentials.html new file mode 100644 index 0000000..4fb641b --- /dev/null +++ b/docs/interfaces/clientpb.Credentials.html @@ -0,0 +1,2 @@ +Credentials | sliver-script
interface Credentials {
    Credentials: clientpb.Credential[];
}

Properties

Properties

Credentials: clientpb.Credential[]
diff --git a/docs/interfaces/clientpb.CrossCompiler.html b/docs/interfaces/clientpb.CrossCompiler.html new file mode 100644 index 0000000..444317f --- /dev/null +++ b/docs/interfaces/clientpb.CrossCompiler.html @@ -0,0 +1,7 @@ +CrossCompiler | sliver-script

Interface CrossCompiler

interface CrossCompiler {
    CCPath: string;
    CXXPath: string;
    TargetGOARCH: string;
    TargetGOOS: string;
}

Properties

CCPath: string
CXXPath: string
TargetGOARCH: string

The server's Arch

+
TargetGOOS: string

The server's OS

+
diff --git a/docs/interfaces/clientpb.DNSCanary.html b/docs/interfaces/clientpb.DNSCanary.html new file mode 100644 index 0000000..c65ce2b --- /dev/null +++ b/docs/interfaces/clientpb.DNSCanary.html @@ -0,0 +1,9 @@ +DNSCanary | sliver-script

DNSCanary - Single canary and metadata

+
interface DNSCanary {
    Count: number;
    Domain: string;
    FirstTriggered: string;
    ID: string;
    ImplantName: string;
    LatestTrigger: string;
    Triggered: boolean;
}

Properties

Count: number
Domain: string
FirstTriggered: string
ID: string
ImplantName: string
LatestTrigger: string
Triggered: boolean
diff --git a/docs/interfaces/clientpb.DNSListenerReq.html b/docs/interfaces/clientpb.DNSListenerReq.html new file mode 100644 index 0000000..3024391 --- /dev/null +++ b/docs/interfaces/clientpb.DNSListenerReq.html @@ -0,0 +1,6 @@ +DNSListenerReq | sliver-script

Interface DNSListenerReq

interface DNSListenerReq {
    Canaries: boolean;
    Domains: string[];
    EnforceOTP: boolean;
    Host: string;
    Port: number;
}

Properties

Canaries: boolean
Domains: string[]
EnforceOTP: boolean
Host: string
Port: number
diff --git a/docs/interfaces/clientpb.DeleteReq.html b/docs/interfaces/clientpb.DeleteReq.html new file mode 100644 index 0000000..ee6ec7c --- /dev/null +++ b/docs/interfaces/clientpb.DeleteReq.html @@ -0,0 +1,2 @@ +DeleteReq | sliver-script
interface DeleteReq {
    Name: string;
}

Properties

Properties

Name: string
diff --git a/docs/interfaces/clientpb.DllHijack.html b/docs/interfaces/clientpb.DllHijack.html new file mode 100644 index 0000000..79ba4b0 --- /dev/null +++ b/docs/interfaces/clientpb.DllHijack.html @@ -0,0 +1,2 @@ +DllHijack | sliver-script
interface DllHijack {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/clientpb.DllHijackReq.html b/docs/interfaces/clientpb.DllHijackReq.html new file mode 100644 index 0000000..1dd2131 --- /dev/null +++ b/docs/interfaces/clientpb.DllHijackReq.html @@ -0,0 +1,9 @@ +DllHijackReq | sliver-script

Interface DllHijackReq

[ Dll Hijack ] ----------------------------------------

+
interface DllHijackReq {
    Name: string;
    ProfileName: string;
    ReferenceDLL: Buffer;
    ReferenceDLLPath: string;
    Request?: commonpb.Request;
    TargetDLL: Buffer;
    TargetLocation: string;
}

Properties

Name: string
ProfileName: string
ReferenceDLL: Buffer
ReferenceDLLPath: string
Request?: commonpb.Request
TargetDLL: Buffer
TargetLocation: string
diff --git a/docs/interfaces/clientpb.Event.html b/docs/interfaces/clientpb.Event.html new file mode 100644 index 0000000..f6ad954 --- /dev/null +++ b/docs/interfaces/clientpb.Event.html @@ -0,0 +1,8 @@ +Event | sliver-script
interface Event {
    Client?: clientpb.Client;
    Data: Buffer;
    Err: string;
    EventType: string;
    Job?: clientpb.Job;
    Session?: clientpb.Session;
}

Properties

Client?: clientpb.Client
Data: Buffer
Err: string

Can't trigger normal gRPC error

+
EventType: string
Session?: clientpb.Session
diff --git a/docs/interfaces/clientpb.ExtensionData.html b/docs/interfaces/clientpb.ExtensionData.html new file mode 100644 index 0000000..21a5851 --- /dev/null +++ b/docs/interfaces/clientpb.ExtensionData.html @@ -0,0 +1,2 @@ +ExtensionData | sliver-script

Interface ExtensionData

interface ExtensionData {
    Output: string;
}

Properties

Properties

Output: string
diff --git a/docs/interfaces/clientpb.ExternalGenerateReq.html b/docs/interfaces/clientpb.ExternalGenerateReq.html new file mode 100644 index 0000000..a3ea7bb --- /dev/null +++ b/docs/interfaces/clientpb.ExternalGenerateReq.html @@ -0,0 +1,4 @@ +ExternalGenerateReq | sliver-script

Interface ExternalGenerateReq

interface ExternalGenerateReq {
    BuilderName: string;
    Config?: clientpb.ImplantConfig;
    Name: string;
}

Properties

Properties

BuilderName: string
Name: string
diff --git a/docs/interfaces/clientpb.ExternalImplantBinary.html b/docs/interfaces/clientpb.ExternalImplantBinary.html new file mode 100644 index 0000000..6f75e22 --- /dev/null +++ b/docs/interfaces/clientpb.ExternalImplantBinary.html @@ -0,0 +1,4 @@ +ExternalImplantBinary | sliver-script

Interface ExternalImplantBinary

interface ExternalImplantBinary {
    File?: commonpb.File;
    ImplantBuildID: string;
    Name: string;
}

Properties

Properties

File?: commonpb.File
ImplantBuildID: string
Name: string
diff --git a/docs/interfaces/clientpb.ExternalImplantConfig.html b/docs/interfaces/clientpb.ExternalImplantConfig.html new file mode 100644 index 0000000..12a7dff --- /dev/null +++ b/docs/interfaces/clientpb.ExternalImplantConfig.html @@ -0,0 +1,5 @@ +ExternalImplantConfig | sliver-script

Interface ExternalImplantConfig

interface ExternalImplantConfig {
    Build?: clientpb.ImplantBuild;
    Config?: clientpb.ImplantConfig;
    encoders: { [key: string]: string };
    HTTPC2?: clientpb.HTTPC2Config;
}

Properties

encoders: { [key: string]: string }
diff --git a/docs/interfaces/clientpb.ExternalImplantConfig_EncodersEntry.html b/docs/interfaces/clientpb.ExternalImplantConfig_EncodersEntry.html new file mode 100644 index 0000000..5418dfe --- /dev/null +++ b/docs/interfaces/clientpb.ExternalImplantConfig_EncodersEntry.html @@ -0,0 +1,3 @@ +ExternalImplantConfig_EncodersEntry | sliver-script

Interface ExternalImplantConfig_EncodersEntry

interface ExternalImplantConfig_EncodersEntry {
    key: string;
    value: string;
}

Properties

Properties

key: string
value: string
diff --git a/docs/interfaces/clientpb.Generate.html b/docs/interfaces/clientpb.Generate.html new file mode 100644 index 0000000..3428cf9 --- /dev/null +++ b/docs/interfaces/clientpb.Generate.html @@ -0,0 +1,2 @@ +Generate | sliver-script
interface Generate {
    File?: commonpb.File;
}

Properties

Properties

File?: commonpb.File
diff --git a/docs/interfaces/clientpb.GenerateReq.html b/docs/interfaces/clientpb.GenerateReq.html new file mode 100644 index 0000000..8127887 --- /dev/null +++ b/docs/interfaces/clientpb.GenerateReq.html @@ -0,0 +1,3 @@ +GenerateReq | sliver-script
interface GenerateReq {
    Config?: clientpb.ImplantConfig;
    Name: string;
}

Properties

Properties

Name: string
diff --git a/docs/interfaces/clientpb.GenerateStageReq.html b/docs/interfaces/clientpb.GenerateStageReq.html new file mode 100644 index 0000000..6420053 --- /dev/null +++ b/docs/interfaces/clientpb.GenerateStageReq.html @@ -0,0 +1,9 @@ +GenerateStageReq | sliver-script

Interface GenerateStageReq

interface GenerateStageReq {
    AESEncryptIv: string;
    AESEncryptKey: string;
    Compress: string;
    CompressF: string;
    Name: string;
    PrependSize: boolean;
    Profile: string;
    RC4EncryptKey: string;
}

Properties

AESEncryptIv: string
AESEncryptKey: string
Compress: string
CompressF: string
Name: string
PrependSize: boolean
Profile: string
RC4EncryptKey: string
diff --git a/docs/interfaces/clientpb.GetSystemReq.html b/docs/interfaces/clientpb.GetSystemReq.html new file mode 100644 index 0000000..0f7bc71 --- /dev/null +++ b/docs/interfaces/clientpb.GetSystemReq.html @@ -0,0 +1,7 @@ +GetSystemReq | sliver-script

Interface GetSystemReq

GetSystemReq - Client request to the server which is translated into +InvokeSystemReq when sending to the implant.

+
interface GetSystemReq {
    Config?: clientpb.ImplantConfig;
    HostingProcess: string;
    Name: string;
    Request?: commonpb.Request;
}

Properties

HostingProcess: string
Name: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.HTTPC2Config.html b/docs/interfaces/clientpb.HTTPC2Config.html new file mode 100644 index 0000000..02ee584 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2Config.html @@ -0,0 +1,6 @@ +HTTPC2Config | sliver-script

Interface HTTPC2Config

interface HTTPC2Config {
    Created: string;
    ID: string;
    ImplantConfig?: clientpb.HTTPC2ImplantConfig;
    Name: string;
    ServerConfig?: clientpb.HTTPC2ServerConfig;
}

Properties

Created: string
ID: string
Name: string
diff --git a/docs/interfaces/clientpb.HTTPC2ConfigReq.html b/docs/interfaces/clientpb.HTTPC2ConfigReq.html new file mode 100644 index 0000000..d6c5f47 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2ConfigReq.html @@ -0,0 +1,3 @@ +HTTPC2ConfigReq | sliver-script

Interface HTTPC2ConfigReq

interface HTTPC2ConfigReq {
    C2Config?: clientpb.HTTPC2Config;
    overwrite: boolean;
}

Properties

Properties

overwrite: boolean
diff --git a/docs/interfaces/clientpb.HTTPC2Configs.html b/docs/interfaces/clientpb.HTTPC2Configs.html new file mode 100644 index 0000000..bb0a1e5 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2Configs.html @@ -0,0 +1,3 @@ +HTTPC2Configs | sliver-script

Interface HTTPC2Configs

[ HTTP C2 ] ----------------------------------------

+
interface HTTPC2Configs {
    configs: clientpb.HTTPC2Config[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.HTTPC2Cookie.html b/docs/interfaces/clientpb.HTTPC2Cookie.html new file mode 100644 index 0000000..030fcc0 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2Cookie.html @@ -0,0 +1,3 @@ +HTTPC2Cookie | sliver-script

Interface HTTPC2Cookie

interface HTTPC2Cookie {
    ID: string;
    Name: string;
}

Properties

ID +Name +

Properties

ID: string
Name: string
diff --git a/docs/interfaces/clientpb.HTTPC2Header.html b/docs/interfaces/clientpb.HTTPC2Header.html new file mode 100644 index 0000000..c3ce852 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2Header.html @@ -0,0 +1,6 @@ +HTTPC2Header | sliver-script

Interface HTTPC2Header

interface HTTPC2Header {
    ID: string;
    Method: string;
    Name: string;
    Probability: number;
    Value: string;
}

Properties

Properties

ID: string
Method: string
Name: string
Probability: number
Value: string
diff --git a/docs/interfaces/clientpb.HTTPC2ImplantConfig.html b/docs/interfaces/clientpb.HTTPC2ImplantConfig.html new file mode 100644 index 0000000..a3966c1 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2ImplantConfig.html @@ -0,0 +1,18 @@ +HTTPC2ImplantConfig | sliver-script

Interface HTTPC2ImplantConfig

interface HTTPC2ImplantConfig {
    ChromeBaseVersion: number;
    extensions: string[];
    ExtraURLParameters: clientpb.HTTPC2URLParameter[];
    Headers: clientpb.HTTPC2Header[];
    ID: string;
    MacOSVersion: string;
    MaxFileGen: number;
    MaxPathGen: number;
    MaxPathLength: number;
    MinFileGen: number;
    MinPathGen: number;
    MinPathLength: number;
    NonceMode: string;
    NonceQueryArgChars: string;
    NonceQueryLength: number;
    PathSegments: clientpb.HTTPC2PathSegment[];
    UserAgent: string;
}

Properties

ChromeBaseVersion: number
extensions: string[]
ExtraURLParameters: clientpb.HTTPC2URLParameter[]
ID: string
MacOSVersion: string
MaxFileGen: number
MaxPathGen: number
MaxPathLength: number
MinFileGen: number
MinPathGen: number
MinPathLength: number
NonceMode: string
NonceQueryArgChars: string
NonceQueryLength: number
PathSegments: clientpb.HTTPC2PathSegment[]
UserAgent: string
diff --git a/docs/interfaces/clientpb.HTTPC2PathSegment.html b/docs/interfaces/clientpb.HTTPC2PathSegment.html new file mode 100644 index 0000000..69a9c82 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2PathSegment.html @@ -0,0 +1,4 @@ +HTTPC2PathSegment | sliver-script

Interface HTTPC2PathSegment

interface HTTPC2PathSegment {
    ID: string;
    IsFile: boolean;
    Value: string;
}

Properties

Properties

ID: string
IsFile: boolean
Value: string
diff --git a/docs/interfaces/clientpb.HTTPC2ServerConfig.html b/docs/interfaces/clientpb.HTTPC2ServerConfig.html new file mode 100644 index 0000000..341ae6f --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2ServerConfig.html @@ -0,0 +1,5 @@ +HTTPC2ServerConfig | sliver-script

Interface HTTPC2ServerConfig

interface HTTPC2ServerConfig {
    Cookies: clientpb.HTTPC2Cookie[];
    Headers: clientpb.HTTPC2Header[];
    ID: string;
    RandomVersionHeaders: boolean;
}

Properties

ID: string
RandomVersionHeaders: boolean
diff --git a/docs/interfaces/clientpb.HTTPC2URLParameter.html b/docs/interfaces/clientpb.HTTPC2URLParameter.html new file mode 100644 index 0000000..381e2d8 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPC2URLParameter.html @@ -0,0 +1,6 @@ +HTTPC2URLParameter | sliver-script

Interface HTTPC2URLParameter

interface HTTPC2URLParameter {
    ID: string;
    Method: string;
    Name: string;
    Probability: number;
    Value: string;
}

Properties

Properties

ID: string
Method: string
Name: string
Probability: number
Value: string
diff --git a/docs/interfaces/clientpb.HTTPListenerReq.html b/docs/interfaces/clientpb.HTTPListenerReq.html new file mode 100644 index 0000000..f1aec18 --- /dev/null +++ b/docs/interfaces/clientpb.HTTPListenerReq.html @@ -0,0 +1,15 @@ +HTTPListenerReq | sliver-script

Interface HTTPListenerReq

interface HTTPListenerReq {
    ACME: boolean;
    Cert: Buffer;
    Domain: string;
    EnforceOTP: boolean;
    Host: string;
    Key: Buffer;
    LongPollJitter: string;
    LongPollTimeout: string;
    Port: number;
    RandomizeJARM: boolean;
    Secure: boolean;
    Website: string;
}

Properties

ACME: boolean
Cert: Buffer
Domain: string
EnforceOTP: boolean
Host: string
Key: Buffer
LongPollJitter: string
LongPollTimeout: string
Port: number
RandomizeJARM: boolean

Only valid with Secure = true

+
Secure: boolean

Enable HTTPS

+
Website: string
diff --git a/docs/interfaces/clientpb.Host.html b/docs/interfaces/clientpb.Host.html new file mode 100644 index 0000000..63aea93 --- /dev/null +++ b/docs/interfaces/clientpb.Host.html @@ -0,0 +1,9 @@ +Host | sliver-script
interface Host {
    ExtensionData: { [key: string]: clientpb.ExtensionData };
    FirstContact: string;
    Hostname: string;
    HostUUID: string;
    ID: string;
    IOCs: clientpb.IOC[];
    Locale: string;
    OSVersion: string;
}

Properties

ExtensionData: { [key: string]: clientpb.ExtensionData }
FirstContact: string
Hostname: string
HostUUID: string
ID: string
IOCs: clientpb.IOC[]
Locale: string
OSVersion: string
diff --git a/docs/interfaces/clientpb.Host_ExtensionDataEntry.html b/docs/interfaces/clientpb.Host_ExtensionDataEntry.html new file mode 100644 index 0000000..99fcbef --- /dev/null +++ b/docs/interfaces/clientpb.Host_ExtensionDataEntry.html @@ -0,0 +1,3 @@ +Host_ExtensionDataEntry | sliver-script

Interface Host_ExtensionDataEntry

interface Host_ExtensionDataEntry {
    key: string;
    value?: clientpb.ExtensionData;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.IOC.html b/docs/interfaces/clientpb.IOC.html new file mode 100644 index 0000000..42136c8 --- /dev/null +++ b/docs/interfaces/clientpb.IOC.html @@ -0,0 +1,5 @@ +IOC | sliver-script

[ Hosts ] ----------------------------------------

+
interface IOC {
    FileHash: string;
    ID: string;
    Path: string;
}

Properties

Properties

FileHash: string
ID: string
Path: string
diff --git a/docs/interfaces/clientpb.ImplantBuild.html b/docs/interfaces/clientpb.ImplantBuild.html new file mode 100644 index 0000000..33b0d6e --- /dev/null +++ b/docs/interfaces/clientpb.ImplantBuild.html @@ -0,0 +1,21 @@ +ImplantBuild | sliver-script

Interface ImplantBuild

interface ImplantBuild {
    AgeServerPublicKey: string;
    Burned: boolean;
    ID: string;
    ImplantConfigID: string;
    ImplantID: string;
    MD5: string;
    MinisignServerPublicKey: string;
    MtlsCACert: string;
    MtlsCert: string;
    MtlsKey: string;
    Name: string;
    PeerPrivateKey: string;
    PeerPublicKey: string;
    PeerPublicKeyDigest: string;
    PeerPublicKeySignature: string;
    SHA1: string;
    SHA256: string;
    Stage: boolean;
    WGImplantPrivKey: string;
    WGServerPubKey: string;
}

Properties

AgeServerPublicKey: string
Burned: boolean
ID: string
ImplantConfigID: string
ImplantID: string
MD5: string
MinisignServerPublicKey: string
MtlsCACert: string
MtlsCert: string
MtlsKey: string
Name: string
PeerPrivateKey: string
PeerPublicKey: string
PeerPublicKeyDigest: string
PeerPublicKeySignature: string
SHA1: string
SHA256: string
Stage: boolean
WGImplantPrivKey: string
WGServerPubKey: string
diff --git a/docs/interfaces/clientpb.ImplantBuilds.html b/docs/interfaces/clientpb.ImplantBuilds.html new file mode 100644 index 0000000..eb0dc9b --- /dev/null +++ b/docs/interfaces/clientpb.ImplantBuilds.html @@ -0,0 +1,5 @@ +ImplantBuilds | sliver-script

Interface ImplantBuilds

Configs of previously built implants

+
interface ImplantBuilds {
    Configs: { [key: string]: clientpb.ImplantConfig };
    ResourceIDs: { [key: string]: clientpb.ResourceID };
    staged: { [key: string]: boolean };
}

Properties

Properties

Configs: { [key: string]: clientpb.ImplantConfig }
ResourceIDs: { [key: string]: clientpb.ResourceID }
staged: { [key: string]: boolean }
diff --git a/docs/interfaces/clientpb.ImplantBuilds_ConfigsEntry.html b/docs/interfaces/clientpb.ImplantBuilds_ConfigsEntry.html new file mode 100644 index 0000000..04b5147 --- /dev/null +++ b/docs/interfaces/clientpb.ImplantBuilds_ConfigsEntry.html @@ -0,0 +1,3 @@ +ImplantBuilds_ConfigsEntry | sliver-script

Interface ImplantBuilds_ConfigsEntry

interface ImplantBuilds_ConfigsEntry {
    key: string;
    value?: clientpb.ImplantConfig;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.ImplantBuilds_ResourceIDsEntry.html b/docs/interfaces/clientpb.ImplantBuilds_ResourceIDsEntry.html new file mode 100644 index 0000000..a196dc5 --- /dev/null +++ b/docs/interfaces/clientpb.ImplantBuilds_ResourceIDsEntry.html @@ -0,0 +1,3 @@ +ImplantBuilds_ResourceIDsEntry | sliver-script

Interface ImplantBuilds_ResourceIDsEntry

interface ImplantBuilds_ResourceIDsEntry {
    key: string;
    value?: clientpb.ResourceID;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.ImplantBuilds_StagedEntry.html b/docs/interfaces/clientpb.ImplantBuilds_StagedEntry.html new file mode 100644 index 0000000..472be0b --- /dev/null +++ b/docs/interfaces/clientpb.ImplantBuilds_StagedEntry.html @@ -0,0 +1,3 @@ +ImplantBuilds_StagedEntry | sliver-script

Interface ImplantBuilds_StagedEntry

interface ImplantBuilds_StagedEntry {
    key: string;
    value: boolean;
}

Properties

Properties

key: string
value: boolean
diff --git a/docs/interfaces/clientpb.ImplantC2.html b/docs/interfaces/clientpb.ImplantC2.html new file mode 100644 index 0000000..a3422ae --- /dev/null +++ b/docs/interfaces/clientpb.ImplantC2.html @@ -0,0 +1,6 @@ +ImplantC2 | sliver-script
interface ImplantC2 {
    ID: string;
    Options: string;
    Priority: number;
    URL: string;
}

Properties

Properties

ID: string
Options: string

Protocol specific options

+
Priority: number
URL: string
diff --git a/docs/interfaces/clientpb.ImplantConfig.html b/docs/interfaces/clientpb.ImplantConfig.html new file mode 100644 index 0000000..404ce3d --- /dev/null +++ b/docs/interfaces/clientpb.ImplantConfig.html @@ -0,0 +1,52 @@ +ImplantConfig | sliver-script

Interface ImplantConfig

interface ImplantConfig {
    Assets: commonpb.File[];
    BeaconInterval: string;
    BeaconJitter: string;
    C2: clientpb.ImplantC2[];
    CanaryDomains: string[];
    ConnectionStrategy: string;
    Debug: boolean;
    DebugFile: string;
    Evasion: boolean;
    exports: string[];
    Extension: string;
    Format: OutputFormat;
    GOARCH: string;
    GOOS: string;
    GoPackage: string;
    HTTPC2ConfigName: string;
    ID: string;
    ImplantBuilds: clientpb.ImplantBuild[];
    ImplantProfileID: string;
    IncludeDNS: boolean;
    IncludeHTTP: boolean;
    IncludeMTLS: boolean;
    IncludeNamePipe: boolean;
    IncludeTCP: boolean;
    IncludeWG: boolean;
    IsBeacon: boolean;
    IsService: boolean;
    IsSharedLib: boolean;
    IsShellcode: boolean;
    LimitDatetime: string;
    LimitDomainJoined: boolean;
    LimitFileExists: string;
    LimitHostname: string;
    LimitLocale: string;
    LimitUsername: string;
    MaxConnectionErrors: number;
    NetGoEnabled: boolean;
    ObfuscateSymbols: boolean;
    PollTimeout: string;
    ReconnectInterval: string;
    RunAtLoad: boolean;
    SGNEnabled: boolean;
    ShellcodeConfig?: clientpb.ShellcodeConfig;
    ShellcodeEncoder: ShellcodeEncoder;
    TemplateName: string;
    TrafficEncoders: string[];
    TrafficEncodersEnabled: boolean;
    WGKeyExchangePort: number;
    WGPeerTunIP: string;
    WGTcpCommsPort: number;
}

Properties

Assets: commonpb.File[]
BeaconInterval: string
BeaconJitter: string

c2

+
CanaryDomains: string[]
ConnectionStrategy: string
Debug: boolean
DebugFile: string
Evasion: boolean
exports: string[]
Extension: string
Format: OutputFormat
GOARCH: string
GOOS: string
GoPackage: string
HTTPC2ConfigName: string
ID: string
ImplantBuilds: clientpb.ImplantBuild[]
ImplantProfileID: string
IncludeDNS: boolean
IncludeHTTP: boolean
IncludeMTLS: boolean
IncludeNamePipe: boolean
IncludeTCP: boolean
IncludeWG: boolean
IsBeacon: boolean
IsService: boolean
IsSharedLib: boolean
IsShellcode: boolean
LimitDatetime: string
LimitDomainJoined: boolean
LimitFileExists: string
LimitHostname: string
LimitLocale: string
LimitUsername: string
MaxConnectionErrors: number
NetGoEnabled: boolean
ObfuscateSymbols: boolean
PollTimeout: string
ReconnectInterval: string
RunAtLoad: boolean
SGNEnabled: boolean
ShellcodeConfig?: clientpb.ShellcodeConfig
ShellcodeEncoder: ShellcodeEncoder
TemplateName: string
TrafficEncoders: string[]
TrafficEncodersEnabled: boolean
WGKeyExchangePort: number
WGPeerTunIP: string
WGTcpCommsPort: number
diff --git a/docs/interfaces/clientpb.ImplantProfile.html b/docs/interfaces/clientpb.ImplantProfile.html new file mode 100644 index 0000000..4bb50a5 --- /dev/null +++ b/docs/interfaces/clientpb.ImplantProfile.html @@ -0,0 +1,4 @@ +ImplantProfile | sliver-script

Interface ImplantProfile

interface ImplantProfile {
    Config?: clientpb.ImplantConfig;
    ID: string;
    Name: string;
}

Properties

Properties

ID: string
Name: string
diff --git a/docs/interfaces/clientpb.ImplantProfiles.html b/docs/interfaces/clientpb.ImplantProfiles.html new file mode 100644 index 0000000..db3362b --- /dev/null +++ b/docs/interfaces/clientpb.ImplantProfiles.html @@ -0,0 +1,2 @@ +ImplantProfiles | sliver-script

Interface ImplantProfiles

interface ImplantProfiles {
    Profiles: clientpb.ImplantProfile[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.ImplantStageReq.html b/docs/interfaces/clientpb.ImplantStageReq.html new file mode 100644 index 0000000..57a4bc2 --- /dev/null +++ b/docs/interfaces/clientpb.ImplantStageReq.html @@ -0,0 +1,2 @@ +ImplantStageReq | sliver-script

Interface ImplantStageReq

interface ImplantStageReq {
    Build: string[];
}

Properties

Properties

Build: string[]
diff --git a/docs/interfaces/clientpb.Job.html b/docs/interfaces/clientpb.Job.html new file mode 100644 index 0000000..a159c15 --- /dev/null +++ b/docs/interfaces/clientpb.Job.html @@ -0,0 +1,8 @@ +Job | sliver-script
interface Job {
    Description: string;
    Domains: string[];
    ID: number;
    Name: string;
    Port: number;
    ProfileName: string;
    Protocol: string;
}

Properties

Description: string
Domains: string[]
ID: number
Name: string
Port: number
ProfileName: string
Protocol: string
diff --git a/docs/interfaces/clientpb.Jobs.html b/docs/interfaces/clientpb.Jobs.html new file mode 100644 index 0000000..1364c93 --- /dev/null +++ b/docs/interfaces/clientpb.Jobs.html @@ -0,0 +1,2 @@ +Jobs | sliver-script
interface Jobs {
    Active: clientpb.Job[];
}

Properties

Properties

Active: clientpb.Job[]
diff --git a/docs/interfaces/clientpb.KillJob.html b/docs/interfaces/clientpb.KillJob.html new file mode 100644 index 0000000..d9755a1 --- /dev/null +++ b/docs/interfaces/clientpb.KillJob.html @@ -0,0 +1,3 @@ +KillJob | sliver-script
interface KillJob {
    ID: number;
    Success: boolean;
}

Properties

Properties

ID: number
Success: boolean
diff --git a/docs/interfaces/clientpb.KillJobReq.html b/docs/interfaces/clientpb.KillJobReq.html new file mode 100644 index 0000000..41d0d30 --- /dev/null +++ b/docs/interfaces/clientpb.KillJobReq.html @@ -0,0 +1,2 @@ +KillJobReq | sliver-script
interface KillJobReq {
    ID: number;
}

Properties

ID +

Properties

ID: number
diff --git a/docs/interfaces/clientpb.ListenerJob.html b/docs/interfaces/clientpb.ListenerJob.html new file mode 100644 index 0000000..f7681ef --- /dev/null +++ b/docs/interfaces/clientpb.ListenerJob.html @@ -0,0 +1,11 @@ +ListenerJob | sliver-script

[ Listeners ] ----------------------------------------

+
interface ListenerJob {
    DNSConf?: clientpb.DNSListenerReq;
    HTTPConf?: clientpb.HTTPListenerReq;
    ID: string;
    JobID: number;
    MTLSConf?: clientpb.MTLSListenerReq;
    MultiConf?: clientpb.MultiplayerListenerReq;
    TCPConf?: clientpb.StagerListenerReq;
    Type: string;
    WGConf?: clientpb.WGListenerReq;
}

Properties

ID: string
JobID: number
Type: string
diff --git a/docs/interfaces/clientpb.Loot.html b/docs/interfaces/clientpb.Loot.html new file mode 100644 index 0000000..0b9f076 --- /dev/null +++ b/docs/interfaces/clientpb.Loot.html @@ -0,0 +1,7 @@ +Loot | sliver-script
interface Loot {
    File?: commonpb.File;
    FileType: FileType;
    ID: string;
    Name: string;
    OriginHostUUID: string;
    Size: string;
}

Properties

File?: commonpb.File
FileType: FileType
ID: string
Name: string
OriginHostUUID: string
Size: string
diff --git a/docs/interfaces/clientpb.MSFRemoteReq.html b/docs/interfaces/clientpb.MSFRemoteReq.html new file mode 100644 index 0000000..bedcd49 --- /dev/null +++ b/docs/interfaces/clientpb.MSFRemoteReq.html @@ -0,0 +1,8 @@ +MSFRemoteReq | sliver-script

Interface MSFRemoteReq

interface MSFRemoteReq {
    Encoder: string;
    Iterations: number;
    LHost: string;
    LPort: number;
    Payload: string;
    PID: number;
    Request?: commonpb.Request;
}

Properties

Encoder: string
Iterations: number
LHost: string
LPort: number
Payload: string
PID: number
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.MSFReq.html b/docs/interfaces/clientpb.MSFReq.html new file mode 100644 index 0000000..981762b --- /dev/null +++ b/docs/interfaces/clientpb.MSFReq.html @@ -0,0 +1,7 @@ +MSFReq | sliver-script
interface MSFReq {
    Encoder: string;
    Iterations: number;
    LHost: string;
    LPort: number;
    Payload: string;
    Request?: commonpb.Request;
}

Properties

Encoder: string
Iterations: number
LHost: string
LPort: number
Payload: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.MTLSListenerReq.html b/docs/interfaces/clientpb.MTLSListenerReq.html new file mode 100644 index 0000000..7e3216f --- /dev/null +++ b/docs/interfaces/clientpb.MTLSListenerReq.html @@ -0,0 +1,3 @@ +MTLSListenerReq | sliver-script

Interface MTLSListenerReq

interface MTLSListenerReq {
    Host: string;
    Port: number;
}

Properties

Properties

Host: string
Port: number
diff --git a/docs/interfaces/clientpb.MessageFns.html b/docs/interfaces/clientpb.MessageFns.html new file mode 100644 index 0000000..67f032d --- /dev/null +++ b/docs/interfaces/clientpb.MessageFns.html @@ -0,0 +1,7 @@ +MessageFns | sliver-script

Interface MessageFns<T>

interface MessageFns<T> {
    create(base?: clientpb.DeepPartial<T>): T;
    decode(
        input: Uint8Array<ArrayBufferLike> | BinaryReader,
        length?: number,
    ): T;
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    fromJSON(object: any): T;
    fromPartial(object: clientpb.DeepPartial<T>): T;
    toJSON(message: T): unknown;
}

Type Parameters

  • T

Methods

  • Parameters

    • input: Uint8Array<ArrayBufferLike> | BinaryReader
    • Optionallength: number

    Returns T

  • Parameters

    • message: T
    • Optionalwriter: BinaryWriter

    Returns BinaryWriter

diff --git a/docs/interfaces/clientpb.MetalBackendInfo.html b/docs/interfaces/clientpb.MetalBackendInfo.html new file mode 100644 index 0000000..8e59609 --- /dev/null +++ b/docs/interfaces/clientpb.MetalBackendInfo.html @@ -0,0 +1,11 @@ +MetalBackendInfo | sliver-script

Interface MetalBackendInfo

interface MetalBackendInfo {
    Clock: number;
    MemoryFree: string;
    MemoryTotal: string;
    MetalVersion: string;
    Name: string;
    Processors: number;
    Type: string;
    Vendor: string;
    VendorID: number;
    Version: string;
}

Properties

Clock: number
MemoryFree: string
MemoryTotal: string
MetalVersion: string
Name: string
Processors: number
Type: string
Vendor: string
VendorID: number
Version: string
diff --git a/docs/interfaces/clientpb.MigrateReq.html b/docs/interfaces/clientpb.MigrateReq.html new file mode 100644 index 0000000..3826547 --- /dev/null +++ b/docs/interfaces/clientpb.MigrateReq.html @@ -0,0 +1,9 @@ +MigrateReq | sliver-script

MigrateReq - Client request to the server which is translated into +InvokeMigrateReq when sending to the implant.

+
interface MigrateReq {
    Config?: clientpb.ImplantConfig;
    Encoder: ShellcodeEncoder;
    Name: string;
    Pid: number;
    ProcName: string;
    Request?: commonpb.Request;
}

Properties

Name: string
Pid: number
ProcName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.MonitoringProvider.html b/docs/interfaces/clientpb.MonitoringProvider.html new file mode 100644 index 0000000..4467bbd --- /dev/null +++ b/docs/interfaces/clientpb.MonitoringProvider.html @@ -0,0 +1,5 @@ +MonitoringProvider | sliver-script

Interface MonitoringProvider

interface MonitoringProvider {
    APIKey: string;
    APIPassword: string;
    ID: string;
    Type: string;
}

Properties

Properties

APIKey: string
APIPassword: string
ID: string
Type: string
diff --git a/docs/interfaces/clientpb.MonitoringProviders.html b/docs/interfaces/clientpb.MonitoringProviders.html new file mode 100644 index 0000000..9bde095 --- /dev/null +++ b/docs/interfaces/clientpb.MonitoringProviders.html @@ -0,0 +1,3 @@ +MonitoringProviders | sliver-script

Interface MonitoringProviders

watchtower

+
interface MonitoringProviders {
    providers: clientpb.MonitoringProvider[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.MultiplayerListenerReq.html b/docs/interfaces/clientpb.MultiplayerListenerReq.html new file mode 100644 index 0000000..87ba576 --- /dev/null +++ b/docs/interfaces/clientpb.MultiplayerListenerReq.html @@ -0,0 +1,3 @@ +MultiplayerListenerReq | sliver-script

Interface MultiplayerListenerReq

interface MultiplayerListenerReq {
    Host: string;
    Port: number;
}

Properties

Properties

Host: string
Port: number
diff --git a/docs/interfaces/clientpb.NamedPipes.html b/docs/interfaces/clientpb.NamedPipes.html new file mode 100644 index 0000000..afe30ea --- /dev/null +++ b/docs/interfaces/clientpb.NamedPipes.html @@ -0,0 +1,4 @@ +NamedPipes | sliver-script
interface NamedPipes {
    Err: string;
    Response?: commonpb.Response;
    Success: boolean;
}

Properties

Properties

Err: string
Response?: commonpb.Response
Success: boolean
diff --git a/docs/interfaces/clientpb.NamedPipesReq.html b/docs/interfaces/clientpb.NamedPipesReq.html new file mode 100644 index 0000000..4578b2f --- /dev/null +++ b/docs/interfaces/clientpb.NamedPipesReq.html @@ -0,0 +1,4 @@ +NamedPipesReq | sliver-script

Interface NamedPipesReq

Named Pipes Messages for pivoting

+
interface NamedPipesReq {
    PipeName: string;
    Request?: commonpb.Request;
}

Properties

Properties

PipeName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.OpenCLBackendInfo.html b/docs/interfaces/clientpb.OpenCLBackendInfo.html new file mode 100644 index 0000000..a011820 --- /dev/null +++ b/docs/interfaces/clientpb.OpenCLBackendInfo.html @@ -0,0 +1,12 @@ +OpenCLBackendInfo | sliver-script

Interface OpenCLBackendInfo

interface OpenCLBackendInfo {
    Clock: number;
    MemoryFree: string;
    MemoryTotal: string;
    Name: string;
    OpenCLDriverVersion: string;
    OpenCLVersion: string;
    Processors: number;
    Type: string;
    Vendor: string;
    VendorID: number;
    Version: string;
}

Properties

Clock: number
MemoryFree: string
MemoryTotal: string
Name: string
OpenCLDriverVersion: string
OpenCLVersion: string
Processors: number
Type: string
Vendor: string
VendorID: number
Version: string
diff --git a/docs/interfaces/clientpb.Operator.html b/docs/interfaces/clientpb.Operator.html new file mode 100644 index 0000000..72672a3 --- /dev/null +++ b/docs/interfaces/clientpb.Operator.html @@ -0,0 +1,3 @@ +Operator | sliver-script
interface Operator {
    Name: string;
    Online: boolean;
}

Properties

Properties

Name: string
Online: boolean
diff --git a/docs/interfaces/clientpb.Operators.html b/docs/interfaces/clientpb.Operators.html new file mode 100644 index 0000000..126ee46 --- /dev/null +++ b/docs/interfaces/clientpb.Operators.html @@ -0,0 +1,2 @@ +Operators | sliver-script
interface Operators {
    Operators: clientpb.Operator[];
}

Properties

Properties

Operators: clientpb.Operator[]
diff --git a/docs/interfaces/clientpb.PivotGraph.html b/docs/interfaces/clientpb.PivotGraph.html new file mode 100644 index 0000000..aee2a1a --- /dev/null +++ b/docs/interfaces/clientpb.PivotGraph.html @@ -0,0 +1,2 @@ +PivotGraph | sliver-script
interface PivotGraph {
    Children: clientpb.PivotGraphEntry[];
}

Properties

Properties

diff --git a/docs/interfaces/clientpb.PivotGraphEntry.html b/docs/interfaces/clientpb.PivotGraphEntry.html new file mode 100644 index 0000000..55014c5 --- /dev/null +++ b/docs/interfaces/clientpb.PivotGraphEntry.html @@ -0,0 +1,6 @@ +PivotGraphEntry | sliver-script

Interface PivotGraphEntry

[ Pivots ] ----------------------------------------

+
interface PivotGraphEntry {
    Children: clientpb.PivotGraphEntry[];
    Name: string;
    PeerID: string;
    Session?: clientpb.Session;
}

Properties

Properties

Name: string
PeerID: string
Session?: clientpb.Session
diff --git a/docs/interfaces/clientpb.RegenerateReq.html b/docs/interfaces/clientpb.RegenerateReq.html new file mode 100644 index 0000000..b17a4ea --- /dev/null +++ b/docs/interfaces/clientpb.RegenerateReq.html @@ -0,0 +1,2 @@ +RegenerateReq | sliver-script

Interface RegenerateReq

interface RegenerateReq {
    ImplantName: string;
}

Properties

Properties

ImplantName: string
diff --git a/docs/interfaces/clientpb.RenameReq.html b/docs/interfaces/clientpb.RenameReq.html new file mode 100644 index 0000000..91cf53b --- /dev/null +++ b/docs/interfaces/clientpb.RenameReq.html @@ -0,0 +1,4 @@ +RenameReq | sliver-script
interface RenameReq {
    BeaconID: string;
    Name: string;
    SessionID: string;
}

Properties

Properties

BeaconID: string
Name: string
SessionID: string
diff --git a/docs/interfaces/clientpb.ResourceID.html b/docs/interfaces/clientpb.ResourceID.html new file mode 100644 index 0000000..2418ac7 --- /dev/null +++ b/docs/interfaces/clientpb.ResourceID.html @@ -0,0 +1,6 @@ +ResourceID | sliver-script

resource IDs

+
interface ResourceID {
    ID: string;
    Name: string;
    Type: string;
    Value: string;
}

Properties

Properties

ID: string
Name: string
Type: string
Value: string
diff --git a/docs/interfaces/clientpb.RestartJobReq.html b/docs/interfaces/clientpb.RestartJobReq.html new file mode 100644 index 0000000..3787e53 --- /dev/null +++ b/docs/interfaces/clientpb.RestartJobReq.html @@ -0,0 +1,2 @@ +RestartJobReq | sliver-script

Interface RestartJobReq

interface RestartJobReq {
    JobIDs: number[];
}

Properties

Properties

JobIDs: number[]
diff --git a/docs/interfaces/clientpb.Session.html b/docs/interfaces/clientpb.Session.html new file mode 100644 index 0000000..79eebe0 --- /dev/null +++ b/docs/interfaces/clientpb.Session.html @@ -0,0 +1,29 @@ +Session | sliver-script
interface Session {
    ActiveC2: string;
    Arch: string;
    Burned: boolean;
    Evasion: boolean;
    Extensions: string[];
    Filename: string;
    FirstContact: string;
    GID: string;
    Hostname: string;
    ID: string;
    Integrity: string;
    IsDead: boolean;
    LastCheckin: string;
    Locale: string;
    Name: string;
    OS: string;
    PeerID: string;
    PID: number;
    ProxyURL: string;
    ReconnectInterval: string;
    RemoteAddress: string;
    Transport: string;
    UID: string;
    Username: string;
    UUID: string;
    Version: string;
}

Properties

ActiveC2: string
Arch: string
Burned: boolean
Evasion: boolean
Extensions: string[]
Filename: string

Argv[0]

+
FirstContact: string
GID: string
Hostname: string
ID: string
Integrity: string
IsDead: boolean
LastCheckin: string
Locale: string
Name: string
OS: string
PeerID: string

string ConfigID = 24;

+
PID: number
ProxyURL: string
ReconnectInterval: string
RemoteAddress: string
Transport: string
UID: string
Username: string
UUID: string
Version: string
diff --git a/docs/interfaces/clientpb.Sessions.html b/docs/interfaces/clientpb.Sessions.html new file mode 100644 index 0000000..b0dfee3 --- /dev/null +++ b/docs/interfaces/clientpb.Sessions.html @@ -0,0 +1,3 @@ +Sessions | sliver-script

[ commands ] ----------------------------------------

+
interface Sessions {
    Sessions: clientpb.Session[];
}

Properties

Properties

Sessions: clientpb.Session[]
diff --git a/docs/interfaces/clientpb.ShellcodeConfig.html b/docs/interfaces/clientpb.ShellcodeConfig.html new file mode 100644 index 0000000..066ec90 --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeConfig.html @@ -0,0 +1,20 @@ +ShellcodeConfig | sliver-script

Interface ShellcodeConfig

ShellcodeConfig - options used when generating shellcode output.

+

Note: Most fields map to Donut options for Windows shellcode generation. +On macOS (darwin/arm64), only Compress is currently used (beignet aPLib).

+
interface ShellcodeConfig {
    Bypass: number;
    Compress: number;
    Entropy: number;
    ExitOpt: number;
    Headers: number;
    OEP: number;
    Thread: boolean;
    Unicode: boolean;
}

Properties

Bypass: number

1=none, 2=abort on failure, 3=continue on failure (Windows/Donut only)

+
Compress: number

1=none, 2=aplib (Windows/Donut + macOS/beignet)

+
Entropy: number

1=none, 2=random names, 3=random names + symmetric encryption (Windows/Donut only)

+
ExitOpt: number

1=exit thread, 2=exit process, 3=block (Windows/Donut only)

+
Headers: number

1=overwrite headers, 2=keep headers (Windows/Donut only)

+
OEP: number

Override original entry point (0 = default) (Windows/Donut only)

+
Thread: boolean

Run unmanaged EXE entrypoint as a new thread (Windows/Donut only)

+
Unicode: boolean

Convert command line to Unicode for unmanaged DLL entrypoints (Windows/Donut only)

+
diff --git a/docs/interfaces/clientpb.ShellcodeEncode.html b/docs/interfaces/clientpb.ShellcodeEncode.html new file mode 100644 index 0000000..224d5eb --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncode.html @@ -0,0 +1,3 @@ +ShellcodeEncode | sliver-script

Interface ShellcodeEncode

interface ShellcodeEncode {
    Data: Buffer;
    Response?: commonpb.Response;
}

Properties

Properties

Data: Buffer
Response?: commonpb.Response
diff --git a/docs/interfaces/clientpb.ShellcodeEncodeReq.html b/docs/interfaces/clientpb.ShellcodeEncodeReq.html new file mode 100644 index 0000000..f303b0e --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncodeReq.html @@ -0,0 +1,7 @@ +ShellcodeEncodeReq | sliver-script

Interface ShellcodeEncodeReq

interface ShellcodeEncodeReq {
    Architecture: string;
    BadChars: Buffer;
    Data: Buffer;
    Encoder: ShellcodeEncoder;
    Iterations: number;
    Request?: commonpb.Request;
}

Properties

Architecture: string
BadChars: Buffer
Data: Buffer
Iterations: number
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.ShellcodeEncoderArchMap.html b/docs/interfaces/clientpb.ShellcodeEncoderArchMap.html new file mode 100644 index 0000000..6130872 --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncoderArchMap.html @@ -0,0 +1,3 @@ +ShellcodeEncoderArchMap | sliver-script

Interface ShellcodeEncoderArchMap

interface ShellcodeEncoderArchMap {
    Descriptions: { [key: string]: string };
    Encoders: { [key: string]: ShellcodeEncoder };
}

Properties

Properties

Descriptions: { [key: string]: string }
Encoders: { [key: string]: ShellcodeEncoder }
diff --git a/docs/interfaces/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry.html b/docs/interfaces/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry.html new file mode 100644 index 0000000..180fc43 --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry.html @@ -0,0 +1,3 @@ +ShellcodeEncoderArchMap_DescriptionsEntry | sliver-script

Interface ShellcodeEncoderArchMap_DescriptionsEntry

interface ShellcodeEncoderArchMap_DescriptionsEntry {
    key: string;
    value: string;
}

Properties

Properties

key: string
value: string
diff --git a/docs/interfaces/clientpb.ShellcodeEncoderArchMap_EncodersEntry.html b/docs/interfaces/clientpb.ShellcodeEncoderArchMap_EncodersEntry.html new file mode 100644 index 0000000..4510a16 --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncoderArchMap_EncodersEntry.html @@ -0,0 +1,3 @@ +ShellcodeEncoderArchMap_EncodersEntry | sliver-script

Interface ShellcodeEncoderArchMap_EncodersEntry

interface ShellcodeEncoderArchMap_EncodersEntry {
    key: string;
    value: ShellcodeEncoder;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.ShellcodeEncoderMap.html b/docs/interfaces/clientpb.ShellcodeEncoderMap.html new file mode 100644 index 0000000..b58d16b --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncoderMap.html @@ -0,0 +1,2 @@ +ShellcodeEncoderMap | sliver-script

Interface ShellcodeEncoderMap

interface ShellcodeEncoderMap {
    Encoders: { [key: string]: clientpb.ShellcodeEncoderArchMap };
}

Properties

Properties

Encoders: { [key: string]: clientpb.ShellcodeEncoderArchMap }
diff --git a/docs/interfaces/clientpb.ShellcodeEncoderMap_EncodersEntry.html b/docs/interfaces/clientpb.ShellcodeEncoderMap_EncodersEntry.html new file mode 100644 index 0000000..67e32f4 --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeEncoderMap_EncodersEntry.html @@ -0,0 +1,3 @@ +ShellcodeEncoderMap_EncodersEntry | sliver-script

Interface ShellcodeEncoderMap_EncodersEntry

interface ShellcodeEncoderMap_EncodersEntry {
    key: string;
    value?: clientpb.ShellcodeEncoderArchMap;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.ShellcodeRDI.html b/docs/interfaces/clientpb.ShellcodeRDI.html new file mode 100644 index 0000000..fcb4fad --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeRDI.html @@ -0,0 +1,2 @@ +ShellcodeRDI | sliver-script

Interface ShellcodeRDI

interface ShellcodeRDI {
    Data: Buffer;
}

Properties

Properties

Data: Buffer
diff --git a/docs/interfaces/clientpb.ShellcodeRDIReq.html b/docs/interfaces/clientpb.ShellcodeRDIReq.html new file mode 100644 index 0000000..af1ee2f --- /dev/null +++ b/docs/interfaces/clientpb.ShellcodeRDIReq.html @@ -0,0 +1,4 @@ +ShellcodeRDIReq | sliver-script

Interface ShellcodeRDIReq

interface ShellcodeRDIReq {
    Arguments: string;
    Data: Buffer;
    FunctionName: string;
}

Properties

Arguments: string
Data: Buffer
FunctionName: string
diff --git a/docs/interfaces/clientpb.StagerListener.html b/docs/interfaces/clientpb.StagerListener.html new file mode 100644 index 0000000..15221ed --- /dev/null +++ b/docs/interfaces/clientpb.StagerListener.html @@ -0,0 +1,2 @@ +StagerListener | sliver-script

Interface StagerListener

interface StagerListener {
    JobID: number;
}

Properties

Properties

JobID: number
diff --git a/docs/interfaces/clientpb.StagerListenerReq.html b/docs/interfaces/clientpb.StagerListenerReq.html new file mode 100644 index 0000000..3806644 --- /dev/null +++ b/docs/interfaces/clientpb.StagerListenerReq.html @@ -0,0 +1,6 @@ +StagerListenerReq | sliver-script

Interface StagerListenerReq

interface StagerListenerReq {
    Data: Buffer;
    Host: string;
    Port: number;
    ProfileName: string;
    Protocol: StageProtocol;
}

Properties

Data: Buffer
Host: string
Port: number
ProfileName: string
Protocol: StageProtocol
diff --git a/docs/interfaces/clientpb.TCPPivot.html b/docs/interfaces/clientpb.TCPPivot.html new file mode 100644 index 0000000..4e4a673 --- /dev/null +++ b/docs/interfaces/clientpb.TCPPivot.html @@ -0,0 +1,4 @@ +TCPPivot | sliver-script
interface TCPPivot {
    Err: string;
    Response?: commonpb.Response;
    Success: boolean;
}

Properties

Properties

Err: string
Response?: commonpb.Response
Success: boolean
diff --git a/docs/interfaces/clientpb.TCPPivotReq.html b/docs/interfaces/clientpb.TCPPivotReq.html new file mode 100644 index 0000000..eb4d795 --- /dev/null +++ b/docs/interfaces/clientpb.TCPPivotReq.html @@ -0,0 +1,4 @@ +TCPPivotReq | sliver-script

TCP Messages for pivoting

+
interface TCPPivotReq {
    Address: string;
    Request?: commonpb.Request;
}

Properties

Properties

Address: string
Request?: commonpb.Request
diff --git a/docs/interfaces/clientpb.TrafficEncoder.html b/docs/interfaces/clientpb.TrafficEncoder.html new file mode 100644 index 0000000..a1c4966 --- /dev/null +++ b/docs/interfaces/clientpb.TrafficEncoder.html @@ -0,0 +1,5 @@ +TrafficEncoder | sliver-script

Interface TrafficEncoder

interface TrafficEncoder {
    ID: string;
    SkipTests: boolean;
    TestID: string;
    Wasm?: commonpb.File;
}

Properties

Properties

ID: string
SkipTests: boolean
TestID: string
Wasm?: commonpb.File
diff --git a/docs/interfaces/clientpb.TrafficEncoderMap.html b/docs/interfaces/clientpb.TrafficEncoderMap.html new file mode 100644 index 0000000..603b7cd --- /dev/null +++ b/docs/interfaces/clientpb.TrafficEncoderMap.html @@ -0,0 +1,3 @@ +TrafficEncoderMap | sliver-script

Interface TrafficEncoderMap

interface TrafficEncoderMap {
    Encoders: { [key: string]: clientpb.TrafficEncoder };
}

Properties

Properties

Encoders: { [key: string]: clientpb.TrafficEncoder }

File Name -> TrafficEncoder

+
diff --git a/docs/interfaces/clientpb.TrafficEncoderMap_EncodersEntry.html b/docs/interfaces/clientpb.TrafficEncoderMap_EncodersEntry.html new file mode 100644 index 0000000..ee8a590 --- /dev/null +++ b/docs/interfaces/clientpb.TrafficEncoderMap_EncodersEntry.html @@ -0,0 +1,3 @@ +TrafficEncoderMap_EncodersEntry | sliver-script

Interface TrafficEncoderMap_EncodersEntry

interface TrafficEncoderMap_EncodersEntry {
    key: string;
    value?: clientpb.TrafficEncoder;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.TrafficEncoderTest.html b/docs/interfaces/clientpb.TrafficEncoderTest.html new file mode 100644 index 0000000..a0fe960 --- /dev/null +++ b/docs/interfaces/clientpb.TrafficEncoderTest.html @@ -0,0 +1,8 @@ +TrafficEncoderTest | sliver-script

Interface TrafficEncoderTest

interface TrafficEncoderTest {
    Completed: boolean;
    Duration: string;
    Err: string;
    Name: string;
    Sample: Buffer;
    Success: boolean;
}

Properties

Completed: boolean
Duration: string
Err: string
Name: string
Sample: Buffer

Only used on failed tests

+
Success: boolean
diff --git a/docs/interfaces/clientpb.TrafficEncoderTests.html b/docs/interfaces/clientpb.TrafficEncoderTests.html new file mode 100644 index 0000000..2d656ae --- /dev/null +++ b/docs/interfaces/clientpb.TrafficEncoderTests.html @@ -0,0 +1,5 @@ +TrafficEncoderTests | sliver-script

Interface TrafficEncoderTests

interface TrafficEncoderTests {
    Encoder?: clientpb.TrafficEncoder;
    Tests: clientpb.TrafficEncoderTest[];
    TotalDuration: string;
    TotalTests: number;
}

Properties

TotalDuration: string
TotalTests: number
diff --git a/docs/interfaces/clientpb.UniqueWGIP.html b/docs/interfaces/clientpb.UniqueWGIP.html new file mode 100644 index 0000000..8e41cfe --- /dev/null +++ b/docs/interfaces/clientpb.UniqueWGIP.html @@ -0,0 +1,3 @@ +UniqueWGIP | sliver-script

UniqueWGIP - Unique wireguard IP

+
interface UniqueWGIP {
    IP: string;
}

Properties

IP +

Properties

IP: string
diff --git a/docs/interfaces/clientpb.Version.html b/docs/interfaces/clientpb.Version.html new file mode 100644 index 0000000..bc5dba6 --- /dev/null +++ b/docs/interfaces/clientpb.Version.html @@ -0,0 +1,9 @@ +Version | sliver-script
interface Version {
    Arch: string;
    Commit: string;
    CompiledAt: string;
    Dirty: boolean;
    Major: number;
    Minor: number;
    OS: string;
    Patch: number;
}

Properties

Arch: string
Commit: string
CompiledAt: string
Dirty: boolean
Major: number
Minor: number
OS: string
Patch: number
diff --git a/docs/interfaces/clientpb.WGClientConfig.html b/docs/interfaces/clientpb.WGClientConfig.html new file mode 100644 index 0000000..7777edc --- /dev/null +++ b/docs/interfaces/clientpb.WGClientConfig.html @@ -0,0 +1,5 @@ +WGClientConfig | sliver-script

Interface WGClientConfig

interface WGClientConfig {
    ClientIP: string;
    ClientPrivateKey: string;
    ClientPubKey: string;
    ServerPubKey: string;
}

Properties

ClientIP: string
ClientPrivateKey: string
ClientPubKey: string
ServerPubKey: string
diff --git a/docs/interfaces/clientpb.WGListenerReq.html b/docs/interfaces/clientpb.WGListenerReq.html new file mode 100644 index 0000000..fc72f41 --- /dev/null +++ b/docs/interfaces/clientpb.WGListenerReq.html @@ -0,0 +1,6 @@ +WGListenerReq | sliver-script

Interface WGListenerReq

interface WGListenerReq {
    Host: string;
    KeyPort: number;
    NPort: number;
    Port: number;
    TunIP: string;
}

Properties

Properties

Host: string
KeyPort: number
NPort: number
Port: number
TunIP: string
diff --git a/docs/interfaces/clientpb.WebContent.html b/docs/interfaces/clientpb.WebContent.html new file mode 100644 index 0000000..67fbf5c --- /dev/null +++ b/docs/interfaces/clientpb.WebContent.html @@ -0,0 +1,10 @@ +WebContent | sliver-script

[ Websites ] ----------------------------------------

+
interface WebContent {
    Content: Buffer;
    ContentType: string;
    ID: string;
    OriginalFile: string;
    Path: string;
    Sha256: string;
    Size: string;
    WebsiteID: string;
}

Properties

Content: Buffer
ContentType: string
ID: string
OriginalFile: string
Path: string
Sha256: string
Size: string
WebsiteID: string
diff --git a/docs/interfaces/clientpb.Website.html b/docs/interfaces/clientpb.Website.html new file mode 100644 index 0000000..8a86443 --- /dev/null +++ b/docs/interfaces/clientpb.Website.html @@ -0,0 +1,4 @@ +Website | sliver-script
interface Website {
    Contents: { [key: string]: clientpb.WebContent };
    ID: string;
    Name: string;
}

Properties

Properties

Contents: { [key: string]: clientpb.WebContent }
ID: string
Name: string
diff --git a/docs/interfaces/clientpb.WebsiteAddContent.html b/docs/interfaces/clientpb.WebsiteAddContent.html new file mode 100644 index 0000000..86e25ab --- /dev/null +++ b/docs/interfaces/clientpb.WebsiteAddContent.html @@ -0,0 +1,3 @@ +WebsiteAddContent | sliver-script

Interface WebsiteAddContent

interface WebsiteAddContent {
    Contents: { [key: string]: clientpb.WebContent };
    Name: string;
}

Properties

Properties

Contents: { [key: string]: clientpb.WebContent }
Name: string
diff --git a/docs/interfaces/clientpb.WebsiteAddContent_ContentsEntry.html b/docs/interfaces/clientpb.WebsiteAddContent_ContentsEntry.html new file mode 100644 index 0000000..04af416 --- /dev/null +++ b/docs/interfaces/clientpb.WebsiteAddContent_ContentsEntry.html @@ -0,0 +1,3 @@ +WebsiteAddContent_ContentsEntry | sliver-script

Interface WebsiteAddContent_ContentsEntry

interface WebsiteAddContent_ContentsEntry {
    key: string;
    value?: clientpb.WebContent;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.WebsiteRemoveContent.html b/docs/interfaces/clientpb.WebsiteRemoveContent.html new file mode 100644 index 0000000..918685b --- /dev/null +++ b/docs/interfaces/clientpb.WebsiteRemoveContent.html @@ -0,0 +1,3 @@ +WebsiteRemoveContent | sliver-script

Interface WebsiteRemoveContent

interface WebsiteRemoveContent {
    Name: string;
    Paths: string[];
}

Properties

Properties

Name: string
Paths: string[]
diff --git a/docs/interfaces/clientpb.Website_ContentsEntry.html b/docs/interfaces/clientpb.Website_ContentsEntry.html new file mode 100644 index 0000000..b7181fc --- /dev/null +++ b/docs/interfaces/clientpb.Website_ContentsEntry.html @@ -0,0 +1,3 @@ +Website_ContentsEntry | sliver-script

Interface Website_ContentsEntry

interface Website_ContentsEntry {
    key: string;
    value?: clientpb.WebContent;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/clientpb.Websites.html b/docs/interfaces/clientpb.Websites.html new file mode 100644 index 0000000..5f0caac --- /dev/null +++ b/docs/interfaces/clientpb.Websites.html @@ -0,0 +1,2 @@ +Websites | sliver-script
interface Websites {
    Websites: clientpb.Website[];
}

Properties

Properties

Websites: clientpb.Website[]
diff --git a/docs/interfaces/commonpb.Empty.html b/docs/interfaces/commonpb.Empty.html new file mode 100644 index 0000000..9147b8a --- /dev/null +++ b/docs/interfaces/commonpb.Empty.html @@ -0,0 +1 @@ +Empty | sliver-script
diff --git a/docs/interfaces/commonpb.EnvVar.html b/docs/interfaces/commonpb.EnvVar.html new file mode 100644 index 0000000..839bc50 --- /dev/null +++ b/docs/interfaces/commonpb.EnvVar.html @@ -0,0 +1,4 @@ +EnvVar | sliver-script

EnvVar - Environment variable K/V

+
interface EnvVar {
    Key: string;
    Value: string;
}

Properties

Properties

Key: string
Value: string
diff --git a/docs/interfaces/commonpb.File.html b/docs/interfaces/commonpb.File.html new file mode 100644 index 0000000..b8c8546 --- /dev/null +++ b/docs/interfaces/commonpb.File.html @@ -0,0 +1,4 @@ +File | sliver-script

File - A basic file data type

+
interface File {
    Data: Buffer;
    Name: string;
}

Properties

Properties

Data: Buffer
Name: string
diff --git a/docs/interfaces/commonpb.MessageFns.html b/docs/interfaces/commonpb.MessageFns.html new file mode 100644 index 0000000..a688962 --- /dev/null +++ b/docs/interfaces/commonpb.MessageFns.html @@ -0,0 +1,7 @@ +MessageFns | sliver-script

Interface MessageFns<T>

interface MessageFns<T> {
    create(base?: commonpb.DeepPartial<T>): T;
    decode(
        input: Uint8Array<ArrayBufferLike> | BinaryReader,
        length?: number,
    ): T;
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    fromJSON(object: any): T;
    fromPartial(object: commonpb.DeepPartial<T>): T;
    toJSON(message: T): unknown;
}

Type Parameters

  • T

Methods

  • Parameters

    • input: Uint8Array<ArrayBufferLike> | BinaryReader
    • Optionallength: number

    Returns T

  • Parameters

    • message: T
    • Optionalwriter: BinaryWriter

    Returns BinaryWriter

diff --git a/docs/interfaces/commonpb.Process.html b/docs/interfaces/commonpb.Process.html new file mode 100644 index 0000000..582fa56 --- /dev/null +++ b/docs/interfaces/commonpb.Process.html @@ -0,0 +1,9 @@ +Process | sliver-script

Process - A basic process data type

+
interface Process {
    Architecture: string;
    CmdLine: string[];
    Executable: string;
    Owner: string;
    Pid: number;
    Ppid: number;
    SessionID: number;
}

Properties

Architecture: string
CmdLine: string[]
Executable: string
Owner: string
Pid: number
Ppid: number
SessionID: number
diff --git a/docs/interfaces/commonpb.Request.html b/docs/interfaces/commonpb.Request.html new file mode 100644 index 0000000..460fa5d --- /dev/null +++ b/docs/interfaces/commonpb.Request.html @@ -0,0 +1,6 @@ +Request | sliver-script

Request - Common fields used in all gRPC requests

+
interface Request {
    Async: boolean;
    BeaconID: string;
    SessionID: string;
    Timeout: string;
}

Properties

Async: boolean
BeaconID: string
SessionID: string
Timeout: string
diff --git a/docs/interfaces/commonpb.Response.html b/docs/interfaces/commonpb.Response.html new file mode 100644 index 0000000..a5d4e31 --- /dev/null +++ b/docs/interfaces/commonpb.Response.html @@ -0,0 +1,8 @@ +Response | sliver-script

Response - Common fields used in all gRPC responses. Note that the Err field +only used when the implant needs to return an error to the server. +Client<->Server comms should use normal gRPC error handling.

+
interface Response {
    Async: boolean;
    BeaconID: string;
    Err: string;
    TaskID: string;
}

Properties

Properties

Async: boolean
BeaconID: string
Err: string
TaskID: string
diff --git a/docs/interfaces/dnspb.DNSMessage.html b/docs/interfaces/dnspb.DNSMessage.html new file mode 100644 index 0000000..9beea0a --- /dev/null +++ b/docs/interfaces/dnspb.DNSMessage.html @@ -0,0 +1,14 @@ +DNSMessage | sliver-script

Interface DNSMessage

NOTE: DNS is very space sensitive so certain fields are re-purposed +depending on the DNSMessageType.

+
interface DNSMessage {
    Data: Buffer;
    ID: number;
    Size: number;
    Start: number;
    Stop: number;
    Type: DNSMessageType;
}

Properties

Properties

Data: Buffer

Actual data

+
ID: number

8 bit message id + 24 bit dns session ID

+
Size: number

Total size

+
Start: number

Bytes start at

+
Stop: number

Bytes stop at

+
diff --git a/docs/interfaces/dnspb.MessageFns.html b/docs/interfaces/dnspb.MessageFns.html new file mode 100644 index 0000000..2c70396 --- /dev/null +++ b/docs/interfaces/dnspb.MessageFns.html @@ -0,0 +1,7 @@ +MessageFns | sliver-script

Interface MessageFns<T>

interface MessageFns<T> {
    create(base?: dnspb.DeepPartial<T>): T;
    decode(
        input: Uint8Array<ArrayBufferLike> | BinaryReader,
        length?: number,
    ): T;
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    fromJSON(object: any): T;
    fromPartial(object: dnspb.DeepPartial<T>): T;
    toJSON(message: T): unknown;
}

Type Parameters

  • T

Methods

  • Parameters

    • input: Uint8Array<ArrayBufferLike> | BinaryReader
    • Optionallength: number

    Returns T

  • Parameters

    • message: T
    • Optionalwriter: BinaryWriter

    Returns BinaryWriter

  • Parameters

    • object: any

    Returns T

  • Parameters

    • message: T

    Returns unknown

diff --git a/docs/interfaces/rpcpb.SliverRPCClient.html b/docs/interfaces/rpcpb.SliverRPCClient.html new file mode 100644 index 0000000..86b4b58 --- /dev/null +++ b/docs/interfaces/rpcpb.SliverRPCClient.html @@ -0,0 +1,299 @@ +SliverRPCClient | sliver-script

Interface SliverRPCClient<CallOptionsExt>

interface SliverRPCClient<CallOptionsExt = {}> {
    backdoor(
        request: {
            FilePath?: string;
            Name?: string;
            ProfileName?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Backdoor>;
    builderRegister(
        request: {
            CrossCompilers?: {
                CCPath?: string;
                CXXPath?: string;
                TargetGOARCH?: string;
                TargetGOOS?: string;
            }[];
            GOARCH?: string;
            GOOS?: string;
            Name?: string;
            OperatorName?: string;
            Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
            Templates?: string[];
        },
        options?: CallOptions & CallOptionsExt,
    ): AsyncIterable<clientpb.Event>;
    builders(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Builders>;
    builderTrigger(
        request: {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    callExtension(
        request: {
            Args?: Buffer<ArrayBufferLike>;
            Export?: string;
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServerStore?: boolean;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.CallExtension>;
    canaries(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Canaries>;
    cancelBeaconTask(
        request: {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.BeaconTask>;
    cd(
        request: {
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Pwd>;
    chmod(
        request: {
            FileMode?: string;
            Path?: string;
            Recursive?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Chmod>;
    chown(
        request: {
            Gid?: string;
            Path?: string;
            Recursive?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Uid?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Chown>;
    chtimes(
        request: {
            ATime?: string;
            MTime?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Chtimes>;
    clientLog(
        request: AsyncIterable<
            { Data?: Buffer<ArrayBufferLike>; Stream?: string },
        >,
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    closeSession(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    closeSocks(
        request: { SessionID?: string; TunnelID?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    closeTunnel(
        request: { SessionID?: string; TunnelID?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    cp(
        request: {
            Dst?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Src?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Cp>;
    crack(
        request: {
            AttackMode?: CrackAttackMode;
            BackendDevices?: number[];
            BackendIgnoreCUDA?: boolean;
            BackendIgnoreHip?: boolean;
            BackendIgnoreMetal?: boolean;
            BackendIgnoreOpenCL?: boolean;
            BackendInfo?: boolean;
            BackendVectorWidth?: number;
            Benchmark?: boolean;
            BenchmarkAll?: boolean;
            BitmapMax?: number;
            BitmapMin?: number;
            BrainClient?: boolean;
            BrainClientFeatures?: string;
            BrainHost?: string;
            BrainPassword?: string;
            BrainPort?: number;
            BrainServer?: boolean;
            BrainServerTimer?: number;
            BrainSession?: string;
            BrainSessionWhitelist?: string;
            CPUAffinity?: number[];
            CustomCharset1?: string;
            CustomCharset2?: string;
            CustomCharset3?: string;
            CustomCharset4?: string;
            DebugMode?: number;
            DeprecatedCheckDisable?: boolean;
            EncodingFrom?: CrackEncoding;
            EncodingTo?: CrackEncoding;
            Force?: boolean;
            GenerateRules?: number;
            GenerateRulesFuncSel?: string;
            GenerateRulesFunMax?: number;
            GenerateRulesFunMin?: number;
            GenerateRulesSeed?: number;
            Hashes?: string[];
            HashInfo?: boolean;
            HashType?: HashType;
            HccapxMessagePair?: number;
            HexCharset?: boolean;
            HexSalt?: boolean;
            HexWordlist?: boolean;
            HookThreads?: number;
            HwmonDisable?: boolean;
            HwmonTempAbort?: number;
            Identify?: string;
            Increment?: boolean;
            IncrementMax?: number;
            IncrementMin?: number;
            KeepGuessing?: boolean;
            KernelAccel?: number;
            KernelLoops?: number;
            KernelThreads?: number;
            KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
            Keyspace?: boolean;
            Left?: boolean;
            Limit?: string;
            LogfileDisable?: boolean;
            Loopback?: boolean;
            MachineReadable?: boolean;
            MarkovClassic?: boolean;
            MarkovDisable?: boolean;
            MarkovHcstat2?: Buffer<ArrayBufferLike>;
            MarkovInverse?: boolean;
            MarkovThreshold?: number;
            MultiplyAccelDisabled?: boolean;
            NonceErrorCorrections?: number;
            OpenCLDeviceTypes?: number[];
            OptimizedKernelEnable?: boolean;
            OutfileAutohexDisable?: boolean;
            OutfileCheckTimer?: number;
            OutfileFormat?: CrackOutfileFormat[];
            Potfile?: Buffer<ArrayBufferLike>;
            PotfileDisable?: boolean;
            ProgressOnly?: boolean;
            Quiet?: boolean;
            Remove?: boolean;
            RemoveTimer?: number;
            Restore?: boolean;
            RestoreDisable?: boolean;
            RestoreFile?: Buffer<ArrayBufferLike>;
            RulesFile?: Buffer<ArrayBufferLike>;
            Runtime?: number;
            ScryptTMTO?: number;
            SegmentSize?: number;
            SelfTestDisable?: boolean;
            Separator?: string;
            Session?: string;
            Show?: boolean;
            Skip?: string;
            SlowCandidates?: boolean;
            SpeedOnly?: boolean;
            SpinDamp?: number;
            Status?: boolean;
            StatusJSON?: boolean;
            StatusTimer?: number;
            StdinTimeoutAbort?: number;
            Stdout?: boolean;
            Username?: boolean;
            WordlistAutohexDisable?: boolean;
            WorkloadProfile?: CrackWorkloadProfile;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CrackResponse>;
    crackFileChunkDownload(
        request: {
            CrackFileID?: string;
            Data?: Buffer<ArrayBufferLike>;
            ID?: string;
            N?: number;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CrackFileChunk>;
    crackFileChunkUpload(
        request: {
            CrackFileID?: string;
            Data?: Buffer<ArrayBufferLike>;
            ID?: string;
            N?: number;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    crackFileComplete(
        request: {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    crackFileCreate(
        request: {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CrackFile>;
    crackFileDelete(
        request: {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    crackFilesList(
        request: {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CrackFiles>;
    crackstationBenchmark(
        request: {
            Benchmarks?: { [key: number]: undefined | string };
            HostUUID?: string;
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    crackstationRegister(
        request: {
            Benchmarks?: { [key: number]: undefined | string };
            CUDA?: {
                Clock?: number;
                CUDAVersion?: string;
                MemoryFree?: string;
                MemoryTotal?: string;
                Name?: string;
                Processors?: number;
                Type?: string;
                Vendor?: string;
                VendorID?: number;
                Version?: string;
            }[];
            GOARCH?: string;
            GOOS?: string;
            HashcatVersion?: string;
            HostUUID?: string;
            ID?: string;
            Metal?: {
                Clock?: number;
                MemoryFree?: string;
                MemoryTotal?: string;
                MetalVersion?: string;
                Name?: string;
                Processors?: number;
                Type?: string;
                Vendor?: string;
                VendorID?: number;
                Version?: string;
            }[];
            Name?: string;
            OpenCL?: {
                Clock?: number;
                MemoryFree?: string;
                MemoryTotal?: string;
                Name?: string;
                OpenCLDriverVersion?: string;
                OpenCLVersion?: string;
                Processors?: number;
                Type?: string;
                Vendor?: string;
                VendorID?: number;
                Version?: string;
            }[];
            OperatorName?: string;
            Version?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): AsyncIterable<clientpb.Event>;
    crackstations(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Crackstations>;
    crackstationTrigger(
        request: {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    crackTaskByID(
        request: {
            Command?: {
                AttackMode?: CrackAttackMode;
                BackendDevices?: number[];
                BackendIgnoreCUDA?: boolean;
                BackendIgnoreHip?: boolean;
                BackendIgnoreMetal?: boolean;
                BackendIgnoreOpenCL?: boolean;
                BackendInfo?: boolean;
                BackendVectorWidth?: number;
                Benchmark?: boolean;
                BenchmarkAll?: boolean;
                BitmapMax?: number;
                BitmapMin?: number;
                BrainClient?: boolean;
                BrainClientFeatures?: string;
                BrainHost?: string;
                BrainPassword?: string;
                BrainPort?: number;
                BrainServer?: boolean;
                BrainServerTimer?: number;
                BrainSession?: string;
                BrainSessionWhitelist?: string;
                CPUAffinity?: number[];
                CustomCharset1?: string;
                CustomCharset2?: string;
                CustomCharset3?: string;
                CustomCharset4?: string;
                DebugMode?: number;
                DeprecatedCheckDisable?: boolean;
                EncodingFrom?: CrackEncoding;
                EncodingTo?: CrackEncoding;
                Force?: boolean;
                GenerateRules?: number;
                GenerateRulesFuncSel?: string;
                GenerateRulesFunMax?: number;
                GenerateRulesFunMin?: number;
                GenerateRulesSeed?: number;
                Hashes?: string[];
                HashInfo?: boolean;
                HashType?: HashType;
                HccapxMessagePair?: number;
                HexCharset?: boolean;
                HexSalt?: boolean;
                HexWordlist?: boolean;
                HookThreads?: number;
                HwmonDisable?: boolean;
                HwmonTempAbort?: number;
                Identify?: string;
                Increment?: boolean;
                IncrementMax?: number;
                IncrementMin?: number;
                KeepGuessing?: boolean;
                KernelAccel?: number;
                KernelLoops?: number;
                KernelThreads?: number;
                KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                Keyspace?: boolean;
                Left?: boolean;
                Limit?: string;
                LogfileDisable?: boolean;
                Loopback?: boolean;
                MachineReadable?: boolean;
                MarkovClassic?: boolean;
                MarkovDisable?: boolean;
                MarkovHcstat2?: Buffer<ArrayBufferLike>;
                MarkovInverse?: boolean;
                MarkovThreshold?: number;
                MultiplyAccelDisabled?: boolean;
                NonceErrorCorrections?: number;
                OpenCLDeviceTypes?: number[];
                OptimizedKernelEnable?: boolean;
                OutfileAutohexDisable?: boolean;
                OutfileCheckTimer?: number;
                OutfileFormat?: CrackOutfileFormat[];
                Potfile?: Buffer<ArrayBufferLike>;
                PotfileDisable?: boolean;
                ProgressOnly?: boolean;
                Quiet?: boolean;
                Remove?: boolean;
                RemoveTimer?: number;
                Restore?: boolean;
                RestoreDisable?: boolean;
                RestoreFile?: Buffer<ArrayBufferLike>;
                RulesFile?: Buffer<ArrayBufferLike>;
                Runtime?: number;
                ScryptTMTO?: number;
                SegmentSize?: number;
                SelfTestDisable?: boolean;
                Separator?: string;
                Session?: string;
                Show?: boolean;
                Skip?: string;
                SlowCandidates?: boolean;
                SpeedOnly?: boolean;
                SpinDamp?: number;
                Status?: boolean;
                StatusJSON?: boolean;
                StatusTimer?: number;
                StdinTimeoutAbort?: number;
                Stdout?: boolean;
                Username?: boolean;
                WordlistAutohexDisable?: boolean;
                WorkloadProfile?: CrackWorkloadProfile;
            };
            CompletedAt?: string;
            CreatedAt?: string;
            Err?: string;
            HostUUID?: string;
            ID?: string;
            StartedAt?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CrackTask>;
    crackTaskUpdate(
        request: {
            Command?: {
                AttackMode?: CrackAttackMode;
                BackendDevices?: number[];
                BackendIgnoreCUDA?: boolean;
                BackendIgnoreHip?: boolean;
                BackendIgnoreMetal?: boolean;
                BackendIgnoreOpenCL?: boolean;
                BackendInfo?: boolean;
                BackendVectorWidth?: number;
                Benchmark?: boolean;
                BenchmarkAll?: boolean;
                BitmapMax?: number;
                BitmapMin?: number;
                BrainClient?: boolean;
                BrainClientFeatures?: string;
                BrainHost?: string;
                BrainPassword?: string;
                BrainPort?: number;
                BrainServer?: boolean;
                BrainServerTimer?: number;
                BrainSession?: string;
                BrainSessionWhitelist?: string;
                CPUAffinity?: number[];
                CustomCharset1?: string;
                CustomCharset2?: string;
                CustomCharset3?: string;
                CustomCharset4?: string;
                DebugMode?: number;
                DeprecatedCheckDisable?: boolean;
                EncodingFrom?: CrackEncoding;
                EncodingTo?: CrackEncoding;
                Force?: boolean;
                GenerateRules?: number;
                GenerateRulesFuncSel?: string;
                GenerateRulesFunMax?: number;
                GenerateRulesFunMin?: number;
                GenerateRulesSeed?: number;
                Hashes?: string[];
                HashInfo?: boolean;
                HashType?: HashType;
                HccapxMessagePair?: number;
                HexCharset?: boolean;
                HexSalt?: boolean;
                HexWordlist?: boolean;
                HookThreads?: number;
                HwmonDisable?: boolean;
                HwmonTempAbort?: number;
                Identify?: string;
                Increment?: boolean;
                IncrementMax?: number;
                IncrementMin?: number;
                KeepGuessing?: boolean;
                KernelAccel?: number;
                KernelLoops?: number;
                KernelThreads?: number;
                KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                Keyspace?: boolean;
                Left?: boolean;
                Limit?: string;
                LogfileDisable?: boolean;
                Loopback?: boolean;
                MachineReadable?: boolean;
                MarkovClassic?: boolean;
                MarkovDisable?: boolean;
                MarkovHcstat2?: Buffer<ArrayBufferLike>;
                MarkovInverse?: boolean;
                MarkovThreshold?: number;
                MultiplyAccelDisabled?: boolean;
                NonceErrorCorrections?: number;
                OpenCLDeviceTypes?: number[];
                OptimizedKernelEnable?: boolean;
                OutfileAutohexDisable?: boolean;
                OutfileCheckTimer?: number;
                OutfileFormat?: CrackOutfileFormat[];
                Potfile?: Buffer<ArrayBufferLike>;
                PotfileDisable?: boolean;
                ProgressOnly?: boolean;
                Quiet?: boolean;
                Remove?: boolean;
                RemoveTimer?: number;
                Restore?: boolean;
                RestoreDisable?: boolean;
                RestoreFile?: Buffer<ArrayBufferLike>;
                RulesFile?: Buffer<ArrayBufferLike>;
                Runtime?: number;
                ScryptTMTO?: number;
                SegmentSize?: number;
                SelfTestDisable?: boolean;
                Separator?: string;
                Session?: string;
                Show?: boolean;
                Skip?: string;
                SlowCandidates?: boolean;
                SpeedOnly?: boolean;
                SpinDamp?: number;
                Status?: boolean;
                StatusJSON?: boolean;
                StatusTimer?: number;
                StdinTimeoutAbort?: number;
                Stdout?: boolean;
                Username?: boolean;
                WordlistAutohexDisable?: boolean;
                WorkloadProfile?: CrackWorkloadProfile;
            };
            CompletedAt?: string;
            CreatedAt?: string;
            Err?: string;
            HostUUID?: string;
            ID?: string;
            StartedAt?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    createSocks(
        request: { SessionID?: string; TunnelID?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Socks>;
    createTunnel(
        request: { SessionID?: string; TunnelID?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Tunnel>;
    creds(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Credentials>;
    credsAdd(
        request: {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    credsRm(
        request: {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    credsSniffHashType(
        request: {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Credential>;
    credsUpdate(
        request: {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    currentTokenOwner(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.CurrentTokenOwner>;
    deleteImplantBuild(
        request: { Name?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    deleteImplantProfile(
        request: { Name?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    download(
        request: {
            MaxBytes?: string;
            MaxLines?: string;
            Path?: string;
            Recurse?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            RestrictedToFile?: boolean;
            Start?: string;
            Stop?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Download>;
    events(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): AsyncIterable<clientpb.Event>;
    execute(
        request: {
            Args?: string[];
            Background?: boolean;
            Env?: { [key: string]: undefined | string };
            EnvInheritance?: boolean;
            Output?: boolean;
            Path?: string;
            PPid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Stderr?: string;
            Stdout?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Execute>;
    executeAssembly(
        request: {
            AmsiBypass?: boolean;
            AppDomain?: string;
            Arch?: string;
            Arguments?: string[];
            Assembly?: Buffer<ArrayBufferLike>;
            ClassName?: string;
            EtwBypass?: boolean;
            InProcess?: boolean;
            IsDLL?: boolean;
            Method?: string;
            PPid?: number;
            Process?: string;
            ProcessArgs?: string[];
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Runtime?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ExecuteAssembly>;
    executeChildren(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ExecuteChildren>;
    executeWindows(
        request: {
            Args?: string[];
            Background?: boolean;
            HideWindow?: boolean;
            Output?: boolean;
            Path?: string;
            PPid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Stderr?: string;
            Stdout?: string;
            UseToken?: boolean;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Execute>;
    execWasmExtension(
        request: {
            Args?: string[];
            Interactive?: boolean;
            MemFS?: { [key: string]: undefined | Buffer<ArrayBufferLike> };
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            TunnelID?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ExecWasmExtension>;
    generate(
        request: {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Generate>;
    generateExternal(
        request: {
            BuilderName?: string;
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ExternalImplantConfig>;
    generateExternalGetBuildConfig(
        request: {
            AgeServerPublicKey?: string;
            Burned?: boolean;
            ID?: string;
            ImplantConfigID?: string;
            ImplantID?: string;
            MD5?: string;
            MinisignServerPublicKey?: string;
            MtlsCACert?: string;
            MtlsCert?: string;
            MtlsKey?: string;
            Name?: string;
            PeerPrivateKey?: string;
            PeerPublicKey?: string;
            PeerPublicKeyDigest?: string;
            PeerPublicKeySignature?: string;
            SHA1?: string;
            SHA256?: string;
            Stage?: boolean;
            WGImplantPrivKey?: string;
            WGServerPubKey?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ExternalImplantConfig>;
    generateExternalSaveBuild(
        request: {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            ImplantBuildID?: string;
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    generateStage(
        request: {
            AESEncryptIv?: string;
            AESEncryptKey?: string;
            Compress?: string;
            CompressF?: string;
            Name?: string;
            PrependSize?: boolean;
            Profile?: string;
            RC4EncryptKey?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Generate>;
    generateUniqueIP(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.UniqueWGIP>;
    generateWGClientConfig(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.WGClientConfig>;
    getBeacon(
        request: {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            Interval?: string;
            IsDead?: boolean;
            Jitter?: string;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            NextCheckin?: string;
            OS?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            TasksCount?: string;
            TasksCountCompleted?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Beacon>;
    getBeacons(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Beacons>;
    getBeaconTaskContent(
        request: {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.BeaconTask>;
    getBeaconTasks(
        request: {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            Interval?: string;
            IsDead?: boolean;
            Jitter?: string;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            NextCheckin?: string;
            OS?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            TasksCount?: string;
            TasksCountCompleted?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.BeaconTasks>;
    getCertificateAuthorityInfo(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CertificateAuthorityInfo>;
    getCertificateInfo(
        request: { CategoryFilters?: number; CN?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.CertificateInfo>;
    getCompiler(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Compiler>;
    getCredByID(
        request: {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Credential>;
    getCredsByHashType(
        request: {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Credentials>;
    getEnv(
        request: {
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.EnvInfo>;
    getHTTPC2ProfileByName(
        request: { Name?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.HTTPC2Config>;
    getHTTPC2Profiles(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.HTTPC2Configs>;
    getJobs(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Jobs>;
    getOperators(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Operators>;
    getPlaintextCredsByHashType(
        request: {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Credentials>;
    getPrivs(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.GetPrivs>;
    getRportFwdListeners(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RportFwdListeners>;
    getSessions(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Sessions>;
    getSystem(
        request: {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            HostingProcess?: string;
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.GetSystem>;
    getVersion(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Version>;
    grep(
        request: {
            LinesAfter?: number;
            LinesBefore?: number;
            Path?: string;
            Recursive?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            SearchPattern?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Grep>;
    hijackDLL(
        request: {
            Name?: string;
            ProfileName?: string;
            ReferenceDLL?: Buffer<ArrayBufferLike>;
            ReferenceDLLPath?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            TargetDLL?: Buffer<ArrayBufferLike>;
            TargetLocation?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.DllHijack>;
    host(
        request: {
            ExtensionData?: { [key: string]: undefined | { Output?: string } };
            FirstContact?: string;
            Hostname?: string;
            HostUUID?: string;
            ID?: string;
            IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
            Locale?: string;
            OSVersion?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Host>;
    hostIOCRm(
        request: { FileHash?: string; ID?: string; Path?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    hostRm(
        request: {
            ExtensionData?: { [key: string]: undefined | { Output?: string } };
            FirstContact?: string;
            Hostname?: string;
            HostUUID?: string;
            ID?: string;
            IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
            Locale?: string;
            OSVersion?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    hosts(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.AllHosts>;
    ifconfig(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Ifconfig>;
    impersonate(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Impersonate>;
    implantBuilds(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ImplantBuilds>;
    implantProfiles(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ImplantProfiles>;
    kill(
        request: {
            Force?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    killJob(
        request: { ID?: number },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.KillJob>;
    listExtensions(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ListExtensions>;
    listWasmExtensions(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ListWasmExtensions>;
    lootAdd(
        request: {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Loot>;
    lootAll(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.AllLoot>;
    lootContent(
        request: {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Loot>;
    lootRm(
        request: {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    lootUpdate(
        request: {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Loot>;
    ls(
        request: {
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Ls>;
    makeToken(
        request: {
            Domain?: string;
            LogonType?: number;
            Password?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.MakeToken>;
    memfilesAdd(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.MemfilesAdd>;
    memfilesList(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Ls>;
    memfilesRm(
        request: {
            Fd?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.MemfilesRm>;
    migrate(
        request: {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            Encoder?: ShellcodeEncoder;
            Name?: string;
            Pid?: number;
            ProcName?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Migrate>;
    mkdir(
        request: {
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Mkdir>;
    monitorAddConfig(
        request: {
            APIKey?: string;
            APIPassword?: string;
            ID?: string;
            Type?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Response>;
    monitorDelConfig(
        request: {
            APIKey?: string;
            APIPassword?: string;
            ID?: string;
            Type?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Response>;
    monitorListConfig(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.MonitoringProviders>;
    monitorStart(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Response>;
    monitorStop(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    mount(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Mount>;
    msf(
        request: {
            Encoder?: string;
            Iterations?: number;
            LHost?: string;
            LPort?: number;
            Payload?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Task>;
    msfRemote(
        request: {
            Encoder?: string;
            Iterations?: number;
            LHost?: string;
            LPort?: number;
            Payload?: string;
            PID?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Task>;
    mv(
        request: {
            Dst?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Src?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Mv>;
    netstat(
        request: {
            IP4?: boolean;
            IP6?: boolean;
            Listening?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            TCP?: boolean;
            UDP?: boolean;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Netstat>;
    openSession(
        request: {
            C2s?: string[];
            Delay?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.OpenSession>;
    ping(
        request: {
            Nonce?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Ping>;
    pivotGraph(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.PivotGraph>;
    pivotSessionListeners(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.PivotListeners>;
    pivotStartListener(
        request: {
            BindAddress?: string;
            Options?: boolean[];
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Type?: PivotType;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.PivotListener>;
    pivotStopListener(
        request: {
            ID?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    portfwd(
        request: {
            Host?: string;
            Port?: number;
            Protocol?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            TunnelID?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Portfwd>;
    processDump(
        request: {
            Pid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Timeout?: number;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ProcessDump>;
    ps(
        request: {
            FullInfo?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Ps>;
    pwd(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Pwd>;
    reconfigure(
        request: {
            BeaconInterval?: string;
            BeaconJitter?: string;
            ReconnectInterval?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Reconfigure>;
    regenerate(
        request: { ImplantName?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Generate>;
    registerExtension(
        request: {
            Data?: Buffer<ArrayBufferLike>;
            Init?: string;
            Name?: string;
            OS?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegisterExtension>;
    registerWasmExtension(
        request: {
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            WasmGz?: Buffer<ArrayBufferLike>;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegisterWasmExtension>;
    registryCreateKey(
        request: {
            Hive?: string;
            Hostname?: string;
            Key?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryCreateKey>;
    registryDeleteKey(
        request: {
            Hive?: string;
            Hostname?: string;
            Key?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryDeleteKey>;
    registryListSubKeys(
        request: {
            Hive?: string;
            Hostname?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistrySubKeyList>;
    registryListValues(
        request: {
            Hive?: string;
            Hostname?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryValuesList>;
    registryRead(
        request: {
            Hive?: string;
            Hostname?: string;
            Key?: string;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryRead>;
    registryReadHive(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            RequestedHive?: string;
            RootHive?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryReadHive>;
    registryWrite(
        request: {
            ByteValue?: Buffer<ArrayBufferLike>;
            DWordValue?: number;
            Hive?: string;
            Hostname?: string;
            Key?: string;
            Path?: string;
            QWordValue?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            StringValue?: string;
            Type?: number;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RegistryWrite>;
    removeService(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServiceInfo?: { Hostname?: string; ServiceName?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ServiceInfo>;
    rename(
        request: { BeaconID?: string; Name?: string; SessionID?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    restartJobs(
        request: { JobIDs?: number[] },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    revToSelf(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RevToSelf>;
    rm(
        request: {
            Force?: boolean;
            Path?: string;
            Recursive?: boolean;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Rm>;
    rmBeacon(
        request: {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            Interval?: string;
            IsDead?: boolean;
            Jitter?: string;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            NextCheckin?: string;
            OS?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            TasksCount?: string;
            TasksCountCompleted?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    runAs(
        request: {
            Args?: string;
            Domain?: string;
            HideWindow?: boolean;
            NetOnly?: boolean;
            Password?: string;
            ProcessName?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RunAs>;
    runSSHCommand(
        request: {
            Command?: string;
            Hostname?: string;
            Keytab?: Buffer<ArrayBufferLike>;
            Krb5Conf?: string;
            Password?: string;
            Port?: number;
            PrivKey?: Buffer<ArrayBufferLike>;
            Realm?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Username?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.SSHCommand>;
    saveHTTPC2Profile(
        request: {
            C2Config?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: string; Name?: string }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            };
            overwrite?: boolean;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    saveImplantProfile(
        request: {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            ID?: string;
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ImplantProfile>;
    screenshot(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Screenshot>;
    serviceDetail(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServiceInfo?: { Hostname?: string; ServiceName?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ServiceDetail>;
    services(
        request: {
            Hostname?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Services>;
    setEnv(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Variable?: { Key?: string; Value?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.SetEnv>;
    shell(
        request: {
            Cols?: number;
            EnablePTY?: boolean;
            Path?: string;
            Pid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Rows?: number;
            TunnelID?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Shell>;
    shellcodeEncoder(
        request: {
            Architecture?: string;
            BadChars?: Buffer<ArrayBufferLike>;
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: ShellcodeEncoder;
            Iterations?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ShellcodeEncode>;
    shellcodeEncoderMap(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ShellcodeEncoderMap>;
    shellcodeRDI(
        request: {
            Arguments?: string;
            Data?: Buffer<ArrayBufferLike>;
            FunctionName?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ShellcodeRDI>;
    shellResize(
        request: {
            Cols?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Rows?: number;
            TunnelID?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    sideload(
        request: {
            Args?: string[];
            Data?: Buffer<ArrayBufferLike>;
            EntryPoint?: string;
            isDLL?: boolean;
            isUnicode?: boolean;
            Kill?: boolean;
            PPid?: number;
            ProcessArgs?: string[];
            ProcessName?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Sideload>;
    socksProxy(
        request: AsyncIterable<
            {
                CloseConn?: boolean;
                Data?: Buffer<ArrayBufferLike>;
                Password?: string;
                Request?: {
                    Async?: boolean;
                    BeaconID?: string;
                    SessionID?: string;
                    Timeout?: string;
                };
                Sequence?: string;
                TunnelID?: string;
                Username?: string;
            },
        >,
        options?: CallOptions & CallOptionsExt,
    ): AsyncIterable<sliverpb.SocksData>;
    spawnDll(
        request: {
            Args?: string[];
            Data?: Buffer<ArrayBufferLike>;
            EntryPoint?: string;
            Kill?: boolean;
            PPid?: number;
            ProcessArgs?: string[];
            ProcessName?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.SpawnDll>;
    stageImplantBuild(
        request: { Build?: string[] },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    startDNSListener(
        request: {
            Canaries?: boolean;
            Domains?: string[];
            EnforceOTP?: boolean;
            Host?: string;
            Port?: number;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ListenerJob>;
    startHTTPListener(
        request: {
            ACME?: boolean;
            Cert?: Buffer<ArrayBufferLike>;
            Domain?: string;
            EnforceOTP?: boolean;
            Host?: string;
            Key?: Buffer<ArrayBufferLike>;
            LongPollJitter?: string;
            LongPollTimeout?: string;
            Port?: number;
            RandomizeJARM?: boolean;
            Secure?: boolean;
            Website?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ListenerJob>;
    startHTTPSListener(
        request: {
            ACME?: boolean;
            Cert?: Buffer<ArrayBufferLike>;
            Domain?: string;
            EnforceOTP?: boolean;
            Host?: string;
            Key?: Buffer<ArrayBufferLike>;
            LongPollJitter?: string;
            LongPollTimeout?: string;
            Port?: number;
            RandomizeJARM?: boolean;
            Secure?: boolean;
            Website?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ListenerJob>;
    startMTLSListener(
        request: { Host?: string; Port?: number },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ListenerJob>;
    startRportFwdListener(
        request: {
            BindAddress?: string;
            BindPort?: number;
            ForwardAddress?: string;
            ForwardPort?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RportFwdListener>;
    startService(
        request: {
            Arguments?: string;
            BinPath?: string;
            Hostname?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServiceDescription?: string;
            ServiceName?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ServiceInfo>;
    startServiceByName(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServiceInfo?: { Hostname?: string; ServiceName?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ServiceInfo>;
    startTCPStagerListener(
        request: {
            Data?: Buffer<ArrayBufferLike>;
            Host?: string;
            Port?: number;
            ProfileName?: string;
            Protocol?: StageProtocol;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.StagerListener>;
    startWGListener(
        request: {
            Host?: string;
            KeyPort?: number;
            NPort?: number;
            Port?: number;
            TunIP?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.ListenerJob>;
    stopRportFwdListener(
        request: {
            ID?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.RportFwdListener>;
    stopService(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            ServiceInfo?: { Hostname?: string; ServiceName?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.ServiceInfo>;
    task(
        request: {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            Pid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            RWXPages?: boolean;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Task>;
    terminate(
        request: {
            Force?: boolean;
            Pid?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Terminate>;
    trafficEncoderAdd(
        request: {
            ID?: string;
            SkipTests?: boolean;
            TestID?: string;
            Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.TrafficEncoderTests>;
    trafficEncoderMap(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.TrafficEncoderMap>;
    trafficEncoderRm(
        request: {
            ID?: string;
            SkipTests?: boolean;
            TestID?: string;
            Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    tunnelData(
        request: AsyncIterable<
            {
                Ack?: string;
                Closed?: boolean;
                CreateReverse?: boolean;
                Data?: Buffer<ArrayBufferLike>;
                Resend?: boolean;
                rportfwd?: {
                    Host?: string;
                    Port?: number;
                    Protocol?: number;
                    Response?: {
                        Async?: boolean;
                        BeaconID?: string;
                        Err?: string;
                        TaskID?: string;
                    };
                    TunnelID?: string;
                };
                Sequence?: string;
                SessionID?: string;
                TunnelID?: string;
            },
        >,
        options?: CallOptions & CallOptionsExt,
    ): AsyncIterable<sliverpb.TunnelData>;
    unsetEnv(
        request: {
            Name?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.UnsetEnv>;
    updateBeaconIntegrityInformation(
        request: { BeaconID?: string; Integrity?: string },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    upload(
        request: {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            FileName?: string;
            IsDirectory?: boolean;
            IsIOC?: boolean;
            Overwrite?: boolean;
            Path?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.Upload>;
    website(
        request: {
            Contents?: {
                [key: string]:
                    | undefined
                    | {
                        Content?: Buffer<ArrayBufferLike>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
            };
            ID?: string;
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Website>;
    websiteAddContent(
        request: {
            Contents?: {
                [key: string]:
                    | undefined
                    | {
                        Content?: Buffer<ArrayBufferLike>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
            };
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Website>;
    websiteRemove(
        request: {
            Contents?: {
                [key: string]:
                    | undefined
                    | {
                        Content?: Buffer<ArrayBufferLike>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
            };
            ID?: string;
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<commonpb.Empty>;
    websiteRemoveContent(
        request: { Name?: string; Paths?: string[] },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Website>;
    websites(
        request: {},
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Websites>;
    websiteUpdateContent(
        request: {
            Contents?: {
                [key: string]:
                    | undefined
                    | {
                        Content?: Buffer<ArrayBufferLike>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
            };
            Name?: string;
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<clientpb.Website>;
    wGListForwarders(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGTCPForwarders>;
    wGListSocksServers(
        request: {
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGSocksServers>;
    wGStartPortForward(
        request: {
            LocalPort?: number;
            RemoteAddress?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGPortForward>;
    wGStartSocks(
        request: {
            Port?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGSocks>;
    wGStopPortForward(
        request: {
            ID?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGPortForward>;
    wGStopSocks(
        request: {
            ID?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
        },
        options?: CallOptions & CallOptionsExt,
    ): Promise<sliverpb.WGSocks>;
}

Type Parameters

  • CallOptionsExt = {}

Methods

backdoor +builderRegister +builders +builderTrigger +callExtension +canaries +cancelBeaconTask +cd +chmod +chown +chtimes +clientLog +closeSession +closeSocks +closeTunnel +cp +crack +crackFileChunkDownload +crackFileChunkUpload +crackFileComplete +crackFileCreate +crackFileDelete +crackFilesList +crackstationBenchmark +crackstationRegister +crackstations +crackstationTrigger +crackTaskByID +crackTaskUpdate +createSocks +createTunnel +creds +credsAdd +credsRm +credsSniffHashType +credsUpdate +currentTokenOwner +deleteImplantBuild +deleteImplantProfile +download +events +execute +executeAssembly +executeChildren +executeWindows +execWasmExtension +generate +generateExternal +generateExternalGetBuildConfig +generateExternalSaveBuild +generateStage +generateUniqueIP +generateWGClientConfig +getBeacon +getBeacons +getBeaconTaskContent +getBeaconTasks +getCertificateAuthorityInfo +getCertificateInfo +getCompiler +getCredByID +getCredsByHashType +getEnv +getHTTPC2ProfileByName +getHTTPC2Profiles +getJobs +getOperators +getPlaintextCredsByHashType +getPrivs +getRportFwdListeners +getSessions +getSystem +getVersion +grep +hijackDLL +host +hostIOCRm +hostRm +hosts +ifconfig +impersonate +implantBuilds +implantProfiles +kill +killJob +listExtensions +listWasmExtensions +lootAdd +lootAll +lootContent +lootRm +lootUpdate +ls +makeToken +memfilesAdd +memfilesList +memfilesRm +migrate +mkdir +monitorAddConfig +monitorDelConfig +monitorListConfig +monitorStart +monitorStop +mount +msf +msfRemote +mv +netstat +openSession +ping +pivotGraph +pivotSessionListeners +pivotStartListener +pivotStopListener +portfwd +processDump +ps +pwd +reconfigure +regenerate +registerExtension +registerWasmExtension +registryCreateKey +registryDeleteKey +registryListSubKeys +registryListValues +registryRead +registryReadHive +registryWrite +removeService +rename +restartJobs +revToSelf +rm +rmBeacon +runAs +runSSHCommand +saveHTTPC2Profile +saveImplantProfile +screenshot +serviceDetail +services +setEnv +shell +shellcodeEncoder +shellcodeEncoderMap +shellcodeRDI +shellResize +sideload +socksProxy +spawnDll +stageImplantBuild +startDNSListener +startHTTPListener +startHTTPSListener +startMTLSListener +startRportFwdListener +startService +startServiceByName +startTCPStagerListener +startWGListener +stopRportFwdListener +stopService +task +terminate +trafficEncoderAdd +trafficEncoderMap +trafficEncoderRm +tunnelData +unsetEnv +updateBeaconIntegrityInformation +upload +website +websiteAddContent +websiteRemove +websiteRemoveContent +websites +websiteUpdateContent +wGListForwarders +wGListSocksServers +wGStartPortForward +wGStartSocks +wGStopPortForward +wGStopSocks +

Methods

  • Parameters

    • request: {
          FilePath?: string;
          Name?: string;
          ProfileName?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Backdoor>

  • ** Builders ***

    +

    Parameters

    • request: {
          CrossCompilers?: {
              CCPath?: string;
              CXXPath?: string;
              TargetGOARCH?: string;
              TargetGOOS?: string;
          }[];
          GOARCH?: string;
          GOOS?: string;
          Name?: string;
          OperatorName?: string;
          Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
          Templates?: string[];
      }
      • OptionalCrossCompilers?: {
            CCPath?: string;
            CXXPath?: string;
            TargetGOARCH?: string;
            TargetGOOS?: string;
        }[]
      • OptionalGOARCH?: string

        The builder's Arch

        +
      • OptionalGOOS?: string

        The builder's OS

        +
      • OptionalName?: string
      • OptionalOperatorName?: string
      • OptionalTargets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[]
      • OptionalTemplates?: string[]
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns AsyncIterable<clientpb.Event>

  • Parameters

    • request: {
          Client?: {
              ID?: number;
              Name?: string;
              Operator?: { Name?: string; Online?: boolean };
          };
          Data?: Buffer<ArrayBufferLike>;
          Err?: string;
          EventType?: string;
          Job?: {
              Description?: string;
              Domains?: string[];
              ID?: number;
              Name?: string;
              Port?: number;
              ProfileName?: string;
              Protocol?: string;
          };
          Session?: {
              ActiveC2?: string;
              Arch?: string;
              Burned?: boolean;
              Evasion?: boolean;
              Extensions?: string[];
              Filename?: string;
              FirstContact?: string;
              GID?: string;
              Hostname?: string;
              ID?: string;
              Integrity?: string;
              IsDead?: boolean;
              LastCheckin?: string;
              Locale?: string;
              Name?: string;
              OS?: string;
              PeerID?: string;
              PID?: number;
              ProxyURL?: string;
              ReconnectInterval?: string;
              RemoteAddress?: string;
              Transport?: string;
              UID?: string;
              Username?: string;
              UUID?: string;
              Version?: string;
          };
      }
      • OptionalClient?: { ID?: number; Name?: string; Operator?: { Name?: string; Online?: boolean } }
      • OptionalData?: Buffer<ArrayBufferLike>
      • OptionalErr?: string

        Can't trigger normal gRPC error

        +
      • OptionalEventType?: string
      • OptionalJob?: {
            Description?: string;
            Domains?: string[];
            ID?: number;
            Name?: string;
            Port?: number;
            ProfileName?: string;
            Protocol?: string;
        }
      • OptionalSession?: {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Extensions?: string[];
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            IsDead?: boolean;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            OS?: string;
            PeerID?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        }
        • OptionalActiveC2?: string
        • OptionalArch?: string
        • OptionalBurned?: boolean
        • OptionalEvasion?: boolean
        • OptionalExtensions?: string[]
        • OptionalFilename?: string

          Argv[0]

          +
        • OptionalFirstContact?: string
        • OptionalGID?: string
        • OptionalHostname?: string
        • OptionalID?: string
        • OptionalIntegrity?: string
        • OptionalIsDead?: boolean
        • OptionalLastCheckin?: string
        • OptionalLocale?: string
        • OptionalName?: string
        • OptionalOS?: string
        • OptionalPeerID?: string

          string ConfigID = 24;

          +
        • OptionalPID?: number
        • OptionalProxyURL?: string
        • OptionalReconnectInterval?: string
        • OptionalRemoteAddress?: string
        • OptionalTransport?: string
        • OptionalUID?: string
        • OptionalUsername?: string
        • OptionalUUID?: string
        • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Args?: Buffer<ArrayBufferLike>;
          Export?: string;
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServerStore?: boolean;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.CallExtension>

  • Parameters

    • request: {
          BeaconID?: string;
          CompletedAt?: string;
          CreatedAt?: string;
          Description?: string;
          ID?: string;
          Request?: Buffer<ArrayBufferLike>;
          Response?: Buffer<ArrayBufferLike>;
          SentAt?: string;
          State?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.BeaconTask>

  • Parameters

    • request: {
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • request: {
          FileMode?: string;
          Path?: string;
          Recursive?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Chmod>

  • Parameters

    • request: {
          Gid?: string;
          Path?: string;
          Recursive?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Uid?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Chown>

  • Parameters

    • request: {
          ATime?: string;
          MTime?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Chtimes>

  • ** Client Logs ***

    +

    Parameters

    • request: AsyncIterable<{ Data?: Buffer<ArrayBufferLike>; Stream?: string }>
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Response?: {
              Async?: boolean;
              BeaconID?: string;
              Err?: string;
              TaskID?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Dst?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Src?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Cp>

  • ** Crackstation ***

    +

    Parameters

    • request: {
          AttackMode?: CrackAttackMode;
          BackendDevices?: number[];
          BackendIgnoreCUDA?: boolean;
          BackendIgnoreHip?: boolean;
          BackendIgnoreMetal?: boolean;
          BackendIgnoreOpenCL?: boolean;
          BackendInfo?: boolean;
          BackendVectorWidth?: number;
          Benchmark?: boolean;
          BenchmarkAll?: boolean;
          BitmapMax?: number;
          BitmapMin?: number;
          BrainClient?: boolean;
          BrainClientFeatures?: string;
          BrainHost?: string;
          BrainPassword?: string;
          BrainPort?: number;
          BrainServer?: boolean;
          BrainServerTimer?: number;
          BrainSession?: string;
          BrainSessionWhitelist?: string;
          CPUAffinity?: number[];
          CustomCharset1?: string;
          CustomCharset2?: string;
          CustomCharset3?: string;
          CustomCharset4?: string;
          DebugMode?: number;
          DeprecatedCheckDisable?: boolean;
          EncodingFrom?: CrackEncoding;
          EncodingTo?: CrackEncoding;
          Force?: boolean;
          GenerateRules?: number;
          GenerateRulesFuncSel?: string;
          GenerateRulesFunMax?: number;
          GenerateRulesFunMin?: number;
          GenerateRulesSeed?: number;
          Hashes?: string[];
          HashInfo?: boolean;
          HashType?: HashType;
          HccapxMessagePair?: number;
          HexCharset?: boolean;
          HexSalt?: boolean;
          HexWordlist?: boolean;
          HookThreads?: number;
          HwmonDisable?: boolean;
          HwmonTempAbort?: number;
          Identify?: string;
          Increment?: boolean;
          IncrementMax?: number;
          IncrementMin?: number;
          KeepGuessing?: boolean;
          KernelAccel?: number;
          KernelLoops?: number;
          KernelThreads?: number;
          KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
          Keyspace?: boolean;
          Left?: boolean;
          Limit?: string;
          LogfileDisable?: boolean;
          Loopback?: boolean;
          MachineReadable?: boolean;
          MarkovClassic?: boolean;
          MarkovDisable?: boolean;
          MarkovHcstat2?: Buffer<ArrayBufferLike>;
          MarkovInverse?: boolean;
          MarkovThreshold?: number;
          MultiplyAccelDisabled?: boolean;
          NonceErrorCorrections?: number;
          OpenCLDeviceTypes?: number[];
          OptimizedKernelEnable?: boolean;
          OutfileAutohexDisable?: boolean;
          OutfileCheckTimer?: number;
          OutfileFormat?: CrackOutfileFormat[];
          Potfile?: Buffer<ArrayBufferLike>;
          PotfileDisable?: boolean;
          ProgressOnly?: boolean;
          Quiet?: boolean;
          Remove?: boolean;
          RemoveTimer?: number;
          Restore?: boolean;
          RestoreDisable?: boolean;
          RestoreFile?: Buffer<ArrayBufferLike>;
          RulesFile?: Buffer<ArrayBufferLike>;
          Runtime?: number;
          ScryptTMTO?: number;
          SegmentSize?: number;
          SelfTestDisable?: boolean;
          Separator?: string;
          Session?: string;
          Show?: boolean;
          Skip?: string;
          SlowCandidates?: boolean;
          SpeedOnly?: boolean;
          SpinDamp?: number;
          Status?: boolean;
          StatusJSON?: boolean;
          StatusTimer?: number;
          StdinTimeoutAbort?: number;
          Stdout?: boolean;
          Username?: boolean;
          WordlistAutohexDisable?: boolean;
          WorkloadProfile?: CrackWorkloadProfile;
      }
      • OptionalAttackMode?: CrackAttackMode
      • OptionalBackendDevices?: number[]
      • OptionalBackendIgnoreCUDA?: boolean

        --example-hashes (66)

        +
      • OptionalBackendIgnoreHip?: boolean
      • OptionalBackendIgnoreMetal?: boolean
      • OptionalBackendIgnoreOpenCL?: boolean
      • OptionalBackendInfo?: boolean
      • OptionalBackendVectorWidth?: number
      • OptionalBenchmark?: boolean

        --truecrypt-keyfiles FILE (52) +--veracrypt-keyfiles FILE (53) +--veracrypt-pim-start PIM (54) +--veracrypt-pim-stop PIM (55)

        +
      • OptionalBenchmarkAll?: boolean
      • OptionalBitmapMax?: number
      • OptionalBitmapMin?: number
      • OptionalBrainClient?: boolean
      • OptionalBrainClientFeatures?: string
      • OptionalBrainHost?: string
      • OptionalBrainPassword?: string
      • OptionalBrainPort?: number
      • OptionalBrainServer?: boolean
      • OptionalBrainServerTimer?: number
      • OptionalBrainSession?: string
      • OptionalBrainSessionWhitelist?: string
      • OptionalCPUAffinity?: number[]
      • OptionalCustomCharset1?: string
      • OptionalCustomCharset2?: string
      • OptionalCustomCharset3?: string
      • OptionalCustomCharset4?: string
      • OptionalDebugMode?: number
      • OptionalDeprecatedCheckDisable?: boolean
      • OptionalEncodingFrom?: CrackEncoding
      • OptionalEncodingTo?: CrackEncoding
      • OptionalForce?: boolean
      • OptionalGenerateRules?: number
      • OptionalGenerateRulesFuncSel?: string
      • OptionalGenerateRulesFunMax?: number
      • OptionalGenerateRulesFunMin?: number
      • OptionalGenerateRulesSeed?: number
      • OptionalHashes?: string[]
      • OptionalHashInfo?: boolean
      • OptionalHashType?: HashType
      • OptionalHccapxMessagePair?: number
      • OptionalHexCharset?: boolean
      • OptionalHexSalt?: boolean
      • OptionalHexWordlist?: boolean
      • OptionalHookThreads?: number
      • OptionalHwmonDisable?: boolean
      • OptionalHwmonTempAbort?: number
      • OptionalIdentify?: string
      • OptionalIncrement?: boolean
      • OptionalIncrementMax?: number
      • OptionalIncrementMin?: number
      • OptionalKeepGuessing?: boolean
      • OptionalKernelAccel?: number
      • OptionalKernelLoops?: number
      • OptionalKernelThreads?: number
      • OptionalKeyboardLayoutMapping?: Buffer<ArrayBufferLike>

        --keyboard-layout-mapping FILE

        +
      • OptionalKeyspace?: boolean
      • OptionalLeft?: boolean
      • OptionalLimit?: string
      • OptionalLogfileDisable?: boolean

        --debug-file FILE (45) +--induction-dir DIR (46) +--outfile-check-dir DIR (47)

        +
      • OptionalLoopback?: boolean
      • OptionalMachineReadable?: boolean
      • OptionalMarkovClassic?: boolean
      • OptionalMarkovDisable?: boolean
      • OptionalMarkovHcstat2?: Buffer<ArrayBufferLike>

        --markov-hcstat2 FILE

        +
      • OptionalMarkovInverse?: boolean
      • OptionalMarkovThreshold?: number
      • OptionalMultiplyAccelDisabled?: boolean
      • OptionalNonceErrorCorrections?: number
      • OptionalOpenCLDeviceTypes?: number[]
      • OptionalOptimizedKernelEnable?: boolean
      • OptionalOutfileAutohexDisable?: boolean
      • OptionalOutfileCheckTimer?: number
      • OptionalOutfileFormat?: CrackOutfileFormat[]

        --outfile FILE (28)

        +
      • OptionalPotfile?: Buffer<ArrayBufferLike>

        --potfile-path FILE

        +
      • OptionalPotfileDisable?: boolean
      • OptionalProgressOnly?: boolean
      • OptionalQuiet?: boolean

        --version +--help

        +
      • OptionalRemove?: boolean
      • OptionalRemoveTimer?: number
      • OptionalRestore?: boolean
      • OptionalRestoreDisable?: boolean
      • OptionalRestoreFile?: Buffer<ArrayBufferLike>

        --restore-file-path FILE

        +
      • OptionalRulesFile?: Buffer<ArrayBufferLike>

        --rule-left (88) +--rule-right (89)

        +
      • OptionalRuntime?: number
      • OptionalScryptTMTO?: number
      • OptionalSegmentSize?: number
      • OptionalSelfTestDisable?: boolean
      • OptionalSeparator?: string

        single char

        +
      • OptionalSession?: string

        [a-zA-Z0-9_-]

        +
      • OptionalShow?: boolean
      • OptionalSkip?: string
      • OptionalSlowCandidates?: boolean
      • OptionalSpeedOnly?: boolean
      • OptionalSpinDamp?: number
      • OptionalStatus?: boolean
      • OptionalStatusJSON?: boolean
      • OptionalStatusTimer?: number
      • OptionalStdinTimeoutAbort?: number
      • OptionalStdout?: boolean
      • OptionalUsername?: boolean
      • OptionalWordlistAutohexDisable?: boolean
      • OptionalWorkloadProfile?: CrackWorkloadProfile
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.CrackResponse>

  • Parameters

    • request: {
          CrackFileID?: string;
          Data?: Buffer<ArrayBufferLike>;
          ID?: string;
          N?: number;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.CrackFileChunk>

  • Parameters

    • request: {
          CrackFileID?: string;
          Data?: Buffer<ArrayBufferLike>;
          ID?: string;
          N?: number;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Chunks?: {
              CrackFileID?: string;
              Data?: Buffer<ArrayBufferLike>;
              ID?: string;
              N?: number;
          }[];
          ChunkSize?: string;
          CreatedAt?: string;
          ID?: string;
          IsCompressed?: boolean;
          LastModified?: string;
          MaxFileSize?: string;
          Name?: string;
          Sha2256?: string;
          Type?: CrackFileType;
          UncompressedSize?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Chunks?: {
              CrackFileID?: string;
              Data?: Buffer<ArrayBufferLike>;
              ID?: string;
              N?: number;
          }[];
          ChunkSize?: string;
          CreatedAt?: string;
          ID?: string;
          IsCompressed?: boolean;
          LastModified?: string;
          MaxFileSize?: string;
          Name?: string;
          Sha2256?: string;
          Type?: CrackFileType;
          UncompressedSize?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.CrackFile>

  • Parameters

    • request: {
          Chunks?: {
              CrackFileID?: string;
              Data?: Buffer<ArrayBufferLike>;
              ID?: string;
              N?: number;
          }[];
          ChunkSize?: string;
          CreatedAt?: string;
          ID?: string;
          IsCompressed?: boolean;
          LastModified?: string;
          MaxFileSize?: string;
          Name?: string;
          Sha2256?: string;
          Type?: CrackFileType;
          UncompressedSize?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Chunks?: {
              CrackFileID?: string;
              Data?: Buffer<ArrayBufferLike>;
              ID?: string;
              N?: number;
          }[];
          ChunkSize?: string;
          CreatedAt?: string;
          ID?: string;
          IsCompressed?: boolean;
          LastModified?: string;
          MaxFileSize?: string;
          Name?: string;
          Sha2256?: string;
          Type?: CrackFileType;
          UncompressedSize?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.CrackFiles>

  • Parameters

    • request: {
          Benchmarks?: { [key: number]: undefined | string };
          HostUUID?: string;
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Benchmarks?: { [key: number]: undefined | string };
          CUDA?: {
              Clock?: number;
              CUDAVersion?: string;
              MemoryFree?: string;
              MemoryTotal?: string;
              Name?: string;
              Processors?: number;
              Type?: string;
              Vendor?: string;
              VendorID?: number;
              Version?: string;
          }[];
          GOARCH?: string;
          GOOS?: string;
          HashcatVersion?: string;
          HostUUID?: string;
          ID?: string;
          Metal?: {
              Clock?: number;
              MemoryFree?: string;
              MemoryTotal?: string;
              MetalVersion?: string;
              Name?: string;
              Processors?: number;
              Type?: string;
              Vendor?: string;
              VendorID?: number;
              Version?: string;
          }[];
          Name?: string;
          OpenCL?: {
              Clock?: number;
              MemoryFree?: string;
              MemoryTotal?: string;
              Name?: string;
              OpenCLDriverVersion?: string;
              OpenCLVersion?: string;
              Processors?: number;
              Type?: string;
              Vendor?: string;
              VendorID?: number;
              Version?: string;
          }[];
          OperatorName?: string;
          Version?: string;
      }
      • OptionalBenchmarks?: { [key: number]: undefined | string }
      • OptionalCUDA?: {
            Clock?: number;
            CUDAVersion?: string;
            MemoryFree?: string;
            MemoryTotal?: string;
            Name?: string;
            Processors?: number;
            Type?: string;
            Vendor?: string;
            VendorID?: number;
            Version?: string;
        }[]
      • OptionalGOARCH?: string

        The cracker's Arch

        +
      • OptionalGOOS?: string

        The cracker's OS

        +
      • OptionalHashcatVersion?: string
      • OptionalHostUUID?: string
      • OptionalID?: string
      • OptionalMetal?: {
            Clock?: number;
            MemoryFree?: string;
            MemoryTotal?: string;
            MetalVersion?: string;
            Name?: string;
            Processors?: number;
            Type?: string;
            Vendor?: string;
            VendorID?: number;
            Version?: string;
        }[]
      • OptionalName?: string
      • OptionalOpenCL?: {
            Clock?: number;
            MemoryFree?: string;
            MemoryTotal?: string;
            Name?: string;
            OpenCLDriverVersion?: string;
            OpenCLVersion?: string;
            Processors?: number;
            Type?: string;
            Vendor?: string;
            VendorID?: number;
            Version?: string;
        }[]
      • OptionalOperatorName?: string
      • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns AsyncIterable<clientpb.Event>

  • Parameters

    • request: {
          Client?: {
              ID?: number;
              Name?: string;
              Operator?: { Name?: string; Online?: boolean };
          };
          Data?: Buffer<ArrayBufferLike>;
          Err?: string;
          EventType?: string;
          Job?: {
              Description?: string;
              Domains?: string[];
              ID?: number;
              Name?: string;
              Port?: number;
              ProfileName?: string;
              Protocol?: string;
          };
          Session?: {
              ActiveC2?: string;
              Arch?: string;
              Burned?: boolean;
              Evasion?: boolean;
              Extensions?: string[];
              Filename?: string;
              FirstContact?: string;
              GID?: string;
              Hostname?: string;
              ID?: string;
              Integrity?: string;
              IsDead?: boolean;
              LastCheckin?: string;
              Locale?: string;
              Name?: string;
              OS?: string;
              PeerID?: string;
              PID?: number;
              ProxyURL?: string;
              ReconnectInterval?: string;
              RemoteAddress?: string;
              Transport?: string;
              UID?: string;
              Username?: string;
              UUID?: string;
              Version?: string;
          };
      }
      • OptionalClient?: { ID?: number; Name?: string; Operator?: { Name?: string; Online?: boolean } }
      • OptionalData?: Buffer<ArrayBufferLike>
      • OptionalErr?: string

        Can't trigger normal gRPC error

        +
      • OptionalEventType?: string
      • OptionalJob?: {
            Description?: string;
            Domains?: string[];
            ID?: number;
            Name?: string;
            Port?: number;
            ProfileName?: string;
            Protocol?: string;
        }
      • OptionalSession?: {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Extensions?: string[];
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            IsDead?: boolean;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            OS?: string;
            PeerID?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        }
        • OptionalActiveC2?: string
        • OptionalArch?: string
        • OptionalBurned?: boolean
        • OptionalEvasion?: boolean
        • OptionalExtensions?: string[]
        • OptionalFilename?: string

          Argv[0]

          +
        • OptionalFirstContact?: string
        • OptionalGID?: string
        • OptionalHostname?: string
        • OptionalID?: string
        • OptionalIntegrity?: string
        • OptionalIsDead?: boolean
        • OptionalLastCheckin?: string
        • OptionalLocale?: string
        • OptionalName?: string
        • OptionalOS?: string
        • OptionalPeerID?: string

          string ConfigID = 24;

          +
        • OptionalPID?: number
        • OptionalProxyURL?: string
        • OptionalReconnectInterval?: string
        • OptionalRemoteAddress?: string
        • OptionalTransport?: string
        • OptionalUID?: string
        • OptionalUsername?: string
        • OptionalUUID?: string
        • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Command?: {
              AttackMode?: CrackAttackMode;
              BackendDevices?: number[];
              BackendIgnoreCUDA?: boolean;
              BackendIgnoreHip?: boolean;
              BackendIgnoreMetal?: boolean;
              BackendIgnoreOpenCL?: boolean;
              BackendInfo?: boolean;
              BackendVectorWidth?: number;
              Benchmark?: boolean;
              BenchmarkAll?: boolean;
              BitmapMax?: number;
              BitmapMin?: number;
              BrainClient?: boolean;
              BrainClientFeatures?: string;
              BrainHost?: string;
              BrainPassword?: string;
              BrainPort?: number;
              BrainServer?: boolean;
              BrainServerTimer?: number;
              BrainSession?: string;
              BrainSessionWhitelist?: string;
              CPUAffinity?: number[];
              CustomCharset1?: string;
              CustomCharset2?: string;
              CustomCharset3?: string;
              CustomCharset4?: string;
              DebugMode?: number;
              DeprecatedCheckDisable?: boolean;
              EncodingFrom?: CrackEncoding;
              EncodingTo?: CrackEncoding;
              Force?: boolean;
              GenerateRules?: number;
              GenerateRulesFuncSel?: string;
              GenerateRulesFunMax?: number;
              GenerateRulesFunMin?: number;
              GenerateRulesSeed?: number;
              Hashes?: string[];
              HashInfo?: boolean;
              HashType?: HashType;
              HccapxMessagePair?: number;
              HexCharset?: boolean;
              HexSalt?: boolean;
              HexWordlist?: boolean;
              HookThreads?: number;
              HwmonDisable?: boolean;
              HwmonTempAbort?: number;
              Identify?: string;
              Increment?: boolean;
              IncrementMax?: number;
              IncrementMin?: number;
              KeepGuessing?: boolean;
              KernelAccel?: number;
              KernelLoops?: number;
              KernelThreads?: number;
              KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
              Keyspace?: boolean;
              Left?: boolean;
              Limit?: string;
              LogfileDisable?: boolean;
              Loopback?: boolean;
              MachineReadable?: boolean;
              MarkovClassic?: boolean;
              MarkovDisable?: boolean;
              MarkovHcstat2?: Buffer<ArrayBufferLike>;
              MarkovInverse?: boolean;
              MarkovThreshold?: number;
              MultiplyAccelDisabled?: boolean;
              NonceErrorCorrections?: number;
              OpenCLDeviceTypes?: number[];
              OptimizedKernelEnable?: boolean;
              OutfileAutohexDisable?: boolean;
              OutfileCheckTimer?: number;
              OutfileFormat?: CrackOutfileFormat[];
              Potfile?: Buffer<ArrayBufferLike>;
              PotfileDisable?: boolean;
              ProgressOnly?: boolean;
              Quiet?: boolean;
              Remove?: boolean;
              RemoveTimer?: number;
              Restore?: boolean;
              RestoreDisable?: boolean;
              RestoreFile?: Buffer<ArrayBufferLike>;
              RulesFile?: Buffer<ArrayBufferLike>;
              Runtime?: number;
              ScryptTMTO?: number;
              SegmentSize?: number;
              SelfTestDisable?: boolean;
              Separator?: string;
              Session?: string;
              Show?: boolean;
              Skip?: string;
              SlowCandidates?: boolean;
              SpeedOnly?: boolean;
              SpinDamp?: number;
              Status?: boolean;
              StatusJSON?: boolean;
              StatusTimer?: number;
              StdinTimeoutAbort?: number;
              Stdout?: boolean;
              Username?: boolean;
              WordlistAutohexDisable?: boolean;
              WorkloadProfile?: CrackWorkloadProfile;
          };
          CompletedAt?: string;
          CreatedAt?: string;
          Err?: string;
          HostUUID?: string;
          ID?: string;
          StartedAt?: string;
      }
      • OptionalCommand?: {
            AttackMode?: CrackAttackMode;
            BackendDevices?: number[];
            BackendIgnoreCUDA?: boolean;
            BackendIgnoreHip?: boolean;
            BackendIgnoreMetal?: boolean;
            BackendIgnoreOpenCL?: boolean;
            BackendInfo?: boolean;
            BackendVectorWidth?: number;
            Benchmark?: boolean;
            BenchmarkAll?: boolean;
            BitmapMax?: number;
            BitmapMin?: number;
            BrainClient?: boolean;
            BrainClientFeatures?: string;
            BrainHost?: string;
            BrainPassword?: string;
            BrainPort?: number;
            BrainServer?: boolean;
            BrainServerTimer?: number;
            BrainSession?: string;
            BrainSessionWhitelist?: string;
            CPUAffinity?: number[];
            CustomCharset1?: string;
            CustomCharset2?: string;
            CustomCharset3?: string;
            CustomCharset4?: string;
            DebugMode?: number;
            DeprecatedCheckDisable?: boolean;
            EncodingFrom?: CrackEncoding;
            EncodingTo?: CrackEncoding;
            Force?: boolean;
            GenerateRules?: number;
            GenerateRulesFuncSel?: string;
            GenerateRulesFunMax?: number;
            GenerateRulesFunMin?: number;
            GenerateRulesSeed?: number;
            Hashes?: string[];
            HashInfo?: boolean;
            HashType?: HashType;
            HccapxMessagePair?: number;
            HexCharset?: boolean;
            HexSalt?: boolean;
            HexWordlist?: boolean;
            HookThreads?: number;
            HwmonDisable?: boolean;
            HwmonTempAbort?: number;
            Identify?: string;
            Increment?: boolean;
            IncrementMax?: number;
            IncrementMin?: number;
            KeepGuessing?: boolean;
            KernelAccel?: number;
            KernelLoops?: number;
            KernelThreads?: number;
            KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
            Keyspace?: boolean;
            Left?: boolean;
            Limit?: string;
            LogfileDisable?: boolean;
            Loopback?: boolean;
            MachineReadable?: boolean;
            MarkovClassic?: boolean;
            MarkovDisable?: boolean;
            MarkovHcstat2?: Buffer<ArrayBufferLike>;
            MarkovInverse?: boolean;
            MarkovThreshold?: number;
            MultiplyAccelDisabled?: boolean;
            NonceErrorCorrections?: number;
            OpenCLDeviceTypes?: number[];
            OptimizedKernelEnable?: boolean;
            OutfileAutohexDisable?: boolean;
            OutfileCheckTimer?: number;
            OutfileFormat?: CrackOutfileFormat[];
            Potfile?: Buffer<ArrayBufferLike>;
            PotfileDisable?: boolean;
            ProgressOnly?: boolean;
            Quiet?: boolean;
            Remove?: boolean;
            RemoveTimer?: number;
            Restore?: boolean;
            RestoreDisable?: boolean;
            RestoreFile?: Buffer<ArrayBufferLike>;
            RulesFile?: Buffer<ArrayBufferLike>;
            Runtime?: number;
            ScryptTMTO?: number;
            SegmentSize?: number;
            SelfTestDisable?: boolean;
            Separator?: string;
            Session?: string;
            Show?: boolean;
            Skip?: string;
            SlowCandidates?: boolean;
            SpeedOnly?: boolean;
            SpinDamp?: number;
            Status?: boolean;
            StatusJSON?: boolean;
            StatusTimer?: number;
            StdinTimeoutAbort?: number;
            Stdout?: boolean;
            Username?: boolean;
            WordlistAutohexDisable?: boolean;
            WorkloadProfile?: CrackWorkloadProfile;
        }
        • OptionalAttackMode?: CrackAttackMode
        • OptionalBackendDevices?: number[]
        • OptionalBackendIgnoreCUDA?: boolean

          --example-hashes (66)

          +
        • OptionalBackendIgnoreHip?: boolean
        • OptionalBackendIgnoreMetal?: boolean
        • OptionalBackendIgnoreOpenCL?: boolean
        • OptionalBackendInfo?: boolean
        • OptionalBackendVectorWidth?: number
        • OptionalBenchmark?: boolean

          --truecrypt-keyfiles FILE (52) +--veracrypt-keyfiles FILE (53) +--veracrypt-pim-start PIM (54) +--veracrypt-pim-stop PIM (55)

          +
        • OptionalBenchmarkAll?: boolean
        • OptionalBitmapMax?: number
        • OptionalBitmapMin?: number
        • OptionalBrainClient?: boolean
        • OptionalBrainClientFeatures?: string
        • OptionalBrainHost?: string
        • OptionalBrainPassword?: string
        • OptionalBrainPort?: number
        • OptionalBrainServer?: boolean
        • OptionalBrainServerTimer?: number
        • OptionalBrainSession?: string
        • OptionalBrainSessionWhitelist?: string
        • OptionalCPUAffinity?: number[]
        • OptionalCustomCharset1?: string
        • OptionalCustomCharset2?: string
        • OptionalCustomCharset3?: string
        • OptionalCustomCharset4?: string
        • OptionalDebugMode?: number
        • OptionalDeprecatedCheckDisable?: boolean
        • OptionalEncodingFrom?: CrackEncoding
        • OptionalEncodingTo?: CrackEncoding
        • OptionalForce?: boolean
        • OptionalGenerateRules?: number
        • OptionalGenerateRulesFuncSel?: string
        • OptionalGenerateRulesFunMax?: number
        • OptionalGenerateRulesFunMin?: number
        • OptionalGenerateRulesSeed?: number
        • OptionalHashes?: string[]
        • OptionalHashInfo?: boolean
        • OptionalHashType?: HashType
        • OptionalHccapxMessagePair?: number
        • OptionalHexCharset?: boolean
        • OptionalHexSalt?: boolean
        • OptionalHexWordlist?: boolean
        • OptionalHookThreads?: number
        • OptionalHwmonDisable?: boolean
        • OptionalHwmonTempAbort?: number
        • OptionalIdentify?: string
        • OptionalIncrement?: boolean
        • OptionalIncrementMax?: number
        • OptionalIncrementMin?: number
        • OptionalKeepGuessing?: boolean
        • OptionalKernelAccel?: number
        • OptionalKernelLoops?: number
        • OptionalKernelThreads?: number
        • OptionalKeyboardLayoutMapping?: Buffer<ArrayBufferLike>

          --keyboard-layout-mapping FILE

          +
        • OptionalKeyspace?: boolean
        • OptionalLeft?: boolean
        • OptionalLimit?: string
        • OptionalLogfileDisable?: boolean

          --debug-file FILE (45) +--induction-dir DIR (46) +--outfile-check-dir DIR (47)

          +
        • OptionalLoopback?: boolean
        • OptionalMachineReadable?: boolean
        • OptionalMarkovClassic?: boolean
        • OptionalMarkovDisable?: boolean
        • OptionalMarkovHcstat2?: Buffer<ArrayBufferLike>

          --markov-hcstat2 FILE

          +
        • OptionalMarkovInverse?: boolean
        • OptionalMarkovThreshold?: number
        • OptionalMultiplyAccelDisabled?: boolean
        • OptionalNonceErrorCorrections?: number
        • OptionalOpenCLDeviceTypes?: number[]
        • OptionalOptimizedKernelEnable?: boolean
        • OptionalOutfileAutohexDisable?: boolean
        • OptionalOutfileCheckTimer?: number
        • OptionalOutfileFormat?: CrackOutfileFormat[]

          --outfile FILE (28)

          +
        • OptionalPotfile?: Buffer<ArrayBufferLike>

          --potfile-path FILE

          +
        • OptionalPotfileDisable?: boolean
        • OptionalProgressOnly?: boolean
        • OptionalQuiet?: boolean

          --version +--help

          +
        • OptionalRemove?: boolean
        • OptionalRemoveTimer?: number
        • OptionalRestore?: boolean
        • OptionalRestoreDisable?: boolean
        • OptionalRestoreFile?: Buffer<ArrayBufferLike>

          --restore-file-path FILE

          +
        • OptionalRulesFile?: Buffer<ArrayBufferLike>

          --rule-left (88) +--rule-right (89)

          +
        • OptionalRuntime?: number
        • OptionalScryptTMTO?: number
        • OptionalSegmentSize?: number
        • OptionalSelfTestDisable?: boolean
        • OptionalSeparator?: string

          single char

          +
        • OptionalSession?: string

          [a-zA-Z0-9_-]

          +
        • OptionalShow?: boolean
        • OptionalSkip?: string
        • OptionalSlowCandidates?: boolean
        • OptionalSpeedOnly?: boolean
        • OptionalSpinDamp?: number
        • OptionalStatus?: boolean
        • OptionalStatusJSON?: boolean
        • OptionalStatusTimer?: number
        • OptionalStdinTimeoutAbort?: number
        • OptionalStdout?: boolean
        • OptionalUsername?: boolean
        • OptionalWordlistAutohexDisable?: boolean
        • OptionalWorkloadProfile?: CrackWorkloadProfile
      • OptionalCompletedAt?: string
      • OptionalCreatedAt?: string
      • OptionalErr?: string
      • OptionalHostUUID?: string

        CrackstationID

        +
      • OptionalID?: string
      • OptionalStartedAt?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.CrackTask>

  • Parameters

    • request: {
          Command?: {
              AttackMode?: CrackAttackMode;
              BackendDevices?: number[];
              BackendIgnoreCUDA?: boolean;
              BackendIgnoreHip?: boolean;
              BackendIgnoreMetal?: boolean;
              BackendIgnoreOpenCL?: boolean;
              BackendInfo?: boolean;
              BackendVectorWidth?: number;
              Benchmark?: boolean;
              BenchmarkAll?: boolean;
              BitmapMax?: number;
              BitmapMin?: number;
              BrainClient?: boolean;
              BrainClientFeatures?: string;
              BrainHost?: string;
              BrainPassword?: string;
              BrainPort?: number;
              BrainServer?: boolean;
              BrainServerTimer?: number;
              BrainSession?: string;
              BrainSessionWhitelist?: string;
              CPUAffinity?: number[];
              CustomCharset1?: string;
              CustomCharset2?: string;
              CustomCharset3?: string;
              CustomCharset4?: string;
              DebugMode?: number;
              DeprecatedCheckDisable?: boolean;
              EncodingFrom?: CrackEncoding;
              EncodingTo?: CrackEncoding;
              Force?: boolean;
              GenerateRules?: number;
              GenerateRulesFuncSel?: string;
              GenerateRulesFunMax?: number;
              GenerateRulesFunMin?: number;
              GenerateRulesSeed?: number;
              Hashes?: string[];
              HashInfo?: boolean;
              HashType?: HashType;
              HccapxMessagePair?: number;
              HexCharset?: boolean;
              HexSalt?: boolean;
              HexWordlist?: boolean;
              HookThreads?: number;
              HwmonDisable?: boolean;
              HwmonTempAbort?: number;
              Identify?: string;
              Increment?: boolean;
              IncrementMax?: number;
              IncrementMin?: number;
              KeepGuessing?: boolean;
              KernelAccel?: number;
              KernelLoops?: number;
              KernelThreads?: number;
              KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
              Keyspace?: boolean;
              Left?: boolean;
              Limit?: string;
              LogfileDisable?: boolean;
              Loopback?: boolean;
              MachineReadable?: boolean;
              MarkovClassic?: boolean;
              MarkovDisable?: boolean;
              MarkovHcstat2?: Buffer<ArrayBufferLike>;
              MarkovInverse?: boolean;
              MarkovThreshold?: number;
              MultiplyAccelDisabled?: boolean;
              NonceErrorCorrections?: number;
              OpenCLDeviceTypes?: number[];
              OptimizedKernelEnable?: boolean;
              OutfileAutohexDisable?: boolean;
              OutfileCheckTimer?: number;
              OutfileFormat?: CrackOutfileFormat[];
              Potfile?: Buffer<ArrayBufferLike>;
              PotfileDisable?: boolean;
              ProgressOnly?: boolean;
              Quiet?: boolean;
              Remove?: boolean;
              RemoveTimer?: number;
              Restore?: boolean;
              RestoreDisable?: boolean;
              RestoreFile?: Buffer<ArrayBufferLike>;
              RulesFile?: Buffer<ArrayBufferLike>;
              Runtime?: number;
              ScryptTMTO?: number;
              SegmentSize?: number;
              SelfTestDisable?: boolean;
              Separator?: string;
              Session?: string;
              Show?: boolean;
              Skip?: string;
              SlowCandidates?: boolean;
              SpeedOnly?: boolean;
              SpinDamp?: number;
              Status?: boolean;
              StatusJSON?: boolean;
              StatusTimer?: number;
              StdinTimeoutAbort?: number;
              Stdout?: boolean;
              Username?: boolean;
              WordlistAutohexDisable?: boolean;
              WorkloadProfile?: CrackWorkloadProfile;
          };
          CompletedAt?: string;
          CreatedAt?: string;
          Err?: string;
          HostUUID?: string;
          ID?: string;
          StartedAt?: string;
      }
      • OptionalCommand?: {
            AttackMode?: CrackAttackMode;
            BackendDevices?: number[];
            BackendIgnoreCUDA?: boolean;
            BackendIgnoreHip?: boolean;
            BackendIgnoreMetal?: boolean;
            BackendIgnoreOpenCL?: boolean;
            BackendInfo?: boolean;
            BackendVectorWidth?: number;
            Benchmark?: boolean;
            BenchmarkAll?: boolean;
            BitmapMax?: number;
            BitmapMin?: number;
            BrainClient?: boolean;
            BrainClientFeatures?: string;
            BrainHost?: string;
            BrainPassword?: string;
            BrainPort?: number;
            BrainServer?: boolean;
            BrainServerTimer?: number;
            BrainSession?: string;
            BrainSessionWhitelist?: string;
            CPUAffinity?: number[];
            CustomCharset1?: string;
            CustomCharset2?: string;
            CustomCharset3?: string;
            CustomCharset4?: string;
            DebugMode?: number;
            DeprecatedCheckDisable?: boolean;
            EncodingFrom?: CrackEncoding;
            EncodingTo?: CrackEncoding;
            Force?: boolean;
            GenerateRules?: number;
            GenerateRulesFuncSel?: string;
            GenerateRulesFunMax?: number;
            GenerateRulesFunMin?: number;
            GenerateRulesSeed?: number;
            Hashes?: string[];
            HashInfo?: boolean;
            HashType?: HashType;
            HccapxMessagePair?: number;
            HexCharset?: boolean;
            HexSalt?: boolean;
            HexWordlist?: boolean;
            HookThreads?: number;
            HwmonDisable?: boolean;
            HwmonTempAbort?: number;
            Identify?: string;
            Increment?: boolean;
            IncrementMax?: number;
            IncrementMin?: number;
            KeepGuessing?: boolean;
            KernelAccel?: number;
            KernelLoops?: number;
            KernelThreads?: number;
            KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
            Keyspace?: boolean;
            Left?: boolean;
            Limit?: string;
            LogfileDisable?: boolean;
            Loopback?: boolean;
            MachineReadable?: boolean;
            MarkovClassic?: boolean;
            MarkovDisable?: boolean;
            MarkovHcstat2?: Buffer<ArrayBufferLike>;
            MarkovInverse?: boolean;
            MarkovThreshold?: number;
            MultiplyAccelDisabled?: boolean;
            NonceErrorCorrections?: number;
            OpenCLDeviceTypes?: number[];
            OptimizedKernelEnable?: boolean;
            OutfileAutohexDisable?: boolean;
            OutfileCheckTimer?: number;
            OutfileFormat?: CrackOutfileFormat[];
            Potfile?: Buffer<ArrayBufferLike>;
            PotfileDisable?: boolean;
            ProgressOnly?: boolean;
            Quiet?: boolean;
            Remove?: boolean;
            RemoveTimer?: number;
            Restore?: boolean;
            RestoreDisable?: boolean;
            RestoreFile?: Buffer<ArrayBufferLike>;
            RulesFile?: Buffer<ArrayBufferLike>;
            Runtime?: number;
            ScryptTMTO?: number;
            SegmentSize?: number;
            SelfTestDisable?: boolean;
            Separator?: string;
            Session?: string;
            Show?: boolean;
            Skip?: string;
            SlowCandidates?: boolean;
            SpeedOnly?: boolean;
            SpinDamp?: number;
            Status?: boolean;
            StatusJSON?: boolean;
            StatusTimer?: number;
            StdinTimeoutAbort?: number;
            Stdout?: boolean;
            Username?: boolean;
            WordlistAutohexDisable?: boolean;
            WorkloadProfile?: CrackWorkloadProfile;
        }
        • OptionalAttackMode?: CrackAttackMode
        • OptionalBackendDevices?: number[]
        • OptionalBackendIgnoreCUDA?: boolean

          --example-hashes (66)

          +
        • OptionalBackendIgnoreHip?: boolean
        • OptionalBackendIgnoreMetal?: boolean
        • OptionalBackendIgnoreOpenCL?: boolean
        • OptionalBackendInfo?: boolean
        • OptionalBackendVectorWidth?: number
        • OptionalBenchmark?: boolean

          --truecrypt-keyfiles FILE (52) +--veracrypt-keyfiles FILE (53) +--veracrypt-pim-start PIM (54) +--veracrypt-pim-stop PIM (55)

          +
        • OptionalBenchmarkAll?: boolean
        • OptionalBitmapMax?: number
        • OptionalBitmapMin?: number
        • OptionalBrainClient?: boolean
        • OptionalBrainClientFeatures?: string
        • OptionalBrainHost?: string
        • OptionalBrainPassword?: string
        • OptionalBrainPort?: number
        • OptionalBrainServer?: boolean
        • OptionalBrainServerTimer?: number
        • OptionalBrainSession?: string
        • OptionalBrainSessionWhitelist?: string
        • OptionalCPUAffinity?: number[]
        • OptionalCustomCharset1?: string
        • OptionalCustomCharset2?: string
        • OptionalCustomCharset3?: string
        • OptionalCustomCharset4?: string
        • OptionalDebugMode?: number
        • OptionalDeprecatedCheckDisable?: boolean
        • OptionalEncodingFrom?: CrackEncoding
        • OptionalEncodingTo?: CrackEncoding
        • OptionalForce?: boolean
        • OptionalGenerateRules?: number
        • OptionalGenerateRulesFuncSel?: string
        • OptionalGenerateRulesFunMax?: number
        • OptionalGenerateRulesFunMin?: number
        • OptionalGenerateRulesSeed?: number
        • OptionalHashes?: string[]
        • OptionalHashInfo?: boolean
        • OptionalHashType?: HashType
        • OptionalHccapxMessagePair?: number
        • OptionalHexCharset?: boolean
        • OptionalHexSalt?: boolean
        • OptionalHexWordlist?: boolean
        • OptionalHookThreads?: number
        • OptionalHwmonDisable?: boolean
        • OptionalHwmonTempAbort?: number
        • OptionalIdentify?: string
        • OptionalIncrement?: boolean
        • OptionalIncrementMax?: number
        • OptionalIncrementMin?: number
        • OptionalKeepGuessing?: boolean
        • OptionalKernelAccel?: number
        • OptionalKernelLoops?: number
        • OptionalKernelThreads?: number
        • OptionalKeyboardLayoutMapping?: Buffer<ArrayBufferLike>

          --keyboard-layout-mapping FILE

          +
        • OptionalKeyspace?: boolean
        • OptionalLeft?: boolean
        • OptionalLimit?: string
        • OptionalLogfileDisable?: boolean

          --debug-file FILE (45) +--induction-dir DIR (46) +--outfile-check-dir DIR (47)

          +
        • OptionalLoopback?: boolean
        • OptionalMachineReadable?: boolean
        • OptionalMarkovClassic?: boolean
        • OptionalMarkovDisable?: boolean
        • OptionalMarkovHcstat2?: Buffer<ArrayBufferLike>

          --markov-hcstat2 FILE

          +
        • OptionalMarkovInverse?: boolean
        • OptionalMarkovThreshold?: number
        • OptionalMultiplyAccelDisabled?: boolean
        • OptionalNonceErrorCorrections?: number
        • OptionalOpenCLDeviceTypes?: number[]
        • OptionalOptimizedKernelEnable?: boolean
        • OptionalOutfileAutohexDisable?: boolean
        • OptionalOutfileCheckTimer?: number
        • OptionalOutfileFormat?: CrackOutfileFormat[]

          --outfile FILE (28)

          +
        • OptionalPotfile?: Buffer<ArrayBufferLike>

          --potfile-path FILE

          +
        • OptionalPotfileDisable?: boolean
        • OptionalProgressOnly?: boolean
        • OptionalQuiet?: boolean

          --version +--help

          +
        • OptionalRemove?: boolean
        • OptionalRemoveTimer?: number
        • OptionalRestore?: boolean
        • OptionalRestoreDisable?: boolean
        • OptionalRestoreFile?: Buffer<ArrayBufferLike>

          --restore-file-path FILE

          +
        • OptionalRulesFile?: Buffer<ArrayBufferLike>

          --rule-left (88) +--rule-right (89)

          +
        • OptionalRuntime?: number
        • OptionalScryptTMTO?: number
        • OptionalSegmentSize?: number
        • OptionalSelfTestDisable?: boolean
        • OptionalSeparator?: string

          single char

          +
        • OptionalSession?: string

          [a-zA-Z0-9_-]

          +
        • OptionalShow?: boolean
        • OptionalSkip?: string
        • OptionalSlowCandidates?: boolean
        • OptionalSpeedOnly?: boolean
        • OptionalSpinDamp?: number
        • OptionalStatus?: boolean
        • OptionalStatusJSON?: boolean
        • OptionalStatusTimer?: number
        • OptionalStdinTimeoutAbort?: number
        • OptionalStdout?: boolean
        • OptionalUsername?: boolean
        • OptionalWordlistAutohexDisable?: boolean
        • OptionalWorkloadProfile?: CrackWorkloadProfile
      • OptionalCompletedAt?: string
      • OptionalCreatedAt?: string
      • OptionalErr?: string
      • OptionalHostUUID?: string

        CrackstationID

        +
      • OptionalID?: string
      • OptionalStartedAt?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Credentials?: {
              Collection?: string;
              Hash?: string;
              HashType?: HashType;
              ID?: string;
              IsCracked?: boolean;
              OriginHostUUID?: string;
              Plaintext?: string;
              Username?: string;
          }[];
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Credentials?: {
              Collection?: string;
              Hash?: string;
              HashType?: HashType;
              ID?: string;
              IsCracked?: boolean;
              OriginHostUUID?: string;
              Plaintext?: string;
              Username?: string;
          }[];
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Collection?: string;
          Hash?: string;
          HashType?: HashType;
          ID?: string;
          IsCracked?: boolean;
          OriginHostUUID?: string;
          Plaintext?: string;
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Credential>

  • Parameters

    • request: {
          Credentials?: {
              Collection?: string;
              Hash?: string;
              HashType?: HashType;
              ID?: string;
              IsCracked?: boolean;
              OriginHostUUID?: string;
              Plaintext?: string;
              Username?: string;
          }[];
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.CurrentTokenOwner>

  • Parameters

    • request: {
          MaxBytes?: string;
          MaxLines?: string;
          Path?: string;
          Recurse?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          RestrictedToFile?: boolean;
          Start?: string;
          Stop?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Download>

  • Parameters

    • request: {
          Args?: string[];
          Background?: boolean;
          Env?: { [key: string]: undefined | string };
          EnvInheritance?: boolean;
          Output?: boolean;
          Path?: string;
          PPid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Stderr?: string;
          Stdout?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Execute>

  • Parameters

    • request: {
          AmsiBypass?: boolean;
          AppDomain?: string;
          Arch?: string;
          Arguments?: string[];
          Assembly?: Buffer<ArrayBufferLike>;
          ClassName?: string;
          EtwBypass?: boolean;
          InProcess?: boolean;
          IsDLL?: boolean;
          Method?: string;
          PPid?: number;
          Process?: string;
          ProcessArgs?: string[];
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Runtime?: string;
      }
      • OptionalAmsiBypass?: boolean
      • OptionalAppDomain?: string
      • OptionalArch?: string
      • OptionalArguments?: string[]
      • OptionalAssembly?: Buffer<ArrayBufferLike>
      • OptionalClassName?: string
      • OptionalEtwBypass?: boolean
      • OptionalInProcess?: boolean

        In process specific fields

        +
      • OptionalIsDLL?: boolean
      • OptionalMethod?: string
      • OptionalPPid?: number
      • OptionalProcess?: string
      • OptionalProcessArgs?: string[]
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
      • OptionalRuntime?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ExecuteAssembly>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ExecuteChildren>

  • Parameters

    • request: {
          Args?: string[];
          Background?: boolean;
          HideWindow?: boolean;
          Output?: boolean;
          Path?: string;
          PPid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Stderr?: string;
          Stdout?: string;
          UseToken?: boolean;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Execute>

  • Parameters

    • request: {
          Args?: string[];
          Interactive?: boolean;
          MemFS?: { [key: string]: undefined | Buffer<ArrayBufferLike> };
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          TunnelID?: string;
      }
      • OptionalArgs?: string[]
      • OptionalInteractive?: boolean
      • OptionalMemFS?: { [key: string]: undefined | Buffer<ArrayBufferLike> }
      • OptionalName?: string
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
      • OptionalTunnelID?: string

        Bind to this tunnel

        +
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ExecWasmExtension>

  • ** Implants ***

    +

    Parameters

    • request: {
          Config?: {
              Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
              BeaconInterval?: string;
              BeaconJitter?: string;
              C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
              CanaryDomains?: string[];
              ConnectionStrategy?: string;
              Debug?: boolean;
              DebugFile?: string;
              Evasion?: boolean;
              exports?: string[];
              Extension?: string;
              Format?: OutputFormat;
              GOARCH?: string;
              GOOS?: string;
              GoPackage?: string;
              HTTPC2ConfigName?: string;
              ID?: string;
              ImplantBuilds?: {
                  AgeServerPublicKey?: string;
                  Burned?: boolean;
                  ID?: string;
                  ImplantConfigID?: string;
                  ImplantID?: string;
                  MD5?: string;
                  MinisignServerPublicKey?: string;
                  MtlsCACert?: string;
                  MtlsCert?: string;
                  MtlsKey?: string;
                  Name?: string;
                  PeerPrivateKey?: string;
                  PeerPublicKey?: string;
                  PeerPublicKeyDigest?: string;
                  PeerPublicKeySignature?: string;
                  SHA1?: string;
                  SHA256?: string;
                  Stage?: boolean;
                  WGImplantPrivKey?: string;
                  WGServerPubKey?: string;
              }[];
              ImplantProfileID?: string;
              IncludeDNS?: boolean;
              IncludeHTTP?: boolean;
              IncludeMTLS?: boolean;
              IncludeNamePipe?: boolean;
              IncludeTCP?: boolean;
              IncludeWG?: boolean;
              IsBeacon?: boolean;
              IsService?: boolean;
              IsSharedLib?: boolean;
              IsShellcode?: boolean;
              LimitDatetime?: string;
              LimitDomainJoined?: boolean;
              LimitFileExists?: string;
              LimitHostname?: string;
              LimitLocale?: string;
              LimitUsername?: string;
              MaxConnectionErrors?: number;
              NetGoEnabled?: boolean;
              ObfuscateSymbols?: boolean;
              PollTimeout?: string;
              ReconnectInterval?: string;
              RunAtLoad?: boolean;
              SGNEnabled?: boolean;
              ShellcodeConfig?: {
                  Bypass?: number;
                  Compress?: number;
                  Entropy?: number;
                  ExitOpt?: number;
                  Headers?: number;
                  OEP?: number;
                  Thread?: boolean;
                  Unicode?: boolean;
              };
              ShellcodeEncoder?: ShellcodeEncoder;
              TemplateName?: string;
              TrafficEncoders?: string[];
              TrafficEncodersEnabled?: boolean;
              WGKeyExchangePort?: number;
              WGPeerTunIP?: string;
              WGTcpCommsPort?: number;
          };
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Generate>

  • Parameters

    • request: {
          BuilderName?: string;
          Config?: {
              Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
              BeaconInterval?: string;
              BeaconJitter?: string;
              C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
              CanaryDomains?: string[];
              ConnectionStrategy?: string;
              Debug?: boolean;
              DebugFile?: string;
              Evasion?: boolean;
              exports?: string[];
              Extension?: string;
              Format?: OutputFormat;
              GOARCH?: string;
              GOOS?: string;
              GoPackage?: string;
              HTTPC2ConfigName?: string;
              ID?: string;
              ImplantBuilds?: {
                  AgeServerPublicKey?: string;
                  Burned?: boolean;
                  ID?: string;
                  ImplantConfigID?: string;
                  ImplantID?: string;
                  MD5?: string;
                  MinisignServerPublicKey?: string;
                  MtlsCACert?: string;
                  MtlsCert?: string;
                  MtlsKey?: string;
                  Name?: string;
                  PeerPrivateKey?: string;
                  PeerPublicKey?: string;
                  PeerPublicKeyDigest?: string;
                  PeerPublicKeySignature?: string;
                  SHA1?: string;
                  SHA256?: string;
                  Stage?: boolean;
                  WGImplantPrivKey?: string;
                  WGServerPubKey?: string;
              }[];
              ImplantProfileID?: string;
              IncludeDNS?: boolean;
              IncludeHTTP?: boolean;
              IncludeMTLS?: boolean;
              IncludeNamePipe?: boolean;
              IncludeTCP?: boolean;
              IncludeWG?: boolean;
              IsBeacon?: boolean;
              IsService?: boolean;
              IsSharedLib?: boolean;
              IsShellcode?: boolean;
              LimitDatetime?: string;
              LimitDomainJoined?: boolean;
              LimitFileExists?: string;
              LimitHostname?: string;
              LimitLocale?: string;
              LimitUsername?: string;
              MaxConnectionErrors?: number;
              NetGoEnabled?: boolean;
              ObfuscateSymbols?: boolean;
              PollTimeout?: string;
              ReconnectInterval?: string;
              RunAtLoad?: boolean;
              SGNEnabled?: boolean;
              ShellcodeConfig?: {
                  Bypass?: number;
                  Compress?: number;
                  Entropy?: number;
                  ExitOpt?: number;
                  Headers?: number;
                  OEP?: number;
                  Thread?: boolean;
                  Unicode?: boolean;
              };
              ShellcodeEncoder?: ShellcodeEncoder;
              TemplateName?: string;
              TrafficEncoders?: string[];
              TrafficEncodersEnabled?: boolean;
              WGKeyExchangePort?: number;
              WGPeerTunIP?: string;
              WGTcpCommsPort?: number;
          };
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ExternalImplantConfig>

  • Parameters

    • request: {
          AgeServerPublicKey?: string;
          Burned?: boolean;
          ID?: string;
          ImplantConfigID?: string;
          ImplantID?: string;
          MD5?: string;
          MinisignServerPublicKey?: string;
          MtlsCACert?: string;
          MtlsCert?: string;
          MtlsKey?: string;
          Name?: string;
          PeerPrivateKey?: string;
          PeerPublicKey?: string;
          PeerPublicKeyDigest?: string;
          PeerPublicKeySignature?: string;
          SHA1?: string;
          SHA256?: string;
          Stage?: boolean;
          WGImplantPrivKey?: string;
          WGServerPubKey?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ExternalImplantConfig>

  • Parameters

    • request: {
          File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
          ImplantBuildID?: string;
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          AESEncryptIv?: string;
          AESEncryptKey?: string;
          Compress?: string;
          CompressF?: string;
          Name?: string;
          PrependSize?: boolean;
          Profile?: string;
          RC4EncryptKey?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Generate>

  • Parameters

    • request: {
          ActiveC2?: string;
          Arch?: string;
          Burned?: boolean;
          Evasion?: boolean;
          Filename?: string;
          FirstContact?: string;
          GID?: string;
          Hostname?: string;
          ID?: string;
          Integrity?: string;
          Interval?: string;
          IsDead?: boolean;
          Jitter?: string;
          LastCheckin?: string;
          Locale?: string;
          Name?: string;
          NextCheckin?: string;
          OS?: string;
          PID?: number;
          ProxyURL?: string;
          ReconnectInterval?: string;
          RemoteAddress?: string;
          TasksCount?: string;
          TasksCountCompleted?: string;
          Transport?: string;
          UID?: string;
          Username?: string;
          UUID?: string;
          Version?: string;
      }
      • OptionalActiveC2?: string
      • OptionalArch?: string
      • OptionalBurned?: boolean
      • OptionalEvasion?: boolean
      • OptionalFilename?: string

        Argv[0]

        +
      • OptionalFirstContact?: string
      • OptionalGID?: string
      • OptionalHostname?: string
      • OptionalID?: string
      • OptionalIntegrity?: string
      • OptionalInterval?: string
      • OptionalIsDead?: boolean
      • OptionalJitter?: string
      • OptionalLastCheckin?: string
      • OptionalLocale?: string
      • OptionalName?: string
      • OptionalNextCheckin?: string
      • OptionalOS?: string
      • OptionalPID?: number
      • OptionalProxyURL?: string
      • OptionalReconnectInterval?: string
      • OptionalRemoteAddress?: string
      • OptionalTasksCount?: string
      • OptionalTasksCountCompleted?: string
      • OptionalTransport?: string
      • OptionalUID?: string
      • OptionalUsername?: string
      • OptionalUUID?: string
      • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Beacon>

  • Parameters

    • request: {
          BeaconID?: string;
          CompletedAt?: string;
          CreatedAt?: string;
          Description?: string;
          ID?: string;
          Request?: Buffer<ArrayBufferLike>;
          Response?: Buffer<ArrayBufferLike>;
          SentAt?: string;
          State?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.BeaconTask>

  • Parameters

    • request: {
          ActiveC2?: string;
          Arch?: string;
          Burned?: boolean;
          Evasion?: boolean;
          Filename?: string;
          FirstContact?: string;
          GID?: string;
          Hostname?: string;
          ID?: string;
          Integrity?: string;
          Interval?: string;
          IsDead?: boolean;
          Jitter?: string;
          LastCheckin?: string;
          Locale?: string;
          Name?: string;
          NextCheckin?: string;
          OS?: string;
          PID?: number;
          ProxyURL?: string;
          ReconnectInterval?: string;
          RemoteAddress?: string;
          TasksCount?: string;
          TasksCountCompleted?: string;
          Transport?: string;
          UID?: string;
          Username?: string;
          UUID?: string;
          Version?: string;
      }
      • OptionalActiveC2?: string
      • OptionalArch?: string
      • OptionalBurned?: boolean
      • OptionalEvasion?: boolean
      • OptionalFilename?: string

        Argv[0]

        +
      • OptionalFirstContact?: string
      • OptionalGID?: string
      • OptionalHostname?: string
      • OptionalID?: string
      • OptionalIntegrity?: string
      • OptionalInterval?: string
      • OptionalIsDead?: boolean
      • OptionalJitter?: string
      • OptionalLastCheckin?: string
      • OptionalLocale?: string
      • OptionalName?: string
      • OptionalNextCheckin?: string
      • OptionalOS?: string
      • OptionalPID?: number
      • OptionalProxyURL?: string
      • OptionalReconnectInterval?: string
      • OptionalRemoteAddress?: string
      • OptionalTasksCount?: string
      • OptionalTasksCountCompleted?: string
      • OptionalTransport?: string
      • OptionalUID?: string
      • OptionalUsername?: string
      • OptionalUUID?: string
      • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.BeaconTasks>

  • Parameters

    • request: {
          Collection?: string;
          Hash?: string;
          HashType?: HashType;
          ID?: string;
          IsCracked?: boolean;
          OriginHostUUID?: string;
          Plaintext?: string;
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Credential>

  • Parameters

    • request: {
          Collection?: string;
          Hash?: string;
          HashType?: HashType;
          ID?: string;
          IsCracked?: boolean;
          OriginHostUUID?: string;
          Plaintext?: string;
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Credentials>

  • Parameters

    • request: {
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.EnvInfo>

  • Parameters

    • request: {
          Collection?: string;
          Hash?: string;
          HashType?: HashType;
          ID?: string;
          IsCracked?: boolean;
          OriginHostUUID?: string;
          Plaintext?: string;
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Credentials>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.GetPrivs>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RportFwdListeners>

  • Parameters

    • request: {
          Config?: {
              Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
              BeaconInterval?: string;
              BeaconJitter?: string;
              C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
              CanaryDomains?: string[];
              ConnectionStrategy?: string;
              Debug?: boolean;
              DebugFile?: string;
              Evasion?: boolean;
              exports?: string[];
              Extension?: string;
              Format?: OutputFormat;
              GOARCH?: string;
              GOOS?: string;
              GoPackage?: string;
              HTTPC2ConfigName?: string;
              ID?: string;
              ImplantBuilds?: {
                  AgeServerPublicKey?: string;
                  Burned?: boolean;
                  ID?: string;
                  ImplantConfigID?: string;
                  ImplantID?: string;
                  MD5?: string;
                  MinisignServerPublicKey?: string;
                  MtlsCACert?: string;
                  MtlsCert?: string;
                  MtlsKey?: string;
                  Name?: string;
                  PeerPrivateKey?: string;
                  PeerPublicKey?: string;
                  PeerPublicKeyDigest?: string;
                  PeerPublicKeySignature?: string;
                  SHA1?: string;
                  SHA256?: string;
                  Stage?: boolean;
                  WGImplantPrivKey?: string;
                  WGServerPubKey?: string;
              }[];
              ImplantProfileID?: string;
              IncludeDNS?: boolean;
              IncludeHTTP?: boolean;
              IncludeMTLS?: boolean;
              IncludeNamePipe?: boolean;
              IncludeTCP?: boolean;
              IncludeWG?: boolean;
              IsBeacon?: boolean;
              IsService?: boolean;
              IsSharedLib?: boolean;
              IsShellcode?: boolean;
              LimitDatetime?: string;
              LimitDomainJoined?: boolean;
              LimitFileExists?: string;
              LimitHostname?: string;
              LimitLocale?: string;
              LimitUsername?: string;
              MaxConnectionErrors?: number;
              NetGoEnabled?: boolean;
              ObfuscateSymbols?: boolean;
              PollTimeout?: string;
              ReconnectInterval?: string;
              RunAtLoad?: boolean;
              SGNEnabled?: boolean;
              ShellcodeConfig?: {
                  Bypass?: number;
                  Compress?: number;
                  Entropy?: number;
                  ExitOpt?: number;
                  Headers?: number;
                  OEP?: number;
                  Thread?: boolean;
                  Unicode?: boolean;
              };
              ShellcodeEncoder?: ShellcodeEncoder;
              TemplateName?: string;
              TrafficEncoders?: string[];
              TrafficEncodersEnabled?: boolean;
              WGKeyExchangePort?: number;
              WGPeerTunIP?: string;
              WGTcpCommsPort?: number;
          };
          HostingProcess?: string;
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.GetSystem>

  • Parameters

    • request: {
          LinesAfter?: number;
          LinesBefore?: number;
          Path?: string;
          Recursive?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          SearchPattern?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Grep>

  • Parameters

    • request: {
          Name?: string;
          ProfileName?: string;
          ReferenceDLL?: Buffer<ArrayBufferLike>;
          ReferenceDLLPath?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          TargetDLL?: Buffer<ArrayBufferLike>;
          TargetLocation?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.DllHijack>

  • Parameters

    • request: {
          ExtensionData?: { [key: string]: undefined | { Output?: string } };
          FirstContact?: string;
          Hostname?: string;
          HostUUID?: string;
          ID?: string;
          IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
          Locale?: string;
          OSVersion?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Host>

  • Parameters

    • request: {
          ExtensionData?: { [key: string]: undefined | { Output?: string } };
          FirstContact?: string;
          Hostname?: string;
          HostUUID?: string;
          ID?: string;
          IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
          Locale?: string;
          OSVersion?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Ifconfig>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Impersonate>

  • ** Generic ***

    +

    Parameters

    • request: {
          Force?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ListExtensions>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ListWasmExtensions>

  • ** Loot ***

    +

    Parameters

    • request: {
          File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
          FileType?: FileType;
          ID?: string;
          Name?: string;
          OriginHostUUID?: string;
          Size?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Loot>

  • Parameters

    • request: {
          File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
          FileType?: FileType;
          ID?: string;
          Name?: string;
          OriginHostUUID?: string;
          Size?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Loot>

  • Parameters

    • request: {
          File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
          FileType?: FileType;
          ID?: string;
          Name?: string;
          OriginHostUUID?: string;
          Size?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
          FileType?: FileType;
          ID?: string;
          Name?: string;
          OriginHostUUID?: string;
          Size?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Loot>

  • Parameters

    • request: {
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Ls>

  • Parameters

    • request: {
          Domain?: string;
          LogonType?: number;
          Password?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.MakeToken>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.MemfilesAdd>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Ls>

  • Parameters

    • request: {
          Fd?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.MemfilesRm>

  • Parameters

    • request: {
          Config?: {
              Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
              BeaconInterval?: string;
              BeaconJitter?: string;
              C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
              CanaryDomains?: string[];
              ConnectionStrategy?: string;
              Debug?: boolean;
              DebugFile?: string;
              Evasion?: boolean;
              exports?: string[];
              Extension?: string;
              Format?: OutputFormat;
              GOARCH?: string;
              GOOS?: string;
              GoPackage?: string;
              HTTPC2ConfigName?: string;
              ID?: string;
              ImplantBuilds?: {
                  AgeServerPublicKey?: string;
                  Burned?: boolean;
                  ID?: string;
                  ImplantConfigID?: string;
                  ImplantID?: string;
                  MD5?: string;
                  MinisignServerPublicKey?: string;
                  MtlsCACert?: string;
                  MtlsCert?: string;
                  MtlsKey?: string;
                  Name?: string;
                  PeerPrivateKey?: string;
                  PeerPublicKey?: string;
                  PeerPublicKeyDigest?: string;
                  PeerPublicKeySignature?: string;
                  SHA1?: string;
                  SHA256?: string;
                  Stage?: boolean;
                  WGImplantPrivKey?: string;
                  WGServerPubKey?: string;
              }[];
              ImplantProfileID?: string;
              IncludeDNS?: boolean;
              IncludeHTTP?: boolean;
              IncludeMTLS?: boolean;
              IncludeNamePipe?: boolean;
              IncludeTCP?: boolean;
              IncludeWG?: boolean;
              IsBeacon?: boolean;
              IsService?: boolean;
              IsSharedLib?: boolean;
              IsShellcode?: boolean;
              LimitDatetime?: string;
              LimitDomainJoined?: boolean;
              LimitFileExists?: string;
              LimitHostname?: string;
              LimitLocale?: string;
              LimitUsername?: string;
              MaxConnectionErrors?: number;
              NetGoEnabled?: boolean;
              ObfuscateSymbols?: boolean;
              PollTimeout?: string;
              ReconnectInterval?: string;
              RunAtLoad?: boolean;
              SGNEnabled?: boolean;
              ShellcodeConfig?: {
                  Bypass?: number;
                  Compress?: number;
                  Entropy?: number;
                  ExitOpt?: number;
                  Headers?: number;
                  OEP?: number;
                  Thread?: boolean;
                  Unicode?: boolean;
              };
              ShellcodeEncoder?: ShellcodeEncoder;
              TemplateName?: string;
              TrafficEncoders?: string[];
              TrafficEncodersEnabled?: boolean;
              WGKeyExchangePort?: number;
              WGPeerTunIP?: string;
              WGTcpCommsPort?: number;
          };
          Encoder?: ShellcodeEncoder;
          Name?: string;
          Pid?: number;
          ProcName?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Migrate>

  • Parameters

    • request: {
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Mkdir>

  • Parameters

    • request: { APIKey?: string; APIPassword?: string; ID?: string; Type?: string }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Response>

  • Parameters

    • request: { APIKey?: string; APIPassword?: string; ID?: string; Type?: string }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Response>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Mount>

  • Parameters

    • request: {
          Encoder?: string;
          Iterations?: number;
          LHost?: string;
          LPort?: number;
          Payload?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Task>

  • Parameters

    • request: {
          Encoder?: string;
          Iterations?: number;
          LHost?: string;
          LPort?: number;
          Payload?: string;
          PID?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Task>

  • Parameters

    • request: {
          Dst?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Src?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Mv>

  • Parameters

    • request: {
          IP4?: boolean;
          IP6?: boolean;
          Listening?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          TCP?: boolean;
          UDP?: boolean;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Netstat>

  • ** Beacon *** -only commands

    +

    Parameters

    • request: {
          C2s?: string[];
          Delay?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Response?: {
              Async?: boolean;
              BeaconID?: string;
              Err?: string;
              TaskID?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.OpenSession>

  • ** Session Interactions ***

    +

    Parameters

    • request: {
          Nonce?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Response?: {
              Async?: boolean;
              BeaconID?: string;
              Err?: string;
              TaskID?: string;
          };
      }
      • OptionalNonce?: number
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
      • OptionalResponse?: { Async?: boolean; BeaconID?: string; Err?: string; TaskID?: string }

        Ping is special

        +
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Ping>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.PivotListeners>

  • ** Pivots ***

    +

    Parameters

    • request: {
          BindAddress?: string;
          Options?: boolean[];
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Type?: PivotType;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.PivotListener>

  • Parameters

    • request: {
          ID?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Host?: string;
          Port?: number;
          Protocol?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          TunnelID?: string;
      }
      • OptionalHost?: string
      • OptionalPort?: number
      • OptionalProtocol?: number
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
      • OptionalTunnelID?: string

        Bind to this tunnel

        +
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Portfwd>

  • Parameters

    • request: {
          Pid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Timeout?: number;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ProcessDump>

  • Parameters

    • request: {
          FullInfo?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Ps>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Pwd>

  • Parameters

    • request: {
          BeaconInterval?: string;
          BeaconJitter?: string;
          ReconnectInterval?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Reconfigure>

  • ** Extensions ***

    +

    Parameters

    • request: {
          Data?: Buffer<ArrayBufferLike>;
          Init?: string;
          Name?: string;
          OS?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegisterExtension>

  • ** Wasm Extensions ***

    +

    Parameters

    • request: {
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          WasmGz?: Buffer<ArrayBufferLike>;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegisterWasmExtension>

  • Parameters

    • request: {
          Hive?: string;
          Hostname?: string;
          Key?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryCreateKey>

  • Parameters

    • request: {
          Hive?: string;
          Hostname?: string;
          Key?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryDeleteKey>

  • Parameters

    • request: {
          Hive?: string;
          Hostname?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
      • OptionalHive?: string
      • OptionalHostname?: string

        Keep the same ID as the other registry operations

        +
      • OptionalPath?: string
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistrySubKeyList>

  • Parameters

    • request: {
          Hive?: string;
          Hostname?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
      • OptionalHive?: string
      • OptionalHostname?: string

        Keep the same ID as the other registry operations

        +
      • OptionalPath?: string
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryValuesList>

  • Parameters

    • request: {
          Hive?: string;
          Hostname?: string;
          Key?: string;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryRead>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          RequestedHive?: string;
          RootHive?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryReadHive>

  • Parameters

    • request: {
          ByteValue?: Buffer<ArrayBufferLike>;
          DWordValue?: number;
          Hive?: string;
          Hostname?: string;
          Key?: string;
          Path?: string;
          QWordValue?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          StringValue?: string;
          Type?: number;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RegistryWrite>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServiceInfo?: { Hostname?: string; ServiceName?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ServiceInfo>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RevToSelf>

  • Parameters

    • request: {
          Force?: boolean;
          Path?: string;
          Recursive?: boolean;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Rm>

  • Parameters

    • request: {
          ActiveC2?: string;
          Arch?: string;
          Burned?: boolean;
          Evasion?: boolean;
          Filename?: string;
          FirstContact?: string;
          GID?: string;
          Hostname?: string;
          ID?: string;
          Integrity?: string;
          Interval?: string;
          IsDead?: boolean;
          Jitter?: string;
          LastCheckin?: string;
          Locale?: string;
          Name?: string;
          NextCheckin?: string;
          OS?: string;
          PID?: number;
          ProxyURL?: string;
          ReconnectInterval?: string;
          RemoteAddress?: string;
          TasksCount?: string;
          TasksCountCompleted?: string;
          Transport?: string;
          UID?: string;
          Username?: string;
          UUID?: string;
          Version?: string;
      }
      • OptionalActiveC2?: string
      • OptionalArch?: string
      • OptionalBurned?: boolean
      • OptionalEvasion?: boolean
      • OptionalFilename?: string

        Argv[0]

        +
      • OptionalFirstContact?: string
      • OptionalGID?: string
      • OptionalHostname?: string
      • OptionalID?: string
      • OptionalIntegrity?: string
      • OptionalInterval?: string
      • OptionalIsDead?: boolean
      • OptionalJitter?: string
      • OptionalLastCheckin?: string
      • OptionalLocale?: string
      • OptionalName?: string
      • OptionalNextCheckin?: string
      • OptionalOS?: string
      • OptionalPID?: number
      • OptionalProxyURL?: string
      • OptionalReconnectInterval?: string
      • OptionalRemoteAddress?: string
      • OptionalTasksCount?: string
      • OptionalTasksCountCompleted?: string
      • OptionalTransport?: string
      • OptionalUID?: string
      • OptionalUsername?: string
      • OptionalUUID?: string
      • OptionalVersion?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Args?: string;
          Domain?: string;
          HideWindow?: boolean;
          NetOnly?: boolean;
          Password?: string;
          ProcessName?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RunAs>

  • Parameters

    • request: {
          Command?: string;
          Hostname?: string;
          Keytab?: Buffer<ArrayBufferLike>;
          Krb5Conf?: string;
          Password?: string;
          Port?: number;
          PrivKey?: Buffer<ArrayBufferLike>;
          Realm?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Username?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.SSHCommand>

  • Parameters

    • request: {
          C2Config?: {
              Created?: string;
              ID?: string;
              ImplantConfig?: {
                  ChromeBaseVersion?: number;
                  extensions?: string[];
                  ExtraURLParameters?: {
                      ID?: string;
                      Method?: string;
                      Name?: string;
                      Probability?: number;
                      Value?: string;
                  }[];
                  Headers?: {
                      ID?: string;
                      Method?: string;
                      Name?: string;
                      Probability?: number;
                      Value?: string;
                  }[];
                  ID?: string;
                  MacOSVersion?: string;
                  MaxFileGen?: number;
                  MaxPathGen?: number;
                  MaxPathLength?: number;
                  MinFileGen?: number;
                  MinPathGen?: number;
                  MinPathLength?: number;
                  NonceMode?: string;
                  NonceQueryArgChars?: string;
                  NonceQueryLength?: number;
                  PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                  UserAgent?: string;
              };
              Name?: string;
              ServerConfig?: {
                  Cookies?: { ID?: string; Name?: string }[];
                  Headers?: {
                      ID?: string;
                      Method?: string;
                      Name?: string;
                      Probability?: number;
                      Value?: string;
                  }[];
                  ID?: string;
                  RandomVersionHeaders?: boolean;
              };
          };
          overwrite?: boolean;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Config?: {
              Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
              BeaconInterval?: string;
              BeaconJitter?: string;
              C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
              CanaryDomains?: string[];
              ConnectionStrategy?: string;
              Debug?: boolean;
              DebugFile?: string;
              Evasion?: boolean;
              exports?: string[];
              Extension?: string;
              Format?: OutputFormat;
              GOARCH?: string;
              GOOS?: string;
              GoPackage?: string;
              HTTPC2ConfigName?: string;
              ID?: string;
              ImplantBuilds?: {
                  AgeServerPublicKey?: string;
                  Burned?: boolean;
                  ID?: string;
                  ImplantConfigID?: string;
                  ImplantID?: string;
                  MD5?: string;
                  MinisignServerPublicKey?: string;
                  MtlsCACert?: string;
                  MtlsCert?: string;
                  MtlsKey?: string;
                  Name?: string;
                  PeerPrivateKey?: string;
                  PeerPublicKey?: string;
                  PeerPublicKeyDigest?: string;
                  PeerPublicKeySignature?: string;
                  SHA1?: string;
                  SHA256?: string;
                  Stage?: boolean;
                  WGImplantPrivKey?: string;
                  WGServerPubKey?: string;
              }[];
              ImplantProfileID?: string;
              IncludeDNS?: boolean;
              IncludeHTTP?: boolean;
              IncludeMTLS?: boolean;
              IncludeNamePipe?: boolean;
              IncludeTCP?: boolean;
              IncludeWG?: boolean;
              IsBeacon?: boolean;
              IsService?: boolean;
              IsSharedLib?: boolean;
              IsShellcode?: boolean;
              LimitDatetime?: string;
              LimitDomainJoined?: boolean;
              LimitFileExists?: string;
              LimitHostname?: string;
              LimitLocale?: string;
              LimitUsername?: string;
              MaxConnectionErrors?: number;
              NetGoEnabled?: boolean;
              ObfuscateSymbols?: boolean;
              PollTimeout?: string;
              ReconnectInterval?: string;
              RunAtLoad?: boolean;
              SGNEnabled?: boolean;
              ShellcodeConfig?: {
                  Bypass?: number;
                  Compress?: number;
                  Entropy?: number;
                  ExitOpt?: number;
                  Headers?: number;
                  OEP?: number;
                  Thread?: boolean;
                  Unicode?: boolean;
              };
              ShellcodeEncoder?: ShellcodeEncoder;
              TemplateName?: string;
              TrafficEncoders?: string[];
              TrafficEncodersEnabled?: boolean;
              WGKeyExchangePort?: number;
              WGPeerTunIP?: string;
              WGTcpCommsPort?: number;
          };
          ID?: string;
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ImplantProfile>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Screenshot>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServiceInfo?: { Hostname?: string; ServiceName?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ServiceDetail>

  • Parameters

    • request: {
          Hostname?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Services>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Variable?: { Key?: string; Value?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.SetEnv>

  • ** Realtime Commands ***

    +

    Parameters

    • request: {
          Cols?: number;
          EnablePTY?: boolean;
          Path?: string;
          Pid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Rows?: number;
          TunnelID?: string;
      }
      • OptionalCols?: number
      • OptionalEnablePTY?: boolean
      • OptionalPath?: string
      • OptionalPid?: number
      • OptionalRequest?: { Async?: boolean; BeaconID?: string; SessionID?: string; Timeout?: string }
      • OptionalRows?: number
      • OptionalTunnelID?: string

        Bind to this tunnel

        +
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Shell>

  • Parameters

    • request: {
          Architecture?: string;
          BadChars?: Buffer<ArrayBufferLike>;
          Data?: Buffer<ArrayBufferLike>;
          Encoder?: ShellcodeEncoder;
          Iterations?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ShellcodeEncode>

  • Parameters

    • request: {
          Cols?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          Rows?: number;
          TunnelID?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Args?: string[];
          Data?: Buffer<ArrayBufferLike>;
          EntryPoint?: string;
          isDLL?: boolean;
          isUnicode?: boolean;
          Kill?: boolean;
          PPid?: number;
          ProcessArgs?: string[];
          ProcessName?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Sideload>

  • Parameters

    • request: AsyncIterable<
          {
              CloseConn?: boolean;
              Data?: Buffer<ArrayBufferLike>;
              Password?: string;
              Request?: {
                  Async?: boolean;
                  BeaconID?: string;
                  SessionID?: string;
                  Timeout?: string;
              };
              Sequence?: string;
              TunnelID?: string;
              Username?: string;
          },
      >
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns AsyncIterable<sliverpb.SocksData>

  • Parameters

    • request: {
          Args?: string[];
          Data?: Buffer<ArrayBufferLike>;
          EntryPoint?: string;
          Kill?: boolean;
          PPid?: number;
          ProcessArgs?: string[];
          ProcessName?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.SpawnDll>

  • Parameters

    • request: {
          Canaries?: boolean;
          Domains?: string[];
          EnforceOTP?: boolean;
          Host?: string;
          Port?: number;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • request: {
          ACME?: boolean;
          Cert?: Buffer<ArrayBufferLike>;
          Domain?: string;
          EnforceOTP?: boolean;
          Host?: string;
          Key?: Buffer<ArrayBufferLike>;
          LongPollJitter?: string;
          LongPollTimeout?: string;
          Port?: number;
          RandomizeJARM?: boolean;
          Secure?: boolean;
          Website?: string;
      }
      • OptionalACME?: boolean
      • OptionalCert?: Buffer<ArrayBufferLike>
      • OptionalDomain?: string
      • OptionalEnforceOTP?: boolean
      • OptionalHost?: string
      • OptionalKey?: Buffer<ArrayBufferLike>
      • OptionalLongPollJitter?: string
      • OptionalLongPollTimeout?: string
      • OptionalPort?: number
      • OptionalRandomizeJARM?: boolean

        Only valid with Secure = true

        +
      • OptionalSecure?: boolean

        Enable HTTPS

        +
      • OptionalWebsite?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • request: {
          ACME?: boolean;
          Cert?: Buffer<ArrayBufferLike>;
          Domain?: string;
          EnforceOTP?: boolean;
          Host?: string;
          Key?: Buffer<ArrayBufferLike>;
          LongPollJitter?: string;
          LongPollTimeout?: string;
          Port?: number;
          RandomizeJARM?: boolean;
          Secure?: boolean;
          Website?: string;
      }
      • OptionalACME?: boolean
      • OptionalCert?: Buffer<ArrayBufferLike>
      • OptionalDomain?: string
      • OptionalEnforceOTP?: boolean
      • OptionalHost?: string
      • OptionalKey?: Buffer<ArrayBufferLike>
      • OptionalLongPollJitter?: string
      • OptionalLongPollTimeout?: string
      • OptionalPort?: number
      • OptionalRandomizeJARM?: boolean

        Only valid with Secure = true

        +
      • OptionalSecure?: boolean

        Enable HTTPS

        +
      • OptionalWebsite?: string
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • request: {
          BindAddress?: string;
          BindPort?: number;
          ForwardAddress?: string;
          ForwardPort?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RportFwdListener>

  • Parameters

    • request: {
          Arguments?: string;
          BinPath?: string;
          Hostname?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServiceDescription?: string;
          ServiceName?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ServiceInfo>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServiceInfo?: { Hostname?: string; ServiceName?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ServiceInfo>

  • ** Stager Listener ***

    +

    Parameters

    • request: {
          Data?: Buffer<ArrayBufferLike>;
          Host?: string;
          Port?: number;
          ProfileName?: string;
          Protocol?: StageProtocol;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.StagerListener>

  • Parameters

    • request: {
          Host?: string;
          KeyPort?: number;
          NPort?: number;
          Port?: number;
          TunIP?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.ListenerJob>

  • Parameters

    • request: {
          ID?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.RportFwdListener>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          ServiceInfo?: { Hostname?: string; ServiceName?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.ServiceInfo>

  • Parameters

    • request: {
          Data?: Buffer<ArrayBufferLike>;
          Encoder?: string;
          Pid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
          RWXPages?: boolean;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Task>

  • Parameters

    • request: {
          Force?: boolean;
          Pid?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Terminate>

  • Parameters

    • request: {
          ID?: string;
          SkipTests?: boolean;
          TestID?: string;
          Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.TrafficEncoderTests>

  • Parameters

    • request: {
          ID?: string;
          SkipTests?: boolean;
          TestID?: string;
          Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: AsyncIterable<
          {
              Ack?: string;
              Closed?: boolean;
              CreateReverse?: boolean;
              Data?: Buffer<ArrayBufferLike>;
              Resend?: boolean;
              rportfwd?: {
                  Host?: string;
                  Port?: number;
                  Protocol?: number;
                  Response?: {
                      Async?: boolean;
                      BeaconID?: string;
                      Err?: string;
                      TaskID?: string;
                  };
                  TunnelID?: string;
              };
              Sequence?: string;
              SessionID?: string;
              TunnelID?: string;
          },
      >
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns AsyncIterable<sliverpb.TunnelData>

  • Parameters

    • request: {
          Name?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.UnsetEnv>

  • Parameters

    • request: {
          Data?: Buffer<ArrayBufferLike>;
          Encoder?: string;
          FileName?: string;
          IsDirectory?: boolean;
          IsIOC?: boolean;
          Overwrite?: boolean;
          Path?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.Upload>

  • Parameters

    • request: {
          Contents?: {
              [key: string]:
                  | undefined
                  | {
                      Content?: Buffer<ArrayBufferLike>;
                      ContentType?: string;
                      ID?: string;
                      OriginalFile?: string;
                      Path?: string;
                      Sha256?: string;
                      Size?: string;
                      WebsiteID?: string;
                  };
          };
          ID?: string;
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Website>

  • Parameters

    • request: {
          Contents?: {
              [key: string]:
                  | undefined
                  | {
                      Content?: Buffer<ArrayBufferLike>;
                      ContentType?: string;
                      ID?: string;
                      OriginalFile?: string;
                      Path?: string;
                      Sha256?: string;
                      Size?: string;
                      WebsiteID?: string;
                  };
          };
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Website>

  • Parameters

    • request: {
          Contents?: {
              [key: string]:
                  | undefined
                  | {
                      Content?: Buffer<ArrayBufferLike>;
                      ContentType?: string;
                      ID?: string;
                      OriginalFile?: string;
                      Path?: string;
                      Sha256?: string;
                      Size?: string;
                      WebsiteID?: string;
                  };
          };
          ID?: string;
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<commonpb.Empty>

  • Parameters

    • request: {
          Contents?: {
              [key: string]:
                  | undefined
                  | {
                      Content?: Buffer<ArrayBufferLike>;
                      ContentType?: string;
                      ID?: string;
                      OriginalFile?: string;
                      Path?: string;
                      Sha256?: string;
                      Size?: string;
                      WebsiteID?: string;
                  };
          };
          Name?: string;
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<clientpb.Website>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGTCPForwarders>

  • Parameters

    • request: {
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGSocksServers>

  • ** Wireguard Specific ***

    +

    Parameters

    • request: {
          LocalPort?: number;
          RemoteAddress?: string;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGPortForward>

  • Parameters

    • request: {
          Port?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGSocks>

  • Parameters

    • request: {
          ID?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGPortForward>

  • Parameters

    • request: {
          ID?: number;
          Request?: {
              Async?: boolean;
              BeaconID?: string;
              SessionID?: string;
              Timeout?: string;
          };
      }
    • Optionaloptions: CallOptions & CallOptionsExt

    Returns Promise<sliverpb.WGSocks>

diff --git a/docs/interfaces/rpcpb.SliverRPCServiceImplementation.html b/docs/interfaces/rpcpb.SliverRPCServiceImplementation.html new file mode 100644 index 0000000..fc56c3f --- /dev/null +++ b/docs/interfaces/rpcpb.SliverRPCServiceImplementation.html @@ -0,0 +1,216 @@ +SliverRPCServiceImplementation | sliver-script

Interface SliverRPCServiceImplementation<CallContextExt>

interface SliverRPCServiceImplementation<CallContextExt = {}> {
    backdoor(
        request: clientpb.BackdoorReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    builderRegister(
        request: clientpb.Builder,
        context: CallContext & CallContextExt,
    ): ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >;
    builders(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Builders?: {
                CrossCompilers?: {
                    CCPath?: string;
                    CXXPath?: string;
                    TargetGOARCH?: string;
                    TargetGOOS?: string;
                }[];
                GOARCH?: string;
                GOOS?: string;
                Name?: string;
                OperatorName?: string;
                Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
                Templates?: string[];
            }[];
        },
    >;
    builderTrigger(
        request: clientpb.Event,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    callExtension(
        request: sliverpb.CallExtensionReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Output?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            ServerStore?: boolean;
        },
    >;
    canaries(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Canaries?: {
                Count?: number;
                Domain?: string;
                FirstTriggered?: string;
                ID?: string;
                ImplantName?: string;
                LatestTrigger?: string;
                Triggered?: boolean;
            }[];
        },
    >;
    cancelBeaconTask(
        request: clientpb.BeaconTask,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
    >;
    cd(
        request: sliverpb.CdReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    chmod(
        request: sliverpb.ChmodReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    chown(
        request: sliverpb.ChownReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    chtimes(
        request: sliverpb.ChtimesReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    clientLog(
        request: AsyncIterable<clientpb.ClientLogData>,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    closeSession(
        request: sliverpb.CloseSession,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    closeSocks(
        request: sliverpb.Socks,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    closeTunnel(
        request: sliverpb.Tunnel,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    cp(
        request: sliverpb.CpReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BytesWritten?: string;
            Dst?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Src?: string;
        },
    >;
    crack(
        request: clientpb.CrackCommand,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Job?: {
                Command?: {
                    AttackMode?: CrackAttackMode;
                    BackendDevices?: number[];
                    BackendIgnoreCUDA?: boolean;
                    BackendIgnoreHip?: boolean;
                    BackendIgnoreMetal?: boolean;
                    BackendIgnoreOpenCL?: boolean;
                    BackendInfo?: boolean;
                    BackendVectorWidth?: number;
                    Benchmark?: boolean;
                    BenchmarkAll?: boolean;
                    BitmapMax?: number;
                    BitmapMin?: number;
                    BrainClient?: boolean;
                    BrainClientFeatures?: string;
                    BrainHost?: string;
                    BrainPassword?: string;
                    BrainPort?: number;
                    BrainServer?: boolean;
                    BrainServerTimer?: number;
                    BrainSession?: string;
                    BrainSessionWhitelist?: string;
                    CPUAffinity?: number[];
                    CustomCharset1?: string;
                    CustomCharset2?: string;
                    CustomCharset3?: string;
                    CustomCharset4?: string;
                    DebugMode?: number;
                    DeprecatedCheckDisable?: boolean;
                    EncodingFrom?: CrackEncoding;
                    EncodingTo?: CrackEncoding;
                    Force?: boolean;
                    GenerateRules?: number;
                    GenerateRulesFuncSel?: string;
                    GenerateRulesFunMax?: number;
                    GenerateRulesFunMin?: number;
                    GenerateRulesSeed?: number;
                    Hashes?: string[];
                    HashInfo?: boolean;
                    HashType?: HashType;
                    HccapxMessagePair?: number;
                    HexCharset?: boolean;
                    HexSalt?: boolean;
                    HexWordlist?: boolean;
                    HookThreads?: number;
                    HwmonDisable?: boolean;
                    HwmonTempAbort?: number;
                    Identify?: string;
                    Increment?: boolean;
                    IncrementMax?: number;
                    IncrementMin?: number;
                    KeepGuessing?: boolean;
                    KernelAccel?: number;
                    KernelLoops?: number;
                    KernelThreads?: number;
                    KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                    Keyspace?: boolean;
                    Left?: boolean;
                    Limit?: string;
                    LogfileDisable?: boolean;
                    Loopback?: boolean;
                    MachineReadable?: boolean;
                    MarkovClassic?: boolean;
                    MarkovDisable?: boolean;
                    MarkovHcstat2?: Buffer<ArrayBufferLike>;
                    MarkovInverse?: boolean;
                    MarkovThreshold?: number;
                    MultiplyAccelDisabled?: boolean;
                    NonceErrorCorrections?: number;
                    OpenCLDeviceTypes?: number[];
                    OptimizedKernelEnable?: boolean;
                    OutfileAutohexDisable?: boolean;
                    OutfileCheckTimer?: number;
                    OutfileFormat?: CrackOutfileFormat[];
                    Potfile?: Buffer<ArrayBufferLike>;
                    PotfileDisable?: boolean;
                    ProgressOnly?: boolean;
                    Quiet?: boolean;
                    Remove?: boolean;
                    RemoveTimer?: number;
                    Restore?: boolean;
                    RestoreDisable?: boolean;
                    RestoreFile?: Buffer<ArrayBufferLike>;
                    RulesFile?: Buffer<ArrayBufferLike>;
                    Runtime?: number;
                    ScryptTMTO?: number;
                    SegmentSize?: number;
                    SelfTestDisable?: boolean;
                    Separator?: string;
                    Session?: string;
                    Show?: boolean;
                    Skip?: string;
                    SlowCandidates?: boolean;
                    SpeedOnly?: boolean;
                    SpinDamp?: number;
                    Status?: boolean;
                    StatusJSON?: boolean;
                    StatusTimer?: number;
                    StdinTimeoutAbort?: number;
                    Stdout?: boolean;
                    Username?: boolean;
                    WordlistAutohexDisable?: boolean;
                    WorkloadProfile?: CrackWorkloadProfile;
                };
                CompletedAt?: string;
                CreatedAt?: string;
                Err?: string;
                ID?: string;
                ResultFileID?: string;
                Status?: CrackJobStatus;
            };
        },
    >;
    crackFileChunkDownload(
        request: clientpb.CrackFileChunk,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            CrackFileID?: string;
            Data?: Buffer<ArrayBufferLike>;
            ID?: string;
            N?: number;
        },
    >;
    crackFileChunkUpload(
        request: clientpb.CrackFileChunk,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    crackFileComplete(
        request: clientpb.CrackFile,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    crackFileCreate(
        request: clientpb.CrackFile,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
    >;
    crackFileDelete(
        request: clientpb.CrackFile,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    crackFilesList(
        request: clientpb.CrackFile,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            CurrentDiskUsage?: string;
            Files?: {
                Chunks?: {
                    CrackFileID?: string;
                    Data?: Buffer<ArrayBufferLike>;
                    ID?: string;
                    N?: number;
                }[];
                ChunkSize?: string;
                CreatedAt?: string;
                ID?: string;
                IsCompressed?: boolean;
                LastModified?: string;
                MaxFileSize?: string;
                Name?: string;
                Sha2256?: string;
                Type?: CrackFileType;
                UncompressedSize?: string;
            }[];
            MaxDiskUsage?: string;
        },
    >;
    crackstationBenchmark(
        request: clientpb.CrackBenchmark,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    crackstationRegister(
        request: clientpb.Crackstation,
        context: CallContext & CallContextExt,
    ): ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >;
    crackstations(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Crackstations?: {
                Benchmarks?: { [key: number]: undefined
                | string };
                CUDA?: {
                    Clock?: number;
                    CUDAVersion?: string;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    Name?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                GOARCH?: string;
                GOOS?: string;
                HashcatVersion?: string;
                HostUUID?: string;
                ID?: string;
                Metal?: {
                    Clock?: number;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    MetalVersion?: string;
                    Name?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                Name?: string;
                OpenCL?: {
                    Clock?: number;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    Name?: string;
                    OpenCLDriverVersion?: string;
                    OpenCLVersion?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                OperatorName?: string;
                Version?: string;
            }[];
        },
    >;
    crackstationTrigger(
        request: clientpb.Event,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    crackTaskByID(
        request: clientpb.CrackTask,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Command?: {
                AttackMode?: CrackAttackMode;
                BackendDevices?: number[];
                BackendIgnoreCUDA?: boolean;
                BackendIgnoreHip?: boolean;
                BackendIgnoreMetal?: boolean;
                BackendIgnoreOpenCL?: boolean;
                BackendInfo?: boolean;
                BackendVectorWidth?: number;
                Benchmark?: boolean;
                BenchmarkAll?: boolean;
                BitmapMax?: number;
                BitmapMin?: number;
                BrainClient?: boolean;
                BrainClientFeatures?: string;
                BrainHost?: string;
                BrainPassword?: string;
                BrainPort?: number;
                BrainServer?: boolean;
                BrainServerTimer?: number;
                BrainSession?: string;
                BrainSessionWhitelist?: string;
                CPUAffinity?: number[];
                CustomCharset1?: string;
                CustomCharset2?: string;
                CustomCharset3?: string;
                CustomCharset4?: string;
                DebugMode?: number;
                DeprecatedCheckDisable?: boolean;
                EncodingFrom?: CrackEncoding;
                EncodingTo?: CrackEncoding;
                Force?: boolean;
                GenerateRules?: number;
                GenerateRulesFuncSel?: string;
                GenerateRulesFunMax?: number;
                GenerateRulesFunMin?: number;
                GenerateRulesSeed?: number;
                Hashes?: string[];
                HashInfo?: boolean;
                HashType?: HashType;
                HccapxMessagePair?: number;
                HexCharset?: boolean;
                HexSalt?: boolean;
                HexWordlist?: boolean;
                HookThreads?: number;
                HwmonDisable?: boolean;
                HwmonTempAbort?: number;
                Identify?: string;
                Increment?: boolean;
                IncrementMax?: number;
                IncrementMin?: number;
                KeepGuessing?: boolean;
                KernelAccel?: number;
                KernelLoops?: number;
                KernelThreads?: number;
                KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                Keyspace?: boolean;
                Left?: boolean;
                Limit?: string;
                LogfileDisable?: boolean;
                Loopback?: boolean;
                MachineReadable?: boolean;
                MarkovClassic?: boolean;
                MarkovDisable?: boolean;
                MarkovHcstat2?: Buffer<ArrayBufferLike>;
                MarkovInverse?: boolean;
                MarkovThreshold?: number;
                MultiplyAccelDisabled?: boolean;
                NonceErrorCorrections?: number;
                OpenCLDeviceTypes?: number[];
                OptimizedKernelEnable?: boolean;
                OutfileAutohexDisable?: boolean;
                OutfileCheckTimer?: number;
                OutfileFormat?: CrackOutfileFormat[];
                Potfile?: Buffer<ArrayBufferLike>;
                PotfileDisable?: boolean;
                ProgressOnly?: boolean;
                Quiet?: boolean;
                Remove?: boolean;
                RemoveTimer?: number;
                Restore?: boolean;
                RestoreDisable?: boolean;
                RestoreFile?: Buffer<ArrayBufferLike>;
                RulesFile?: Buffer<ArrayBufferLike>;
                Runtime?: number;
                ScryptTMTO?: number;
                SegmentSize?: number;
                SelfTestDisable?: boolean;
                Separator?: string;
                Session?: string;
                Show?: boolean;
                Skip?: string;
                SlowCandidates?: boolean;
                SpeedOnly?: boolean;
                SpinDamp?: number;
                Status?: boolean;
                StatusJSON?: boolean;
                StatusTimer?: number;
                StdinTimeoutAbort?: number;
                Stdout?: boolean;
                Username?: boolean;
                WordlistAutohexDisable?: boolean;
                WorkloadProfile?: CrackWorkloadProfile;
            };
            CompletedAt?: string;
            CreatedAt?: string;
            Err?: string;
            HostUUID?: string;
            ID?: string;
            StartedAt?: string;
        },
    >;
    crackTaskUpdate(
        request: clientpb.CrackTask,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    createSocks(
        request: sliverpb.Socks,
        context: CallContext & CallContextExt,
    ): Promise<{ SessionID?: string; TunnelID?: string }>;
    createTunnel(
        request: sliverpb.Tunnel,
        context: CallContext & CallContextExt,
    ): Promise<{ SessionID?: string; TunnelID?: string }>;
    creds(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >;
    credsAdd(
        request: clientpb.Credentials,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    credsRm(
        request: clientpb.Credentials,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    credsSniffHashType(
        request: clientpb.Credential,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
    >;
    credsUpdate(
        request: clientpb.Credentials,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    currentTokenOwner(
        request: sliverpb.CurrentTokenOwnerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Output?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    deleteImplantBuild(
        request: clientpb.DeleteReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    deleteImplantProfile(
        request: clientpb.DeleteReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    download(
        request: sliverpb.DownloadReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            Exists?: boolean;
            IsDir?: boolean;
            Path?: string;
            ReadFiles?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Start?: string;
            Stop?: string;
            UnreadableFiles?: number;
        },
    >;
    events(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >;
    execute(
        request: sliverpb.ExecuteReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Status?: number;
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >;
    executeAssembly(
        request: sliverpb.ExecuteAssemblyReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Output?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    executeChildren(
        request: sliverpb.ExecuteChildrenReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Children?: {
                Args?: string[];
                Error?: string;
                ExitCode?: number;
                Exited?: boolean;
                ExitTime?: string;
                Path?: string;
                Pid?: number;
                StartTime?: string;
                Stderr?: string;
                Stdout?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    executeWindows(
        request: sliverpb.ExecuteWindowsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Status?: number;
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >;
    execWasmExtension(
        request: sliverpb.ExecWasmExtensionReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            ExitCode?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >;
    generate(
        request: clientpb.GenerateReq,
        context: CallContext & CallContextExt,
    ): Promise<{ File?: { Data?: Buffer<ArrayBufferLike>; Name?: string } }>;
    generateExternal(
        request: clientpb.ExternalGenerateReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Build?: {
                AgeServerPublicKey?: string;
                Burned?: boolean;
                ID?: string;
                ImplantConfigID?: string;
                ImplantID?: string;
                MD5?: string;
                MinisignServerPublicKey?: string;
                MtlsCACert?: string;
                MtlsCert?: string;
                MtlsKey?: string;
                Name?: string;
                PeerPrivateKey?: string;
                PeerPublicKey?: string;
                PeerPublicKeyDigest?: string;
                PeerPublicKeySignature?: string;
                SHA1?: string;
                SHA256?: string;
                Stage?: boolean;
                WGImplantPrivKey?: string;
                WGServerPubKey?: string;
            };
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            encoders?: { [key: string]: undefined
            | string };
            HTTPC2?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: string; Name?: string }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            };
        },
    >;
    generateExternalGetBuildConfig(
        request: clientpb.ImplantBuild,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Build?: {
                AgeServerPublicKey?: string;
                Burned?: boolean;
                ID?: string;
                ImplantConfigID?: string;
                ImplantID?: string;
                MD5?: string;
                MinisignServerPublicKey?: string;
                MtlsCACert?: string;
                MtlsCert?: string;
                MtlsKey?: string;
                Name?: string;
                PeerPrivateKey?: string;
                PeerPublicKey?: string;
                PeerPublicKeyDigest?: string;
                PeerPublicKeySignature?: string;
                SHA1?: string;
                SHA256?: string;
                Stage?: boolean;
                WGImplantPrivKey?: string;
                WGServerPubKey?: string;
            };
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            encoders?: { [key: string]: undefined
            | string };
            HTTPC2?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: string; Name?: string }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            };
        },
    >;
    generateExternalSaveBuild(
        request: clientpb.ExternalImplantBinary,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    generateStage(
        request: clientpb.GenerateStageReq,
        context: CallContext & CallContextExt,
    ): Promise<{ File?: { Data?: Buffer<ArrayBufferLike>; Name?: string } }>;
    generateUniqueIP(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<{ IP?: string }>;
    generateWGClientConfig(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            ClientIP?: string;
            ClientPrivateKey?: string;
            ClientPubKey?: string;
            ServerPubKey?: string;
        },
    >;
    getBeacon(
        request: clientpb.Beacon,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            Interval?: string;
            IsDead?: boolean;
            Jitter?: string;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            NextCheckin?: string;
            OS?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            TasksCount?: string;
            TasksCountCompleted?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        },
    >;
    getBeacons(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Beacons?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                Interval?: string;
                IsDead?: boolean;
                Jitter?: string;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                NextCheckin?: string;
                OS?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                TasksCount?: string;
                TasksCountCompleted?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            }[];
        },
    >;
    getBeaconTaskContent(
        request: clientpb.BeaconTask,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
    >;
    getBeaconTasks(
        request: clientpb.Beacon,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BeaconID?: string;
            Tasks?: {
                BeaconID?: string;
                CompletedAt?: string;
                CreatedAt?: string;
                Description?: string;
                ID?: string;
                Request?: Buffer<ArrayBufferLike>;
                Response?: Buffer<ArrayBufferLike>;
                SentAt?: string;
                State?: string;
            }[];
        },
    >;
    getCertificateAuthorityInfo(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            info?: {
                CN?: string;
                CreationTime?: string;
                ID?: string;
                KeyAlgorithm?: string;
                Type?: string;
                ValidityExpiry?: string;
                ValidityStart?: string;
            }[];
        },
    >;
    getCertificateInfo(
        request: clientpb.CertificatesReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            info?: {
                CN?: string;
                CreationTime?: string;
                ID?: string;
                KeyAlgorithm?: string;
                Type?: string;
                ValidityExpiry?: string;
                ValidityStart?: string;
            }[];
        },
    >;
    getCompiler(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            CrossCompilers?: {
                CCPath?: string;
                CXXPath?: string;
                TargetGOARCH?: string;
                TargetGOOS?: string;
            }[];
            GOARCH?: string;
            GOOS?: string;
            Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
            UnsupportedTargets?: {
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
            }[];
        },
    >;
    getCredByID(
        request: clientpb.Credential,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
    >;
    getCredsByHashType(
        request: clientpb.Credential,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >;
    getEnv(
        request: sliverpb.EnvReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Variables?: { Key?: string; Value?: string }[];
        },
    >;
    getHTTPC2ProfileByName(
        request: clientpb.C2ProfileReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Created?: string;
            ID?: string;
            ImplantConfig?: {
                ChromeBaseVersion?: number;
                extensions?: string[];
                ExtraURLParameters?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                Headers?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                ID?: string;
                MacOSVersion?: string;
                MaxFileGen?: number;
                MaxPathGen?: number;
                MaxPathLength?: number;
                MinFileGen?: number;
                MinPathGen?: number;
                MinPathLength?: number;
                NonceMode?: string;
                NonceQueryArgChars?: string;
                NonceQueryLength?: number;
                PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                UserAgent?: string;
            };
            Name?: string;
            ServerConfig?: {
                Cookies?: { ID?: string; Name?: string }[];
                Headers?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                ID?: string;
                RandomVersionHeaders?: boolean;
            };
        },
    >;
    getHTTPC2Profiles(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            configs?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: (...)
                        | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    Headers?: {
                        ID?: (...)
                        | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: {
                        ID?: (...)
                        | (...);
                        IsFile?: (...) | (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: (...)
                    | (...); Name?: (...) | (...) }[];
                    Headers?: {
                        ID?: (...) | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            }[];
        },
    >;
    getJobs(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Active?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            }[];
        },
    >;
    getOperators(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<{ Operators?: { Name?: string; Online?: boolean }[] }>;
    getPlaintextCredsByHashType(
        request: clientpb.Credential,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >;
    getPrivs(
        request: sliverpb.GetPrivsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            PrivInfo?: {
                Description?: string;
                Enabled?: boolean;
                EnabledByDefault?: boolean;
                Name?: string;
                Removed?: boolean;
                UsedForAccess?: boolean;
            }[];
            ProcessIntegrity?: string;
            ProcessName?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    getRportFwdListeners(
        request: sliverpb.RportFwdListenersReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Listeners?: {
                BindAddress?: string;
                BindPort?: number;
                ForwardAddress?: string;
                ForwardPort?: number;
                ID?: number;
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    getSessions(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Sessions?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            }[];
        },
    >;
    getSystem(
        request: clientpb.GetSystemReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    getVersion(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Arch?: string;
            Commit?: string;
            CompiledAt?: string;
            Dirty?: boolean;
            Major?: number;
            Minor?: number;
            OS?: string;
            Patch?: number;
        },
    >;
    grep(
        request: sliverpb.GrepReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Results?: {
                [key: string]: | undefined
                | {
                    FileResults?: {
                        Line?: string;
                        LineNumber?: string;
                        LinesAfter?: (...)[];
                        LinesBefore?: (...)[];
                        Positions?: (...)[];
                    }[];
                    IsBinary?: boolean;
                };
            };
            SearchPathAbsolute?: string;
        },
    >;
    hijackDLL(
        request: clientpb.DllHijackReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    host(
        request: clientpb.Host,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            ExtensionData?: { [key: string]: undefined
            | { Output?: string } };
            FirstContact?: string;
            Hostname?: string;
            HostUUID?: string;
            ID?: string;
            IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
            Locale?: string;
            OSVersion?: string;
        },
    >;
    hostIOCRm(
        request: clientpb.IOC,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    hostRm(
        request: clientpb.Host,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    hosts(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Hosts?: {
                ExtensionData?: { [key: string]: undefined
                | { Output?: string } };
                FirstContact?: string;
                Hostname?: string;
                HostUUID?: string;
                ID?: string;
                IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
                Locale?: string;
                OSVersion?: string;
            }[];
        },
    >;
    ifconfig(
        request: sliverpb.IfconfigReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            NetInterfaces?: {
                Index?: number;
                IPAddresses?: string[];
                MAC?: string;
                Name?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    impersonate(
        request: sliverpb.ImpersonateReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    implantBuilds(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Configs?: {
                [key: string]: | undefined
                | {
                    Assets?: { Data?: Buffer<(...)>; Name?: string }[];
                    BeaconInterval?: string;
                    BeaconJitter?: string;
                    C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                    CanaryDomains?: string[];
                    ConnectionStrategy?: string;
                    Debug?: boolean;
                    DebugFile?: string;
                    Evasion?: boolean;
                    exports?: string[];
                    Extension?: string;
                    Format?: OutputFormat;
                    GOARCH?: string;
                    GOOS?: string;
                    GoPackage?: string;
                    HTTPC2ConfigName?: string;
                    ID?: string;
                    ImplantBuilds?: {
                        AgeServerPublicKey?: string;
                        Burned?: boolean;
                        ID?: string;
                        ImplantConfigID?: string;
                        ImplantID?: string;
                        MD5?: string;
                        MinisignServerPublicKey?: string;
                        MtlsCACert?: string;
                        MtlsCert?: string;
                        MtlsKey?: string;
                        Name?: string;
                        PeerPrivateKey?: string;
                        PeerPublicKey?: string;
                        PeerPublicKeyDigest?: string;
                        PeerPublicKeySignature?: string;
                        SHA1?: string;
                        SHA256?: string;
                        Stage?: boolean;
                        WGImplantPrivKey?: string;
                        WGServerPubKey?: string;
                    }[];
                    ImplantProfileID?: string;
                    IncludeDNS?: boolean;
                    IncludeHTTP?: boolean;
                    IncludeMTLS?: boolean;
                    IncludeNamePipe?: boolean;
                    IncludeTCP?: boolean;
                    IncludeWG?: boolean;
                    IsBeacon?: boolean;
                    IsService?: boolean;
                    IsSharedLib?: boolean;
                    IsShellcode?: boolean;
                    LimitDatetime?: string;
                    LimitDomainJoined?: boolean;
                    LimitFileExists?: string;
                    LimitHostname?: string;
                    LimitLocale?: string;
                    LimitUsername?: string;
                    MaxConnectionErrors?: number;
                    NetGoEnabled?: boolean;
                    ObfuscateSymbols?: boolean;
                    PollTimeout?: string;
                    ReconnectInterval?: string;
                    RunAtLoad?: boolean;
                    SGNEnabled?: boolean;
                    ShellcodeConfig?: {
                        Bypass?: number;
                        Compress?: number;
                        Entropy?: number;
                        ExitOpt?: number;
                        Headers?: number;
                        OEP?: number;
                        Thread?: boolean;
                        Unicode?: boolean;
                    };
                    ShellcodeEncoder?: ShellcodeEncoder;
                    TemplateName?: string;
                    TrafficEncoders?: string[];
                    TrafficEncodersEnabled?: boolean;
                    WGKeyExchangePort?: number;
                    WGPeerTunIP?: string;
                    WGTcpCommsPort?: number;
                };
            };
            ResourceIDs?: {
                [key: string]: | undefined
                | { ID?: string; Name?: string; Type?: string; Value?: string };
            };
            staged?: { [key: string]: undefined
            | boolean };
        },
    >;
    implantProfiles(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Profiles?: {
                Config?: {
                    Assets?: { Data?: (...)
                    | (...); Name?: (...) | (...) }[];
                    BeaconInterval?: string;
                    BeaconJitter?: string;
                    C2?: {
                        ID?: (...) | (...);
                        Options?: (...) | (...);
                        Priority?: (...) | (...);
                        URL?: (...) | (...);
                    }[];
                    CanaryDomains?: string[];
                    ConnectionStrategy?: string;
                    Debug?: boolean;
                    DebugFile?: string;
                    Evasion?: boolean;
                    exports?: string[];
                    Extension?: string;
                    Format?: OutputFormat;
                    GOARCH?: string;
                    GOOS?: string;
                    GoPackage?: string;
                    HTTPC2ConfigName?: string;
                    ID?: string;
                    ImplantBuilds?: {
                        AgeServerPublicKey?: (...)
                        | (...);
                        Burned?: (...) | (...) | (...);
                        ID?: (...) | (...);
                        ImplantConfigID?: (...) | (...);
                        ImplantID?: (...) | (...);
                        MD5?: (...) | (...);
                        MinisignServerPublicKey?: (...) | (...);
                        MtlsCACert?: (...) | (...);
                        MtlsCert?: (...) | (...);
                        MtlsKey?: (...) | (...);
                        Name?: (...) | (...);
                        PeerPrivateKey?: (...) | (...);
                        PeerPublicKey?: (...) | (...);
                        PeerPublicKeyDigest?: (...) | (...);
                        PeerPublicKeySignature?: (...) | (...);
                        SHA1?: (...) | (...);
                        SHA256?: (...) | (...);
                        Stage?: (...) | (...) | (...);
                        WGImplantPrivKey?: (...) | (...);
                        WGServerPubKey?: (...) | (...);
                    }[];
                    ImplantProfileID?: string;
                    IncludeDNS?: boolean;
                    IncludeHTTP?: boolean;
                    IncludeMTLS?: boolean;
                    IncludeNamePipe?: boolean;
                    IncludeTCP?: boolean;
                    IncludeWG?: boolean;
                    IsBeacon?: boolean;
                    IsService?: boolean;
                    IsSharedLib?: boolean;
                    IsShellcode?: boolean;
                    LimitDatetime?: string;
                    LimitDomainJoined?: boolean;
                    LimitFileExists?: string;
                    LimitHostname?: string;
                    LimitLocale?: string;
                    LimitUsername?: string;
                    MaxConnectionErrors?: number;
                    NetGoEnabled?: boolean;
                    ObfuscateSymbols?: boolean;
                    PollTimeout?: string;
                    ReconnectInterval?: string;
                    RunAtLoad?: boolean;
                    SGNEnabled?: boolean;
                    ShellcodeConfig?: {
                        Bypass?: number;
                        Compress?: number;
                        Entropy?: number;
                        ExitOpt?: number;
                        Headers?: number;
                        OEP?: number;
                        Thread?: boolean;
                        Unicode?: boolean;
                    };
                    ShellcodeEncoder?: ShellcodeEncoder;
                    TemplateName?: string;
                    TrafficEncoders?: string[];
                    TrafficEncodersEnabled?: boolean;
                    WGKeyExchangePort?: number;
                    WGPeerTunIP?: string;
                    WGTcpCommsPort?: number;
                };
                ID?: string;
                Name?: string;
            }[];
        },
    >;
    kill(
        request: sliverpb.KillReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    killJob(
        request: clientpb.KillJobReq,
        context: CallContext & CallContextExt,
    ): Promise<{ ID?: number; Success?: boolean }>;
    listExtensions(
        request: sliverpb.ListExtensionsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Names?: string[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    listWasmExtensions(
        request: sliverpb.ListWasmExtensionsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Names?: string[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    lootAdd(
        request: clientpb.Loot,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >;
    lootAll(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Loot?: {
                File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
                FileType?: FileType;
                ID?: string;
                Name?: string;
                OriginHostUUID?: string;
                Size?: string;
            }[];
        },
    >;
    lootContent(
        request: clientpb.Loot,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >;
    lootRm(
        request: clientpb.Loot,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    lootUpdate(
        request: clientpb.Loot,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >;
    ls(
        request: sliverpb.LsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Exists?: boolean;
            Files?: {
                Gid?: string;
                IsDir?: boolean;
                Link?: string;
                Mode?: string;
                ModTime?: string;
                Name?: string;
                Size?: string;
                Uid?: string;
            }[];
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            timezone?: string;
            timezoneOffset?: number;
        },
    >;
    makeToken(
        request: sliverpb.MakeTokenReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    memfilesAdd(
        request: sliverpb.MemfilesAddReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Fd?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    memfilesList(
        request: sliverpb.MemfilesListReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Exists?: boolean;
            Files?: {
                Gid?: string;
                IsDir?: boolean;
                Link?: string;
                Mode?: string;
                ModTime?: string;
                Name?: string;
                Size?: string;
                Uid?: string;
            }[];
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            timezone?: string;
            timezoneOffset?: number;
        },
    >;
    memfilesRm(
        request: sliverpb.MemfilesRmReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Fd?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    migrate(
        request: clientpb.MigrateReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Success?: boolean;
        },
    >;
    mkdir(
        request: sliverpb.MkdirReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    monitorAddConfig(
        request: clientpb.MonitoringProvider,
        context: CallContext & CallContextExt,
    ): Promise<
        { Async?: boolean; BeaconID?: string; Err?: string; TaskID?: string },
    >;
    monitorDelConfig(
        request: clientpb.MonitoringProvider,
        context: CallContext & CallContextExt,
    ): Promise<
        { Async?: boolean; BeaconID?: string; Err?: string; TaskID?: string },
    >;
    monitorListConfig(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            providers?: {
                APIKey?: string;
                APIPassword?: string;
                ID?: string;
                Type?: string;
            }[];
        },
    >;
    monitorStart(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        { Async?: boolean; BeaconID?: string; Err?: string; TaskID?: string },
    >;
    monitorStop(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    mount(
        request: sliverpb.MountReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Info?: {
                FileSystem?: string;
                FreeSpace?: string;
                Label?: string;
                MountOptions?: string;
                MountPoint?: string;
                TotalSpace?: string;
                UsedSpace?: string;
                VolumeName?: string;
                VolumeType?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    msf(
        request: clientpb.MSFReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    msfRemote(
        request: clientpb.MSFRemoteReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    mv(
        request: sliverpb.MvReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Dst?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Src?: string;
        },
    >;
    netstat(
        request: sliverpb.NetstatReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Entries?: {
                LocalAddr?: { Ip?: string; Port?: number };
                Process?: {
                    Architecture?: string;
                    CmdLine?: string[];
                    Executable?: string;
                    Owner?: string;
                    Pid?: number;
                    Ppid?: number;
                    SessionID?: number;
                };
                Protocol?: string;
                RemoteAddr?: { Ip?: string; Port?: number };
                SkState?: string;
                UID?: number;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    openSession(
        request: sliverpb.OpenSession,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            C2s?: string[];
            Delay?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    ping(
        request: sliverpb.Ping,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Nonce?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    pivotGraph(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Children?: {
                Children?: { PeerID?: string | undefined; Session?: { ID?: string | undefined; Name?: string | undefined; Hostname?: string | undefined; UUID?: string | undefined; Username?: string | undefined; ... 20 more ...; Integrity?: string | undefined; } | undefined; Name?: string | undefined; Children?: ...[] | undefined; }[] | undefi...;
                Name?: string;
                PeerID?: string;
                Session?: {
                    ActiveC2?: string;
                    Arch?: string;
                    Burned?: boolean;
                    Evasion?: boolean;
                    Extensions?: string[];
                    Filename?: string;
                    FirstContact?: string;
                    GID?: string;
                    Hostname?: string;
                    ID?: string;
                    Integrity?: string;
                    IsDead?: boolean;
                    LastCheckin?: string;
                    Locale?: string;
                    Name?: string;
                    OS?: string;
                    PeerID?: string;
                    PID?: number;
                    ProxyURL?: string;
                    ReconnectInterval?: string;
                    RemoteAddress?: string;
                    Transport?: string;
                    UID?: string;
                    Username?: string;
                    UUID?: string;
                    Version?: string;
                };
            }[];
        },
    >;
    pivotSessionListeners(
        request: sliverpb.PivotListenersReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Listeners?: {
                BindAddress?: string;
                ID?: number;
                Pivots?: { PeerID?: string; RemoteAddress?: string }[];
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
                Type?: PivotType;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    pivotStartListener(
        request: sliverpb.PivotStartListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BindAddress?: string;
            ID?: number;
            Pivots?: { PeerID?: string; RemoteAddress?: string }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Type?: PivotType;
        },
    >;
    pivotStopListener(
        request: sliverpb.PivotStopListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    portfwd(
        request: sliverpb.PortfwdReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Host?: string;
            Port?: number;
            Protocol?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            TunnelID?: string;
        },
    >;
    processDump(
        request: sliverpb.ProcessDumpReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    ps(
        request: sliverpb.PsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Processes?: {
                Architecture?: string;
                CmdLine?: string[];
                Executable?: string;
                Owner?: string;
                Pid?: number;
                Ppid?: number;
                SessionID?: number;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    pwd(
        request: sliverpb.PwdReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    reconfigure(
        request: sliverpb.ReconfigureReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    regenerate(
        request: clientpb.RegenerateReq,
        context: CallContext & CallContextExt,
    ): Promise<{ File?: { Data?: Buffer<ArrayBufferLike>; Name?: string } }>;
    registerExtension(
        request: sliverpb.RegisterExtensionReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    registerWasmExtension(
        request: sliverpb.RegisterWasmExtensionReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    registryCreateKey(
        request: sliverpb.RegistryCreateKeyReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    registryDeleteKey(
        request: sliverpb.RegistryDeleteKeyReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    registryListSubKeys(
        request: sliverpb.RegistrySubKeyListReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Subkeys?: string[];
        },
    >;
    registryListValues(
        request: sliverpb.RegistryListValuesReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            ValueNames?: string[];
        },
    >;
    registryRead(
        request: sliverpb.RegistryReadReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Value?: string;
        },
    >;
    registryReadHive(
        request: sliverpb.RegistryReadHiveReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    registryWrite(
        request: sliverpb.RegistryWriteReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    removeService(
        request: sliverpb.RemoveServiceReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    rename(
        request: clientpb.RenameReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    restartJobs(
        request: clientpb.RestartJobReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    revToSelf(
        request: sliverpb.RevToSelfReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    rm(
        request: sliverpb.RmReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    rmBeacon(
        request: clientpb.Beacon,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    runAs(
        request: sliverpb.RunAsReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Output?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    runSSHCommand(
        request: sliverpb.SSHCommandReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            StdErr?: string;
            StdOut?: string;
        },
    >;
    saveHTTPC2Profile(
        request: clientpb.HTTPC2ConfigReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    saveImplantProfile(
        request: clientpb.ImplantProfile,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            ID?: string;
            Name?: string;
        },
    >;
    screenshot(
        request: sliverpb.ScreenshotReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    serviceDetail(
        request: sliverpb.ServiceDetailReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Detail?: {
                Account?: string;
                BinPath?: string;
                Description?: string;
                DisplayName?: string;
                Name?: string;
                StartupType?: number;
                Status?: number;
            };
            Message?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    services(
        request: sliverpb.ServicesReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Details?: {
                Account?: string;
                BinPath?: string;
                Description?: string;
                DisplayName?: string;
                Name?: string;
                StartupType?: number;
                Status?: number;
            }[];
            Error?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    setEnv(
        request: sliverpb.SetEnvReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    shell(
        request: sliverpb.ShellReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            EnablePTY?: boolean;
            Path?: string;
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            TunnelID?: string;
        },
    >;
    shellcodeEncoder(
        request: clientpb.ShellcodeEncodeReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    shellcodeEncoderMap(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Encoders?: {
                [key: string]: | undefined
                | {
                    Descriptions?: { [key: string]: undefined
                    | string };
                    Encoders?: { [key: string]: undefined | ShellcodeEncoder };
                };
            };
        },
    >;
    shellcodeRDI(
        request: clientpb.ShellcodeRDIReq,
        context: CallContext & CallContextExt,
    ): Promise<{ Data?: Buffer<ArrayBufferLike> }>;
    shellResize(
        request: sliverpb.ShellResizeReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    sideload(
        request: sliverpb.SideloadReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Result?: string;
        },
    >;
    socksProxy(
        request: AsyncIterable<sliverpb.SocksData>,
        context: CallContext & CallContextExt,
    ): ServerStreamingMethodResult<
        {
            CloseConn?: boolean;
            Data?: Buffer<ArrayBufferLike>;
            Password?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Sequence?: string;
            TunnelID?: string;
            Username?: string;
        },
    >;
    spawnDll(
        request: sliverpb.InvokeSpawnDllReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Result?: string;
        },
    >;
    stageImplantBuild(
        request: clientpb.ImplantStageReq,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    startDNSListener(
        request: clientpb.DNSListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >;
    startHTTPListener(
        request: clientpb.HTTPListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >;
    startHTTPSListener(
        request: clientpb.HTTPListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >;
    startMTLSListener(
        request: clientpb.MTLSListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >;
    startRportFwdListener(
        request: sliverpb.RportFwdStartListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BindAddress?: string;
            BindPort?: number;
            ForwardAddress?: string;
            ForwardPort?: number;
            ID?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    startService(
        request: sliverpb.StartServiceReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    startServiceByName(
        request: sliverpb.StartServiceByNameReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    startTCPStagerListener(
        request: clientpb.StagerListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<{ JobID?: number }>;
    startWGListener(
        request: clientpb.WGListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >;
    stopRportFwdListener(
        request: sliverpb.RportFwdStopListenerReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            BindAddress?: string;
            BindPort?: number;
            ForwardAddress?: string;
            ForwardPort?: number;
            ID?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    stopService(
        request: sliverpb.StopServiceReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    task(
        request: sliverpb.TaskReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    terminate(
        request: sliverpb.TerminateReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    trafficEncoderAdd(
        request: clientpb.TrafficEncoder,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Encoder?: {
                ID?: string;
                SkipTests?: boolean;
                TestID?: string;
                Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            };
            Tests?: {
                Completed?: boolean;
                Duration?: string;
                Err?: string;
                Name?: string;
                Sample?: Buffer<ArrayBufferLike>;
                Success?: boolean;
            }[];
            TotalDuration?: string;
            TotalTests?: number;
        },
    >;
    trafficEncoderMap(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Encoders?: {
                [key: string]: | undefined
                | {
                    ID?: string;
                    SkipTests?: boolean;
                    TestID?: string;
                    Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
                };
            };
        },
    >;
    trafficEncoderRm(
        request: clientpb.TrafficEncoder,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    tunnelData(
        request: AsyncIterable<sliverpb.TunnelData>,
        context: CallContext & CallContextExt,
    ): ServerStreamingMethodResult<
        {
            Ack?: string;
            Closed?: boolean;
            CreateReverse?: boolean;
            Data?: Buffer<ArrayBufferLike>;
            Resend?: boolean;
            rportfwd?: {
                Host?: string;
                Port?: number;
                Protocol?: number;
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
                TunnelID?: string;
            };
            Sequence?: string;
            SessionID?: string;
            TunnelID?: string;
        },
    >;
    unsetEnv(
        request: sliverpb.UnsetEnvReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    updateBeaconIntegrityInformation(
        request: clientpb.BeaconIntegrity,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    upload(
        request: sliverpb.UploadReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            UnwriteableFiles?: number;
            WrittenFiles?: number;
        },
    >;
    website(
        request: clientpb.Website,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >;
    websiteAddContent(
        request: clientpb.WebsiteAddContent,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >;
    websiteRemove(
        request: clientpb.Website,
        context: CallContext & CallContextExt,
    ): Promise<{}>;
    websiteRemoveContent(
        request: clientpb.WebsiteRemoveContent,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >;
    websites(
        request: commonpb.Empty,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Websites?: {
                Contents?: {
                    [key: string]: | undefined
                    | {
                        Content?: Buffer<(...)>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
                };
                ID?: string;
                Name?: string;
            }[];
        },
    >;
    websiteUpdateContent(
        request: clientpb.WebsiteAddContent,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >;
    wGListForwarders(
        request: sliverpb.WGTCPForwardersReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Forwarders?: { ID?: number; LocalAddr?: string; RemoteAddr?: string }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    wGListSocksServers(
        request: sliverpb.WGSocksServersReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Servers?: { ID?: number; LocalAddr?: string }[];
        },
    >;
    wGStartPortForward(
        request: sliverpb.WGPortForwardStartReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Forwarder?: { ID?: number; LocalAddr?: string; RemoteAddr?: string };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    wGStartSocks(
        request: sliverpb.WGSocksStartReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Server?: { ID?: number; LocalAddr?: string };
        },
    >;
    wGStopPortForward(
        request: sliverpb.WGPortForwardStopReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Forwarder?: { ID?: number; LocalAddr?: string; RemoteAddr?: string };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >;
    wGStopSocks(
        request: sliverpb.WGSocksStopReq,
        context: CallContext & CallContextExt,
    ): Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Server?: { ID?: number; LocalAddr?: string };
        },
    >;
}

Type Parameters

  • CallContextExt = {}

Methods

backdoor +builderRegister +builders +builderTrigger +callExtension +canaries +cancelBeaconTask +cd +chmod +chown +chtimes +clientLog +closeSession +closeSocks +closeTunnel +cp +crack +crackFileChunkDownload +crackFileChunkUpload +crackFileComplete +crackFileCreate +crackFileDelete +crackFilesList +crackstationBenchmark +crackstationRegister +crackstations +crackstationTrigger +crackTaskByID +crackTaskUpdate +createSocks +createTunnel +creds +credsAdd +credsRm +credsSniffHashType +credsUpdate +currentTokenOwner +deleteImplantBuild +deleteImplantProfile +download +events +execute +executeAssembly +executeChildren +executeWindows +execWasmExtension +generate +generateExternal +generateExternalGetBuildConfig +generateExternalSaveBuild +generateStage +generateUniqueIP +generateWGClientConfig +getBeacon +getBeacons +getBeaconTaskContent +getBeaconTasks +getCertificateAuthorityInfo +getCertificateInfo +getCompiler +getCredByID +getCredsByHashType +getEnv +getHTTPC2ProfileByName +getHTTPC2Profiles +getJobs +getOperators +getPlaintextCredsByHashType +getPrivs +getRportFwdListeners +getSessions +getSystem +getVersion +grep +hijackDLL +host +hostIOCRm +hostRm +hosts +ifconfig +impersonate +implantBuilds +implantProfiles +kill +killJob +listExtensions +listWasmExtensions +lootAdd +lootAll +lootContent +lootRm +lootUpdate +ls +makeToken +memfilesAdd +memfilesList +memfilesRm +migrate +mkdir +monitorAddConfig +monitorDelConfig +monitorListConfig +monitorStart +monitorStop +mount +msf +msfRemote +mv +netstat +openSession +ping +pivotGraph +pivotSessionListeners +pivotStartListener +pivotStopListener +portfwd +processDump +ps +pwd +reconfigure +regenerate +registerExtension +registerWasmExtension +registryCreateKey +registryDeleteKey +registryListSubKeys +registryListValues +registryRead +registryReadHive +registryWrite +removeService +rename +restartJobs +revToSelf +rm +rmBeacon +runAs +runSSHCommand +saveHTTPC2Profile +saveImplantProfile +screenshot +serviceDetail +services +setEnv +shell +shellcodeEncoder +shellcodeEncoderMap +shellcodeRDI +shellResize +sideload +socksProxy +spawnDll +stageImplantBuild +startDNSListener +startHTTPListener +startHTTPSListener +startMTLSListener +startRportFwdListener +startService +startServiceByName +startTCPStagerListener +startWGListener +stopRportFwdListener +stopService +task +terminate +trafficEncoderAdd +trafficEncoderMap +trafficEncoderRm +tunnelData +unsetEnv +updateBeaconIntegrityInformation +upload +website +websiteAddContent +websiteRemove +websiteRemoveContent +websites +websiteUpdateContent +wGListForwarders +wGListSocksServers +wGStartPortForward +wGStartSocks +wGStopPortForward +wGStopSocks +

Methods

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Builders ***

    +

    Parameters

    Returns ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Builders?: {
                CrossCompilers?: {
                    CCPath?: string;
                    CXXPath?: string;
                    TargetGOARCH?: string;
                    TargetGOOS?: string;
                }[];
                GOARCH?: string;
                GOOS?: string;
                Name?: string;
                OperatorName?: string;
                Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
                Templates?: string[];
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Output?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            ServerStore?: boolean;
        },
    >

  • Parameters

    Returns Promise<
        {
            Canaries?: {
                Count?: number;
                Domain?: string;
                FirstTriggered?: string;
                ID?: string;
                ImplantName?: string;
                LatestTrigger?: string;
                Triggered?: boolean;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            BytesWritten?: string;
            Dst?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Src?: string;
        },
    >

  • ** Crackstation ***

    +

    Parameters

    Returns Promise<
        {
            Job?: {
                Command?: {
                    AttackMode?: CrackAttackMode;
                    BackendDevices?: number[];
                    BackendIgnoreCUDA?: boolean;
                    BackendIgnoreHip?: boolean;
                    BackendIgnoreMetal?: boolean;
                    BackendIgnoreOpenCL?: boolean;
                    BackendInfo?: boolean;
                    BackendVectorWidth?: number;
                    Benchmark?: boolean;
                    BenchmarkAll?: boolean;
                    BitmapMax?: number;
                    BitmapMin?: number;
                    BrainClient?: boolean;
                    BrainClientFeatures?: string;
                    BrainHost?: string;
                    BrainPassword?: string;
                    BrainPort?: number;
                    BrainServer?: boolean;
                    BrainServerTimer?: number;
                    BrainSession?: string;
                    BrainSessionWhitelist?: string;
                    CPUAffinity?: number[];
                    CustomCharset1?: string;
                    CustomCharset2?: string;
                    CustomCharset3?: string;
                    CustomCharset4?: string;
                    DebugMode?: number;
                    DeprecatedCheckDisable?: boolean;
                    EncodingFrom?: CrackEncoding;
                    EncodingTo?: CrackEncoding;
                    Force?: boolean;
                    GenerateRules?: number;
                    GenerateRulesFuncSel?: string;
                    GenerateRulesFunMax?: number;
                    GenerateRulesFunMin?: number;
                    GenerateRulesSeed?: number;
                    Hashes?: string[];
                    HashInfo?: boolean;
                    HashType?: HashType;
                    HccapxMessagePair?: number;
                    HexCharset?: boolean;
                    HexSalt?: boolean;
                    HexWordlist?: boolean;
                    HookThreads?: number;
                    HwmonDisable?: boolean;
                    HwmonTempAbort?: number;
                    Identify?: string;
                    Increment?: boolean;
                    IncrementMax?: number;
                    IncrementMin?: number;
                    KeepGuessing?: boolean;
                    KernelAccel?: number;
                    KernelLoops?: number;
                    KernelThreads?: number;
                    KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                    Keyspace?: boolean;
                    Left?: boolean;
                    Limit?: string;
                    LogfileDisable?: boolean;
                    Loopback?: boolean;
                    MachineReadable?: boolean;
                    MarkovClassic?: boolean;
                    MarkovDisable?: boolean;
                    MarkovHcstat2?: Buffer<ArrayBufferLike>;
                    MarkovInverse?: boolean;
                    MarkovThreshold?: number;
                    MultiplyAccelDisabled?: boolean;
                    NonceErrorCorrections?: number;
                    OpenCLDeviceTypes?: number[];
                    OptimizedKernelEnable?: boolean;
                    OutfileAutohexDisable?: boolean;
                    OutfileCheckTimer?: number;
                    OutfileFormat?: CrackOutfileFormat[];
                    Potfile?: Buffer<ArrayBufferLike>;
                    PotfileDisable?: boolean;
                    ProgressOnly?: boolean;
                    Quiet?: boolean;
                    Remove?: boolean;
                    RemoveTimer?: number;
                    Restore?: boolean;
                    RestoreDisable?: boolean;
                    RestoreFile?: Buffer<ArrayBufferLike>;
                    RulesFile?: Buffer<ArrayBufferLike>;
                    Runtime?: number;
                    ScryptTMTO?: number;
                    SegmentSize?: number;
                    SelfTestDisable?: boolean;
                    Separator?: string;
                    Session?: string;
                    Show?: boolean;
                    Skip?: string;
                    SlowCandidates?: boolean;
                    SpeedOnly?: boolean;
                    SpinDamp?: number;
                    Status?: boolean;
                    StatusJSON?: boolean;
                    StatusTimer?: number;
                    StdinTimeoutAbort?: number;
                    Stdout?: boolean;
                    Username?: boolean;
                    WordlistAutohexDisable?: boolean;
                    WorkloadProfile?: CrackWorkloadProfile;
                };
                CompletedAt?: string;
                CreatedAt?: string;
                Err?: string;
                ID?: string;
                ResultFileID?: string;
                Status?: CrackJobStatus;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            CrackFileID?: string;
            Data?: Buffer<ArrayBufferLike>;
            ID?: string;
            N?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Chunks?: {
                CrackFileID?: string;
                Data?: Buffer<ArrayBufferLike>;
                ID?: string;
                N?: number;
            }[];
            ChunkSize?: string;
            CreatedAt?: string;
            ID?: string;
            IsCompressed?: boolean;
            LastModified?: string;
            MaxFileSize?: string;
            Name?: string;
            Sha2256?: string;
            Type?: CrackFileType;
            UncompressedSize?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            CurrentDiskUsage?: string;
            Files?: {
                Chunks?: {
                    CrackFileID?: string;
                    Data?: Buffer<ArrayBufferLike>;
                    ID?: string;
                    N?: number;
                }[];
                ChunkSize?: string;
                CreatedAt?: string;
                ID?: string;
                IsCompressed?: boolean;
                LastModified?: string;
                MaxFileSize?: string;
                Name?: string;
                Sha2256?: string;
                Type?: CrackFileType;
                UncompressedSize?: string;
            }[];
            MaxDiskUsage?: string;
        },
    >

  • Parameters

    Returns ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Crackstations?: {
                Benchmarks?: { [key: number]: undefined
                | string };
                CUDA?: {
                    Clock?: number;
                    CUDAVersion?: string;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    Name?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                GOARCH?: string;
                GOOS?: string;
                HashcatVersion?: string;
                HostUUID?: string;
                ID?: string;
                Metal?: {
                    Clock?: number;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    MetalVersion?: string;
                    Name?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                Name?: string;
                OpenCL?: {
                    Clock?: number;
                    MemoryFree?: string;
                    MemoryTotal?: string;
                    Name?: string;
                    OpenCLDriverVersion?: string;
                    OpenCLVersion?: string;
                    Processors?: number;
                    Type?: string;
                    Vendor?: string;
                    VendorID?: number;
                    Version?: string;
                }[];
                OperatorName?: string;
                Version?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Command?: {
                AttackMode?: CrackAttackMode;
                BackendDevices?: number[];
                BackendIgnoreCUDA?: boolean;
                BackendIgnoreHip?: boolean;
                BackendIgnoreMetal?: boolean;
                BackendIgnoreOpenCL?: boolean;
                BackendInfo?: boolean;
                BackendVectorWidth?: number;
                Benchmark?: boolean;
                BenchmarkAll?: boolean;
                BitmapMax?: number;
                BitmapMin?: number;
                BrainClient?: boolean;
                BrainClientFeatures?: string;
                BrainHost?: string;
                BrainPassword?: string;
                BrainPort?: number;
                BrainServer?: boolean;
                BrainServerTimer?: number;
                BrainSession?: string;
                BrainSessionWhitelist?: string;
                CPUAffinity?: number[];
                CustomCharset1?: string;
                CustomCharset2?: string;
                CustomCharset3?: string;
                CustomCharset4?: string;
                DebugMode?: number;
                DeprecatedCheckDisable?: boolean;
                EncodingFrom?: CrackEncoding;
                EncodingTo?: CrackEncoding;
                Force?: boolean;
                GenerateRules?: number;
                GenerateRulesFuncSel?: string;
                GenerateRulesFunMax?: number;
                GenerateRulesFunMin?: number;
                GenerateRulesSeed?: number;
                Hashes?: string[];
                HashInfo?: boolean;
                HashType?: HashType;
                HccapxMessagePair?: number;
                HexCharset?: boolean;
                HexSalt?: boolean;
                HexWordlist?: boolean;
                HookThreads?: number;
                HwmonDisable?: boolean;
                HwmonTempAbort?: number;
                Identify?: string;
                Increment?: boolean;
                IncrementMax?: number;
                IncrementMin?: number;
                KeepGuessing?: boolean;
                KernelAccel?: number;
                KernelLoops?: number;
                KernelThreads?: number;
                KeyboardLayoutMapping?: Buffer<ArrayBufferLike>;
                Keyspace?: boolean;
                Left?: boolean;
                Limit?: string;
                LogfileDisable?: boolean;
                Loopback?: boolean;
                MachineReadable?: boolean;
                MarkovClassic?: boolean;
                MarkovDisable?: boolean;
                MarkovHcstat2?: Buffer<ArrayBufferLike>;
                MarkovInverse?: boolean;
                MarkovThreshold?: number;
                MultiplyAccelDisabled?: boolean;
                NonceErrorCorrections?: number;
                OpenCLDeviceTypes?: number[];
                OptimizedKernelEnable?: boolean;
                OutfileAutohexDisable?: boolean;
                OutfileCheckTimer?: number;
                OutfileFormat?: CrackOutfileFormat[];
                Potfile?: Buffer<ArrayBufferLike>;
                PotfileDisable?: boolean;
                ProgressOnly?: boolean;
                Quiet?: boolean;
                Remove?: boolean;
                RemoveTimer?: number;
                Restore?: boolean;
                RestoreDisable?: boolean;
                RestoreFile?: Buffer<ArrayBufferLike>;
                RulesFile?: Buffer<ArrayBufferLike>;
                Runtime?: number;
                ScryptTMTO?: number;
                SegmentSize?: number;
                SelfTestDisable?: boolean;
                Separator?: string;
                Session?: string;
                Show?: boolean;
                Skip?: string;
                SlowCandidates?: boolean;
                SpeedOnly?: boolean;
                SpinDamp?: number;
                Status?: boolean;
                StatusJSON?: boolean;
                StatusTimer?: number;
                StdinTimeoutAbort?: number;
                Stdout?: boolean;
                Username?: boolean;
                WordlistAutohexDisable?: boolean;
                WorkloadProfile?: CrackWorkloadProfile;
            };
            CompletedAt?: string;
            CreatedAt?: string;
            Err?: string;
            HostUUID?: string;
            ID?: string;
            StartedAt?: string;
        },
    >

  • ** Creds ***

    +

    Parameters

    Returns Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Output?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            Exists?: boolean;
            IsDir?: boolean;
            Path?: string;
            ReadFiles?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Start?: string;
            Stop?: string;
            UnreadableFiles?: number;
        },
    >

  • ** Events ***

    +

    Parameters

    Returns ServerStreamingMethodResult<
        {
            Client?: {
                ID?: number;
                Name?: string;
                Operator?: { Name?: string; Online?: boolean };
            };
            Data?: Buffer<ArrayBufferLike>;
            Err?: string;
            EventType?: string;
            Job?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            };
            Session?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Status?: number;
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >

  • Parameters

    Returns Promise<
        {
            Output?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Children?: {
                Args?: string[];
                Error?: string;
                ExitCode?: number;
                Exited?: boolean;
                ExitTime?: string;
                Path?: string;
                Pid?: number;
                StartTime?: string;
                Stderr?: string;
                Stdout?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Status?: number;
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >

  • Parameters

    Returns Promise<
        {
            ExitCode?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Stderr?: Buffer<ArrayBufferLike>;
            Stdout?: Buffer<ArrayBufferLike>;
        },
    >

  • Parameters

    Returns Promise<
        {
            Build?: {
                AgeServerPublicKey?: string;
                Burned?: boolean;
                ID?: string;
                ImplantConfigID?: string;
                ImplantID?: string;
                MD5?: string;
                MinisignServerPublicKey?: string;
                MtlsCACert?: string;
                MtlsCert?: string;
                MtlsKey?: string;
                Name?: string;
                PeerPrivateKey?: string;
                PeerPublicKey?: string;
                PeerPublicKeyDigest?: string;
                PeerPublicKeySignature?: string;
                SHA1?: string;
                SHA256?: string;
                Stage?: boolean;
                WGImplantPrivKey?: string;
                WGServerPubKey?: string;
            };
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            encoders?: { [key: string]: undefined
            | string };
            HTTPC2?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: string; Name?: string }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Build?: {
                AgeServerPublicKey?: string;
                Burned?: boolean;
                ID?: string;
                ImplantConfigID?: string;
                ImplantID?: string;
                MD5?: string;
                MinisignServerPublicKey?: string;
                MtlsCACert?: string;
                MtlsCert?: string;
                MtlsKey?: string;
                Name?: string;
                PeerPrivateKey?: string;
                PeerPublicKey?: string;
                PeerPublicKeyDigest?: string;
                PeerPublicKeySignature?: string;
                SHA1?: string;
                SHA256?: string;
                Stage?: boolean;
                WGImplantPrivKey?: string;
                WGServerPubKey?: string;
            };
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            encoders?: { [key: string]: undefined
            | string };
            HTTPC2?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: string; Name?: string }[];
                    Headers?: {
                        ID?: string;
                        Method?: string;
                        Name?: string;
                        Probability?: number;
                        Value?: string;
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            ClientIP?: string;
            ClientPrivateKey?: string;
            ClientPubKey?: string;
            ServerPubKey?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            ActiveC2?: string;
            Arch?: string;
            Burned?: boolean;
            Evasion?: boolean;
            Filename?: string;
            FirstContact?: string;
            GID?: string;
            Hostname?: string;
            ID?: string;
            Integrity?: string;
            Interval?: string;
            IsDead?: boolean;
            Jitter?: string;
            LastCheckin?: string;
            Locale?: string;
            Name?: string;
            NextCheckin?: string;
            OS?: string;
            PID?: number;
            ProxyURL?: string;
            ReconnectInterval?: string;
            RemoteAddress?: string;
            TasksCount?: string;
            TasksCountCompleted?: string;
            Transport?: string;
            UID?: string;
            Username?: string;
            UUID?: string;
            Version?: string;
        },
    >

  • ** Beacons ***

    +

    Parameters

    Returns Promise<
        {
            Beacons?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                Interval?: string;
                IsDead?: boolean;
                Jitter?: string;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                NextCheckin?: string;
                OS?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                TasksCount?: string;
                TasksCountCompleted?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            BeaconID?: string;
            CompletedAt?: string;
            CreatedAt?: string;
            Description?: string;
            ID?: string;
            Request?: Buffer<ArrayBufferLike>;
            Response?: Buffer<ArrayBufferLike>;
            SentAt?: string;
            State?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            BeaconID?: string;
            Tasks?: {
                BeaconID?: string;
                CompletedAt?: string;
                CreatedAt?: string;
                Description?: string;
                ID?: string;
                Request?: Buffer<ArrayBufferLike>;
                Response?: Buffer<ArrayBufferLike>;
                SentAt?: string;
                State?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            info?: {
                CN?: string;
                CreationTime?: string;
                ID?: string;
                KeyAlgorithm?: string;
                Type?: string;
                ValidityExpiry?: string;
                ValidityStart?: string;
            }[];
        },
    >

  • ** Certificates ***

    +

    Parameters

    Returns Promise<
        {
            info?: {
                CN?: string;
                CreationTime?: string;
                ID?: string;
                KeyAlgorithm?: string;
                Type?: string;
                ValidityExpiry?: string;
                ValidityStart?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            CrossCompilers?: {
                CCPath?: string;
                CXXPath?: string;
                TargetGOARCH?: string;
                TargetGOOS?: string;
            }[];
            GOARCH?: string;
            GOOS?: string;
            Targets?: { Format?: OutputFormat; GOARCH?: string; GOOS?: string }[];
            UnsupportedTargets?: {
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Collection?: string;
            Hash?: string;
            HashType?: HashType;
            ID?: string;
            IsCracked?: boolean;
            OriginHostUUID?: string;
            Plaintext?: string;
            Username?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Variables?: { Key?: string; Value?: string }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Created?: string;
            ID?: string;
            ImplantConfig?: {
                ChromeBaseVersion?: number;
                extensions?: string[];
                ExtraURLParameters?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                Headers?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                ID?: string;
                MacOSVersion?: string;
                MaxFileGen?: number;
                MaxPathGen?: number;
                MaxPathLength?: number;
                MinFileGen?: number;
                MinPathGen?: number;
                MinPathLength?: number;
                NonceMode?: string;
                NonceQueryArgChars?: string;
                NonceQueryLength?: number;
                PathSegments?: { ID?: string; IsFile?: boolean; Value?: string }[];
                UserAgent?: string;
            };
            Name?: string;
            ServerConfig?: {
                Cookies?: { ID?: string; Name?: string }[];
                Headers?: {
                    ID?: string;
                    Method?: string;
                    Name?: string;
                    Probability?: number;
                    Value?: string;
                }[];
                ID?: string;
                RandomVersionHeaders?: boolean;
            };
        },
    >

  • ** HTTP C2 Profiles ***

    +

    Parameters

    Returns Promise<
        {
            configs?: {
                Created?: string;
                ID?: string;
                ImplantConfig?: {
                    ChromeBaseVersion?: number;
                    extensions?: string[];
                    ExtraURLParameters?: {
                        ID?: (...)
                        | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    Headers?: {
                        ID?: (...)
                        | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    ID?: string;
                    MacOSVersion?: string;
                    MaxFileGen?: number;
                    MaxPathGen?: number;
                    MaxPathLength?: number;
                    MinFileGen?: number;
                    MinPathGen?: number;
                    MinPathLength?: number;
                    NonceMode?: string;
                    NonceQueryArgChars?: string;
                    NonceQueryLength?: number;
                    PathSegments?: {
                        ID?: (...)
                        | (...);
                        IsFile?: (...) | (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    UserAgent?: string;
                };
                Name?: string;
                ServerConfig?: {
                    Cookies?: { ID?: (...)
                    | (...); Name?: (...) | (...) }[];
                    Headers?: {
                        ID?: (...) | (...);
                        Method?: (...) | (...);
                        Name?: (...) | (...);
                        Probability?: (...) | (...);
                        Value?: (...) | (...);
                    }[];
                    ID?: string;
                    RandomVersionHeaders?: boolean;
                };
            }[];
        },
    >

  • ** Jobs ***

    +

    Parameters

    Returns Promise<
        {
            Active?: {
                Description?: string;
                Domains?: string[];
                ID?: number;
                Name?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Credentials?: {
                Collection?: string;
                Hash?: string;
                HashType?: HashType;
                ID?: string;
                IsCracked?: boolean;
                OriginHostUUID?: string;
                Plaintext?: string;
                Username?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            PrivInfo?: {
                Description?: string;
                Enabled?: boolean;
                EnabledByDefault?: boolean;
                Name?: string;
                Removed?: boolean;
                UsedForAccess?: boolean;
            }[];
            ProcessIntegrity?: string;
            ProcessName?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Listeners?: {
                BindAddress?: string;
                BindPort?: number;
                ForwardAddress?: string;
                ForwardPort?: number;
                ID?: number;
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Sessions ***

    +

    Parameters

    Returns Promise<
        {
            Sessions?: {
                ActiveC2?: string;
                Arch?: string;
                Burned?: boolean;
                Evasion?: boolean;
                Extensions?: string[];
                Filename?: string;
                FirstContact?: string;
                GID?: string;
                Hostname?: string;
                ID?: string;
                Integrity?: string;
                IsDead?: boolean;
                LastCheckin?: string;
                Locale?: string;
                Name?: string;
                OS?: string;
                PeerID?: string;
                PID?: number;
                ProxyURL?: string;
                ReconnectInterval?: string;
                RemoteAddress?: string;
                Transport?: string;
                UID?: string;
                Username?: string;
                UUID?: string;
                Version?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Version ***

    +

    Parameters

    Returns Promise<
        {
            Arch?: string;
            Commit?: string;
            CompiledAt?: string;
            Dirty?: boolean;
            Major?: number;
            Minor?: number;
            OS?: string;
            Patch?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Results?: {
                [key: string]: | undefined
                | {
                    FileResults?: {
                        Line?: string;
                        LineNumber?: string;
                        LinesAfter?: (...)[];
                        LinesBefore?: (...)[];
                        Positions?: (...)[];
                    }[];
                    IsBinary?: boolean;
                };
            };
            SearchPathAbsolute?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            ExtensionData?: { [key: string]: undefined
            | { Output?: string } };
            FirstContact?: string;
            Hostname?: string;
            HostUUID?: string;
            ID?: string;
            IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
            Locale?: string;
            OSVersion?: string;
        },
    >

  • ** Hosts ***

    +

    Parameters

    Returns Promise<
        {
            Hosts?: {
                ExtensionData?: { [key: string]: undefined
                | { Output?: string } };
                FirstContact?: string;
                Hostname?: string;
                HostUUID?: string;
                ID?: string;
                IOCs?: { FileHash?: string; ID?: string; Path?: string }[];
                Locale?: string;
                OSVersion?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            NetInterfaces?: {
                Index?: number;
                IPAddresses?: string[];
                MAC?: string;
                Name?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Configs?: {
                [key: string]: | undefined
                | {
                    Assets?: { Data?: Buffer<(...)>; Name?: string }[];
                    BeaconInterval?: string;
                    BeaconJitter?: string;
                    C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                    CanaryDomains?: string[];
                    ConnectionStrategy?: string;
                    Debug?: boolean;
                    DebugFile?: string;
                    Evasion?: boolean;
                    exports?: string[];
                    Extension?: string;
                    Format?: OutputFormat;
                    GOARCH?: string;
                    GOOS?: string;
                    GoPackage?: string;
                    HTTPC2ConfigName?: string;
                    ID?: string;
                    ImplantBuilds?: {
                        AgeServerPublicKey?: string;
                        Burned?: boolean;
                        ID?: string;
                        ImplantConfigID?: string;
                        ImplantID?: string;
                        MD5?: string;
                        MinisignServerPublicKey?: string;
                        MtlsCACert?: string;
                        MtlsCert?: string;
                        MtlsKey?: string;
                        Name?: string;
                        PeerPrivateKey?: string;
                        PeerPublicKey?: string;
                        PeerPublicKeyDigest?: string;
                        PeerPublicKeySignature?: string;
                        SHA1?: string;
                        SHA256?: string;
                        Stage?: boolean;
                        WGImplantPrivKey?: string;
                        WGServerPubKey?: string;
                    }[];
                    ImplantProfileID?: string;
                    IncludeDNS?: boolean;
                    IncludeHTTP?: boolean;
                    IncludeMTLS?: boolean;
                    IncludeNamePipe?: boolean;
                    IncludeTCP?: boolean;
                    IncludeWG?: boolean;
                    IsBeacon?: boolean;
                    IsService?: boolean;
                    IsSharedLib?: boolean;
                    IsShellcode?: boolean;
                    LimitDatetime?: string;
                    LimitDomainJoined?: boolean;
                    LimitFileExists?: string;
                    LimitHostname?: string;
                    LimitLocale?: string;
                    LimitUsername?: string;
                    MaxConnectionErrors?: number;
                    NetGoEnabled?: boolean;
                    ObfuscateSymbols?: boolean;
                    PollTimeout?: string;
                    ReconnectInterval?: string;
                    RunAtLoad?: boolean;
                    SGNEnabled?: boolean;
                    ShellcodeConfig?: {
                        Bypass?: number;
                        Compress?: number;
                        Entropy?: number;
                        ExitOpt?: number;
                        Headers?: number;
                        OEP?: number;
                        Thread?: boolean;
                        Unicode?: boolean;
                    };
                    ShellcodeEncoder?: ShellcodeEncoder;
                    TemplateName?: string;
                    TrafficEncoders?: string[];
                    TrafficEncodersEnabled?: boolean;
                    WGKeyExchangePort?: number;
                    WGPeerTunIP?: string;
                    WGTcpCommsPort?: number;
                };
            };
            ResourceIDs?: {
                [key: string]: | undefined
                | { ID?: string; Name?: string; Type?: string; Value?: string };
            };
            staged?: { [key: string]: undefined
            | boolean };
        },
    >

  • Parameters

    Returns Promise<
        {
            Profiles?: {
                Config?: {
                    Assets?: { Data?: (...)
                    | (...); Name?: (...) | (...) }[];
                    BeaconInterval?: string;
                    BeaconJitter?: string;
                    C2?: {
                        ID?: (...) | (...);
                        Options?: (...) | (...);
                        Priority?: (...) | (...);
                        URL?: (...) | (...);
                    }[];
                    CanaryDomains?: string[];
                    ConnectionStrategy?: string;
                    Debug?: boolean;
                    DebugFile?: string;
                    Evasion?: boolean;
                    exports?: string[];
                    Extension?: string;
                    Format?: OutputFormat;
                    GOARCH?: string;
                    GOOS?: string;
                    GoPackage?: string;
                    HTTPC2ConfigName?: string;
                    ID?: string;
                    ImplantBuilds?: {
                        AgeServerPublicKey?: (...)
                        | (...);
                        Burned?: (...) | (...) | (...);
                        ID?: (...) | (...);
                        ImplantConfigID?: (...) | (...);
                        ImplantID?: (...) | (...);
                        MD5?: (...) | (...);
                        MinisignServerPublicKey?: (...) | (...);
                        MtlsCACert?: (...) | (...);
                        MtlsCert?: (...) | (...);
                        MtlsKey?: (...) | (...);
                        Name?: (...) | (...);
                        PeerPrivateKey?: (...) | (...);
                        PeerPublicKey?: (...) | (...);
                        PeerPublicKeyDigest?: (...) | (...);
                        PeerPublicKeySignature?: (...) | (...);
                        SHA1?: (...) | (...);
                        SHA256?: (...) | (...);
                        Stage?: (...) | (...) | (...);
                        WGImplantPrivKey?: (...) | (...);
                        WGServerPubKey?: (...) | (...);
                    }[];
                    ImplantProfileID?: string;
                    IncludeDNS?: boolean;
                    IncludeHTTP?: boolean;
                    IncludeMTLS?: boolean;
                    IncludeNamePipe?: boolean;
                    IncludeTCP?: boolean;
                    IncludeWG?: boolean;
                    IsBeacon?: boolean;
                    IsService?: boolean;
                    IsSharedLib?: boolean;
                    IsShellcode?: boolean;
                    LimitDatetime?: string;
                    LimitDomainJoined?: boolean;
                    LimitFileExists?: string;
                    LimitHostname?: string;
                    LimitLocale?: string;
                    LimitUsername?: string;
                    MaxConnectionErrors?: number;
                    NetGoEnabled?: boolean;
                    ObfuscateSymbols?: boolean;
                    PollTimeout?: string;
                    ReconnectInterval?: string;
                    RunAtLoad?: boolean;
                    SGNEnabled?: boolean;
                    ShellcodeConfig?: {
                        Bypass?: number;
                        Compress?: number;
                        Entropy?: number;
                        ExitOpt?: number;
                        Headers?: number;
                        OEP?: number;
                        Thread?: boolean;
                        Unicode?: boolean;
                    };
                    ShellcodeEncoder?: ShellcodeEncoder;
                    TemplateName?: string;
                    TrafficEncoders?: string[];
                    TrafficEncodersEnabled?: boolean;
                    WGKeyExchangePort?: number;
                    WGPeerTunIP?: string;
                    WGTcpCommsPort?: number;
                };
                ID?: string;
                Name?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Names?: string[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Names?: string[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Loot ***

    +

    Parameters

    Returns Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Loot?: {
                File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
                FileType?: FileType;
                ID?: string;
                Name?: string;
                OriginHostUUID?: string;
                Size?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            File?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            FileType?: FileType;
            ID?: string;
            Name?: string;
            OriginHostUUID?: string;
            Size?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Exists?: boolean;
            Files?: {
                Gid?: string;
                IsDir?: boolean;
                Link?: string;
                Mode?: string;
                ModTime?: string;
                Name?: string;
                Size?: string;
                Uid?: string;
            }[];
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            timezone?: string;
            timezoneOffset?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Fd?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Exists?: boolean;
            Files?: {
                Gid?: string;
                IsDir?: boolean;
                Link?: string;
                Mode?: string;
                ModTime?: string;
                Name?: string;
                Size?: string;
                Uid?: string;
            }[];
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            timezone?: string;
            timezoneOffset?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Fd?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Success?: boolean;
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            providers?: {
                APIKey?: string;
                APIPassword?: string;
                ID?: string;
                Type?: string;
            }[];
        },
    >

  • **Threat monitoring ***

    +

    Parameters

    Returns Promise<{ Async?: boolean; BeaconID?: string; Err?: string; TaskID?: string }>

  • Parameters

    Returns Promise<
        {
            Info?: {
                FileSystem?: string;
                FreeSpace?: string;
                Label?: string;
                MountOptions?: string;
                MountPoint?: string;
                TotalSpace?: string;
                UsedSpace?: string;
                VolumeName?: string;
                VolumeType?: string;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Dst?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Src?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Entries?: {
                LocalAddr?: { Ip?: string; Port?: number };
                Process?: {
                    Architecture?: string;
                    CmdLine?: string[];
                    Executable?: string;
                    Owner?: string;
                    Pid?: number;
                    Ppid?: number;
                    SessionID?: number;
                };
                Protocol?: string;
                RemoteAddr?: { Ip?: string; Port?: number };
                SkState?: string;
                UID?: number;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Beacon *** -only commands

    +

    Parameters

    Returns Promise<
        {
            C2s?: string[];
            Delay?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Session Interactions ***

    +

    Parameters

    Returns Promise<
        {
            Nonce?: number;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Children?: {
                Children?: { PeerID?: string | undefined; Session?: { ID?: string | undefined; Name?: string | undefined; Hostname?: string | undefined; UUID?: string | undefined; Username?: string | undefined; ... 20 more ...; Integrity?: string | undefined; } | undefined; Name?: string | undefined; Children?: ...[] | undefined; }[] | undefi...;
                Name?: string;
                PeerID?: string;
                Session?: {
                    ActiveC2?: string;
                    Arch?: string;
                    Burned?: boolean;
                    Evasion?: boolean;
                    Extensions?: string[];
                    Filename?: string;
                    FirstContact?: string;
                    GID?: string;
                    Hostname?: string;
                    ID?: string;
                    Integrity?: string;
                    IsDead?: boolean;
                    LastCheckin?: string;
                    Locale?: string;
                    Name?: string;
                    OS?: string;
                    PeerID?: string;
                    PID?: number;
                    ProxyURL?: string;
                    ReconnectInterval?: string;
                    RemoteAddress?: string;
                    Transport?: string;
                    UID?: string;
                    Username?: string;
                    UUID?: string;
                    Version?: string;
                };
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Listeners?: {
                BindAddress?: string;
                ID?: number;
                Pivots?: { PeerID?: string; RemoteAddress?: string }[];
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
                Type?: PivotType;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Pivots ***

    +

    Parameters

    Returns Promise<
        {
            BindAddress?: string;
            ID?: number;
            Pivots?: { PeerID?: string; RemoteAddress?: string }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Type?: PivotType;
        },
    >

  • Parameters

    Returns Promise<
        {
            Host?: string;
            Port?: number;
            Protocol?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            TunnelID?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Processes?: {
                Architecture?: string;
                CmdLine?: string[];
                Executable?: string;
                Owner?: string;
                Pid?: number;
                Ppid?: number;
                SessionID?: number;
            }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Extensions ***

    +

    Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Wasm Extensions ***

    +

    Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Subkeys?: string[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            ValueNames?: string[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Value?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Encoder?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Output?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            StdErr?: string;
            StdOut?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Config?: {
                Assets?: { Data?: Buffer<ArrayBufferLike>; Name?: string }[];
                BeaconInterval?: string;
                BeaconJitter?: string;
                C2?: { ID?: string; Options?: string; Priority?: number; URL?: string }[];
                CanaryDomains?: string[];
                ConnectionStrategy?: string;
                Debug?: boolean;
                DebugFile?: string;
                Evasion?: boolean;
                exports?: string[];
                Extension?: string;
                Format?: OutputFormat;
                GOARCH?: string;
                GOOS?: string;
                GoPackage?: string;
                HTTPC2ConfigName?: string;
                ID?: string;
                ImplantBuilds?: {
                    AgeServerPublicKey?: string;
                    Burned?: boolean;
                    ID?: string;
                    ImplantConfigID?: string;
                    ImplantID?: string;
                    MD5?: string;
                    MinisignServerPublicKey?: string;
                    MtlsCACert?: string;
                    MtlsCert?: string;
                    MtlsKey?: string;
                    Name?: string;
                    PeerPrivateKey?: string;
                    PeerPublicKey?: string;
                    PeerPublicKeyDigest?: string;
                    PeerPublicKeySignature?: string;
                    SHA1?: string;
                    SHA256?: string;
                    Stage?: boolean;
                    WGImplantPrivKey?: string;
                    WGServerPubKey?: string;
                }[];
                ImplantProfileID?: string;
                IncludeDNS?: boolean;
                IncludeHTTP?: boolean;
                IncludeMTLS?: boolean;
                IncludeNamePipe?: boolean;
                IncludeTCP?: boolean;
                IncludeWG?: boolean;
                IsBeacon?: boolean;
                IsService?: boolean;
                IsSharedLib?: boolean;
                IsShellcode?: boolean;
                LimitDatetime?: string;
                LimitDomainJoined?: boolean;
                LimitFileExists?: string;
                LimitHostname?: string;
                LimitLocale?: string;
                LimitUsername?: string;
                MaxConnectionErrors?: number;
                NetGoEnabled?: boolean;
                ObfuscateSymbols?: boolean;
                PollTimeout?: string;
                ReconnectInterval?: string;
                RunAtLoad?: boolean;
                SGNEnabled?: boolean;
                ShellcodeConfig?: {
                    Bypass?: number;
                    Compress?: number;
                    Entropy?: number;
                    ExitOpt?: number;
                    Headers?: number;
                    OEP?: number;
                    Thread?: boolean;
                    Unicode?: boolean;
                };
                ShellcodeEncoder?: ShellcodeEncoder;
                TemplateName?: string;
                TrafficEncoders?: string[];
                TrafficEncodersEnabled?: boolean;
                WGKeyExchangePort?: number;
                WGPeerTunIP?: string;
                WGTcpCommsPort?: number;
            };
            ID?: string;
            Name?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Detail?: {
                Account?: string;
                BinPath?: string;
                Description?: string;
                DisplayName?: string;
                Name?: string;
                StartupType?: number;
                Status?: number;
            };
            Message?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Details?: {
                Account?: string;
                BinPath?: string;
                Description?: string;
                DisplayName?: string;
                Name?: string;
                StartupType?: number;
                Status?: number;
            }[];
            Error?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • ** Realtime Commands ***

    +

    Parameters

    Returns Promise<
        {
            EnablePTY?: boolean;
            Path?: string;
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            TunnelID?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Data?: Buffer<ArrayBufferLike>;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Encoders?: {
                [key: string]: | undefined
                | {
                    Descriptions?: { [key: string]: undefined
                    | string };
                    Encoders?: { [key: string]: undefined | ShellcodeEncoder };
                };
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Result?: string;
        },
    >

  • Parameters

    Returns ServerStreamingMethodResult<
        {
            CloseConn?: boolean;
            Data?: Buffer<ArrayBufferLike>;
            Password?: string;
            Request?: {
                Async?: boolean;
                BeaconID?: string;
                SessionID?: string;
                Timeout?: string;
            };
            Sequence?: string;
            TunnelID?: string;
            Username?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Result?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >

  • ** Listeners ***

    +

    Parameters

    Returns Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            BindAddress?: string;
            BindPort?: number;
            ForwardAddress?: string;
            ForwardPort?: number;
            ID?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            DNSConf?: {
                Canaries?: boolean;
                Domains?: string[];
                EnforceOTP?: boolean;
                Host?: string;
                Port?: number;
            };
            HTTPConf?: {
                ACME?: boolean;
                Cert?: Buffer<ArrayBufferLike>;
                Domain?: string;
                EnforceOTP?: boolean;
                Host?: string;
                Key?: Buffer<ArrayBufferLike>;
                LongPollJitter?: string;
                LongPollTimeout?: string;
                Port?: number;
                RandomizeJARM?: boolean;
                Secure?: boolean;
                Website?: string;
            };
            ID?: string;
            JobID?: number;
            MTLSConf?: { Host?: string; Port?: number };
            MultiConf?: { Host?: string; Port?: number };
            TCPConf?: {
                Data?: Buffer<ArrayBufferLike>;
                Host?: string;
                Port?: number;
                ProfileName?: string;
                Protocol?: StageProtocol;
            };
            Type?: string;
            WGConf?: {
                Host?: string;
                KeyPort?: number;
                NPort?: number;
                Port?: number;
                TunIP?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            BindAddress?: string;
            BindPort?: number;
            ForwardAddress?: string;
            ForwardPort?: number;
            ID?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Pid?: number;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Encoder?: {
                ID?: string;
                SkipTests?: boolean;
                TestID?: string;
                Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
            };
            Tests?: {
                Completed?: boolean;
                Duration?: string;
                Err?: string;
                Name?: string;
                Sample?: Buffer<ArrayBufferLike>;
                Success?: boolean;
            }[];
            TotalDuration?: string;
            TotalTests?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Encoders?: {
                [key: string]: | undefined
                | {
                    ID?: string;
                    SkipTests?: boolean;
                    TestID?: string;
                    Wasm?: { Data?: Buffer<ArrayBufferLike>; Name?: string };
                };
            };
        },
    >

  • Parameters

    Returns ServerStreamingMethodResult<
        {
            Ack?: string;
            Closed?: boolean;
            CreateReverse?: boolean;
            Data?: Buffer<ArrayBufferLike>;
            Resend?: boolean;
            rportfwd?: {
                Host?: string;
                Port?: number;
                Protocol?: number;
                Response?: {
                    Async?: boolean;
                    BeaconID?: string;
                    Err?: string;
                    TaskID?: string;
                };
                TunnelID?: string;
            };
            Sequence?: string;
            SessionID?: string;
            TunnelID?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Path?: string;
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            UnwriteableFiles?: number;
            WrittenFiles?: number;
        },
    >

  • Parameters

    Returns Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >

  • ** Websites ***

    +

    Parameters

    Returns Promise<
        {
            Websites?: {
                Contents?: {
                    [key: string]: | undefined
                    | {
                        Content?: Buffer<(...)>;
                        ContentType?: string;
                        ID?: string;
                        OriginalFile?: string;
                        Path?: string;
                        Sha256?: string;
                        Size?: string;
                        WebsiteID?: string;
                    };
                };
                ID?: string;
                Name?: string;
            }[];
        },
    >

  • Parameters

    Returns Promise<
        {
            Contents?: {
                [key: string]: | undefined
                | {
                    Content?: Buffer<ArrayBufferLike>;
                    ContentType?: string;
                    ID?: string;
                    OriginalFile?: string;
                    Path?: string;
                    Sha256?: string;
                    Size?: string;
                    WebsiteID?: string;
                };
            };
            ID?: string;
            Name?: string;
        },
    >

  • Parameters

    Returns Promise<
        {
            Forwarders?: { ID?: number; LocalAddr?: string; RemoteAddr?: string }[];
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Servers?: { ID?: number; LocalAddr?: string }[];
        },
    >

  • ** Wireguard Specific ***

    +

    Parameters

    Returns Promise<
        {
            Forwarder?: { ID?: number; LocalAddr?: string; RemoteAddr?: string };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Server?: { ID?: number; LocalAddr?: string };
        },
    >

  • Parameters

    Returns Promise<
        {
            Forwarder?: { ID?: number; LocalAddr?: string; RemoteAddr?: string };
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
        },
    >

  • Parameters

    Returns Promise<
        {
            Response?: {
                Async?: boolean;
                BeaconID?: string;
                Err?: string;
                TaskID?: string;
            };
            Server?: { ID?: number; LocalAddr?: string };
        },
    >

diff --git a/docs/interfaces/sliverpb.BeaconRegister.html b/docs/interfaces/sliverpb.BeaconRegister.html new file mode 100644 index 0000000..69e18e6 --- /dev/null +++ b/docs/interfaces/sliverpb.BeaconRegister.html @@ -0,0 +1,6 @@ +BeaconRegister | sliver-script

Interface BeaconRegister

interface BeaconRegister {
    ID: string;
    Interval: string;
    Jitter: string;
    NextCheckin: string;
    Register?: sliverpb.Register;
}

Properties

ID: string
Interval: string
Jitter: string
NextCheckin: string
Register?: sliverpb.Register
diff --git a/docs/interfaces/sliverpb.BeaconTasks.html b/docs/interfaces/sliverpb.BeaconTasks.html new file mode 100644 index 0000000..b022746 --- /dev/null +++ b/docs/interfaces/sliverpb.BeaconTasks.html @@ -0,0 +1,5 @@ +BeaconTasks | sliver-script

BeaconTasks - DO NOT CONFUSE WITH clientpb.BeaconTasks

+
interface BeaconTasks {
    ID: string;
    NextCheckin: string;
    Tasks: sliverpb.Envelope[];
}

Properties

Properties

ID: string
NextCheckin: string
diff --git a/docs/interfaces/sliverpb.CallExtension.html b/docs/interfaces/sliverpb.CallExtension.html new file mode 100644 index 0000000..8e48513 --- /dev/null +++ b/docs/interfaces/sliverpb.CallExtension.html @@ -0,0 +1,4 @@ +CallExtension | sliver-script

Interface CallExtension

interface CallExtension {
    Output: Buffer;
    Response?: commonpb.Response;
    ServerStore: boolean;
}

Properties

Output: Buffer
Response?: commonpb.Response
ServerStore: boolean
diff --git a/docs/interfaces/sliverpb.CallExtensionReq.html b/docs/interfaces/sliverpb.CallExtensionReq.html new file mode 100644 index 0000000..f6884f2 --- /dev/null +++ b/docs/interfaces/sliverpb.CallExtensionReq.html @@ -0,0 +1,6 @@ +CallExtensionReq | sliver-script

Interface CallExtensionReq

interface CallExtensionReq {
    Args: Buffer;
    Export: string;
    Name: string;
    Request?: commonpb.Request;
    ServerStore: boolean;
}

Properties

Args: Buffer
Export: string
Name: string
Request?: commonpb.Request
ServerStore: boolean
diff --git a/docs/interfaces/sliverpb.CdReq.html b/docs/interfaces/sliverpb.CdReq.html new file mode 100644 index 0000000..62c002a --- /dev/null +++ b/docs/interfaces/sliverpb.CdReq.html @@ -0,0 +1,3 @@ +CdReq | sliver-script
interface CdReq {
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Chmod.html b/docs/interfaces/sliverpb.Chmod.html new file mode 100644 index 0000000..9b4de55 --- /dev/null +++ b/docs/interfaces/sliverpb.Chmod.html @@ -0,0 +1,3 @@ +Chmod | sliver-script
interface Chmod {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ChmodReq.html b/docs/interfaces/sliverpb.ChmodReq.html new file mode 100644 index 0000000..5324a71 --- /dev/null +++ b/docs/interfaces/sliverpb.ChmodReq.html @@ -0,0 +1,5 @@ +ChmodReq | sliver-script
interface ChmodReq {
    FileMode: string;
    Path: string;
    Recursive: boolean;
    Request?: commonpb.Request;
}

Properties

FileMode: string
Path: string
Recursive: boolean
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Chown.html b/docs/interfaces/sliverpb.Chown.html new file mode 100644 index 0000000..aa7f743 --- /dev/null +++ b/docs/interfaces/sliverpb.Chown.html @@ -0,0 +1,3 @@ +Chown | sliver-script
interface Chown {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ChownReq.html b/docs/interfaces/sliverpb.ChownReq.html new file mode 100644 index 0000000..415398f --- /dev/null +++ b/docs/interfaces/sliverpb.ChownReq.html @@ -0,0 +1,6 @@ +ChownReq | sliver-script
interface ChownReq {
    Gid: string;
    Path: string;
    Recursive: boolean;
    Request?: commonpb.Request;
    Uid: string;
}

Properties

Properties

Gid: string
Path: string
Recursive: boolean
Request?: commonpb.Request
Uid: string
diff --git a/docs/interfaces/sliverpb.Chtimes.html b/docs/interfaces/sliverpb.Chtimes.html new file mode 100644 index 0000000..7d28e2b --- /dev/null +++ b/docs/interfaces/sliverpb.Chtimes.html @@ -0,0 +1,3 @@ +Chtimes | sliver-script
interface Chtimes {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ChtimesReq.html b/docs/interfaces/sliverpb.ChtimesReq.html new file mode 100644 index 0000000..822aa75 --- /dev/null +++ b/docs/interfaces/sliverpb.ChtimesReq.html @@ -0,0 +1,5 @@ +ChtimesReq | sliver-script
interface ChtimesReq {
    ATime: string;
    MTime: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

ATime: string
MTime: string
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.CloseSession.html b/docs/interfaces/sliverpb.CloseSession.html new file mode 100644 index 0000000..599aadc --- /dev/null +++ b/docs/interfaces/sliverpb.CloseSession.html @@ -0,0 +1,3 @@ +CloseSession | sliver-script

Interface CloseSession

interface CloseSession {
    Request?: commonpb.Request;
    Response?: commonpb.Response;
}

Properties

Properties

Request?: commonpb.Request
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.Cp.html b/docs/interfaces/sliverpb.Cp.html new file mode 100644 index 0000000..2d98104 --- /dev/null +++ b/docs/interfaces/sliverpb.Cp.html @@ -0,0 +1,5 @@ +Cp | sliver-script
interface Cp {
    BytesWritten: string;
    Dst: string;
    Response?: commonpb.Response;
    Src: string;
}

Properties

Properties

BytesWritten: string
Dst: string
Response?: commonpb.Response
Src: string
diff --git a/docs/interfaces/sliverpb.CpReq.html b/docs/interfaces/sliverpb.CpReq.html new file mode 100644 index 0000000..8b474f1 --- /dev/null +++ b/docs/interfaces/sliverpb.CpReq.html @@ -0,0 +1,4 @@ +CpReq | sliver-script
interface CpReq {
    Dst: string;
    Request?: commonpb.Request;
    Src: string;
}

Properties

Properties

Dst: string
Request?: commonpb.Request
Src: string
diff --git a/docs/interfaces/sliverpb.CurrentTokenOwner.html b/docs/interfaces/sliverpb.CurrentTokenOwner.html new file mode 100644 index 0000000..9b6ae8c --- /dev/null +++ b/docs/interfaces/sliverpb.CurrentTokenOwner.html @@ -0,0 +1,3 @@ +CurrentTokenOwner | sliver-script

Interface CurrentTokenOwner

interface CurrentTokenOwner {
    Output: string;
    Response?: commonpb.Response;
}

Properties

Properties

Output: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.CurrentTokenOwnerReq.html b/docs/interfaces/sliverpb.CurrentTokenOwnerReq.html new file mode 100644 index 0000000..0488f8b --- /dev/null +++ b/docs/interfaces/sliverpb.CurrentTokenOwnerReq.html @@ -0,0 +1,2 @@ +CurrentTokenOwnerReq | sliver-script

Interface CurrentTokenOwnerReq

interface CurrentTokenOwnerReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.DeregisterWasmExtensionReq.html b/docs/interfaces/sliverpb.DeregisterWasmExtensionReq.html new file mode 100644 index 0000000..c44b2fa --- /dev/null +++ b/docs/interfaces/sliverpb.DeregisterWasmExtensionReq.html @@ -0,0 +1,3 @@ +DeregisterWasmExtensionReq | sliver-script

Interface DeregisterWasmExtensionReq

interface DeregisterWasmExtensionReq {
    Name: string;
    Request?: commonpb.Request;
}

Properties

Properties

Name: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Download.html b/docs/interfaces/sliverpb.Download.html new file mode 100644 index 0000000..2f51fda --- /dev/null +++ b/docs/interfaces/sliverpb.Download.html @@ -0,0 +1,11 @@ +Download | sliver-script
interface Download {
    Data: Buffer;
    Encoder: string;
    Exists: boolean;
    IsDir: boolean;
    Path: string;
    ReadFiles: number;
    Response?: commonpb.Response;
    Start: string;
    Stop: string;
    UnreadableFiles: number;
}

Properties

Data: Buffer
Encoder: string
Exists: boolean
IsDir: boolean
Path: string
ReadFiles: number
Response?: commonpb.Response
Start: string
Stop: string
UnreadableFiles: number
diff --git a/docs/interfaces/sliverpb.DownloadReq.html b/docs/interfaces/sliverpb.DownloadReq.html new file mode 100644 index 0000000..4837928 --- /dev/null +++ b/docs/interfaces/sliverpb.DownloadReq.html @@ -0,0 +1,9 @@ +DownloadReq | sliver-script
interface DownloadReq {
    MaxBytes: string;
    MaxLines: string;
    Path: string;
    Recurse: boolean;
    Request?: commonpb.Request;
    RestrictedToFile: boolean;
    Start: string;
    Stop: string;
}

Properties

MaxBytes: string
MaxLines: string
Path: string
Recurse: boolean
Request?: commonpb.Request
RestrictedToFile: boolean
Start: string
Stop: string
diff --git a/docs/interfaces/sliverpb.EnvInfo.html b/docs/interfaces/sliverpb.EnvInfo.html new file mode 100644 index 0000000..df2a48d --- /dev/null +++ b/docs/interfaces/sliverpb.EnvInfo.html @@ -0,0 +1,3 @@ +EnvInfo | sliver-script
interface EnvInfo {
    Response?: commonpb.Response;
    Variables: commonpb.EnvVar[];
}

Properties

Properties

Response?: commonpb.Response
Variables: commonpb.EnvVar[]
diff --git a/docs/interfaces/sliverpb.EnvReq.html b/docs/interfaces/sliverpb.EnvReq.html new file mode 100644 index 0000000..16726ce --- /dev/null +++ b/docs/interfaces/sliverpb.EnvReq.html @@ -0,0 +1,3 @@ +EnvReq | sliver-script
interface EnvReq {
    Name: string;
    Request?: commonpb.Request;
}

Properties

Properties

Name: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Envelope.html b/docs/interfaces/sliverpb.Envelope.html new file mode 100644 index 0000000..4f5dbe4 --- /dev/null +++ b/docs/interfaces/sliverpb.Envelope.html @@ -0,0 +1,11 @@ +Envelope | sliver-script

Envelope - Used to encode implant<->server messages since we +cannot use gRPC due to the various transports used.

+
interface Envelope {
    Data: Buffer;
    ID: string;
    Type: number;
    UnknownMessageType: boolean;
}

Properties

Data: Buffer

Actual message data

+
ID: string

Envelope ID used to track request/response

+
Type: number

Message type

+
UnknownMessageType: boolean

Set if the implant did not understand the message

+
diff --git a/docs/interfaces/sliverpb.ExecWasmExtension.html b/docs/interfaces/sliverpb.ExecWasmExtension.html new file mode 100644 index 0000000..8f1e713 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecWasmExtension.html @@ -0,0 +1,5 @@ +ExecWasmExtension | sliver-script

Interface ExecWasmExtension

interface ExecWasmExtension {
    ExitCode: number;
    Response?: commonpb.Response;
    Stderr: Buffer;
    Stdout: Buffer;
}

Properties

ExitCode: number
Response?: commonpb.Response
Stderr: Buffer
Stdout: Buffer
diff --git a/docs/interfaces/sliverpb.ExecWasmExtensionReq.html b/docs/interfaces/sliverpb.ExecWasmExtensionReq.html new file mode 100644 index 0000000..8123d87 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecWasmExtensionReq.html @@ -0,0 +1,8 @@ +ExecWasmExtensionReq | sliver-script

Interface ExecWasmExtensionReq

interface ExecWasmExtensionReq {
    Args: string[];
    Interactive: boolean;
    MemFS: { [key: string]: Buffer<ArrayBufferLike> };
    Name: string;
    Request?: commonpb.Request;
    TunnelID: string;
}

Properties

Args: string[]
Interactive: boolean
MemFS: { [key: string]: Buffer<ArrayBufferLike> }
Name: string
Request?: commonpb.Request
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.ExecWasmExtensionReq_MemFSEntry.html b/docs/interfaces/sliverpb.ExecWasmExtensionReq_MemFSEntry.html new file mode 100644 index 0000000..9075268 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecWasmExtensionReq_MemFSEntry.html @@ -0,0 +1,3 @@ +ExecWasmExtensionReq_MemFSEntry | sliver-script

Interface ExecWasmExtensionReq_MemFSEntry

interface ExecWasmExtensionReq_MemFSEntry {
    key: string;
    value: Buffer;
}

Properties

Properties

key: string
value: Buffer
diff --git a/docs/interfaces/sliverpb.Execute.html b/docs/interfaces/sliverpb.Execute.html new file mode 100644 index 0000000..b2253cf --- /dev/null +++ b/docs/interfaces/sliverpb.Execute.html @@ -0,0 +1,6 @@ +Execute | sliver-script
interface Execute {
    Pid: number;
    Response?: commonpb.Response;
    Status: number;
    Stderr: Buffer;
    Stdout: Buffer;
}

Properties

Properties

Pid: number
Response?: commonpb.Response
Status: number
Stderr: Buffer
Stdout: Buffer
diff --git a/docs/interfaces/sliverpb.ExecuteAssembly.html b/docs/interfaces/sliverpb.ExecuteAssembly.html new file mode 100644 index 0000000..e898821 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteAssembly.html @@ -0,0 +1,3 @@ +ExecuteAssembly | sliver-script

Interface ExecuteAssembly

interface ExecuteAssembly {
    Output: Buffer;
    Response?: commonpb.Response;
}

Properties

Properties

Output: Buffer
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ExecuteAssemblyReq.html b/docs/interfaces/sliverpb.ExecuteAssemblyReq.html new file mode 100644 index 0000000..555089c --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteAssemblyReq.html @@ -0,0 +1,17 @@ +ExecuteAssemblyReq | sliver-script

Interface ExecuteAssemblyReq

interface ExecuteAssemblyReq {
    AmsiBypass: boolean;
    AppDomain: string;
    Arch: string;
    Arguments: string[];
    Assembly: Buffer;
    ClassName: string;
    EtwBypass: boolean;
    InProcess: boolean;
    IsDLL: boolean;
    Method: string;
    PPid: number;
    Process: string;
    ProcessArgs: string[];
    Request?: commonpb.Request;
    Runtime: string;
}

Properties

AmsiBypass: boolean
AppDomain: string
Arch: string
Arguments: string[]
Assembly: Buffer
ClassName: string
EtwBypass: boolean
InProcess: boolean

In process specific fields

+
IsDLL: boolean
Method: string
PPid: number
Process: string
ProcessArgs: string[]
Request?: commonpb.Request
Runtime: string
diff --git a/docs/interfaces/sliverpb.ExecuteChild.html b/docs/interfaces/sliverpb.ExecuteChild.html new file mode 100644 index 0000000..afabd13 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteChild.html @@ -0,0 +1,11 @@ +ExecuteChild | sliver-script

Interface ExecuteChild

interface ExecuteChild {
    Args: string[];
    Error: string;
    ExitCode: number;
    Exited: boolean;
    ExitTime: string;
    Path: string;
    Pid: number;
    StartTime: string;
    Stderr: string;
    Stdout: string;
}

Properties

Args: string[]
Error: string
ExitCode: number
Exited: boolean
ExitTime: string
Path: string
Pid: number
StartTime: string
Stderr: string
Stdout: string
diff --git a/docs/interfaces/sliverpb.ExecuteChildren.html b/docs/interfaces/sliverpb.ExecuteChildren.html new file mode 100644 index 0000000..d431978 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteChildren.html @@ -0,0 +1,3 @@ +ExecuteChildren | sliver-script

Interface ExecuteChildren

interface ExecuteChildren {
    Children: sliverpb.ExecuteChild[];
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ExecuteChildrenReq.html b/docs/interfaces/sliverpb.ExecuteChildrenReq.html new file mode 100644 index 0000000..d365b43 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteChildrenReq.html @@ -0,0 +1,2 @@ +ExecuteChildrenReq | sliver-script

Interface ExecuteChildrenReq

interface ExecuteChildrenReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.ExecuteReq.html b/docs/interfaces/sliverpb.ExecuteReq.html new file mode 100644 index 0000000..2cdfdcf --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteReq.html @@ -0,0 +1,11 @@ +ExecuteReq | sliver-script
interface ExecuteReq {
    Args: string[];
    Background: boolean;
    Env: { [key: string]: string };
    EnvInheritance: boolean;
    Output: boolean;
    Path: string;
    PPid: number;
    Request?: commonpb.Request;
    Stderr: string;
    Stdout: string;
}

Properties

Args: string[]
Background: boolean
Env: { [key: string]: string }
EnvInheritance: boolean
Output: boolean
Path: string
PPid: number
Request?: commonpb.Request
Stderr: string
Stdout: string
diff --git a/docs/interfaces/sliverpb.ExecuteReq_EnvEntry.html b/docs/interfaces/sliverpb.ExecuteReq_EnvEntry.html new file mode 100644 index 0000000..3741c91 --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteReq_EnvEntry.html @@ -0,0 +1,3 @@ +ExecuteReq_EnvEntry | sliver-script

Interface ExecuteReq_EnvEntry

interface ExecuteReq_EnvEntry {
    key: string;
    value: string;
}

Properties

Properties

key: string
value: string
diff --git a/docs/interfaces/sliverpb.ExecuteWindowsReq.html b/docs/interfaces/sliverpb.ExecuteWindowsReq.html new file mode 100644 index 0000000..39f225c --- /dev/null +++ b/docs/interfaces/sliverpb.ExecuteWindowsReq.html @@ -0,0 +1,11 @@ +ExecuteWindowsReq | sliver-script

Interface ExecuteWindowsReq

interface ExecuteWindowsReq {
    Args: string[];
    Background: boolean;
    HideWindow: boolean;
    Output: boolean;
    Path: string;
    PPid: number;
    Request?: commonpb.Request;
    Stderr: string;
    Stdout: string;
    UseToken: boolean;
}

Properties

Args: string[]
Background: boolean
HideWindow: boolean
Output: boolean
Path: string
PPid: number
Request?: commonpb.Request
Stderr: string
Stdout: string
UseToken: boolean
diff --git a/docs/interfaces/sliverpb.FileInfo.html b/docs/interfaces/sliverpb.FileInfo.html new file mode 100644 index 0000000..642c2ed --- /dev/null +++ b/docs/interfaces/sliverpb.FileInfo.html @@ -0,0 +1,9 @@ +FileInfo | sliver-script
interface FileInfo {
    Gid: string;
    IsDir: boolean;
    Link: string;
    Mode: string;
    ModTime: string;
    Name: string;
    Size: string;
    Uid: string;
}

Properties

Properties

Gid: string
IsDir: boolean
Link: string
Mode: string
ModTime: string
Name: string
Size: string
Uid: string
diff --git a/docs/interfaces/sliverpb.GetPrivs.html b/docs/interfaces/sliverpb.GetPrivs.html new file mode 100644 index 0000000..6eb17f6 --- /dev/null +++ b/docs/interfaces/sliverpb.GetPrivs.html @@ -0,0 +1,5 @@ +GetPrivs | sliver-script
interface GetPrivs {
    PrivInfo: sliverpb.WindowsPrivilegeEntry[];
    ProcessIntegrity: string;
    ProcessName: string;
    Response?: commonpb.Response;
}

Properties

ProcessIntegrity: string
ProcessName: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.GetPrivsReq.html b/docs/interfaces/sliverpb.GetPrivsReq.html new file mode 100644 index 0000000..f122ec2 --- /dev/null +++ b/docs/interfaces/sliverpb.GetPrivsReq.html @@ -0,0 +1,2 @@ +GetPrivsReq | sliver-script
interface GetPrivsReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.GetSystem.html b/docs/interfaces/sliverpb.GetSystem.html new file mode 100644 index 0000000..5014c32 --- /dev/null +++ b/docs/interfaces/sliverpb.GetSystem.html @@ -0,0 +1,3 @@ +GetSystem | sliver-script

GetSystem - The result of a InvokeGetSystemReq attempt

+
interface GetSystem {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.Grep.html b/docs/interfaces/sliverpb.Grep.html new file mode 100644 index 0000000..52b7bce --- /dev/null +++ b/docs/interfaces/sliverpb.Grep.html @@ -0,0 +1,4 @@ +Grep | sliver-script
interface Grep {
    Response?: commonpb.Response;
    Results: { [key: string]: sliverpb.GrepResultsForFile };
    SearchPathAbsolute: string;
}

Properties

Response?: commonpb.Response
Results: { [key: string]: sliverpb.GrepResultsForFile }
SearchPathAbsolute: string
diff --git a/docs/interfaces/sliverpb.GrepLinePosition.html b/docs/interfaces/sliverpb.GrepLinePosition.html new file mode 100644 index 0000000..09c7eca --- /dev/null +++ b/docs/interfaces/sliverpb.GrepLinePosition.html @@ -0,0 +1,3 @@ +GrepLinePosition | sliver-script

Interface GrepLinePosition

interface GrepLinePosition {
    End: number;
    Start: number;
}

Properties

Properties

End: number
Start: number
diff --git a/docs/interfaces/sliverpb.GrepReq.html b/docs/interfaces/sliverpb.GrepReq.html new file mode 100644 index 0000000..9231a95 --- /dev/null +++ b/docs/interfaces/sliverpb.GrepReq.html @@ -0,0 +1,7 @@ +GrepReq | sliver-script
interface GrepReq {
    LinesAfter: number;
    LinesBefore: number;
    Path: string;
    Recursive: boolean;
    Request?: commonpb.Request;
    SearchPattern: string;
}

Properties

LinesAfter: number
LinesBefore: number
Path: string
Recursive: boolean
Request?: commonpb.Request
SearchPattern: string
diff --git a/docs/interfaces/sliverpb.GrepResult.html b/docs/interfaces/sliverpb.GrepResult.html new file mode 100644 index 0000000..ca981f1 --- /dev/null +++ b/docs/interfaces/sliverpb.GrepResult.html @@ -0,0 +1,6 @@ +GrepResult | sliver-script
interface GrepResult {
    Line: string;
    LineNumber: string;
    LinesAfter: string[];
    LinesBefore: string[];
    Positions: sliverpb.GrepLinePosition[];
}

Properties

Line: string
LineNumber: string
LinesAfter: string[]
LinesBefore: string[]
diff --git a/docs/interfaces/sliverpb.GrepResultsForFile.html b/docs/interfaces/sliverpb.GrepResultsForFile.html new file mode 100644 index 0000000..3060193 --- /dev/null +++ b/docs/interfaces/sliverpb.GrepResultsForFile.html @@ -0,0 +1,3 @@ +GrepResultsForFile | sliver-script

Interface GrepResultsForFile

interface GrepResultsForFile {
    FileResults: sliverpb.GrepResult[];
    IsBinary: boolean;
}

Properties

Properties

FileResults: sliverpb.GrepResult[]
IsBinary: boolean
diff --git a/docs/interfaces/sliverpb.Grep_ResultsEntry.html b/docs/interfaces/sliverpb.Grep_ResultsEntry.html new file mode 100644 index 0000000..55b5392 --- /dev/null +++ b/docs/interfaces/sliverpb.Grep_ResultsEntry.html @@ -0,0 +1,3 @@ +Grep_ResultsEntry | sliver-script

Interface Grep_ResultsEntry

interface Grep_ResultsEntry {
    key: string;
    value?: sliverpb.GrepResultsForFile;
}

Properties

Properties

key: string
diff --git a/docs/interfaces/sliverpb.HTTPSessionInit.html b/docs/interfaces/sliverpb.HTTPSessionInit.html new file mode 100644 index 0000000..b32b803 --- /dev/null +++ b/docs/interfaces/sliverpb.HTTPSessionInit.html @@ -0,0 +1,3 @@ +HTTPSessionInit | sliver-script

Interface HTTPSessionInit

HTTP Sepecific message

+
interface HTTPSessionInit {
    Key: Buffer;
}

Properties

Key +

Properties

Key: Buffer
diff --git a/docs/interfaces/sliverpb.Ifconfig.html b/docs/interfaces/sliverpb.Ifconfig.html new file mode 100644 index 0000000..94931c0 --- /dev/null +++ b/docs/interfaces/sliverpb.Ifconfig.html @@ -0,0 +1,3 @@ +Ifconfig | sliver-script
interface Ifconfig {
    NetInterfaces: sliverpb.NetInterface[];
    Response?: commonpb.Response;
}

Properties

NetInterfaces: sliverpb.NetInterface[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.IfconfigReq.html b/docs/interfaces/sliverpb.IfconfigReq.html new file mode 100644 index 0000000..5c3edc0 --- /dev/null +++ b/docs/interfaces/sliverpb.IfconfigReq.html @@ -0,0 +1,3 @@ +IfconfigReq | sliver-script

IfconfigReq - Request the implant to list network interfaces

+
interface IfconfigReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Impersonate.html b/docs/interfaces/sliverpb.Impersonate.html new file mode 100644 index 0000000..52a15b0 --- /dev/null +++ b/docs/interfaces/sliverpb.Impersonate.html @@ -0,0 +1,2 @@ +Impersonate | sliver-script
interface Impersonate {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ImpersonateReq.html b/docs/interfaces/sliverpb.ImpersonateReq.html new file mode 100644 index 0000000..b6b5301 --- /dev/null +++ b/docs/interfaces/sliverpb.ImpersonateReq.html @@ -0,0 +1,3 @@ +ImpersonateReq | sliver-script

Interface ImpersonateReq

interface ImpersonateReq {
    Request?: commonpb.Request;
    Username: string;
}

Properties

Properties

Request?: commonpb.Request
Username: string
diff --git a/docs/interfaces/sliverpb.InvokeExecuteAssemblyReq.html b/docs/interfaces/sliverpb.InvokeExecuteAssemblyReq.html new file mode 100644 index 0000000..6b5112b --- /dev/null +++ b/docs/interfaces/sliverpb.InvokeExecuteAssemblyReq.html @@ -0,0 +1,6 @@ +InvokeExecuteAssemblyReq | sliver-script

Interface InvokeExecuteAssemblyReq

interface InvokeExecuteAssemblyReq {
    Data: Buffer;
    PPid: number;
    process: string;
    ProcessArgs: string[];
    Request?: commonpb.Request;
}

Properties

Data: Buffer
PPid: number
process: string
ProcessArgs: string[]
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.InvokeGetSystemReq.html b/docs/interfaces/sliverpb.InvokeGetSystemReq.html new file mode 100644 index 0000000..b283828 --- /dev/null +++ b/docs/interfaces/sliverpb.InvokeGetSystemReq.html @@ -0,0 +1,6 @@ +InvokeGetSystemReq | sliver-script

Interface InvokeGetSystemReq

InvokeGetSystemReq - Implant-side version of GetSystemReq, this message +contains the .Data based on the client's req.Config

+
interface InvokeGetSystemReq {
    Data: Buffer;
    HostingProcess: string;
    Request?: commonpb.Request;
}

Properties

Data: Buffer
HostingProcess: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.InvokeInProcExecuteAssemblyReq.html b/docs/interfaces/sliverpb.InvokeInProcExecuteAssemblyReq.html new file mode 100644 index 0000000..9a83814 --- /dev/null +++ b/docs/interfaces/sliverpb.InvokeInProcExecuteAssemblyReq.html @@ -0,0 +1,7 @@ +InvokeInProcExecuteAssemblyReq | sliver-script

Interface InvokeInProcExecuteAssemblyReq

interface InvokeInProcExecuteAssemblyReq {
    AmsiBypass: boolean;
    Arguments: string[];
    Data: Buffer;
    EtwBypass: boolean;
    Request?: commonpb.Request;
    Runtime: string;
}

Properties

AmsiBypass: boolean
Arguments: string[]
Data: Buffer
EtwBypass: boolean
Request?: commonpb.Request
Runtime: string
diff --git a/docs/interfaces/sliverpb.InvokeMigrateReq.html b/docs/interfaces/sliverpb.InvokeMigrateReq.html new file mode 100644 index 0000000..031f4d0 --- /dev/null +++ b/docs/interfaces/sliverpb.InvokeMigrateReq.html @@ -0,0 +1,5 @@ +InvokeMigrateReq | sliver-script

Interface InvokeMigrateReq

interface InvokeMigrateReq {
    Data: Buffer;
    Pid: number;
    ProcName: string;
    Request?: commonpb.Request;
}

Properties

Properties

Data: Buffer
Pid: number
ProcName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.InvokeSpawnDllReq.html b/docs/interfaces/sliverpb.InvokeSpawnDllReq.html new file mode 100644 index 0000000..e3cbd6f --- /dev/null +++ b/docs/interfaces/sliverpb.InvokeSpawnDllReq.html @@ -0,0 +1,9 @@ +InvokeSpawnDllReq | sliver-script

Interface InvokeSpawnDllReq

interface InvokeSpawnDllReq {
    Args: string[];
    Data: Buffer;
    EntryPoint: string;
    Kill: boolean;
    PPid: number;
    ProcessArgs: string[];
    ProcessName: string;
    Request?: commonpb.Request;
}

Properties

Args: string[]
Data: Buffer
EntryPoint: string
Kill: boolean
PPid: number
ProcessArgs: string[]
ProcessName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.KillReq.html b/docs/interfaces/sliverpb.KillReq.html new file mode 100644 index 0000000..14e4fd2 --- /dev/null +++ b/docs/interfaces/sliverpb.KillReq.html @@ -0,0 +1,4 @@ +KillReq | sliver-script

KillSessionReq - Request the implant to kill a session

+
interface KillReq {
    Force: boolean;
    Request?: commonpb.Request;
}

Properties

Properties

Force: boolean
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.ListExtensions.html b/docs/interfaces/sliverpb.ListExtensions.html new file mode 100644 index 0000000..56bd7d6 --- /dev/null +++ b/docs/interfaces/sliverpb.ListExtensions.html @@ -0,0 +1,3 @@ +ListExtensions | sliver-script

Interface ListExtensions

interface ListExtensions {
    Names: string[];
    Response?: commonpb.Response;
}

Properties

Properties

Names: string[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ListExtensionsReq.html b/docs/interfaces/sliverpb.ListExtensionsReq.html new file mode 100644 index 0000000..0f8a4af --- /dev/null +++ b/docs/interfaces/sliverpb.ListExtensionsReq.html @@ -0,0 +1,2 @@ +ListExtensionsReq | sliver-script

Interface ListExtensionsReq

interface ListExtensionsReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.ListWasmExtensions.html b/docs/interfaces/sliverpb.ListWasmExtensions.html new file mode 100644 index 0000000..3d495b2 --- /dev/null +++ b/docs/interfaces/sliverpb.ListWasmExtensions.html @@ -0,0 +1,3 @@ +ListWasmExtensions | sliver-script

Interface ListWasmExtensions

interface ListWasmExtensions {
    Names: string[];
    Response?: commonpb.Response;
}

Properties

Properties

Names: string[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ListWasmExtensionsReq.html b/docs/interfaces/sliverpb.ListWasmExtensionsReq.html new file mode 100644 index 0000000..ed1e627 --- /dev/null +++ b/docs/interfaces/sliverpb.ListWasmExtensionsReq.html @@ -0,0 +1,2 @@ +ListWasmExtensionsReq | sliver-script

Interface ListWasmExtensionsReq

interface ListWasmExtensionsReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Ls.html b/docs/interfaces/sliverpb.Ls.html new file mode 100644 index 0000000..c8e0b72 --- /dev/null +++ b/docs/interfaces/sliverpb.Ls.html @@ -0,0 +1,7 @@ +Ls | sliver-script
interface Ls {
    Exists: boolean;
    Files: sliverpb.FileInfo[];
    Path: string;
    Response?: commonpb.Response;
    timezone: string;
    timezoneOffset: number;
}

Properties

Exists: boolean
Path: string
Response?: commonpb.Response
timezone: string
timezoneOffset: number
diff --git a/docs/interfaces/sliverpb.LsReq.html b/docs/interfaces/sliverpb.LsReq.html new file mode 100644 index 0000000..687a54f --- /dev/null +++ b/docs/interfaces/sliverpb.LsReq.html @@ -0,0 +1,3 @@ +LsReq | sliver-script
interface LsReq {
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.MakeToken.html b/docs/interfaces/sliverpb.MakeToken.html new file mode 100644 index 0000000..8359f88 --- /dev/null +++ b/docs/interfaces/sliverpb.MakeToken.html @@ -0,0 +1,2 @@ +MakeToken | sliver-script
interface MakeToken {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.MakeTokenReq.html b/docs/interfaces/sliverpb.MakeTokenReq.html new file mode 100644 index 0000000..123fd40 --- /dev/null +++ b/docs/interfaces/sliverpb.MakeTokenReq.html @@ -0,0 +1,6 @@ +MakeTokenReq | sliver-script

Interface MakeTokenReq

interface MakeTokenReq {
    Domain: string;
    LogonType: number;
    Password: string;
    Request?: commonpb.Request;
    Username: string;
}

Properties

Domain: string
LogonType: number
Password: string
Request?: commonpb.Request
Username: string
diff --git a/docs/interfaces/sliverpb.MemfilesAdd.html b/docs/interfaces/sliverpb.MemfilesAdd.html new file mode 100644 index 0000000..0c8c497 --- /dev/null +++ b/docs/interfaces/sliverpb.MemfilesAdd.html @@ -0,0 +1,3 @@ +MemfilesAdd | sliver-script
interface MemfilesAdd {
    Fd: string;
    Response?: commonpb.Response;
}

Properties

Properties

Fd: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.MemfilesAddReq.html b/docs/interfaces/sliverpb.MemfilesAddReq.html new file mode 100644 index 0000000..bea6681 --- /dev/null +++ b/docs/interfaces/sliverpb.MemfilesAddReq.html @@ -0,0 +1,2 @@ +MemfilesAddReq | sliver-script

Interface MemfilesAddReq

interface MemfilesAddReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.MemfilesListReq.html b/docs/interfaces/sliverpb.MemfilesListReq.html new file mode 100644 index 0000000..917db5c --- /dev/null +++ b/docs/interfaces/sliverpb.MemfilesListReq.html @@ -0,0 +1,2 @@ +MemfilesListReq | sliver-script

Interface MemfilesListReq

interface MemfilesListReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.MemfilesRm.html b/docs/interfaces/sliverpb.MemfilesRm.html new file mode 100644 index 0000000..237c67e --- /dev/null +++ b/docs/interfaces/sliverpb.MemfilesRm.html @@ -0,0 +1,3 @@ +MemfilesRm | sliver-script
interface MemfilesRm {
    Fd: string;
    Response?: commonpb.Response;
}

Properties

Properties

Fd: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.MemfilesRmReq.html b/docs/interfaces/sliverpb.MemfilesRmReq.html new file mode 100644 index 0000000..3c87b2f --- /dev/null +++ b/docs/interfaces/sliverpb.MemfilesRmReq.html @@ -0,0 +1,3 @@ +MemfilesRmReq | sliver-script

Interface MemfilesRmReq

interface MemfilesRmReq {
    Fd: string;
    Request?: commonpb.Request;
}

Properties

Properties

Fd: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.MessageFns.html b/docs/interfaces/sliverpb.MessageFns.html new file mode 100644 index 0000000..c002f11 --- /dev/null +++ b/docs/interfaces/sliverpb.MessageFns.html @@ -0,0 +1,7 @@ +MessageFns | sliver-script

Interface MessageFns<T>

interface MessageFns<T> {
    create(base?: sliverpb.DeepPartial<T>): T;
    decode(
        input: Uint8Array<ArrayBufferLike> | BinaryReader,
        length?: number,
    ): T;
    encode(message: T, writer?: BinaryWriter): BinaryWriter;
    fromJSON(object: any): T;
    fromPartial(object: sliverpb.DeepPartial<T>): T;
    toJSON(message: T): unknown;
}

Type Parameters

  • T

Methods

  • Parameters

    • input: Uint8Array<ArrayBufferLike> | BinaryReader
    • Optionallength: number

    Returns T

  • Parameters

    • message: T
    • Optionalwriter: BinaryWriter

    Returns BinaryWriter

diff --git a/docs/interfaces/sliverpb.Migrate.html b/docs/interfaces/sliverpb.Migrate.html new file mode 100644 index 0000000..096c773 --- /dev/null +++ b/docs/interfaces/sliverpb.Migrate.html @@ -0,0 +1,4 @@ +Migrate | sliver-script
interface Migrate {
    Pid: number;
    Response?: commonpb.Response;
    Success: boolean;
}

Properties

Properties

Pid: number
Response?: commonpb.Response
Success: boolean
diff --git a/docs/interfaces/sliverpb.Mkdir.html b/docs/interfaces/sliverpb.Mkdir.html new file mode 100644 index 0000000..89c110e --- /dev/null +++ b/docs/interfaces/sliverpb.Mkdir.html @@ -0,0 +1,3 @@ +Mkdir | sliver-script
interface Mkdir {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.MkdirReq.html b/docs/interfaces/sliverpb.MkdirReq.html new file mode 100644 index 0000000..15f202b --- /dev/null +++ b/docs/interfaces/sliverpb.MkdirReq.html @@ -0,0 +1,3 @@ +MkdirReq | sliver-script
interface MkdirReq {
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Mount.html b/docs/interfaces/sliverpb.Mount.html new file mode 100644 index 0000000..8762eaf --- /dev/null +++ b/docs/interfaces/sliverpb.Mount.html @@ -0,0 +1,3 @@ +Mount | sliver-script
interface Mount {
    Info: sliverpb.MountInfo[];
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.MountInfo.html b/docs/interfaces/sliverpb.MountInfo.html new file mode 100644 index 0000000..c412330 --- /dev/null +++ b/docs/interfaces/sliverpb.MountInfo.html @@ -0,0 +1,10 @@ +MountInfo | sliver-script
interface MountInfo {
    FileSystem: string;
    FreeSpace: string;
    Label: string;
    MountOptions: string;
    MountPoint: string;
    TotalSpace: string;
    UsedSpace: string;
    VolumeName: string;
    VolumeType: string;
}

Properties

FileSystem: string
FreeSpace: string
Label: string
MountOptions: string
MountPoint: string
TotalSpace: string
UsedSpace: string
VolumeName: string
VolumeType: string
diff --git a/docs/interfaces/sliverpb.MountReq.html b/docs/interfaces/sliverpb.MountReq.html new file mode 100644 index 0000000..eb84284 --- /dev/null +++ b/docs/interfaces/sliverpb.MountReq.html @@ -0,0 +1,2 @@ +MountReq | sliver-script
interface MountReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Mv.html b/docs/interfaces/sliverpb.Mv.html new file mode 100644 index 0000000..5e83bcf --- /dev/null +++ b/docs/interfaces/sliverpb.Mv.html @@ -0,0 +1,4 @@ +Mv | sliver-script
interface Mv {
    Dst: string;
    Response?: commonpb.Response;
    Src: string;
}

Properties

Properties

Dst: string
Response?: commonpb.Response
Src: string
diff --git a/docs/interfaces/sliverpb.MvReq.html b/docs/interfaces/sliverpb.MvReq.html new file mode 100644 index 0000000..4af97e6 --- /dev/null +++ b/docs/interfaces/sliverpb.MvReq.html @@ -0,0 +1,4 @@ +MvReq | sliver-script
interface MvReq {
    Dst: string;
    Request?: commonpb.Request;
    Src: string;
}

Properties

Properties

Dst: string
Request?: commonpb.Request
Src: string
diff --git a/docs/interfaces/sliverpb.NetConnPivot.html b/docs/interfaces/sliverpb.NetConnPivot.html new file mode 100644 index 0000000..e0e8ab3 --- /dev/null +++ b/docs/interfaces/sliverpb.NetConnPivot.html @@ -0,0 +1,3 @@ +NetConnPivot | sliver-script

Interface NetConnPivot

interface NetConnPivot {
    PeerID: string;
    RemoteAddress: string;
}

Properties

Properties

PeerID: string
RemoteAddress: string
diff --git a/docs/interfaces/sliverpb.NetInterface.html b/docs/interfaces/sliverpb.NetInterface.html new file mode 100644 index 0000000..76908e2 --- /dev/null +++ b/docs/interfaces/sliverpb.NetInterface.html @@ -0,0 +1,5 @@ +NetInterface | sliver-script

Interface NetInterface

interface NetInterface {
    Index: number;
    IPAddresses: string[];
    MAC: string;
    Name: string;
}

Properties

Properties

Index: number
IPAddresses: string[]
MAC: string
Name: string
diff --git a/docs/interfaces/sliverpb.Netstat.html b/docs/interfaces/sliverpb.Netstat.html new file mode 100644 index 0000000..442bec0 --- /dev/null +++ b/docs/interfaces/sliverpb.Netstat.html @@ -0,0 +1,3 @@ +Netstat | sliver-script
interface Netstat {
    Entries: sliverpb.SockTabEntry[];
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.NetstatReq.html b/docs/interfaces/sliverpb.NetstatReq.html new file mode 100644 index 0000000..eadbc5b --- /dev/null +++ b/docs/interfaces/sliverpb.NetstatReq.html @@ -0,0 +1,7 @@ +NetstatReq | sliver-script
interface NetstatReq {
    IP4: boolean;
    IP6: boolean;
    Listening: boolean;
    Request?: commonpb.Request;
    TCP: boolean;
    UDP: boolean;
}

Properties

Properties

IP4: boolean
IP6: boolean
Listening: boolean
Request?: commonpb.Request
TCP: boolean
UDP: boolean
diff --git a/docs/interfaces/sliverpb.OpenSession.html b/docs/interfaces/sliverpb.OpenSession.html new file mode 100644 index 0000000..d086ee5 --- /dev/null +++ b/docs/interfaces/sliverpb.OpenSession.html @@ -0,0 +1,5 @@ +OpenSession | sliver-script
interface OpenSession {
    C2s: string[];
    Delay: string;
    Request?: commonpb.Request;
    Response?: commonpb.Response;
}

Properties

Properties

C2s: string[]
Delay: string
Request?: commonpb.Request
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.Ping.html b/docs/interfaces/sliverpb.Ping.html new file mode 100644 index 0000000..53c8189 --- /dev/null +++ b/docs/interfaces/sliverpb.Ping.html @@ -0,0 +1,7 @@ +Ping | sliver-script

Ping - Not ICMP, just sends a rount trip message to an implant to +see if it's still responding.

+
interface Ping {
    Nonce: number;
    Request?: commonpb.Request;
    Response?: commonpb.Response;
}

Properties

Properties

Nonce: number
Request?: commonpb.Request
Response?: commonpb.Response

Ping is special

+
diff --git a/docs/interfaces/sliverpb.PivotHello.html b/docs/interfaces/sliverpb.PivotHello.html new file mode 100644 index 0000000..7c05c97 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotHello.html @@ -0,0 +1,5 @@ +PivotHello | sliver-script
interface PivotHello {
    PeerID: string;
    PublicKey: Buffer;
    PublicKeySignature: string;
    SessionKey: Buffer;
}

Properties

PeerID: string
PublicKey: Buffer
PublicKeySignature: string
SessionKey: Buffer
diff --git a/docs/interfaces/sliverpb.PivotListener.html b/docs/interfaces/sliverpb.PivotListener.html new file mode 100644 index 0000000..4b4f51a --- /dev/null +++ b/docs/interfaces/sliverpb.PivotListener.html @@ -0,0 +1,6 @@ +PivotListener | sliver-script

Interface PivotListener

interface PivotListener {
    BindAddress: string;
    ID: number;
    Pivots: sliverpb.NetConnPivot[];
    Response?: commonpb.Response;
    Type: PivotType;
}

Properties

BindAddress: string
ID: number
Response?: commonpb.Response
Type: PivotType
diff --git a/docs/interfaces/sliverpb.PivotListeners.html b/docs/interfaces/sliverpb.PivotListeners.html new file mode 100644 index 0000000..cb0a728 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotListeners.html @@ -0,0 +1,3 @@ +PivotListeners | sliver-script

Interface PivotListeners

interface PivotListeners {
    Listeners: sliverpb.PivotListener[];
    Response?: commonpb.Response;
}

Properties

Properties

Listeners: sliverpb.PivotListener[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.PivotListenersReq.html b/docs/interfaces/sliverpb.PivotListenersReq.html new file mode 100644 index 0000000..124c0e2 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotListenersReq.html @@ -0,0 +1,2 @@ +PivotListenersReq | sliver-script

Interface PivotListenersReq

interface PivotListenersReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.PivotPeer.html b/docs/interfaces/sliverpb.PivotPeer.html new file mode 100644 index 0000000..5f683c7 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotPeer.html @@ -0,0 +1,3 @@ +PivotPeer | sliver-script
interface PivotPeer {
    Name: string;
    PeerID: string;
}

Properties

Properties

Name: string
PeerID: string
diff --git a/docs/interfaces/sliverpb.PivotPeerEnvelope.html b/docs/interfaces/sliverpb.PivotPeerEnvelope.html new file mode 100644 index 0000000..9fe7880 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotPeerEnvelope.html @@ -0,0 +1,6 @@ +PivotPeerEnvelope | sliver-script

Interface PivotPeerEnvelope

interface PivotPeerEnvelope {
    Data: Buffer;
    PeerFailureAt: string;
    Peers: sliverpb.PivotPeer[];
    PivotSessionID: Buffer;
    Type: number;
}

Properties

Data: Buffer
PeerFailureAt: string
PivotSessionID: Buffer
Type: number
diff --git a/docs/interfaces/sliverpb.PivotPeerFailure.html b/docs/interfaces/sliverpb.PivotPeerFailure.html new file mode 100644 index 0000000..67918be --- /dev/null +++ b/docs/interfaces/sliverpb.PivotPeerFailure.html @@ -0,0 +1,4 @@ +PivotPeerFailure | sliver-script

Interface PivotPeerFailure

interface PivotPeerFailure {
    Err: string;
    PeerID: string;
    Type: PeerFailureType;
}

Properties

Properties

Err: string
PeerID: string
diff --git a/docs/interfaces/sliverpb.PivotPing.html b/docs/interfaces/sliverpb.PivotPing.html new file mode 100644 index 0000000..5bf0620 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotPing.html @@ -0,0 +1,2 @@ +PivotPing | sliver-script
interface PivotPing {
    Nonce: number;
}

Properties

Properties

Nonce: number
diff --git a/docs/interfaces/sliverpb.PivotServerKeyExchange.html b/docs/interfaces/sliverpb.PivotServerKeyExchange.html new file mode 100644 index 0000000..0ff922c --- /dev/null +++ b/docs/interfaces/sliverpb.PivotServerKeyExchange.html @@ -0,0 +1,3 @@ +PivotServerKeyExchange | sliver-script

Interface PivotServerKeyExchange

interface PivotServerKeyExchange {
    OriginID: string;
    SessionKey: Buffer;
}

Properties

Properties

OriginID: string
SessionKey: Buffer
diff --git a/docs/interfaces/sliverpb.PivotStartListenerReq.html b/docs/interfaces/sliverpb.PivotStartListenerReq.html new file mode 100644 index 0000000..e091738 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotStartListenerReq.html @@ -0,0 +1,5 @@ +PivotStartListenerReq | sliver-script

Interface PivotStartListenerReq

interface PivotStartListenerReq {
    BindAddress: string;
    Options: boolean[];
    Request?: commonpb.Request;
    Type: PivotType;
}

Properties

BindAddress: string
Options: boolean[]
Request?: commonpb.Request
Type: PivotType
diff --git a/docs/interfaces/sliverpb.PivotStopListenerReq.html b/docs/interfaces/sliverpb.PivotStopListenerReq.html new file mode 100644 index 0000000..d675850 --- /dev/null +++ b/docs/interfaces/sliverpb.PivotStopListenerReq.html @@ -0,0 +1,3 @@ +PivotStopListenerReq | sliver-script

Interface PivotStopListenerReq

interface PivotStopListenerReq {
    ID: number;
    Request?: commonpb.Request;
}

Properties

Properties

ID: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.PollInterval.html b/docs/interfaces/sliverpb.PollInterval.html new file mode 100644 index 0000000..dab7d7a --- /dev/null +++ b/docs/interfaces/sliverpb.PollInterval.html @@ -0,0 +1,2 @@ +PollInterval | sliver-script

Interface PollInterval

interface PollInterval {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.PollIntervalReq.html b/docs/interfaces/sliverpb.PollIntervalReq.html new file mode 100644 index 0000000..89711b7 --- /dev/null +++ b/docs/interfaces/sliverpb.PollIntervalReq.html @@ -0,0 +1,4 @@ +PollIntervalReq | sliver-script

Interface PollIntervalReq

PollIntervalReq - Request the implant to update it's poll intervbal

+
interface PollIntervalReq {
    PollInterval: string;
    Request?: commonpb.Request;
}

Properties

Properties

PollInterval: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Portfwd.html b/docs/interfaces/sliverpb.Portfwd.html new file mode 100644 index 0000000..197e5bf --- /dev/null +++ b/docs/interfaces/sliverpb.Portfwd.html @@ -0,0 +1,7 @@ +Portfwd | sliver-script
interface Portfwd {
    Host: string;
    Port: number;
    Protocol: number;
    Response?: commonpb.Response;
    TunnelID: string;
}

Properties

Host: string
Port: number
Protocol: number
Response?: commonpb.Response
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.PortfwdReq.html b/docs/interfaces/sliverpb.PortfwdReq.html new file mode 100644 index 0000000..9999937 --- /dev/null +++ b/docs/interfaces/sliverpb.PortfwdReq.html @@ -0,0 +1,7 @@ +PortfwdReq | sliver-script
interface PortfwdReq {
    Host: string;
    Port: number;
    Protocol: number;
    Request?: commonpb.Request;
    TunnelID: string;
}

Properties

Host: string
Port: number
Protocol: number
Request?: commonpb.Request
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.ProcessDump.html b/docs/interfaces/sliverpb.ProcessDump.html new file mode 100644 index 0000000..f4b48bd --- /dev/null +++ b/docs/interfaces/sliverpb.ProcessDump.html @@ -0,0 +1,3 @@ +ProcessDump | sliver-script
interface ProcessDump {
    Data: Buffer;
    Response?: commonpb.Response;
}

Properties

Properties

Data: Buffer
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ProcessDumpReq.html b/docs/interfaces/sliverpb.ProcessDumpReq.html new file mode 100644 index 0000000..61d5a35 --- /dev/null +++ b/docs/interfaces/sliverpb.ProcessDumpReq.html @@ -0,0 +1,4 @@ +ProcessDumpReq | sliver-script

Interface ProcessDumpReq

interface ProcessDumpReq {
    Pid: number;
    Request?: commonpb.Request;
    Timeout: number;
}

Properties

Properties

Pid: number
Request?: commonpb.Request
Timeout: number
diff --git a/docs/interfaces/sliverpb.Ps.html b/docs/interfaces/sliverpb.Ps.html new file mode 100644 index 0000000..4fd4fc8 --- /dev/null +++ b/docs/interfaces/sliverpb.Ps.html @@ -0,0 +1,3 @@ +Ps | sliver-script
interface Ps {
    Processes: commonpb.Process[];
    Response?: commonpb.Response;
}

Properties

Properties

Processes: commonpb.Process[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.PsReq.html b/docs/interfaces/sliverpb.PsReq.html new file mode 100644 index 0000000..9f4509a --- /dev/null +++ b/docs/interfaces/sliverpb.PsReq.html @@ -0,0 +1,4 @@ +PsReq | sliver-script

PsReq - Request the implant to list processes of a remote session.

+
interface PsReq {
    FullInfo: boolean;
    Request?: commonpb.Request;
}

Properties

Properties

FullInfo: boolean
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Pwd.html b/docs/interfaces/sliverpb.Pwd.html new file mode 100644 index 0000000..0dadc70 --- /dev/null +++ b/docs/interfaces/sliverpb.Pwd.html @@ -0,0 +1,3 @@ +Pwd | sliver-script
interface Pwd {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.PwdReq.html b/docs/interfaces/sliverpb.PwdReq.html new file mode 100644 index 0000000..831c437 --- /dev/null +++ b/docs/interfaces/sliverpb.PwdReq.html @@ -0,0 +1,2 @@ +PwdReq | sliver-script
interface PwdReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RPortfwd.html b/docs/interfaces/sliverpb.RPortfwd.html new file mode 100644 index 0000000..fe6db15 --- /dev/null +++ b/docs/interfaces/sliverpb.RPortfwd.html @@ -0,0 +1,7 @@ +RPortfwd | sliver-script
interface RPortfwd {
    Host: string;
    Port: number;
    Protocol: number;
    Response?: commonpb.Response;
    TunnelID: string;
}

Properties

Host: string
Port: number
Protocol: number
Response?: commonpb.Response
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.RPortfwdReq.html b/docs/interfaces/sliverpb.RPortfwdReq.html new file mode 100644 index 0000000..c0d8315 --- /dev/null +++ b/docs/interfaces/sliverpb.RPortfwdReq.html @@ -0,0 +1,7 @@ +RPortfwdReq | sliver-script
interface RPortfwdReq {
    Host: string;
    Port: number;
    Protocol: number;
    Request?: commonpb.Request;
    TunnelID: string;
}

Properties

Host: string
Port: number
Protocol: number
Request?: commonpb.Request
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.Reconfigure.html b/docs/interfaces/sliverpb.Reconfigure.html new file mode 100644 index 0000000..0d61825 --- /dev/null +++ b/docs/interfaces/sliverpb.Reconfigure.html @@ -0,0 +1,2 @@ +Reconfigure | sliver-script
interface Reconfigure {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ReconfigureReq.html b/docs/interfaces/sliverpb.ReconfigureReq.html new file mode 100644 index 0000000..7583408 --- /dev/null +++ b/docs/interfaces/sliverpb.ReconfigureReq.html @@ -0,0 +1,6 @@ +ReconfigureReq | sliver-script

Interface ReconfigureReq

ReconfigureReq - Request the implant to reconfigure itself

+
interface ReconfigureReq {
    BeaconInterval: string;
    BeaconJitter: string;
    ReconnectInterval: string;
    Request?: commonpb.Request;
}

Properties

BeaconInterval: string
BeaconJitter: string
ReconnectInterval: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Register.html b/docs/interfaces/sliverpb.Register.html new file mode 100644 index 0000000..96888e6 --- /dev/null +++ b/docs/interfaces/sliverpb.Register.html @@ -0,0 +1,19 @@ +Register | sliver-script

Register - First message the implant sends to the server

+
interface Register {
    ActiveC2: string;
    Arch: string;
    ConfigID: string;
    Filename: string;
    Gid: string;
    Hostname: string;
    Locale: string;
    Name: string;
    Os: string;
    PeerID: string;
    Pid: number;
    ProxyURL: string;
    ReconnectInterval: string;
    Uid: string;
    Username: string;
    Uuid: string;
    Version: string;
}

Properties

ActiveC2: string
Arch: string
ConfigID: string
Filename: string
Gid: string
Hostname: string
Locale: string
Name: string
Os: string
PeerID: string
Pid: number
ProxyURL: string
ReconnectInterval: string
Uid: string
Username: string
Uuid: string
Version: string
diff --git a/docs/interfaces/sliverpb.RegisterExtension.html b/docs/interfaces/sliverpb.RegisterExtension.html new file mode 100644 index 0000000..f0ab969 --- /dev/null +++ b/docs/interfaces/sliverpb.RegisterExtension.html @@ -0,0 +1,2 @@ +RegisterExtension | sliver-script

Interface RegisterExtension

interface RegisterExtension {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegisterExtensionReq.html b/docs/interfaces/sliverpb.RegisterExtensionReq.html new file mode 100644 index 0000000..12c06f3 --- /dev/null +++ b/docs/interfaces/sliverpb.RegisterExtensionReq.html @@ -0,0 +1,6 @@ +RegisterExtensionReq | sliver-script

Interface RegisterExtensionReq

interface RegisterExtensionReq {
    Data: Buffer;
    Init: string;
    Name: string;
    OS: string;
    Request?: commonpb.Request;
}

Properties

Properties

Data: Buffer
Init: string
Name: string
OS: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegisterWasmExtension.html b/docs/interfaces/sliverpb.RegisterWasmExtension.html new file mode 100644 index 0000000..22086c5 --- /dev/null +++ b/docs/interfaces/sliverpb.RegisterWasmExtension.html @@ -0,0 +1,2 @@ +RegisterWasmExtension | sliver-script

Interface RegisterWasmExtension

interface RegisterWasmExtension {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegisterWasmExtensionReq.html b/docs/interfaces/sliverpb.RegisterWasmExtensionReq.html new file mode 100644 index 0000000..3621292 --- /dev/null +++ b/docs/interfaces/sliverpb.RegisterWasmExtensionReq.html @@ -0,0 +1,4 @@ +RegisterWasmExtensionReq | sliver-script

Interface RegisterWasmExtensionReq

interface RegisterWasmExtensionReq {
    Name: string;
    Request?: commonpb.Request;
    WasmGz: Buffer;
}

Properties

Properties

Name: string
Request?: commonpb.Request
WasmGz: Buffer
diff --git a/docs/interfaces/sliverpb.RegistryCreateKey.html b/docs/interfaces/sliverpb.RegistryCreateKey.html new file mode 100644 index 0000000..db5bc4d --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryCreateKey.html @@ -0,0 +1,2 @@ +RegistryCreateKey | sliver-script

Interface RegistryCreateKey

interface RegistryCreateKey {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegistryCreateKeyReq.html b/docs/interfaces/sliverpb.RegistryCreateKeyReq.html new file mode 100644 index 0000000..63567ff --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryCreateKeyReq.html @@ -0,0 +1,6 @@ +RegistryCreateKeyReq | sliver-script

Interface RegistryCreateKeyReq

interface RegistryCreateKeyReq {
    Hive: string;
    Hostname: string;
    Key: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hive: string
Hostname: string
Key: string
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegistryDeleteKey.html b/docs/interfaces/sliverpb.RegistryDeleteKey.html new file mode 100644 index 0000000..7b7aae1 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryDeleteKey.html @@ -0,0 +1,2 @@ +RegistryDeleteKey | sliver-script

Interface RegistryDeleteKey

interface RegistryDeleteKey {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegistryDeleteKeyReq.html b/docs/interfaces/sliverpb.RegistryDeleteKeyReq.html new file mode 100644 index 0000000..f87ab92 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryDeleteKeyReq.html @@ -0,0 +1,6 @@ +RegistryDeleteKeyReq | sliver-script

Interface RegistryDeleteKeyReq

interface RegistryDeleteKeyReq {
    Hive: string;
    Hostname: string;
    Key: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hive: string
Hostname: string
Key: string
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegistryListValuesReq.html b/docs/interfaces/sliverpb.RegistryListValuesReq.html new file mode 100644 index 0000000..0a8a073 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryListValuesReq.html @@ -0,0 +1,6 @@ +RegistryListValuesReq | sliver-script

Interface RegistryListValuesReq

interface RegistryListValuesReq {
    Hive: string;
    Hostname: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hive: string
Hostname: string

Keep the same ID as the other registry operations

+
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegistryRead.html b/docs/interfaces/sliverpb.RegistryRead.html new file mode 100644 index 0000000..4b18c50 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryRead.html @@ -0,0 +1,3 @@ +RegistryRead | sliver-script

Interface RegistryRead

interface RegistryRead {
    Response?: commonpb.Response;
    Value: string;
}

Properties

Properties

Response?: commonpb.Response
Value: string
diff --git a/docs/interfaces/sliverpb.RegistryReadHive.html b/docs/interfaces/sliverpb.RegistryReadHive.html new file mode 100644 index 0000000..6b0ae16 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryReadHive.html @@ -0,0 +1,4 @@ +RegistryReadHive | sliver-script

Interface RegistryReadHive

interface RegistryReadHive {
    Data: Buffer;
    Encoder: string;
    Response?: commonpb.Response;
}

Properties

Properties

Data: Buffer
Encoder: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegistryReadHiveReq.html b/docs/interfaces/sliverpb.RegistryReadHiveReq.html new file mode 100644 index 0000000..84436cb --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryReadHiveReq.html @@ -0,0 +1,4 @@ +RegistryReadHiveReq | sliver-script

Interface RegistryReadHiveReq

interface RegistryReadHiveReq {
    Request?: commonpb.Request;
    RequestedHive: string;
    RootHive: string;
}

Properties

Request?: commonpb.Request
RequestedHive: string
RootHive: string
diff --git a/docs/interfaces/sliverpb.RegistryReadReq.html b/docs/interfaces/sliverpb.RegistryReadReq.html new file mode 100644 index 0000000..68e938c --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryReadReq.html @@ -0,0 +1,6 @@ +RegistryReadReq | sliver-script

Interface RegistryReadReq

interface RegistryReadReq {
    Hive: string;
    Hostname: string;
    Key: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hive: string
Hostname: string
Key: string
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegistrySubKeyList.html b/docs/interfaces/sliverpb.RegistrySubKeyList.html new file mode 100644 index 0000000..e55651f --- /dev/null +++ b/docs/interfaces/sliverpb.RegistrySubKeyList.html @@ -0,0 +1,3 @@ +RegistrySubKeyList | sliver-script

Interface RegistrySubKeyList

interface RegistrySubKeyList {
    Response?: commonpb.Response;
    Subkeys: string[];
}

Properties

Properties

Response?: commonpb.Response
Subkeys: string[]
diff --git a/docs/interfaces/sliverpb.RegistrySubKeyListReq.html b/docs/interfaces/sliverpb.RegistrySubKeyListReq.html new file mode 100644 index 0000000..af24f0a --- /dev/null +++ b/docs/interfaces/sliverpb.RegistrySubKeyListReq.html @@ -0,0 +1,6 @@ +RegistrySubKeyListReq | sliver-script

Interface RegistrySubKeyListReq

interface RegistrySubKeyListReq {
    Hive: string;
    Hostname: string;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hive: string
Hostname: string

Keep the same ID as the other registry operations

+
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RegistryValuesList.html b/docs/interfaces/sliverpb.RegistryValuesList.html new file mode 100644 index 0000000..f07b501 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryValuesList.html @@ -0,0 +1,3 @@ +RegistryValuesList | sliver-script

Interface RegistryValuesList

interface RegistryValuesList {
    Response?: commonpb.Response;
    ValueNames: string[];
}

Properties

Properties

Response?: commonpb.Response
ValueNames: string[]
diff --git a/docs/interfaces/sliverpb.RegistryWrite.html b/docs/interfaces/sliverpb.RegistryWrite.html new file mode 100644 index 0000000..6967e72 --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryWrite.html @@ -0,0 +1,2 @@ +RegistryWrite | sliver-script

Interface RegistryWrite

interface RegistryWrite {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RegistryWriteReq.html b/docs/interfaces/sliverpb.RegistryWriteReq.html new file mode 100644 index 0000000..7c353ab --- /dev/null +++ b/docs/interfaces/sliverpb.RegistryWriteReq.html @@ -0,0 +1,11 @@ +RegistryWriteReq | sliver-script

Interface RegistryWriteReq

interface RegistryWriteReq {
    ByteValue: Buffer;
    DWordValue: number;
    Hive: string;
    Hostname: string;
    Key: string;
    Path: string;
    QWordValue: string;
    Request?: commonpb.Request;
    StringValue: string;
    Type: number;
}

Properties

ByteValue: Buffer
DWordValue: number
Hive: string
Hostname: string
Key: string
Path: string
QWordValue: string
Request?: commonpb.Request
StringValue: string
Type: number
diff --git a/docs/interfaces/sliverpb.RemoveServiceReq.html b/docs/interfaces/sliverpb.RemoveServiceReq.html new file mode 100644 index 0000000..00c214a --- /dev/null +++ b/docs/interfaces/sliverpb.RemoveServiceReq.html @@ -0,0 +1,3 @@ +RemoveServiceReq | sliver-script

Interface RemoveServiceReq

interface RemoveServiceReq {
    Request?: commonpb.Request;
    ServiceInfo?: sliverpb.ServiceInfoReq;
}

Properties

Properties

Request?: commonpb.Request
ServiceInfo?: sliverpb.ServiceInfoReq
diff --git a/docs/interfaces/sliverpb.RevToSelf.html b/docs/interfaces/sliverpb.RevToSelf.html new file mode 100644 index 0000000..b7898a4 --- /dev/null +++ b/docs/interfaces/sliverpb.RevToSelf.html @@ -0,0 +1,2 @@ +RevToSelf | sliver-script
interface RevToSelf {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RevToSelfReq.html b/docs/interfaces/sliverpb.RevToSelfReq.html new file mode 100644 index 0000000..430ed17 --- /dev/null +++ b/docs/interfaces/sliverpb.RevToSelfReq.html @@ -0,0 +1,2 @@ +RevToSelfReq | sliver-script

Interface RevToSelfReq

interface RevToSelfReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Rm.html b/docs/interfaces/sliverpb.Rm.html new file mode 100644 index 0000000..b30723d --- /dev/null +++ b/docs/interfaces/sliverpb.Rm.html @@ -0,0 +1,3 @@ +Rm | sliver-script
interface Rm {
    Path: string;
    Response?: commonpb.Response;
}

Properties

Properties

Path: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RmReq.html b/docs/interfaces/sliverpb.RmReq.html new file mode 100644 index 0000000..74f09bc --- /dev/null +++ b/docs/interfaces/sliverpb.RmReq.html @@ -0,0 +1,5 @@ +RmReq | sliver-script
interface RmReq {
    Force: boolean;
    Path: string;
    Recursive: boolean;
    Request?: commonpb.Request;
}

Properties

Properties

Force: boolean
Path: string
Recursive: boolean
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RportFwdListener.html b/docs/interfaces/sliverpb.RportFwdListener.html new file mode 100644 index 0000000..1d630b8 --- /dev/null +++ b/docs/interfaces/sliverpb.RportFwdListener.html @@ -0,0 +1,7 @@ +RportFwdListener | sliver-script

Interface RportFwdListener

interface RportFwdListener {
    BindAddress: string;
    BindPort: number;
    ForwardAddress: string;
    ForwardPort: number;
    ID: number;
    Response?: commonpb.Response;
}

Properties

BindAddress: string
BindPort: number
ForwardAddress: string
ForwardPort: number
ID: number
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RportFwdListeners.html b/docs/interfaces/sliverpb.RportFwdListeners.html new file mode 100644 index 0000000..0c50062 --- /dev/null +++ b/docs/interfaces/sliverpb.RportFwdListeners.html @@ -0,0 +1,3 @@ +RportFwdListeners | sliver-script

Interface RportFwdListeners

interface RportFwdListeners {
    Listeners: sliverpb.RportFwdListener[];
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RportFwdListenersReq.html b/docs/interfaces/sliverpb.RportFwdListenersReq.html new file mode 100644 index 0000000..2e6db6a --- /dev/null +++ b/docs/interfaces/sliverpb.RportFwdListenersReq.html @@ -0,0 +1,2 @@ +RportFwdListenersReq | sliver-script

Interface RportFwdListenersReq

interface RportFwdListenersReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RportFwdStartListenerReq.html b/docs/interfaces/sliverpb.RportFwdStartListenerReq.html new file mode 100644 index 0000000..1ddba0e --- /dev/null +++ b/docs/interfaces/sliverpb.RportFwdStartListenerReq.html @@ -0,0 +1,6 @@ +RportFwdStartListenerReq | sliver-script

Interface RportFwdStartListenerReq

interface RportFwdStartListenerReq {
    BindAddress: string;
    BindPort: number;
    ForwardAddress: string;
    ForwardPort: number;
    Request?: commonpb.Request;
}

Properties

BindAddress: string
BindPort: number
ForwardAddress: string
ForwardPort: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RportFwdStopListenerReq.html b/docs/interfaces/sliverpb.RportFwdStopListenerReq.html new file mode 100644 index 0000000..edd4e2a --- /dev/null +++ b/docs/interfaces/sliverpb.RportFwdStopListenerReq.html @@ -0,0 +1,3 @@ +RportFwdStopListenerReq | sliver-script

Interface RportFwdStopListenerReq

interface RportFwdStopListenerReq {
    ID: number;
    Request?: commonpb.Request;
}

Properties

Properties

ID: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.RunAs.html b/docs/interfaces/sliverpb.RunAs.html new file mode 100644 index 0000000..f9f1e7d --- /dev/null +++ b/docs/interfaces/sliverpb.RunAs.html @@ -0,0 +1,3 @@ +RunAs | sliver-script
interface RunAs {
    Output: string;
    Response?: commonpb.Response;
}

Properties

Properties

Output: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.RunAsReq.html b/docs/interfaces/sliverpb.RunAsReq.html new file mode 100644 index 0000000..e2a728d --- /dev/null +++ b/docs/interfaces/sliverpb.RunAsReq.html @@ -0,0 +1,9 @@ +RunAsReq | sliver-script
interface RunAsReq {
    Args: string;
    Domain: string;
    HideWindow: boolean;
    NetOnly: boolean;
    Password: string;
    ProcessName: string;
    Request?: commonpb.Request;
    Username: string;
}

Properties

Args: string
Domain: string
HideWindow: boolean
NetOnly: boolean
Password: string
ProcessName: string
Request?: commonpb.Request
Username: string
diff --git a/docs/interfaces/sliverpb.SSHCommand.html b/docs/interfaces/sliverpb.SSHCommand.html new file mode 100644 index 0000000..34818f4 --- /dev/null +++ b/docs/interfaces/sliverpb.SSHCommand.html @@ -0,0 +1,4 @@ +SSHCommand | sliver-script
interface SSHCommand {
    Response?: commonpb.Response;
    StdErr: string;
    StdOut: string;
}

Properties

Properties

Response?: commonpb.Response
StdErr: string
StdOut: string
diff --git a/docs/interfaces/sliverpb.SSHCommandReq.html b/docs/interfaces/sliverpb.SSHCommandReq.html new file mode 100644 index 0000000..f69a640 --- /dev/null +++ b/docs/interfaces/sliverpb.SSHCommandReq.html @@ -0,0 +1,11 @@ +SSHCommandReq | sliver-script

Interface SSHCommandReq

interface SSHCommandReq {
    Command: string;
    Hostname: string;
    Keytab: Buffer;
    Krb5Conf: string;
    Password: string;
    Port: number;
    PrivKey: Buffer;
    Realm: string;
    Request?: commonpb.Request;
    Username: string;
}

Properties

Command: string
Hostname: string
Keytab: Buffer
Krb5Conf: string
Password: string
Port: number
PrivKey: Buffer
Realm: string
Request?: commonpb.Request
Username: string
diff --git a/docs/interfaces/sliverpb.Screenshot.html b/docs/interfaces/sliverpb.Screenshot.html new file mode 100644 index 0000000..d00a2d2 --- /dev/null +++ b/docs/interfaces/sliverpb.Screenshot.html @@ -0,0 +1,3 @@ +Screenshot | sliver-script
interface Screenshot {
    Data: Buffer;
    Response?: commonpb.Response;
}

Properties

Properties

Data: Buffer
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ScreenshotReq.html b/docs/interfaces/sliverpb.ScreenshotReq.html new file mode 100644 index 0000000..dc60bf4 --- /dev/null +++ b/docs/interfaces/sliverpb.ScreenshotReq.html @@ -0,0 +1,3 @@ +ScreenshotReq | sliver-script

Interface ScreenshotReq

ScreenshotReq - Request the implant take a screenshot

+
interface ScreenshotReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.ServiceDetail.html b/docs/interfaces/sliverpb.ServiceDetail.html new file mode 100644 index 0000000..c421d07 --- /dev/null +++ b/docs/interfaces/sliverpb.ServiceDetail.html @@ -0,0 +1,4 @@ +ServiceDetail | sliver-script

Interface ServiceDetail

interface ServiceDetail {
    Detail?: sliverpb.ServiceDetails;
    Message: string;
    Response?: commonpb.Response;
}

Properties

Properties

Message: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ServiceDetailReq.html b/docs/interfaces/sliverpb.ServiceDetailReq.html new file mode 100644 index 0000000..5f45e84 --- /dev/null +++ b/docs/interfaces/sliverpb.ServiceDetailReq.html @@ -0,0 +1,3 @@ +ServiceDetailReq | sliver-script

Interface ServiceDetailReq

interface ServiceDetailReq {
    Request?: commonpb.Request;
    ServiceInfo?: sliverpb.ServiceInfoReq;
}

Properties

Properties

Request?: commonpb.Request
ServiceInfo?: sliverpb.ServiceInfoReq
diff --git a/docs/interfaces/sliverpb.ServiceDetails.html b/docs/interfaces/sliverpb.ServiceDetails.html new file mode 100644 index 0000000..0463146 --- /dev/null +++ b/docs/interfaces/sliverpb.ServiceDetails.html @@ -0,0 +1,8 @@ +ServiceDetails | sliver-script

Interface ServiceDetails

interface ServiceDetails {
    Account: string;
    BinPath: string;
    Description: string;
    DisplayName: string;
    Name: string;
    StartupType: number;
    Status: number;
}

Properties

Account: string
BinPath: string
Description: string
DisplayName: string
Name: string
StartupType: number
Status: number
diff --git a/docs/interfaces/sliverpb.ServiceInfo.html b/docs/interfaces/sliverpb.ServiceInfo.html new file mode 100644 index 0000000..16e183b --- /dev/null +++ b/docs/interfaces/sliverpb.ServiceInfo.html @@ -0,0 +1,2 @@ +ServiceInfo | sliver-script
interface ServiceInfo {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ServiceInfoReq.html b/docs/interfaces/sliverpb.ServiceInfoReq.html new file mode 100644 index 0000000..f361545 --- /dev/null +++ b/docs/interfaces/sliverpb.ServiceInfoReq.html @@ -0,0 +1,3 @@ +ServiceInfoReq | sliver-script

Interface ServiceInfoReq

interface ServiceInfoReq {
    Hostname: string;
    ServiceName: string;
}

Properties

Properties

Hostname: string
ServiceName: string
diff --git a/docs/interfaces/sliverpb.Services.html b/docs/interfaces/sliverpb.Services.html new file mode 100644 index 0000000..da41e20 --- /dev/null +++ b/docs/interfaces/sliverpb.Services.html @@ -0,0 +1,4 @@ +Services | sliver-script
interface Services {
    Details: sliverpb.ServiceDetails[];
    Error: string;
    Response?: commonpb.Response;
}

Properties

Properties

Error: string
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.ServicesReq.html b/docs/interfaces/sliverpb.ServicesReq.html new file mode 100644 index 0000000..ab2d3a7 --- /dev/null +++ b/docs/interfaces/sliverpb.ServicesReq.html @@ -0,0 +1,3 @@ +ServicesReq | sliver-script
interface ServicesReq {
    Hostname: string;
    Request?: commonpb.Request;
}

Properties

Properties

Hostname: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.SessionRegister.html b/docs/interfaces/sliverpb.SessionRegister.html new file mode 100644 index 0000000..91ccd66 --- /dev/null +++ b/docs/interfaces/sliverpb.SessionRegister.html @@ -0,0 +1,3 @@ +SessionRegister | sliver-script

Interface SessionRegister

interface SessionRegister {
    ID: string;
    Register?: sliverpb.Register;
}

Properties

Properties

ID: string
Register?: sliverpb.Register
diff --git a/docs/interfaces/sliverpb.SetEnv.html b/docs/interfaces/sliverpb.SetEnv.html new file mode 100644 index 0000000..c4f5efb --- /dev/null +++ b/docs/interfaces/sliverpb.SetEnv.html @@ -0,0 +1,2 @@ +SetEnv | sliver-script
interface SetEnv {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.SetEnvReq.html b/docs/interfaces/sliverpb.SetEnvReq.html new file mode 100644 index 0000000..555f78a --- /dev/null +++ b/docs/interfaces/sliverpb.SetEnvReq.html @@ -0,0 +1,3 @@ +SetEnvReq | sliver-script
interface SetEnvReq {
    Request?: commonpb.Request;
    Variable?: commonpb.EnvVar;
}

Properties

Properties

Request?: commonpb.Request
Variable?: commonpb.EnvVar
diff --git a/docs/interfaces/sliverpb.Shell.html b/docs/interfaces/sliverpb.Shell.html new file mode 100644 index 0000000..fc4f7c9 --- /dev/null +++ b/docs/interfaces/sliverpb.Shell.html @@ -0,0 +1,7 @@ +Shell | sliver-script

Shell - Request the implant open a realtime shell tunnel

+
interface Shell {
    EnablePTY: boolean;
    Path: string;
    Pid: number;
    Response?: commonpb.Response;
    TunnelID: string;
}

Properties

EnablePTY: boolean
Path: string
Pid: number
Response?: commonpb.Response
TunnelID: string
diff --git a/docs/interfaces/sliverpb.ShellReq.html b/docs/interfaces/sliverpb.ShellReq.html new file mode 100644 index 0000000..a0bb10b --- /dev/null +++ b/docs/interfaces/sliverpb.ShellReq.html @@ -0,0 +1,10 @@ +ShellReq | sliver-script

ShellReq - Request the implant open a realtime shell tunnel

+
interface ShellReq {
    Cols: number;
    EnablePTY: boolean;
    Path: string;
    Pid: number;
    Request?: commonpb.Request;
    Rows: number;
    TunnelID: string;
}

Properties

Cols: number
EnablePTY: boolean
Path: string
Pid: number
Request?: commonpb.Request
Rows: number
TunnelID: string

Bind to this tunnel

+
diff --git a/docs/interfaces/sliverpb.ShellResizeReq.html b/docs/interfaces/sliverpb.ShellResizeReq.html new file mode 100644 index 0000000..d21454e --- /dev/null +++ b/docs/interfaces/sliverpb.ShellResizeReq.html @@ -0,0 +1,5 @@ +ShellResizeReq | sliver-script

Interface ShellResizeReq

interface ShellResizeReq {
    Cols: number;
    Request?: commonpb.Request;
    Rows: number;
    TunnelID: string;
}

Properties

Properties

Cols: number
Request?: commonpb.Request
Rows: number
TunnelID: string
diff --git a/docs/interfaces/sliverpb.Sideload.html b/docs/interfaces/sliverpb.Sideload.html new file mode 100644 index 0000000..949ce2d --- /dev/null +++ b/docs/interfaces/sliverpb.Sideload.html @@ -0,0 +1,3 @@ +Sideload | sliver-script
interface Sideload {
    Response?: commonpb.Response;
    Result: string;
}

Properties

Properties

Response?: commonpb.Response
Result: string
diff --git a/docs/interfaces/sliverpb.SideloadReq.html b/docs/interfaces/sliverpb.SideloadReq.html new file mode 100644 index 0000000..2daa673 --- /dev/null +++ b/docs/interfaces/sliverpb.SideloadReq.html @@ -0,0 +1,11 @@ +SideloadReq | sliver-script
interface SideloadReq {
    Args: string[];
    Data: Buffer;
    EntryPoint: string;
    isDLL: boolean;
    isUnicode: boolean;
    Kill: boolean;
    PPid: number;
    ProcessArgs: string[];
    ProcessName: string;
    Request?: commonpb.Request;
}

Properties

Args: string[]
Data: Buffer
EntryPoint: string
isDLL: boolean
isUnicode: boolean
Kill: boolean
PPid: number
ProcessArgs: string[]
ProcessName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.SockTabEntry.html b/docs/interfaces/sliverpb.SockTabEntry.html new file mode 100644 index 0000000..2b4fd91 --- /dev/null +++ b/docs/interfaces/sliverpb.SockTabEntry.html @@ -0,0 +1,7 @@ +SockTabEntry | sliver-script

Interface SockTabEntry

interface SockTabEntry {
    LocalAddr?: sliverpb.SockTabEntry_SockAddr;
    Process?: commonpb.Process;
    Protocol: string;
    RemoteAddr?: sliverpb.SockTabEntry_SockAddr;
    SkState: string;
    UID: number;
}

Properties

Process?: commonpb.Process
Protocol: string
SkState: string
UID: number
diff --git a/docs/interfaces/sliverpb.SockTabEntry_SockAddr.html b/docs/interfaces/sliverpb.SockTabEntry_SockAddr.html new file mode 100644 index 0000000..9abea0e --- /dev/null +++ b/docs/interfaces/sliverpb.SockTabEntry_SockAddr.html @@ -0,0 +1,3 @@ +SockTabEntry_SockAddr | sliver-script

Interface SockTabEntry_SockAddr

interface SockTabEntry_SockAddr {
    Ip: string;
    Port: number;
}

Properties

Ip +Port +

Properties

Ip: string
Port: number
diff --git a/docs/interfaces/sliverpb.Socks.html b/docs/interfaces/sliverpb.Socks.html new file mode 100644 index 0000000..33fd31f --- /dev/null +++ b/docs/interfaces/sliverpb.Socks.html @@ -0,0 +1,3 @@ +Socks | sliver-script
interface Socks {
    SessionID: string;
    TunnelID: string;
}

Properties

Properties

SessionID: string
TunnelID: string
diff --git a/docs/interfaces/sliverpb.SocksData.html b/docs/interfaces/sliverpb.SocksData.html new file mode 100644 index 0000000..a90a79b --- /dev/null +++ b/docs/interfaces/sliverpb.SocksData.html @@ -0,0 +1,8 @@ +SocksData | sliver-script
interface SocksData {
    CloseConn: boolean;
    Data: Buffer;
    Password: string;
    Request?: commonpb.Request;
    Sequence: string;
    TunnelID: string;
    Username: string;
}

Properties

CloseConn: boolean
Data: Buffer
Password: string
Request?: commonpb.Request
Sequence: string
TunnelID: string
Username: string
diff --git a/docs/interfaces/sliverpb.SpawnDll.html b/docs/interfaces/sliverpb.SpawnDll.html new file mode 100644 index 0000000..341b599 --- /dev/null +++ b/docs/interfaces/sliverpb.SpawnDll.html @@ -0,0 +1,3 @@ +SpawnDll | sliver-script
interface SpawnDll {
    Response?: commonpb.Response;
    Result: string;
}

Properties

Properties

Response?: commonpb.Response
Result: string
diff --git a/docs/interfaces/sliverpb.SpawnDllReq.html b/docs/interfaces/sliverpb.SpawnDllReq.html new file mode 100644 index 0000000..10b60a7 --- /dev/null +++ b/docs/interfaces/sliverpb.SpawnDllReq.html @@ -0,0 +1,9 @@ +SpawnDllReq | sliver-script
interface SpawnDllReq {
    Args: string[];
    Data: Buffer;
    Kill: boolean;
    Offset: number;
    PPid: number;
    ProcessArgs: string[];
    ProcessName: string;
    Request?: commonpb.Request;
}

Properties

Args: string[]
Data: Buffer
Kill: boolean
Offset: number
PPid: number
ProcessArgs: string[]
ProcessName: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.StartServiceByNameReq.html b/docs/interfaces/sliverpb.StartServiceByNameReq.html new file mode 100644 index 0000000..063c647 --- /dev/null +++ b/docs/interfaces/sliverpb.StartServiceByNameReq.html @@ -0,0 +1,3 @@ +StartServiceByNameReq | sliver-script

Interface StartServiceByNameReq

interface StartServiceByNameReq {
    Request?: commonpb.Request;
    ServiceInfo?: sliverpb.ServiceInfoReq;
}

Properties

Properties

Request?: commonpb.Request
ServiceInfo?: sliverpb.ServiceInfoReq
diff --git a/docs/interfaces/sliverpb.StartServiceReq.html b/docs/interfaces/sliverpb.StartServiceReq.html new file mode 100644 index 0000000..e854a57 --- /dev/null +++ b/docs/interfaces/sliverpb.StartServiceReq.html @@ -0,0 +1,7 @@ +StartServiceReq | sliver-script

Interface StartServiceReq

interface StartServiceReq {
    Arguments: string;
    BinPath: string;
    Hostname: string;
    Request?: commonpb.Request;
    ServiceDescription: string;
    ServiceName: string;
}

Properties

Arguments: string
BinPath: string
Hostname: string
Request?: commonpb.Request
ServiceDescription: string
ServiceName: string
diff --git a/docs/interfaces/sliverpb.StopServiceReq.html b/docs/interfaces/sliverpb.StopServiceReq.html new file mode 100644 index 0000000..6ec81c9 --- /dev/null +++ b/docs/interfaces/sliverpb.StopServiceReq.html @@ -0,0 +1,3 @@ +StopServiceReq | sliver-script

Interface StopServiceReq

interface StopServiceReq {
    Request?: commonpb.Request;
    ServiceInfo?: sliverpb.ServiceInfoReq;
}

Properties

Properties

Request?: commonpb.Request
ServiceInfo?: sliverpb.ServiceInfoReq
diff --git a/docs/interfaces/sliverpb.Task.html b/docs/interfaces/sliverpb.Task.html new file mode 100644 index 0000000..f298b5f --- /dev/null +++ b/docs/interfaces/sliverpb.Task.html @@ -0,0 +1,2 @@ +Task | sliver-script
interface Task {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.TaskReq.html b/docs/interfaces/sliverpb.TaskReq.html new file mode 100644 index 0000000..e7e43e0 --- /dev/null +++ b/docs/interfaces/sliverpb.TaskReq.html @@ -0,0 +1,6 @@ +TaskReq | sliver-script
interface TaskReq {
    Data: Buffer;
    Encoder: string;
    Pid: number;
    Request?: commonpb.Request;
    RWXPages: boolean;
}

Properties

Properties

Data: Buffer
Encoder: string
Pid: number
Request?: commonpb.Request
RWXPages: boolean
diff --git a/docs/interfaces/sliverpb.Terminate.html b/docs/interfaces/sliverpb.Terminate.html new file mode 100644 index 0000000..1694340 --- /dev/null +++ b/docs/interfaces/sliverpb.Terminate.html @@ -0,0 +1,3 @@ +Terminate | sliver-script
interface Terminate {
    Pid: number;
    Response?: commonpb.Response;
}

Properties

Properties

Pid: number
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.TerminateReq.html b/docs/interfaces/sliverpb.TerminateReq.html new file mode 100644 index 0000000..b4b9efa --- /dev/null +++ b/docs/interfaces/sliverpb.TerminateReq.html @@ -0,0 +1,5 @@ +TerminateReq | sliver-script

Interface TerminateReq

TerminateReq - Request the implant terminate a remote processes

+
interface TerminateReq {
    Force: boolean;
    Pid: number;
    Request?: commonpb.Request;
}

Properties

Properties

Force: boolean
Pid: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Tunnel.html b/docs/interfaces/sliverpb.Tunnel.html new file mode 100644 index 0000000..c9948c7 --- /dev/null +++ b/docs/interfaces/sliverpb.Tunnel.html @@ -0,0 +1,4 @@ +Tunnel | sliver-script

Tunnel - Tunnel related messages

+
interface Tunnel {
    SessionID: string;
    TunnelID: string;
}

Properties

Properties

SessionID: string
TunnelID: string
diff --git a/docs/interfaces/sliverpb.TunnelData.html b/docs/interfaces/sliverpb.TunnelData.html new file mode 100644 index 0000000..e86f47e --- /dev/null +++ b/docs/interfaces/sliverpb.TunnelData.html @@ -0,0 +1,10 @@ +TunnelData | sliver-script
interface TunnelData {
    Ack: string;
    Closed: boolean;
    CreateReverse: boolean;
    Data: Buffer;
    Resend: boolean;
    rportfwd?: sliverpb.RPortfwd;
    Sequence: string;
    SessionID: string;
    TunnelID: string;
}

Properties

Ack: string
Closed: boolean
CreateReverse: boolean
Data: Buffer
Resend: boolean
rportfwd?: sliverpb.RPortfwd
Sequence: string
SessionID: string
TunnelID: string
diff --git a/docs/interfaces/sliverpb.UnsetEnv.html b/docs/interfaces/sliverpb.UnsetEnv.html new file mode 100644 index 0000000..f844657 --- /dev/null +++ b/docs/interfaces/sliverpb.UnsetEnv.html @@ -0,0 +1,2 @@ +UnsetEnv | sliver-script
interface UnsetEnv {
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.UnsetEnvReq.html b/docs/interfaces/sliverpb.UnsetEnvReq.html new file mode 100644 index 0000000..51cde5a --- /dev/null +++ b/docs/interfaces/sliverpb.UnsetEnvReq.html @@ -0,0 +1,3 @@ +UnsetEnvReq | sliver-script
interface UnsetEnvReq {
    Name: string;
    Request?: commonpb.Request;
}

Properties

Properties

Name: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.Upload.html b/docs/interfaces/sliverpb.Upload.html new file mode 100644 index 0000000..972d884 --- /dev/null +++ b/docs/interfaces/sliverpb.Upload.html @@ -0,0 +1,5 @@ +Upload | sliver-script
interface Upload {
    Path: string;
    Response?: commonpb.Response;
    UnwriteableFiles: number;
    WrittenFiles: number;
}

Properties

Path: string
Response?: commonpb.Response
UnwriteableFiles: number
WrittenFiles: number
diff --git a/docs/interfaces/sliverpb.UploadReq.html b/docs/interfaces/sliverpb.UploadReq.html new file mode 100644 index 0000000..8246e5e --- /dev/null +++ b/docs/interfaces/sliverpb.UploadReq.html @@ -0,0 +1,9 @@ +UploadReq | sliver-script
interface UploadReq {
    Data: Buffer;
    Encoder: string;
    FileName: string;
    IsDirectory: boolean;
    IsIOC: boolean;
    Overwrite: boolean;
    Path: string;
    Request?: commonpb.Request;
}

Properties

Data: Buffer
Encoder: string
FileName: string
IsDirectory: boolean
IsIOC: boolean
Overwrite: boolean
Path: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGPortForward.html b/docs/interfaces/sliverpb.WGPortForward.html new file mode 100644 index 0000000..6ad63c6 --- /dev/null +++ b/docs/interfaces/sliverpb.WGPortForward.html @@ -0,0 +1,3 @@ +WGPortForward | sliver-script

Interface WGPortForward

interface WGPortForward {
    Forwarder?: sliverpb.WGTCPForwarder;
    Response?: commonpb.Response;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.WGPortForwardStartReq.html b/docs/interfaces/sliverpb.WGPortForwardStartReq.html new file mode 100644 index 0000000..1e0612b --- /dev/null +++ b/docs/interfaces/sliverpb.WGPortForwardStartReq.html @@ -0,0 +1,4 @@ +WGPortForwardStartReq | sliver-script

Interface WGPortForwardStartReq

interface WGPortForwardStartReq {
    LocalPort: number;
    RemoteAddress: string;
    Request?: commonpb.Request;
}

Properties

LocalPort: number
RemoteAddress: string
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGPortForwardStopReq.html b/docs/interfaces/sliverpb.WGPortForwardStopReq.html new file mode 100644 index 0000000..44ec826 --- /dev/null +++ b/docs/interfaces/sliverpb.WGPortForwardStopReq.html @@ -0,0 +1,3 @@ +WGPortForwardStopReq | sliver-script

Interface WGPortForwardStopReq

interface WGPortForwardStopReq {
    ID: number;
    Request?: commonpb.Request;
}

Properties

Properties

ID: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGSocks.html b/docs/interfaces/sliverpb.WGSocks.html new file mode 100644 index 0000000..402ce50 --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocks.html @@ -0,0 +1,3 @@ +WGSocks | sliver-script
interface WGSocks {
    Response?: commonpb.Response;
    Server?: sliverpb.WGSocksServer;
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.WGSocksServer.html b/docs/interfaces/sliverpb.WGSocksServer.html new file mode 100644 index 0000000..3bca869 --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocksServer.html @@ -0,0 +1,3 @@ +WGSocksServer | sliver-script

Interface WGSocksServer

interface WGSocksServer {
    ID: number;
    LocalAddr: string;
}

Properties

Properties

ID: number
LocalAddr: string
diff --git a/docs/interfaces/sliverpb.WGSocksServers.html b/docs/interfaces/sliverpb.WGSocksServers.html new file mode 100644 index 0000000..853c693 --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocksServers.html @@ -0,0 +1,3 @@ +WGSocksServers | sliver-script

Interface WGSocksServers

interface WGSocksServers {
    Response?: commonpb.Response;
    Servers: sliverpb.WGSocksServer[];
}

Properties

Properties

Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.WGSocksServersReq.html b/docs/interfaces/sliverpb.WGSocksServersReq.html new file mode 100644 index 0000000..d0d4183 --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocksServersReq.html @@ -0,0 +1,2 @@ +WGSocksServersReq | sliver-script

Interface WGSocksServersReq

interface WGSocksServersReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGSocksStartReq.html b/docs/interfaces/sliverpb.WGSocksStartReq.html new file mode 100644 index 0000000..78f09c1 --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocksStartReq.html @@ -0,0 +1,3 @@ +WGSocksStartReq | sliver-script

Interface WGSocksStartReq

interface WGSocksStartReq {
    Port: number;
    Request?: commonpb.Request;
}

Properties

Properties

Port: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGSocksStopReq.html b/docs/interfaces/sliverpb.WGSocksStopReq.html new file mode 100644 index 0000000..8609a4a --- /dev/null +++ b/docs/interfaces/sliverpb.WGSocksStopReq.html @@ -0,0 +1,3 @@ +WGSocksStopReq | sliver-script

Interface WGSocksStopReq

interface WGSocksStopReq {
    ID: number;
    Request?: commonpb.Request;
}

Properties

Properties

ID: number
Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WGTCPForwarder.html b/docs/interfaces/sliverpb.WGTCPForwarder.html new file mode 100644 index 0000000..8fff18b --- /dev/null +++ b/docs/interfaces/sliverpb.WGTCPForwarder.html @@ -0,0 +1,4 @@ +WGTCPForwarder | sliver-script

Interface WGTCPForwarder

interface WGTCPForwarder {
    ID: number;
    LocalAddr: string;
    RemoteAddr: string;
}

Properties

Properties

ID: number
LocalAddr: string
RemoteAddr: string
diff --git a/docs/interfaces/sliverpb.WGTCPForwarders.html b/docs/interfaces/sliverpb.WGTCPForwarders.html new file mode 100644 index 0000000..3dd5a4c --- /dev/null +++ b/docs/interfaces/sliverpb.WGTCPForwarders.html @@ -0,0 +1,3 @@ +WGTCPForwarders | sliver-script

Interface WGTCPForwarders

interface WGTCPForwarders {
    Forwarders: sliverpb.WGTCPForwarder[];
    Response?: commonpb.Response;
}

Properties

Properties

Forwarders: sliverpb.WGTCPForwarder[]
Response?: commonpb.Response
diff --git a/docs/interfaces/sliverpb.WGTCPForwardersReq.html b/docs/interfaces/sliverpb.WGTCPForwardersReq.html new file mode 100644 index 0000000..f0a2a64 --- /dev/null +++ b/docs/interfaces/sliverpb.WGTCPForwardersReq.html @@ -0,0 +1,2 @@ +WGTCPForwardersReq | sliver-script

Interface WGTCPForwardersReq

interface WGTCPForwardersReq {
    Request?: commonpb.Request;
}

Properties

Properties

Request?: commonpb.Request
diff --git a/docs/interfaces/sliverpb.WindowsPrivilegeEntry.html b/docs/interfaces/sliverpb.WindowsPrivilegeEntry.html new file mode 100644 index 0000000..cc2bfad --- /dev/null +++ b/docs/interfaces/sliverpb.WindowsPrivilegeEntry.html @@ -0,0 +1,7 @@ +WindowsPrivilegeEntry | sliver-script

Interface WindowsPrivilegeEntry

interface WindowsPrivilegeEntry {
    Description: string;
    Enabled: boolean;
    EnabledByDefault: boolean;
    Name: string;
    Removed: boolean;
    UsedForAccess: boolean;
}

Properties

Description: string
Enabled: boolean
EnabledByDefault: boolean
Name: string
Removed: boolean
UsedForAccess: boolean
diff --git a/docs/modules.html b/docs/modules.html index ac1cf0d..78cabf0 100644 --- a/docs/modules.html +++ b/docs/modules.html @@ -1 +1 @@ -sliver-script
Options
All
  • Public
  • Public/Protected
  • All
Menu

sliver-script

Index

Functions

  • gunzip(data: Buffer): Promise<Buffer>
  • Parameters

    • data: Buffer

    Returns Promise<Buffer>

  • gzip(data: Buffer): Promise<Buffer>
  • Parameters

    • data: Buffer

    Returns Promise<Buffer>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited method
  • Protected method

Settings

Theme

Generated using TypeDoc

\ No newline at end of file +sliver-script
diff --git a/docs/modules/clientpb.html b/docs/modules/clientpb.html new file mode 100644 index 0000000..51b0b92 --- /dev/null +++ b/docs/modules/clientpb.html @@ -0,0 +1 @@ +clientpb | sliver-script

Namespace clientpb

Enumerations

CrackAttackMode
CrackEncoding
CrackFileType
CrackJobStatus
CrackOutfileFormat
CrackWorkloadProfile
FileType
HashType
HTTPC2SegmentType
OutputFormat
ShellcodeEncoder
StageProtocol
States

Interfaces

AllHosts
AllLoot
Backdoor
BackdoorReq
Beacon
BeaconIntegrity
Beacons
BeaconTask
BeaconTasks
Builder
Builders
C2ProfileReq
Canaries
CertificateAuthorityData
CertificateAuthorityInfo
CertificateData
CertificateInfo
CertificatesReq
Client
ClientLogData
CloseTunnelReq
Compiler
CompilerTarget
CrackBenchmark
CrackBenchmark_BenchmarksEntry
CrackCommand
CrackConfig
CrackFile
CrackFileChunk
CrackFiles
CrackJob
CrackResponse
Crackstation
Crackstation_BenchmarksEntry
Crackstations
CrackstationStatus
CrackSyncStatus
CrackSyncStatus_ProgressEntry
CrackTask
CreateTunnel
CreateTunnelReq
Credential
Credentials
CrossCompiler
CUDABackendInfo
DeleteReq
DllHijack
DllHijackReq
DNSCanary
DNSListenerReq
Event
ExtensionData
ExternalGenerateReq
ExternalImplantBinary
ExternalImplantConfig
ExternalImplantConfig_EncodersEntry
Generate
GenerateReq
GenerateStageReq
GetSystemReq
Host
Host_ExtensionDataEntry
HTTPC2Config
HTTPC2ConfigReq
HTTPC2Configs
HTTPC2Cookie
HTTPC2Header
HTTPC2ImplantConfig
HTTPC2PathSegment
HTTPC2ServerConfig
HTTPC2URLParameter
HTTPListenerReq
ImplantBuild
ImplantBuilds
ImplantBuilds_ConfigsEntry
ImplantBuilds_ResourceIDsEntry
ImplantBuilds_StagedEntry
ImplantC2
ImplantConfig
ImplantProfile
ImplantProfiles
ImplantStageReq
IOC
Job
Jobs
KillJob
KillJobReq
ListenerJob
Loot
MessageFns
MetalBackendInfo
MigrateReq
MonitoringProvider
MonitoringProviders
MSFRemoteReq
MSFReq
MTLSListenerReq
MultiplayerListenerReq
NamedPipes
NamedPipesReq
OpenCLBackendInfo
Operator
Operators
PivotGraph
PivotGraphEntry
RegenerateReq
RenameReq
ResourceID
RestartJobReq
Session
Sessions
ShellcodeConfig
ShellcodeEncode
ShellcodeEncoderArchMap
ShellcodeEncoderArchMap_DescriptionsEntry
ShellcodeEncoderArchMap_EncodersEntry
ShellcodeEncodeReq
ShellcodeEncoderMap
ShellcodeEncoderMap_EncodersEntry
ShellcodeRDI
ShellcodeRDIReq
StagerListener
StagerListenerReq
TCPPivot
TCPPivotReq
TrafficEncoder
TrafficEncoderMap
TrafficEncoderMap_EncodersEntry
TrafficEncoderTest
TrafficEncoderTests
UniqueWGIP
Version
WebContent
Website
Website_ContentsEntry
WebsiteAddContent
WebsiteAddContent_ContentsEntry
WebsiteRemoveContent
Websites
WGClientConfig
WGListenerReq

Type Aliases

DeepPartial

Variables

AllHosts
AllLoot
Backdoor
BackdoorReq
Beacon
BeaconIntegrity
Beacons
BeaconTask
BeaconTasks
Builder
Builders
C2ProfileReq
Canaries
CertificateAuthorityData
CertificateAuthorityInfo
CertificateData
CertificateInfo
CertificatesReq
Client
ClientLogData
CloseTunnelReq
Compiler
CompilerTarget
CrackBenchmark
CrackBenchmark_BenchmarksEntry
CrackCommand
CrackConfig
CrackFile
CrackFileChunk
CrackFiles
CrackJob
CrackResponse
Crackstation
Crackstation_BenchmarksEntry
Crackstations
CrackstationStatus
CrackSyncStatus
CrackSyncStatus_ProgressEntry
CrackTask
CreateTunnel
CreateTunnelReq
Credential
Credentials
CrossCompiler
CUDABackendInfo
DeleteReq
DllHijack
DllHijackReq
DNSCanary
DNSListenerReq
Event
ExtensionData
ExternalGenerateReq
ExternalImplantBinary
ExternalImplantConfig
ExternalImplantConfig_EncodersEntry
Generate
GenerateReq
GenerateStageReq
GetSystemReq
Host
Host_ExtensionDataEntry
HTTPC2Config
HTTPC2ConfigReq
HTTPC2Configs
HTTPC2Cookie
HTTPC2Header
HTTPC2ImplantConfig
HTTPC2PathSegment
HTTPC2ServerConfig
HTTPC2URLParameter
HTTPListenerReq
ImplantBuild
ImplantBuilds
ImplantBuilds_ConfigsEntry
ImplantBuilds_ResourceIDsEntry
ImplantBuilds_StagedEntry
ImplantC2
ImplantConfig
ImplantProfile
ImplantProfiles
ImplantStageReq
IOC
Job
Jobs
KillJob
KillJobReq
ListenerJob
Loot
MetalBackendInfo
MigrateReq
MonitoringProvider
MonitoringProviders
MSFRemoteReq
MSFReq
MTLSListenerReq
MultiplayerListenerReq
NamedPipes
NamedPipesReq
OpenCLBackendInfo
Operator
Operators
PivotGraph
PivotGraphEntry
protobufPackage
RegenerateReq
RenameReq
ResourceID
RestartJobReq
Session
Sessions
ShellcodeConfig
ShellcodeEncode
ShellcodeEncoderArchMap
ShellcodeEncoderArchMap_DescriptionsEntry
ShellcodeEncoderArchMap_EncodersEntry
ShellcodeEncodeReq
ShellcodeEncoderMap
ShellcodeEncoderMap_EncodersEntry
ShellcodeRDI
ShellcodeRDIReq
StagerListener
StagerListenerReq
TCPPivot
TCPPivotReq
TrafficEncoder
TrafficEncoderMap
TrafficEncoderMap_EncodersEntry
TrafficEncoderTest
TrafficEncoderTests
UniqueWGIP
Version
WebContent
Website
Website_ContentsEntry
WebsiteAddContent
WebsiteAddContent_ContentsEntry
WebsiteRemoveContent
Websites
WGClientConfig
WGListenerReq

Functions

crackAttackModeFromJSON
crackAttackModeToJSON
crackEncodingFromJSON
crackEncodingToJSON
crackFileTypeFromJSON
crackFileTypeToJSON
crackJobStatusFromJSON
crackJobStatusToJSON
crackOutfileFormatFromJSON
crackOutfileFormatToJSON
crackWorkloadProfileFromJSON
crackWorkloadProfileToJSON
fileTypeFromJSON
fileTypeToJSON
hashTypeFromJSON
hashTypeToJSON
hTTPC2SegmentTypeFromJSON
hTTPC2SegmentTypeToJSON
outputFormatFromJSON
outputFormatToJSON
shellcodeEncoderFromJSON
shellcodeEncoderToJSON
stageProtocolFromJSON
stageProtocolToJSON
statesFromJSON
statesToJSON
diff --git a/docs/modules/commonpb.html b/docs/modules/commonpb.html new file mode 100644 index 0000000..9c36484 --- /dev/null +++ b/docs/modules/commonpb.html @@ -0,0 +1 @@ +commonpb | sliver-script
diff --git a/docs/modules/dnspb.html b/docs/modules/dnspb.html new file mode 100644 index 0000000..c89c6bd --- /dev/null +++ b/docs/modules/dnspb.html @@ -0,0 +1 @@ +dnspb | sliver-script
diff --git a/docs/modules/rpcpb.html b/docs/modules/rpcpb.html new file mode 100644 index 0000000..decde13 --- /dev/null +++ b/docs/modules/rpcpb.html @@ -0,0 +1 @@ +rpcpb | sliver-script
diff --git a/docs/modules/sliverpb.html b/docs/modules/sliverpb.html new file mode 100644 index 0000000..32344d2 --- /dev/null +++ b/docs/modules/sliverpb.html @@ -0,0 +1 @@ +sliverpb | sliver-script

Namespace sliverpb

Enumerations

PeerFailureType
PivotType
RegistryType

Interfaces

BeaconRegister
BeaconTasks
CallExtension
CallExtensionReq
CdReq
Chmod
ChmodReq
Chown
ChownReq
Chtimes
ChtimesReq
CloseSession
Cp
CpReq
CurrentTokenOwner
CurrentTokenOwnerReq
DeregisterWasmExtensionReq
Download
DownloadReq
Envelope
EnvInfo
EnvReq
Execute
ExecuteAssembly
ExecuteAssemblyReq
ExecuteChild
ExecuteChildren
ExecuteChildrenReq
ExecuteReq
ExecuteReq_EnvEntry
ExecuteWindowsReq
ExecWasmExtension
ExecWasmExtensionReq
ExecWasmExtensionReq_MemFSEntry
FileInfo
GetPrivs
GetPrivsReq
GetSystem
Grep
Grep_ResultsEntry
GrepLinePosition
GrepReq
GrepResult
GrepResultsForFile
HTTPSessionInit
Ifconfig
IfconfigReq
Impersonate
ImpersonateReq
InvokeExecuteAssemblyReq
InvokeGetSystemReq
InvokeInProcExecuteAssemblyReq
InvokeMigrateReq
InvokeSpawnDllReq
KillReq
ListExtensions
ListExtensionsReq
ListWasmExtensions
ListWasmExtensionsReq
Ls
LsReq
MakeToken
MakeTokenReq
MemfilesAdd
MemfilesAddReq
MemfilesListReq
MemfilesRm
MemfilesRmReq
MessageFns
Migrate
Mkdir
MkdirReq
Mount
MountInfo
MountReq
Mv
MvReq
NetConnPivot
NetInterface
Netstat
NetstatReq
OpenSession
Ping
PivotHello
PivotListener
PivotListeners
PivotListenersReq
PivotPeer
PivotPeerEnvelope
PivotPeerFailure
PivotPing
PivotServerKeyExchange
PivotStartListenerReq
PivotStopListenerReq
PollInterval
PollIntervalReq
Portfwd
PortfwdReq
ProcessDump
ProcessDumpReq
Ps
PsReq
Pwd
PwdReq
Reconfigure
ReconfigureReq
Register
RegisterExtension
RegisterExtensionReq
RegisterWasmExtension
RegisterWasmExtensionReq
RegistryCreateKey
RegistryCreateKeyReq
RegistryDeleteKey
RegistryDeleteKeyReq
RegistryListValuesReq
RegistryRead
RegistryReadHive
RegistryReadHiveReq
RegistryReadReq
RegistrySubKeyList
RegistrySubKeyListReq
RegistryValuesList
RegistryWrite
RegistryWriteReq
RemoveServiceReq
RevToSelf
RevToSelfReq
Rm
RmReq
RPortfwd
RportFwdListener
RportFwdListeners
RportFwdListenersReq
RPortfwdReq
RportFwdStartListenerReq
RportFwdStopListenerReq
RunAs
RunAsReq
Screenshot
ScreenshotReq
ServiceDetail
ServiceDetailReq
ServiceDetails
ServiceInfo
ServiceInfoReq
Services
ServicesReq
SessionRegister
SetEnv
SetEnvReq
Shell
ShellReq
ShellResizeReq
Sideload
SideloadReq
Socks
SocksData
SockTabEntry
SockTabEntry_SockAddr
SpawnDll
SpawnDllReq
SSHCommand
SSHCommandReq
StartServiceByNameReq
StartServiceReq
StopServiceReq
Task
TaskReq
Terminate
TerminateReq
Tunnel
TunnelData
UnsetEnv
UnsetEnvReq
Upload
UploadReq
WGPortForward
WGPortForwardStartReq
WGPortForwardStopReq
WGSocks
WGSocksServer
WGSocksServers
WGSocksServersReq
WGSocksStartReq
WGSocksStopReq
WGTCPForwarder
WGTCPForwarders
WGTCPForwardersReq
WindowsPrivilegeEntry

Type Aliases

DeepPartial

Variables

BeaconRegister
BeaconTasks
CallExtension
CallExtensionReq
CdReq
Chmod
ChmodReq
Chown
ChownReq
Chtimes
ChtimesReq
CloseSession
Cp
CpReq
CurrentTokenOwner
CurrentTokenOwnerReq
DeregisterWasmExtensionReq
Download
DownloadReq
Envelope
EnvInfo
EnvReq
Execute
ExecuteAssembly
ExecuteAssemblyReq
ExecuteChild
ExecuteChildren
ExecuteChildrenReq
ExecuteReq
ExecuteReq_EnvEntry
ExecuteWindowsReq
ExecWasmExtension
ExecWasmExtensionReq
ExecWasmExtensionReq_MemFSEntry
FileInfo
GetPrivs
GetPrivsReq
GetSystem
Grep
Grep_ResultsEntry
GrepLinePosition
GrepReq
GrepResult
GrepResultsForFile
HTTPSessionInit
Ifconfig
IfconfigReq
Impersonate
ImpersonateReq
InvokeExecuteAssemblyReq
InvokeGetSystemReq
InvokeInProcExecuteAssemblyReq
InvokeMigrateReq
InvokeSpawnDllReq
KillReq
ListExtensions
ListExtensionsReq
ListWasmExtensions
ListWasmExtensionsReq
Ls
LsReq
MakeToken
MakeTokenReq
MemfilesAdd
MemfilesAddReq
MemfilesListReq
MemfilesRm
MemfilesRmReq
Migrate
Mkdir
MkdirReq
Mount
MountInfo
MountReq
Mv
MvReq
NetConnPivot
NetInterface
Netstat
NetstatReq
OpenSession
Ping
PivotHello
PivotListener
PivotListeners
PivotListenersReq
PivotPeer
PivotPeerEnvelope
PivotPeerFailure
PivotPing
PivotServerKeyExchange
PivotStartListenerReq
PivotStopListenerReq
PollInterval
PollIntervalReq
Portfwd
PortfwdReq
ProcessDump
ProcessDumpReq
protobufPackage
Ps
PsReq
Pwd
PwdReq
Reconfigure
ReconfigureReq
Register
RegisterExtension
RegisterExtensionReq
RegisterWasmExtension
RegisterWasmExtensionReq
RegistryCreateKey
RegistryCreateKeyReq
RegistryDeleteKey
RegistryDeleteKeyReq
RegistryListValuesReq
RegistryRead
RegistryReadHive
RegistryReadHiveReq
RegistryReadReq
RegistrySubKeyList
RegistrySubKeyListReq
RegistryValuesList
RegistryWrite
RegistryWriteReq
RemoveServiceReq
RevToSelf
RevToSelfReq
Rm
RmReq
RPortfwd
RportFwdListener
RportFwdListeners
RportFwdListenersReq
RPortfwdReq
RportFwdStartListenerReq
RportFwdStopListenerReq
RunAs
RunAsReq
Screenshot
ScreenshotReq
ServiceDetail
ServiceDetailReq
ServiceDetails
ServiceInfo
ServiceInfoReq
Services
ServicesReq
SessionRegister
SetEnv
SetEnvReq
Shell
ShellReq
ShellResizeReq
Sideload
SideloadReq
Socks
SocksData
SockTabEntry
SockTabEntry_SockAddr
SpawnDll
SpawnDllReq
SSHCommand
SSHCommandReq
StartServiceByNameReq
StartServiceReq
StopServiceReq
Task
TaskReq
Terminate
TerminateReq
Tunnel
TunnelData
UnsetEnv
UnsetEnvReq
Upload
UploadReq
WGPortForward
WGPortForwardStartReq
WGPortForwardStopReq
WGSocks
WGSocksServer
WGSocksServers
WGSocksServersReq
WGSocksStartReq
WGSocksStopReq
WGTCPForwarder
WGTCPForwarders
WGTCPForwardersReq
WindowsPrivilegeEntry

Functions

peerFailureTypeFromJSON
peerFailureTypeToJSON
pivotTypeFromJSON
pivotTypeToJSON
registryTypeFromJSON
registryTypeToJSON
diff --git a/docs/types/clientpb.DeepPartial.html b/docs/types/clientpb.DeepPartial.html new file mode 100644 index 0000000..95a47a4 --- /dev/null +++ b/docs/types/clientpb.DeepPartial.html @@ -0,0 +1 @@ +DeepPartial | sliver-script

Type Alias DeepPartial<T>

DeepPartial: T extends Builtin
    ? T
    : T extends (infer U)[]
        ? clientpb.DeepPartial<U>[]
        : T extends ReadonlyArray<infer U>
            ? ReadonlyArray<clientpb.DeepPartial<U>>
            : T extends {}
                ? { [K in keyof T]?: clientpb.DeepPartial<T[K]> }
                : Partial<T>

Type Parameters

  • T
diff --git a/docs/types/commonpb.DeepPartial.html b/docs/types/commonpb.DeepPartial.html new file mode 100644 index 0000000..a463c98 --- /dev/null +++ b/docs/types/commonpb.DeepPartial.html @@ -0,0 +1 @@ +DeepPartial | sliver-script

Type Alias DeepPartial<T>

DeepPartial: T extends Builtin
    ? T
    : T extends (infer U)[]
        ? commonpb.DeepPartial<U>[]
        : T extends ReadonlyArray<infer U>
            ? ReadonlyArray<commonpb.DeepPartial<U>>
            : T extends {}
                ? { [K in keyof T]?: commonpb.DeepPartial<T[K]> }
                : Partial<T>

Type Parameters

  • T
diff --git a/docs/types/dnspb.DeepPartial.html b/docs/types/dnspb.DeepPartial.html new file mode 100644 index 0000000..762c30e --- /dev/null +++ b/docs/types/dnspb.DeepPartial.html @@ -0,0 +1 @@ +DeepPartial | sliver-script

Type Alias DeepPartial<T>

DeepPartial: T extends Builtin
    ? T
    : T extends (infer U)[]
        ? dnspb.DeepPartial<U>[]
        : T extends ReadonlyArray<infer U>
            ? ReadonlyArray<dnspb.DeepPartial<U>>
            : T extends {}
                ? { [K in keyof T]?: dnspb.DeepPartial<T[K]> }
                : Partial<T>

Type Parameters

  • T
diff --git a/docs/types/rpcpb.DeepPartial.html b/docs/types/rpcpb.DeepPartial.html new file mode 100644 index 0000000..e937c6b --- /dev/null +++ b/docs/types/rpcpb.DeepPartial.html @@ -0,0 +1 @@ +DeepPartial | sliver-script

Type Alias DeepPartial<T>

DeepPartial: T extends Builtin
    ? T
    : T extends (infer U)[]
        ? rpcpb.DeepPartial<U>[]
        : T extends ReadonlyArray<infer U>
            ? ReadonlyArray<rpcpb.DeepPartial<U>>
            : T extends {}
                ? { [K in keyof T]?: rpcpb.DeepPartial<T[K]> }
                : Partial<T>

Type Parameters

  • T
diff --git a/docs/types/rpcpb.ServerStreamingMethodResult.html b/docs/types/rpcpb.ServerStreamingMethodResult.html new file mode 100644 index 0000000..bd19b16 --- /dev/null +++ b/docs/types/rpcpb.ServerStreamingMethodResult.html @@ -0,0 +1 @@ +ServerStreamingMethodResult | sliver-script

Type Alias ServerStreamingMethodResult<Response>

ServerStreamingMethodResult: {
    "[asyncIterator]"(): AsyncIterator<Response, void>;
}

Type Parameters

  • Response

Type declaration

diff --git a/docs/types/rpcpb.SliverRPCDefinition.html b/docs/types/rpcpb.SliverRPCDefinition.html new file mode 100644 index 0000000..15c2d27 --- /dev/null +++ b/docs/types/rpcpb.SliverRPCDefinition.html @@ -0,0 +1 @@ +SliverRPCDefinition | sliver-script

Type Alias SliverRPCDefinition

SliverRPCDefinition: typeof rpcpb.SliverRPCDefinition
diff --git a/docs/types/sliverpb.DeepPartial.html b/docs/types/sliverpb.DeepPartial.html new file mode 100644 index 0000000..6d3c64f --- /dev/null +++ b/docs/types/sliverpb.DeepPartial.html @@ -0,0 +1 @@ +DeepPartial | sliver-script

Type Alias DeepPartial<T>

DeepPartial: T extends Builtin
    ? T
    : T extends (infer U)[]
        ? sliverpb.DeepPartial<U>[]
        : T extends ReadonlyArray<infer U>
            ? ReadonlyArray<sliverpb.DeepPartial<U>>
            : T extends {}
                ? { [K in keyof T]?: sliverpb.DeepPartial<T[K]> }
                : Partial<T>

Type Parameters

  • T
diff --git a/docs/variables/clientpb.AllHosts-1.html b/docs/variables/clientpb.AllHosts-1.html new file mode 100644 index 0000000..ab5c704 --- /dev/null +++ b/docs/variables/clientpb.AllHosts-1.html @@ -0,0 +1 @@ +AllHosts | sliver-script
diff --git a/docs/variables/clientpb.AllLoot-1.html b/docs/variables/clientpb.AllLoot-1.html new file mode 100644 index 0000000..f7c6dfb --- /dev/null +++ b/docs/variables/clientpb.AllLoot-1.html @@ -0,0 +1 @@ +AllLoot | sliver-script
diff --git a/docs/variables/clientpb.Backdoor-1.html b/docs/variables/clientpb.Backdoor-1.html new file mode 100644 index 0000000..387415b --- /dev/null +++ b/docs/variables/clientpb.Backdoor-1.html @@ -0,0 +1 @@ +Backdoor | sliver-script
diff --git a/docs/variables/clientpb.BackdoorReq-1.html b/docs/variables/clientpb.BackdoorReq-1.html new file mode 100644 index 0000000..c13f108 --- /dev/null +++ b/docs/variables/clientpb.BackdoorReq-1.html @@ -0,0 +1 @@ +BackdoorReq | sliver-script
diff --git a/docs/variables/clientpb.Beacon-1.html b/docs/variables/clientpb.Beacon-1.html new file mode 100644 index 0000000..0b28912 --- /dev/null +++ b/docs/variables/clientpb.Beacon-1.html @@ -0,0 +1 @@ +Beacon | sliver-script
diff --git a/docs/variables/clientpb.BeaconIntegrity-1.html b/docs/variables/clientpb.BeaconIntegrity-1.html new file mode 100644 index 0000000..1235923 --- /dev/null +++ b/docs/variables/clientpb.BeaconIntegrity-1.html @@ -0,0 +1 @@ +BeaconIntegrity | sliver-script
diff --git a/docs/variables/clientpb.BeaconTask-1.html b/docs/variables/clientpb.BeaconTask-1.html new file mode 100644 index 0000000..7e03b5e --- /dev/null +++ b/docs/variables/clientpb.BeaconTask-1.html @@ -0,0 +1 @@ +BeaconTask | sliver-script
diff --git a/docs/variables/clientpb.BeaconTasks-1.html b/docs/variables/clientpb.BeaconTasks-1.html new file mode 100644 index 0000000..0cbf264 --- /dev/null +++ b/docs/variables/clientpb.BeaconTasks-1.html @@ -0,0 +1 @@ +BeaconTasks | sliver-script
diff --git a/docs/variables/clientpb.Beacons-1.html b/docs/variables/clientpb.Beacons-1.html new file mode 100644 index 0000000..4f8183a --- /dev/null +++ b/docs/variables/clientpb.Beacons-1.html @@ -0,0 +1 @@ +Beacons | sliver-script
diff --git a/docs/variables/clientpb.Builder-1.html b/docs/variables/clientpb.Builder-1.html new file mode 100644 index 0000000..e826378 --- /dev/null +++ b/docs/variables/clientpb.Builder-1.html @@ -0,0 +1 @@ +Builder | sliver-script
diff --git a/docs/variables/clientpb.Builders-1.html b/docs/variables/clientpb.Builders-1.html new file mode 100644 index 0000000..285b10c --- /dev/null +++ b/docs/variables/clientpb.Builders-1.html @@ -0,0 +1 @@ +Builders | sliver-script
diff --git a/docs/variables/clientpb.C2ProfileReq-1.html b/docs/variables/clientpb.C2ProfileReq-1.html new file mode 100644 index 0000000..fa3c040 --- /dev/null +++ b/docs/variables/clientpb.C2ProfileReq-1.html @@ -0,0 +1 @@ +C2ProfileReq | sliver-script
diff --git a/docs/variables/clientpb.CUDABackendInfo-1.html b/docs/variables/clientpb.CUDABackendInfo-1.html new file mode 100644 index 0000000..15714bc --- /dev/null +++ b/docs/variables/clientpb.CUDABackendInfo-1.html @@ -0,0 +1 @@ +CUDABackendInfo | sliver-script
diff --git a/docs/variables/clientpb.Canaries-1.html b/docs/variables/clientpb.Canaries-1.html new file mode 100644 index 0000000..b7ff4fb --- /dev/null +++ b/docs/variables/clientpb.Canaries-1.html @@ -0,0 +1 @@ +Canaries | sliver-script
diff --git a/docs/variables/clientpb.CertificateAuthorityData-1.html b/docs/variables/clientpb.CertificateAuthorityData-1.html new file mode 100644 index 0000000..764d608 --- /dev/null +++ b/docs/variables/clientpb.CertificateAuthorityData-1.html @@ -0,0 +1 @@ +CertificateAuthorityData | sliver-script
diff --git a/docs/variables/clientpb.CertificateAuthorityInfo-1.html b/docs/variables/clientpb.CertificateAuthorityInfo-1.html new file mode 100644 index 0000000..13d35e4 --- /dev/null +++ b/docs/variables/clientpb.CertificateAuthorityInfo-1.html @@ -0,0 +1 @@ +CertificateAuthorityInfo | sliver-script
diff --git a/docs/variables/clientpb.CertificateData-1.html b/docs/variables/clientpb.CertificateData-1.html new file mode 100644 index 0000000..57120e0 --- /dev/null +++ b/docs/variables/clientpb.CertificateData-1.html @@ -0,0 +1 @@ +CertificateData | sliver-script
diff --git a/docs/variables/clientpb.CertificateInfo-1.html b/docs/variables/clientpb.CertificateInfo-1.html new file mode 100644 index 0000000..0f977b9 --- /dev/null +++ b/docs/variables/clientpb.CertificateInfo-1.html @@ -0,0 +1 @@ +CertificateInfo | sliver-script
diff --git a/docs/variables/clientpb.CertificatesReq-1.html b/docs/variables/clientpb.CertificatesReq-1.html new file mode 100644 index 0000000..e11553a --- /dev/null +++ b/docs/variables/clientpb.CertificatesReq-1.html @@ -0,0 +1 @@ +CertificatesReq | sliver-script
diff --git a/docs/variables/clientpb.Client-1.html b/docs/variables/clientpb.Client-1.html new file mode 100644 index 0000000..7801215 --- /dev/null +++ b/docs/variables/clientpb.Client-1.html @@ -0,0 +1 @@ +Client | sliver-script
diff --git a/docs/variables/clientpb.ClientLogData-1.html b/docs/variables/clientpb.ClientLogData-1.html new file mode 100644 index 0000000..3f2cec2 --- /dev/null +++ b/docs/variables/clientpb.ClientLogData-1.html @@ -0,0 +1 @@ +ClientLogData | sliver-script
diff --git a/docs/variables/clientpb.CloseTunnelReq-1.html b/docs/variables/clientpb.CloseTunnelReq-1.html new file mode 100644 index 0000000..0b581b5 --- /dev/null +++ b/docs/variables/clientpb.CloseTunnelReq-1.html @@ -0,0 +1 @@ +CloseTunnelReq | sliver-script
diff --git a/docs/variables/clientpb.Compiler-1.html b/docs/variables/clientpb.Compiler-1.html new file mode 100644 index 0000000..e615a6c --- /dev/null +++ b/docs/variables/clientpb.Compiler-1.html @@ -0,0 +1 @@ +Compiler | sliver-script
diff --git a/docs/variables/clientpb.CompilerTarget-1.html b/docs/variables/clientpb.CompilerTarget-1.html new file mode 100644 index 0000000..257f831 --- /dev/null +++ b/docs/variables/clientpb.CompilerTarget-1.html @@ -0,0 +1 @@ +CompilerTarget | sliver-script
diff --git a/docs/variables/clientpb.CrackBenchmark-1.html b/docs/variables/clientpb.CrackBenchmark-1.html new file mode 100644 index 0000000..4270c27 --- /dev/null +++ b/docs/variables/clientpb.CrackBenchmark-1.html @@ -0,0 +1 @@ +CrackBenchmark | sliver-script
diff --git a/docs/variables/clientpb.CrackBenchmark_BenchmarksEntry-1.html b/docs/variables/clientpb.CrackBenchmark_BenchmarksEntry-1.html new file mode 100644 index 0000000..ef70155 --- /dev/null +++ b/docs/variables/clientpb.CrackBenchmark_BenchmarksEntry-1.html @@ -0,0 +1 @@ +CrackBenchmark_BenchmarksEntry | sliver-script
diff --git a/docs/variables/clientpb.CrackCommand-1.html b/docs/variables/clientpb.CrackCommand-1.html new file mode 100644 index 0000000..91d328e --- /dev/null +++ b/docs/variables/clientpb.CrackCommand-1.html @@ -0,0 +1 @@ +CrackCommand | sliver-script
diff --git a/docs/variables/clientpb.CrackConfig-1.html b/docs/variables/clientpb.CrackConfig-1.html new file mode 100644 index 0000000..c39e8d0 --- /dev/null +++ b/docs/variables/clientpb.CrackConfig-1.html @@ -0,0 +1 @@ +CrackConfig | sliver-script
diff --git a/docs/variables/clientpb.CrackFile-1.html b/docs/variables/clientpb.CrackFile-1.html new file mode 100644 index 0000000..b04e90a --- /dev/null +++ b/docs/variables/clientpb.CrackFile-1.html @@ -0,0 +1 @@ +CrackFile | sliver-script
diff --git a/docs/variables/clientpb.CrackFileChunk-1.html b/docs/variables/clientpb.CrackFileChunk-1.html new file mode 100644 index 0000000..16457dd --- /dev/null +++ b/docs/variables/clientpb.CrackFileChunk-1.html @@ -0,0 +1 @@ +CrackFileChunk | sliver-script
diff --git a/docs/variables/clientpb.CrackFiles-1.html b/docs/variables/clientpb.CrackFiles-1.html new file mode 100644 index 0000000..c56792a --- /dev/null +++ b/docs/variables/clientpb.CrackFiles-1.html @@ -0,0 +1 @@ +CrackFiles | sliver-script
diff --git a/docs/variables/clientpb.CrackJob-1.html b/docs/variables/clientpb.CrackJob-1.html new file mode 100644 index 0000000..4cc6241 --- /dev/null +++ b/docs/variables/clientpb.CrackJob-1.html @@ -0,0 +1 @@ +CrackJob | sliver-script
diff --git a/docs/variables/clientpb.CrackResponse-1.html b/docs/variables/clientpb.CrackResponse-1.html new file mode 100644 index 0000000..2390a89 --- /dev/null +++ b/docs/variables/clientpb.CrackResponse-1.html @@ -0,0 +1 @@ +CrackResponse | sliver-script
diff --git a/docs/variables/clientpb.CrackSyncStatus-1.html b/docs/variables/clientpb.CrackSyncStatus-1.html new file mode 100644 index 0000000..7d9cc9c --- /dev/null +++ b/docs/variables/clientpb.CrackSyncStatus-1.html @@ -0,0 +1 @@ +CrackSyncStatus | sliver-script
diff --git a/docs/variables/clientpb.CrackSyncStatus_ProgressEntry-1.html b/docs/variables/clientpb.CrackSyncStatus_ProgressEntry-1.html new file mode 100644 index 0000000..a728561 --- /dev/null +++ b/docs/variables/clientpb.CrackSyncStatus_ProgressEntry-1.html @@ -0,0 +1 @@ +CrackSyncStatus_ProgressEntry | sliver-script
diff --git a/docs/variables/clientpb.CrackTask-1.html b/docs/variables/clientpb.CrackTask-1.html new file mode 100644 index 0000000..70874d8 --- /dev/null +++ b/docs/variables/clientpb.CrackTask-1.html @@ -0,0 +1 @@ +CrackTask | sliver-script
diff --git a/docs/variables/clientpb.Crackstation-1.html b/docs/variables/clientpb.Crackstation-1.html new file mode 100644 index 0000000..70b30ba --- /dev/null +++ b/docs/variables/clientpb.Crackstation-1.html @@ -0,0 +1 @@ +Crackstation | sliver-script
diff --git a/docs/variables/clientpb.CrackstationStatus-1.html b/docs/variables/clientpb.CrackstationStatus-1.html new file mode 100644 index 0000000..794e2c9 --- /dev/null +++ b/docs/variables/clientpb.CrackstationStatus-1.html @@ -0,0 +1 @@ +CrackstationStatus | sliver-script
diff --git a/docs/variables/clientpb.Crackstation_BenchmarksEntry-1.html b/docs/variables/clientpb.Crackstation_BenchmarksEntry-1.html new file mode 100644 index 0000000..4d55bbf --- /dev/null +++ b/docs/variables/clientpb.Crackstation_BenchmarksEntry-1.html @@ -0,0 +1 @@ +Crackstation_BenchmarksEntry | sliver-script
diff --git a/docs/variables/clientpb.Crackstations-1.html b/docs/variables/clientpb.Crackstations-1.html new file mode 100644 index 0000000..9d1159a --- /dev/null +++ b/docs/variables/clientpb.Crackstations-1.html @@ -0,0 +1 @@ +Crackstations | sliver-script
diff --git a/docs/variables/clientpb.CreateTunnel-1.html b/docs/variables/clientpb.CreateTunnel-1.html new file mode 100644 index 0000000..e3d6ff8 --- /dev/null +++ b/docs/variables/clientpb.CreateTunnel-1.html @@ -0,0 +1 @@ +CreateTunnel | sliver-script
diff --git a/docs/variables/clientpb.CreateTunnelReq-1.html b/docs/variables/clientpb.CreateTunnelReq-1.html new file mode 100644 index 0000000..cf85f4b --- /dev/null +++ b/docs/variables/clientpb.CreateTunnelReq-1.html @@ -0,0 +1 @@ +CreateTunnelReq | sliver-script
diff --git a/docs/variables/clientpb.Credential-1.html b/docs/variables/clientpb.Credential-1.html new file mode 100644 index 0000000..0948c3f --- /dev/null +++ b/docs/variables/clientpb.Credential-1.html @@ -0,0 +1 @@ +Credential | sliver-script
diff --git a/docs/variables/clientpb.Credentials-1.html b/docs/variables/clientpb.Credentials-1.html new file mode 100644 index 0000000..629a896 --- /dev/null +++ b/docs/variables/clientpb.Credentials-1.html @@ -0,0 +1 @@ +Credentials | sliver-script
diff --git a/docs/variables/clientpb.CrossCompiler-1.html b/docs/variables/clientpb.CrossCompiler-1.html new file mode 100644 index 0000000..1491376 --- /dev/null +++ b/docs/variables/clientpb.CrossCompiler-1.html @@ -0,0 +1 @@ +CrossCompiler | sliver-script
diff --git a/docs/variables/clientpb.DNSCanary-1.html b/docs/variables/clientpb.DNSCanary-1.html new file mode 100644 index 0000000..ffe5e23 --- /dev/null +++ b/docs/variables/clientpb.DNSCanary-1.html @@ -0,0 +1 @@ +DNSCanary | sliver-script
diff --git a/docs/variables/clientpb.DNSListenerReq-1.html b/docs/variables/clientpb.DNSListenerReq-1.html new file mode 100644 index 0000000..a6354af --- /dev/null +++ b/docs/variables/clientpb.DNSListenerReq-1.html @@ -0,0 +1 @@ +DNSListenerReq | sliver-script
diff --git a/docs/variables/clientpb.DeleteReq-1.html b/docs/variables/clientpb.DeleteReq-1.html new file mode 100644 index 0000000..311aedc --- /dev/null +++ b/docs/variables/clientpb.DeleteReq-1.html @@ -0,0 +1 @@ +DeleteReq | sliver-script
diff --git a/docs/variables/clientpb.DllHijack-1.html b/docs/variables/clientpb.DllHijack-1.html new file mode 100644 index 0000000..c8d19b4 --- /dev/null +++ b/docs/variables/clientpb.DllHijack-1.html @@ -0,0 +1 @@ +DllHijack | sliver-script
diff --git a/docs/variables/clientpb.DllHijackReq-1.html b/docs/variables/clientpb.DllHijackReq-1.html new file mode 100644 index 0000000..670de25 --- /dev/null +++ b/docs/variables/clientpb.DllHijackReq-1.html @@ -0,0 +1 @@ +DllHijackReq | sliver-script
diff --git a/docs/variables/clientpb.Event-1.html b/docs/variables/clientpb.Event-1.html new file mode 100644 index 0000000..0774e65 --- /dev/null +++ b/docs/variables/clientpb.Event-1.html @@ -0,0 +1 @@ +Event | sliver-script
diff --git a/docs/variables/clientpb.ExtensionData-1.html b/docs/variables/clientpb.ExtensionData-1.html new file mode 100644 index 0000000..c955ca6 --- /dev/null +++ b/docs/variables/clientpb.ExtensionData-1.html @@ -0,0 +1 @@ +ExtensionData | sliver-script
diff --git a/docs/variables/clientpb.ExternalGenerateReq-1.html b/docs/variables/clientpb.ExternalGenerateReq-1.html new file mode 100644 index 0000000..55b9df4 --- /dev/null +++ b/docs/variables/clientpb.ExternalGenerateReq-1.html @@ -0,0 +1 @@ +ExternalGenerateReq | sliver-script
diff --git a/docs/variables/clientpb.ExternalImplantBinary-1.html b/docs/variables/clientpb.ExternalImplantBinary-1.html new file mode 100644 index 0000000..81aa22c --- /dev/null +++ b/docs/variables/clientpb.ExternalImplantBinary-1.html @@ -0,0 +1 @@ +ExternalImplantBinary | sliver-script
diff --git a/docs/variables/clientpb.ExternalImplantConfig-1.html b/docs/variables/clientpb.ExternalImplantConfig-1.html new file mode 100644 index 0000000..af1eb91 --- /dev/null +++ b/docs/variables/clientpb.ExternalImplantConfig-1.html @@ -0,0 +1 @@ +ExternalImplantConfig | sliver-script
diff --git a/docs/variables/clientpb.ExternalImplantConfig_EncodersEntry-1.html b/docs/variables/clientpb.ExternalImplantConfig_EncodersEntry-1.html new file mode 100644 index 0000000..67d05f4 --- /dev/null +++ b/docs/variables/clientpb.ExternalImplantConfig_EncodersEntry-1.html @@ -0,0 +1 @@ +ExternalImplantConfig_EncodersEntry | sliver-script

Variable ExternalImplantConfig_EncodersEntry

ExternalImplantConfig_EncodersEntry: clientpb.MessageFns<
    clientpb.ExternalImplantConfig_EncodersEntry,
>
diff --git a/docs/variables/clientpb.Generate-1.html b/docs/variables/clientpb.Generate-1.html new file mode 100644 index 0000000..e49d072 --- /dev/null +++ b/docs/variables/clientpb.Generate-1.html @@ -0,0 +1 @@ +Generate | sliver-script
diff --git a/docs/variables/clientpb.GenerateReq-1.html b/docs/variables/clientpb.GenerateReq-1.html new file mode 100644 index 0000000..94a43ad --- /dev/null +++ b/docs/variables/clientpb.GenerateReq-1.html @@ -0,0 +1 @@ +GenerateReq | sliver-script
diff --git a/docs/variables/clientpb.GenerateStageReq-1.html b/docs/variables/clientpb.GenerateStageReq-1.html new file mode 100644 index 0000000..1a8246d --- /dev/null +++ b/docs/variables/clientpb.GenerateStageReq-1.html @@ -0,0 +1 @@ +GenerateStageReq | sliver-script
diff --git a/docs/variables/clientpb.GetSystemReq-1.html b/docs/variables/clientpb.GetSystemReq-1.html new file mode 100644 index 0000000..4af11be --- /dev/null +++ b/docs/variables/clientpb.GetSystemReq-1.html @@ -0,0 +1 @@ +GetSystemReq | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2Config-1.html b/docs/variables/clientpb.HTTPC2Config-1.html new file mode 100644 index 0000000..b034562 --- /dev/null +++ b/docs/variables/clientpb.HTTPC2Config-1.html @@ -0,0 +1 @@ +HTTPC2Config | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2ConfigReq-1.html b/docs/variables/clientpb.HTTPC2ConfigReq-1.html new file mode 100644 index 0000000..03fd527 --- /dev/null +++ b/docs/variables/clientpb.HTTPC2ConfigReq-1.html @@ -0,0 +1 @@ +HTTPC2ConfigReq | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2Configs-1.html b/docs/variables/clientpb.HTTPC2Configs-1.html new file mode 100644 index 0000000..ee64f99 --- /dev/null +++ b/docs/variables/clientpb.HTTPC2Configs-1.html @@ -0,0 +1 @@ +HTTPC2Configs | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2Cookie-1.html b/docs/variables/clientpb.HTTPC2Cookie-1.html new file mode 100644 index 0000000..9400eec --- /dev/null +++ b/docs/variables/clientpb.HTTPC2Cookie-1.html @@ -0,0 +1 @@ +HTTPC2Cookie | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2Header-1.html b/docs/variables/clientpb.HTTPC2Header-1.html new file mode 100644 index 0000000..407bbfc --- /dev/null +++ b/docs/variables/clientpb.HTTPC2Header-1.html @@ -0,0 +1 @@ +HTTPC2Header | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2ImplantConfig-1.html b/docs/variables/clientpb.HTTPC2ImplantConfig-1.html new file mode 100644 index 0000000..bf768ea --- /dev/null +++ b/docs/variables/clientpb.HTTPC2ImplantConfig-1.html @@ -0,0 +1 @@ +HTTPC2ImplantConfig | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2PathSegment-1.html b/docs/variables/clientpb.HTTPC2PathSegment-1.html new file mode 100644 index 0000000..fcd0555 --- /dev/null +++ b/docs/variables/clientpb.HTTPC2PathSegment-1.html @@ -0,0 +1 @@ +HTTPC2PathSegment | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2ServerConfig-1.html b/docs/variables/clientpb.HTTPC2ServerConfig-1.html new file mode 100644 index 0000000..82eb9ee --- /dev/null +++ b/docs/variables/clientpb.HTTPC2ServerConfig-1.html @@ -0,0 +1 @@ +HTTPC2ServerConfig | sliver-script
diff --git a/docs/variables/clientpb.HTTPC2URLParameter-1.html b/docs/variables/clientpb.HTTPC2URLParameter-1.html new file mode 100644 index 0000000..ed3dc33 --- /dev/null +++ b/docs/variables/clientpb.HTTPC2URLParameter-1.html @@ -0,0 +1 @@ +HTTPC2URLParameter | sliver-script
diff --git a/docs/variables/clientpb.HTTPListenerReq-1.html b/docs/variables/clientpb.HTTPListenerReq-1.html new file mode 100644 index 0000000..b0f6a67 --- /dev/null +++ b/docs/variables/clientpb.HTTPListenerReq-1.html @@ -0,0 +1 @@ +HTTPListenerReq | sliver-script
diff --git a/docs/variables/clientpb.Host-1.html b/docs/variables/clientpb.Host-1.html new file mode 100644 index 0000000..6410084 --- /dev/null +++ b/docs/variables/clientpb.Host-1.html @@ -0,0 +1 @@ +Host | sliver-script
diff --git a/docs/variables/clientpb.Host_ExtensionDataEntry-1.html b/docs/variables/clientpb.Host_ExtensionDataEntry-1.html new file mode 100644 index 0000000..544c950 --- /dev/null +++ b/docs/variables/clientpb.Host_ExtensionDataEntry-1.html @@ -0,0 +1 @@ +Host_ExtensionDataEntry | sliver-script
diff --git a/docs/variables/clientpb.IOC-1.html b/docs/variables/clientpb.IOC-1.html new file mode 100644 index 0000000..a9f0a89 --- /dev/null +++ b/docs/variables/clientpb.IOC-1.html @@ -0,0 +1 @@ +IOC | sliver-script
diff --git a/docs/variables/clientpb.ImplantBuild-1.html b/docs/variables/clientpb.ImplantBuild-1.html new file mode 100644 index 0000000..e5533fb --- /dev/null +++ b/docs/variables/clientpb.ImplantBuild-1.html @@ -0,0 +1 @@ +ImplantBuild | sliver-script
diff --git a/docs/variables/clientpb.ImplantBuilds-1.html b/docs/variables/clientpb.ImplantBuilds-1.html new file mode 100644 index 0000000..2743d5d --- /dev/null +++ b/docs/variables/clientpb.ImplantBuilds-1.html @@ -0,0 +1 @@ +ImplantBuilds | sliver-script
diff --git a/docs/variables/clientpb.ImplantBuilds_ConfigsEntry-1.html b/docs/variables/clientpb.ImplantBuilds_ConfigsEntry-1.html new file mode 100644 index 0000000..18fb158 --- /dev/null +++ b/docs/variables/clientpb.ImplantBuilds_ConfigsEntry-1.html @@ -0,0 +1 @@ +ImplantBuilds_ConfigsEntry | sliver-script
diff --git a/docs/variables/clientpb.ImplantBuilds_ResourceIDsEntry-1.html b/docs/variables/clientpb.ImplantBuilds_ResourceIDsEntry-1.html new file mode 100644 index 0000000..c2b7476 --- /dev/null +++ b/docs/variables/clientpb.ImplantBuilds_ResourceIDsEntry-1.html @@ -0,0 +1 @@ +ImplantBuilds_ResourceIDsEntry | sliver-script

Variable ImplantBuilds_ResourceIDsEntry

ImplantBuilds_ResourceIDsEntry: clientpb.MessageFns<
    clientpb.ImplantBuilds_ResourceIDsEntry,
>
diff --git a/docs/variables/clientpb.ImplantBuilds_StagedEntry-1.html b/docs/variables/clientpb.ImplantBuilds_StagedEntry-1.html new file mode 100644 index 0000000..4e569b2 --- /dev/null +++ b/docs/variables/clientpb.ImplantBuilds_StagedEntry-1.html @@ -0,0 +1 @@ +ImplantBuilds_StagedEntry | sliver-script
diff --git a/docs/variables/clientpb.ImplantC2-1.html b/docs/variables/clientpb.ImplantC2-1.html new file mode 100644 index 0000000..91ff6dd --- /dev/null +++ b/docs/variables/clientpb.ImplantC2-1.html @@ -0,0 +1 @@ +ImplantC2 | sliver-script
diff --git a/docs/variables/clientpb.ImplantConfig-1.html b/docs/variables/clientpb.ImplantConfig-1.html new file mode 100644 index 0000000..f264671 --- /dev/null +++ b/docs/variables/clientpb.ImplantConfig-1.html @@ -0,0 +1 @@ +ImplantConfig | sliver-script
diff --git a/docs/variables/clientpb.ImplantProfile-1.html b/docs/variables/clientpb.ImplantProfile-1.html new file mode 100644 index 0000000..24d8eb2 --- /dev/null +++ b/docs/variables/clientpb.ImplantProfile-1.html @@ -0,0 +1 @@ +ImplantProfile | sliver-script
diff --git a/docs/variables/clientpb.ImplantProfiles-1.html b/docs/variables/clientpb.ImplantProfiles-1.html new file mode 100644 index 0000000..2cf98b5 --- /dev/null +++ b/docs/variables/clientpb.ImplantProfiles-1.html @@ -0,0 +1 @@ +ImplantProfiles | sliver-script
diff --git a/docs/variables/clientpb.ImplantStageReq-1.html b/docs/variables/clientpb.ImplantStageReq-1.html new file mode 100644 index 0000000..5273a83 --- /dev/null +++ b/docs/variables/clientpb.ImplantStageReq-1.html @@ -0,0 +1 @@ +ImplantStageReq | sliver-script
diff --git a/docs/variables/clientpb.Job-1.html b/docs/variables/clientpb.Job-1.html new file mode 100644 index 0000000..1532442 --- /dev/null +++ b/docs/variables/clientpb.Job-1.html @@ -0,0 +1 @@ +Job | sliver-script
diff --git a/docs/variables/clientpb.Jobs-1.html b/docs/variables/clientpb.Jobs-1.html new file mode 100644 index 0000000..e2d491b --- /dev/null +++ b/docs/variables/clientpb.Jobs-1.html @@ -0,0 +1 @@ +Jobs | sliver-script
diff --git a/docs/variables/clientpb.KillJob-1.html b/docs/variables/clientpb.KillJob-1.html new file mode 100644 index 0000000..98060b2 --- /dev/null +++ b/docs/variables/clientpb.KillJob-1.html @@ -0,0 +1 @@ +KillJob | sliver-script
diff --git a/docs/variables/clientpb.KillJobReq-1.html b/docs/variables/clientpb.KillJobReq-1.html new file mode 100644 index 0000000..dfd11d3 --- /dev/null +++ b/docs/variables/clientpb.KillJobReq-1.html @@ -0,0 +1 @@ +KillJobReq | sliver-script
diff --git a/docs/variables/clientpb.ListenerJob-1.html b/docs/variables/clientpb.ListenerJob-1.html new file mode 100644 index 0000000..c75d612 --- /dev/null +++ b/docs/variables/clientpb.ListenerJob-1.html @@ -0,0 +1 @@ +ListenerJob | sliver-script
diff --git a/docs/variables/clientpb.Loot-1.html b/docs/variables/clientpb.Loot-1.html new file mode 100644 index 0000000..15b090b --- /dev/null +++ b/docs/variables/clientpb.Loot-1.html @@ -0,0 +1 @@ +Loot | sliver-script
diff --git a/docs/variables/clientpb.MSFRemoteReq-1.html b/docs/variables/clientpb.MSFRemoteReq-1.html new file mode 100644 index 0000000..2520391 --- /dev/null +++ b/docs/variables/clientpb.MSFRemoteReq-1.html @@ -0,0 +1 @@ +MSFRemoteReq | sliver-script
diff --git a/docs/variables/clientpb.MSFReq-1.html b/docs/variables/clientpb.MSFReq-1.html new file mode 100644 index 0000000..22483c3 --- /dev/null +++ b/docs/variables/clientpb.MSFReq-1.html @@ -0,0 +1 @@ +MSFReq | sliver-script
diff --git a/docs/variables/clientpb.MTLSListenerReq-1.html b/docs/variables/clientpb.MTLSListenerReq-1.html new file mode 100644 index 0000000..184bb10 --- /dev/null +++ b/docs/variables/clientpb.MTLSListenerReq-1.html @@ -0,0 +1 @@ +MTLSListenerReq | sliver-script
diff --git a/docs/variables/clientpb.MetalBackendInfo-1.html b/docs/variables/clientpb.MetalBackendInfo-1.html new file mode 100644 index 0000000..97a1db2 --- /dev/null +++ b/docs/variables/clientpb.MetalBackendInfo-1.html @@ -0,0 +1 @@ +MetalBackendInfo | sliver-script
diff --git a/docs/variables/clientpb.MigrateReq-1.html b/docs/variables/clientpb.MigrateReq-1.html new file mode 100644 index 0000000..2a1f2d4 --- /dev/null +++ b/docs/variables/clientpb.MigrateReq-1.html @@ -0,0 +1 @@ +MigrateReq | sliver-script
diff --git a/docs/variables/clientpb.MonitoringProvider-1.html b/docs/variables/clientpb.MonitoringProvider-1.html new file mode 100644 index 0000000..f57e668 --- /dev/null +++ b/docs/variables/clientpb.MonitoringProvider-1.html @@ -0,0 +1 @@ +MonitoringProvider | sliver-script
diff --git a/docs/variables/clientpb.MonitoringProviders-1.html b/docs/variables/clientpb.MonitoringProviders-1.html new file mode 100644 index 0000000..88b097e --- /dev/null +++ b/docs/variables/clientpb.MonitoringProviders-1.html @@ -0,0 +1 @@ +MonitoringProviders | sliver-script
diff --git a/docs/variables/clientpb.MultiplayerListenerReq-1.html b/docs/variables/clientpb.MultiplayerListenerReq-1.html new file mode 100644 index 0000000..184ae97 --- /dev/null +++ b/docs/variables/clientpb.MultiplayerListenerReq-1.html @@ -0,0 +1 @@ +MultiplayerListenerReq | sliver-script
diff --git a/docs/variables/clientpb.NamedPipes-1.html b/docs/variables/clientpb.NamedPipes-1.html new file mode 100644 index 0000000..0208161 --- /dev/null +++ b/docs/variables/clientpb.NamedPipes-1.html @@ -0,0 +1 @@ +NamedPipes | sliver-script
diff --git a/docs/variables/clientpb.NamedPipesReq-1.html b/docs/variables/clientpb.NamedPipesReq-1.html new file mode 100644 index 0000000..4da8ee6 --- /dev/null +++ b/docs/variables/clientpb.NamedPipesReq-1.html @@ -0,0 +1 @@ +NamedPipesReq | sliver-script
diff --git a/docs/variables/clientpb.OpenCLBackendInfo-1.html b/docs/variables/clientpb.OpenCLBackendInfo-1.html new file mode 100644 index 0000000..d796733 --- /dev/null +++ b/docs/variables/clientpb.OpenCLBackendInfo-1.html @@ -0,0 +1 @@ +OpenCLBackendInfo | sliver-script
diff --git a/docs/variables/clientpb.Operator-1.html b/docs/variables/clientpb.Operator-1.html new file mode 100644 index 0000000..f58d49a --- /dev/null +++ b/docs/variables/clientpb.Operator-1.html @@ -0,0 +1 @@ +Operator | sliver-script
diff --git a/docs/variables/clientpb.Operators-1.html b/docs/variables/clientpb.Operators-1.html new file mode 100644 index 0000000..001c72f --- /dev/null +++ b/docs/variables/clientpb.Operators-1.html @@ -0,0 +1 @@ +Operators | sliver-script
diff --git a/docs/variables/clientpb.PivotGraph-1.html b/docs/variables/clientpb.PivotGraph-1.html new file mode 100644 index 0000000..958e683 --- /dev/null +++ b/docs/variables/clientpb.PivotGraph-1.html @@ -0,0 +1 @@ +PivotGraph | sliver-script
diff --git a/docs/variables/clientpb.PivotGraphEntry-1.html b/docs/variables/clientpb.PivotGraphEntry-1.html new file mode 100644 index 0000000..4c7acdf --- /dev/null +++ b/docs/variables/clientpb.PivotGraphEntry-1.html @@ -0,0 +1 @@ +PivotGraphEntry | sliver-script
diff --git a/docs/variables/clientpb.RegenerateReq-1.html b/docs/variables/clientpb.RegenerateReq-1.html new file mode 100644 index 0000000..36da648 --- /dev/null +++ b/docs/variables/clientpb.RegenerateReq-1.html @@ -0,0 +1 @@ +RegenerateReq | sliver-script
diff --git a/docs/variables/clientpb.RenameReq-1.html b/docs/variables/clientpb.RenameReq-1.html new file mode 100644 index 0000000..142b201 --- /dev/null +++ b/docs/variables/clientpb.RenameReq-1.html @@ -0,0 +1 @@ +RenameReq | sliver-script
diff --git a/docs/variables/clientpb.ResourceID-1.html b/docs/variables/clientpb.ResourceID-1.html new file mode 100644 index 0000000..2735a82 --- /dev/null +++ b/docs/variables/clientpb.ResourceID-1.html @@ -0,0 +1 @@ +ResourceID | sliver-script
diff --git a/docs/variables/clientpb.RestartJobReq-1.html b/docs/variables/clientpb.RestartJobReq-1.html new file mode 100644 index 0000000..7725c5b --- /dev/null +++ b/docs/variables/clientpb.RestartJobReq-1.html @@ -0,0 +1 @@ +RestartJobReq | sliver-script
diff --git a/docs/variables/clientpb.Session-1.html b/docs/variables/clientpb.Session-1.html new file mode 100644 index 0000000..07f6181 --- /dev/null +++ b/docs/variables/clientpb.Session-1.html @@ -0,0 +1 @@ +Session | sliver-script
diff --git a/docs/variables/clientpb.Sessions-1.html b/docs/variables/clientpb.Sessions-1.html new file mode 100644 index 0000000..0a7bfef --- /dev/null +++ b/docs/variables/clientpb.Sessions-1.html @@ -0,0 +1 @@ +Sessions | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeConfig-1.html b/docs/variables/clientpb.ShellcodeConfig-1.html new file mode 100644 index 0000000..b3a74b8 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeConfig-1.html @@ -0,0 +1 @@ +ShellcodeConfig | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeEncode-1.html b/docs/variables/clientpb.ShellcodeEncode-1.html new file mode 100644 index 0000000..43e4cc1 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncode-1.html @@ -0,0 +1 @@ +ShellcodeEncode | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeEncodeReq-1.html b/docs/variables/clientpb.ShellcodeEncodeReq-1.html new file mode 100644 index 0000000..ee8ab43 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncodeReq-1.html @@ -0,0 +1 @@ +ShellcodeEncodeReq | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeEncoderArchMap-1.html b/docs/variables/clientpb.ShellcodeEncoderArchMap-1.html new file mode 100644 index 0000000..c78a783 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncoderArchMap-1.html @@ -0,0 +1 @@ +ShellcodeEncoderArchMap | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry-1.html b/docs/variables/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry-1.html new file mode 100644 index 0000000..60efbe9 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncoderArchMap_DescriptionsEntry-1.html @@ -0,0 +1 @@ +ShellcodeEncoderArchMap_DescriptionsEntry | sliver-script

Variable ShellcodeEncoderArchMap_DescriptionsEntry

ShellcodeEncoderArchMap_DescriptionsEntry: clientpb.MessageFns<
    clientpb.ShellcodeEncoderArchMap_DescriptionsEntry,
>
diff --git a/docs/variables/clientpb.ShellcodeEncoderArchMap_EncodersEntry-1.html b/docs/variables/clientpb.ShellcodeEncoderArchMap_EncodersEntry-1.html new file mode 100644 index 0000000..136f3ad --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncoderArchMap_EncodersEntry-1.html @@ -0,0 +1 @@ +ShellcodeEncoderArchMap_EncodersEntry | sliver-script

Variable ShellcodeEncoderArchMap_EncodersEntry

ShellcodeEncoderArchMap_EncodersEntry: clientpb.MessageFns<
    clientpb.ShellcodeEncoderArchMap_EncodersEntry,
>
diff --git a/docs/variables/clientpb.ShellcodeEncoderMap-1.html b/docs/variables/clientpb.ShellcodeEncoderMap-1.html new file mode 100644 index 0000000..1fceedd --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncoderMap-1.html @@ -0,0 +1 @@ +ShellcodeEncoderMap | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeEncoderMap_EncodersEntry-1.html b/docs/variables/clientpb.ShellcodeEncoderMap_EncodersEntry-1.html new file mode 100644 index 0000000..51a2511 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeEncoderMap_EncodersEntry-1.html @@ -0,0 +1 @@ +ShellcodeEncoderMap_EncodersEntry | sliver-script

Variable ShellcodeEncoderMap_EncodersEntry

ShellcodeEncoderMap_EncodersEntry: clientpb.MessageFns<
    clientpb.ShellcodeEncoderMap_EncodersEntry,
>
diff --git a/docs/variables/clientpb.ShellcodeRDI-1.html b/docs/variables/clientpb.ShellcodeRDI-1.html new file mode 100644 index 0000000..975d664 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeRDI-1.html @@ -0,0 +1 @@ +ShellcodeRDI | sliver-script
diff --git a/docs/variables/clientpb.ShellcodeRDIReq-1.html b/docs/variables/clientpb.ShellcodeRDIReq-1.html new file mode 100644 index 0000000..caef8e6 --- /dev/null +++ b/docs/variables/clientpb.ShellcodeRDIReq-1.html @@ -0,0 +1 @@ +ShellcodeRDIReq | sliver-script
diff --git a/docs/variables/clientpb.StagerListener-1.html b/docs/variables/clientpb.StagerListener-1.html new file mode 100644 index 0000000..1d8ddb1 --- /dev/null +++ b/docs/variables/clientpb.StagerListener-1.html @@ -0,0 +1 @@ +StagerListener | sliver-script
diff --git a/docs/variables/clientpb.StagerListenerReq-1.html b/docs/variables/clientpb.StagerListenerReq-1.html new file mode 100644 index 0000000..32a7fda --- /dev/null +++ b/docs/variables/clientpb.StagerListenerReq-1.html @@ -0,0 +1 @@ +StagerListenerReq | sliver-script
diff --git a/docs/variables/clientpb.TCPPivot-1.html b/docs/variables/clientpb.TCPPivot-1.html new file mode 100644 index 0000000..2c8e168 --- /dev/null +++ b/docs/variables/clientpb.TCPPivot-1.html @@ -0,0 +1 @@ +TCPPivot | sliver-script
diff --git a/docs/variables/clientpb.TCPPivotReq-1.html b/docs/variables/clientpb.TCPPivotReq-1.html new file mode 100644 index 0000000..70da425 --- /dev/null +++ b/docs/variables/clientpb.TCPPivotReq-1.html @@ -0,0 +1 @@ +TCPPivotReq | sliver-script
diff --git a/docs/variables/clientpb.TrafficEncoder-1.html b/docs/variables/clientpb.TrafficEncoder-1.html new file mode 100644 index 0000000..028699d --- /dev/null +++ b/docs/variables/clientpb.TrafficEncoder-1.html @@ -0,0 +1 @@ +TrafficEncoder | sliver-script
diff --git a/docs/variables/clientpb.TrafficEncoderMap-1.html b/docs/variables/clientpb.TrafficEncoderMap-1.html new file mode 100644 index 0000000..066c90c --- /dev/null +++ b/docs/variables/clientpb.TrafficEncoderMap-1.html @@ -0,0 +1 @@ +TrafficEncoderMap | sliver-script
diff --git a/docs/variables/clientpb.TrafficEncoderMap_EncodersEntry-1.html b/docs/variables/clientpb.TrafficEncoderMap_EncodersEntry-1.html new file mode 100644 index 0000000..52bae89 --- /dev/null +++ b/docs/variables/clientpb.TrafficEncoderMap_EncodersEntry-1.html @@ -0,0 +1 @@ +TrafficEncoderMap_EncodersEntry | sliver-script

Variable TrafficEncoderMap_EncodersEntry

TrafficEncoderMap_EncodersEntry: clientpb.MessageFns<
    clientpb.TrafficEncoderMap_EncodersEntry,
>
diff --git a/docs/variables/clientpb.TrafficEncoderTest-1.html b/docs/variables/clientpb.TrafficEncoderTest-1.html new file mode 100644 index 0000000..75414cb --- /dev/null +++ b/docs/variables/clientpb.TrafficEncoderTest-1.html @@ -0,0 +1 @@ +TrafficEncoderTest | sliver-script
diff --git a/docs/variables/clientpb.TrafficEncoderTests-1.html b/docs/variables/clientpb.TrafficEncoderTests-1.html new file mode 100644 index 0000000..d8a4cc1 --- /dev/null +++ b/docs/variables/clientpb.TrafficEncoderTests-1.html @@ -0,0 +1 @@ +TrafficEncoderTests | sliver-script
diff --git a/docs/variables/clientpb.UniqueWGIP-1.html b/docs/variables/clientpb.UniqueWGIP-1.html new file mode 100644 index 0000000..4bfece6 --- /dev/null +++ b/docs/variables/clientpb.UniqueWGIP-1.html @@ -0,0 +1 @@ +UniqueWGIP | sliver-script
diff --git a/docs/variables/clientpb.Version-1.html b/docs/variables/clientpb.Version-1.html new file mode 100644 index 0000000..31bde37 --- /dev/null +++ b/docs/variables/clientpb.Version-1.html @@ -0,0 +1 @@ +Version | sliver-script
diff --git a/docs/variables/clientpb.WGClientConfig-1.html b/docs/variables/clientpb.WGClientConfig-1.html new file mode 100644 index 0000000..732ebd1 --- /dev/null +++ b/docs/variables/clientpb.WGClientConfig-1.html @@ -0,0 +1 @@ +WGClientConfig | sliver-script
diff --git a/docs/variables/clientpb.WGListenerReq-1.html b/docs/variables/clientpb.WGListenerReq-1.html new file mode 100644 index 0000000..501fe2a --- /dev/null +++ b/docs/variables/clientpb.WGListenerReq-1.html @@ -0,0 +1 @@ +WGListenerReq | sliver-script
diff --git a/docs/variables/clientpb.WebContent-1.html b/docs/variables/clientpb.WebContent-1.html new file mode 100644 index 0000000..781e368 --- /dev/null +++ b/docs/variables/clientpb.WebContent-1.html @@ -0,0 +1 @@ +WebContent | sliver-script
diff --git a/docs/variables/clientpb.Website-1.html b/docs/variables/clientpb.Website-1.html new file mode 100644 index 0000000..df4d015 --- /dev/null +++ b/docs/variables/clientpb.Website-1.html @@ -0,0 +1 @@ +Website | sliver-script
diff --git a/docs/variables/clientpb.WebsiteAddContent-1.html b/docs/variables/clientpb.WebsiteAddContent-1.html new file mode 100644 index 0000000..821a779 --- /dev/null +++ b/docs/variables/clientpb.WebsiteAddContent-1.html @@ -0,0 +1 @@ +WebsiteAddContent | sliver-script
diff --git a/docs/variables/clientpb.WebsiteAddContent_ContentsEntry-1.html b/docs/variables/clientpb.WebsiteAddContent_ContentsEntry-1.html new file mode 100644 index 0000000..059aac2 --- /dev/null +++ b/docs/variables/clientpb.WebsiteAddContent_ContentsEntry-1.html @@ -0,0 +1 @@ +WebsiteAddContent_ContentsEntry | sliver-script

Variable WebsiteAddContent_ContentsEntry

WebsiteAddContent_ContentsEntry: clientpb.MessageFns<
    clientpb.WebsiteAddContent_ContentsEntry,
>
diff --git a/docs/variables/clientpb.WebsiteRemoveContent-1.html b/docs/variables/clientpb.WebsiteRemoveContent-1.html new file mode 100644 index 0000000..b17ad3d --- /dev/null +++ b/docs/variables/clientpb.WebsiteRemoveContent-1.html @@ -0,0 +1 @@ +WebsiteRemoveContent | sliver-script
diff --git a/docs/variables/clientpb.Website_ContentsEntry-1.html b/docs/variables/clientpb.Website_ContentsEntry-1.html new file mode 100644 index 0000000..7b61533 --- /dev/null +++ b/docs/variables/clientpb.Website_ContentsEntry-1.html @@ -0,0 +1 @@ +Website_ContentsEntry | sliver-script
diff --git a/docs/variables/clientpb.Websites-1.html b/docs/variables/clientpb.Websites-1.html new file mode 100644 index 0000000..1f40dbb --- /dev/null +++ b/docs/variables/clientpb.Websites-1.html @@ -0,0 +1 @@ +Websites | sliver-script
diff --git a/docs/variables/clientpb.protobufPackage.html b/docs/variables/clientpb.protobufPackage.html new file mode 100644 index 0000000..a1d37a2 --- /dev/null +++ b/docs/variables/clientpb.protobufPackage.html @@ -0,0 +1 @@ +protobufPackage | sliver-script

Variable protobufPackageConst

protobufPackage: "clientpb"
diff --git a/docs/variables/commonpb.Empty-1.html b/docs/variables/commonpb.Empty-1.html new file mode 100644 index 0000000..e52f297 --- /dev/null +++ b/docs/variables/commonpb.Empty-1.html @@ -0,0 +1 @@ +Empty | sliver-script
diff --git a/docs/variables/commonpb.EnvVar-1.html b/docs/variables/commonpb.EnvVar-1.html new file mode 100644 index 0000000..f989940 --- /dev/null +++ b/docs/variables/commonpb.EnvVar-1.html @@ -0,0 +1 @@ +EnvVar | sliver-script
diff --git a/docs/variables/commonpb.File-1.html b/docs/variables/commonpb.File-1.html new file mode 100644 index 0000000..866931a --- /dev/null +++ b/docs/variables/commonpb.File-1.html @@ -0,0 +1 @@ +File | sliver-script
diff --git a/docs/variables/commonpb.Process-1.html b/docs/variables/commonpb.Process-1.html new file mode 100644 index 0000000..007d186 --- /dev/null +++ b/docs/variables/commonpb.Process-1.html @@ -0,0 +1 @@ +Process | sliver-script
diff --git a/docs/variables/commonpb.Request-1.html b/docs/variables/commonpb.Request-1.html new file mode 100644 index 0000000..612a1b7 --- /dev/null +++ b/docs/variables/commonpb.Request-1.html @@ -0,0 +1 @@ +Request | sliver-script
diff --git a/docs/variables/commonpb.Response-1.html b/docs/variables/commonpb.Response-1.html new file mode 100644 index 0000000..699a8e9 --- /dev/null +++ b/docs/variables/commonpb.Response-1.html @@ -0,0 +1 @@ +Response | sliver-script
diff --git a/docs/variables/commonpb.protobufPackage.html b/docs/variables/commonpb.protobufPackage.html new file mode 100644 index 0000000..eb3cb34 --- /dev/null +++ b/docs/variables/commonpb.protobufPackage.html @@ -0,0 +1 @@ +protobufPackage | sliver-script

Variable protobufPackageConst

protobufPackage: "commonpb"
diff --git a/docs/variables/dnspb.DNSMessage-1.html b/docs/variables/dnspb.DNSMessage-1.html new file mode 100644 index 0000000..2b51215 --- /dev/null +++ b/docs/variables/dnspb.DNSMessage-1.html @@ -0,0 +1 @@ +DNSMessage | sliver-script

Variable DNSMessage

diff --git a/docs/variables/dnspb.protobufPackage.html b/docs/variables/dnspb.protobufPackage.html new file mode 100644 index 0000000..f8b4787 --- /dev/null +++ b/docs/variables/dnspb.protobufPackage.html @@ -0,0 +1 @@ +protobufPackage | sliver-script

Variable protobufPackageConst

protobufPackage: "dnspb"
diff --git a/docs/variables/rpcpb.SliverRPCDefinition-1.html b/docs/variables/rpcpb.SliverRPCDefinition-1.html new file mode 100644 index 0000000..ec23d96 --- /dev/null +++ b/docs/variables/rpcpb.SliverRPCDefinition-1.html @@ -0,0 +1,31 @@ +SliverRPCDefinition | sliver-script

Variable SliverRPCDefinition

SliverRPCDefinition: {
    fullName: "rpcpb.SliverRPC";
    methods: {
        backdoor: {
            name: "Backdoor";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.BackdoorReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Backdoor>;
        };
        builderRegister: {
            name: "BuilderRegister";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Builder>;
            responseStream: true;
            responseType: clientpb.MessageFns<clientpb.Event>;
        };
        builders: {
            name: "Builders";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Builders>;
        };
        builderTrigger: {
            name: "BuilderTrigger";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Event>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        callExtension: {
            name: "CallExtension";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.CallExtensionReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.CallExtension>;
        };
        canaries: {
            name: "Canaries";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Canaries>;
        };
        cancelBeaconTask: {
            name: "CancelBeaconTask";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.BeaconTask>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.BeaconTask>;
        };
        cd: {
            name: "Cd";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.CdReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Pwd>;
        };
        chmod: {
            name: "Chmod";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ChmodReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Chmod>;
        };
        chown: {
            name: "Chown";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ChownReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Chown>;
        };
        chtimes: {
            name: "Chtimes";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ChtimesReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Chtimes>;
        };
        clientLog: {
            name: "ClientLog";
            options: {};
            requestStream: true;
            requestType: clientpb.MessageFns<clientpb.ClientLogData>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        closeSession: {
            name: "CloseSession";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.CloseSession>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        closeSocks: {
            name: "CloseSocks";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.Socks>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        closeTunnel: {
            name: "CloseTunnel";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.Tunnel>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        cp: {
            name: "Cp";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.CpReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Cp>;
        };
        crack: {
            name: "Crack";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackCommand>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CrackResponse>;
        };
        crackFileChunkDownload: {
            name: "CrackFileChunkDownload";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFileChunk>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CrackFileChunk>;
        };
        crackFileChunkUpload: {
            name: "CrackFileChunkUpload";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFileChunk>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        crackFileComplete: {
            name: "CrackFileComplete";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFile>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        crackFileCreate: {
            name: "CrackFileCreate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFile>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CrackFile>;
        };
        crackFileDelete: {
            name: "CrackFileDelete";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFile>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        crackFilesList: {
            name: "CrackFilesList";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackFile>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CrackFiles>;
        };
        crackstationBenchmark: {
            name: "CrackstationBenchmark";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackBenchmark>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        crackstationRegister: {
            name: "CrackstationRegister";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Crackstation>;
            responseStream: true;
            responseType: clientpb.MessageFns<clientpb.Event>;
        };
        crackstations: {
            name: "Crackstations";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Crackstations>;
        };
        crackstationTrigger: {
            name: "CrackstationTrigger";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Event>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        crackTaskByID: {
            name: "CrackTaskByID";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackTask>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CrackTask>;
        };
        crackTaskUpdate: {
            name: "CrackTaskUpdate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CrackTask>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        createSocks: {
            name: "CreateSocks";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.Socks>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Socks>;
        };
        createTunnel: {
            name: "CreateTunnel";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.Tunnel>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Tunnel>;
        };
        creds: {
            name: "Creds";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Credentials>;
        };
        credsAdd: {
            name: "CredsAdd";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credentials>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        credsRm: {
            name: "CredsRm";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credentials>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        credsSniffHashType: {
            name: "CredsSniffHashType";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credential>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Credential>;
        };
        credsUpdate: {
            name: "CredsUpdate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credentials>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        currentTokenOwner: {
            name: "CurrentTokenOwner";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.CurrentTokenOwnerReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.CurrentTokenOwner>;
        };
        deleteImplantBuild: {
            name: "DeleteImplantBuild";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.DeleteReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        deleteImplantProfile: {
            name: "DeleteImplantProfile";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.DeleteReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        download: {
            name: "Download";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.DownloadReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Download>;
        };
        events: {
            name: "Events";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: true;
            responseType: clientpb.MessageFns<clientpb.Event>;
        };
        execute: {
            name: "Execute";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ExecuteReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Execute>;
        };
        executeAssembly: {
            name: "ExecuteAssembly";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ExecuteAssemblyReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ExecuteAssembly>;
        };
        executeChildren: {
            name: "ExecuteChildren";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ExecuteChildrenReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ExecuteChildren>;
        };
        executeWindows: {
            name: "ExecuteWindows";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ExecuteWindowsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Execute>;
        };
        execWasmExtension: {
            name: "ExecWasmExtension";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ExecWasmExtensionReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ExecWasmExtension>;
        };
        generate: {
            name: "Generate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.GenerateReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Generate>;
        };
        generateExternal: {
            name: "GenerateExternal";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ExternalGenerateReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ExternalImplantConfig>;
        };
        generateExternalGetBuildConfig: {
            name: "GenerateExternalGetBuildConfig";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ImplantBuild>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ExternalImplantConfig>;
        };
        generateExternalSaveBuild: {
            name: "GenerateExternalSaveBuild";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ExternalImplantBinary>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        generateStage: {
            name: "GenerateStage";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.GenerateStageReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Generate>;
        };
        generateUniqueIP: {
            name: "GenerateUniqueIP";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.UniqueWGIP>;
        };
        generateWGClientConfig: {
            name: "GenerateWGClientConfig";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.WGClientConfig>;
        };
        getBeacon: {
            name: "GetBeacon";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Beacon>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Beacon>;
        };
        getBeacons: {
            name: "GetBeacons";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Beacons>;
        };
        getBeaconTaskContent: {
            name: "GetBeaconTaskContent";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.BeaconTask>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.BeaconTask>;
        };
        getBeaconTasks: {
            name: "GetBeaconTasks";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Beacon>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.BeaconTasks>;
        };
        getCertificateAuthorityInfo: {
            name: "GetCertificateAuthorityInfo";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CertificateAuthorityInfo>;
        };
        getCertificateInfo: {
            name: "GetCertificateInfo";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.CertificatesReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.CertificateInfo>;
        };
        getCompiler: {
            name: "GetCompiler";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Compiler>;
        };
        getCredByID: {
            name: "GetCredByID";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credential>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Credential>;
        };
        getCredsByHashType: {
            name: "GetCredsByHashType";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credential>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Credentials>;
        };
        getEnv: {
            name: "GetEnv";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.EnvReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.EnvInfo>;
        };
        getHTTPC2ProfileByName: {
            name: "GetHTTPC2ProfileByName";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.C2ProfileReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.HTTPC2Config>;
        };
        getHTTPC2Profiles: {
            name: "GetHTTPC2Profiles";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.HTTPC2Configs>;
        };
        getJobs: {
            name: "GetJobs";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Jobs>;
        };
        getOperators: {
            name: "GetOperators";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Operators>;
        };
        getPlaintextCredsByHashType: {
            name: "GetPlaintextCredsByHashType";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Credential>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Credentials>;
        };
        getPrivs: {
            name: "GetPrivs";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.GetPrivsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.GetPrivs>;
        };
        getRportFwdListeners: {
            name: "GetRportFwdListeners";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RportFwdListenersReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RportFwdListeners>;
        };
        getSessions: {
            name: "GetSessions";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Sessions>;
        };
        getSystem: {
            name: "GetSystem";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.GetSystemReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.GetSystem>;
        };
        getVersion: {
            name: "GetVersion";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Version>;
        };
        grep: {
            name: "Grep";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.GrepReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Grep>;
        };
        hijackDLL: {
            name: "HijackDLL";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.DllHijackReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.DllHijack>;
        };
        host: {
            name: "Host";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Host>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Host>;
        };
        hostIOCRm: {
            name: "HostIOCRm";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.IOC>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        hostRm: {
            name: "HostRm";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Host>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        hosts: {
            name: "Hosts";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.AllHosts>;
        };
        ifconfig: {
            name: "Ifconfig";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.IfconfigReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Ifconfig>;
        };
        impersonate: {
            name: "Impersonate";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ImpersonateReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Impersonate>;
        };
        implantBuilds: {
            name: "ImplantBuilds";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ImplantBuilds>;
        };
        implantProfiles: {
            name: "ImplantProfiles";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ImplantProfiles>;
        };
        kill: {
            name: "Kill";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.KillReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        killJob: {
            name: "KillJob";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.KillJobReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.KillJob>;
        };
        listExtensions: {
            name: "ListExtensions";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ListExtensionsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ListExtensions>;
        };
        listWasmExtensions: {
            name: "ListWasmExtensions";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ListWasmExtensionsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ListWasmExtensions>;
        };
        lootAdd: {
            name: "LootAdd";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Loot>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Loot>;
        };
        lootAll: {
            name: "LootAll";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.AllLoot>;
        };
        lootContent: {
            name: "LootContent";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Loot>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Loot>;
        };
        lootRm: {
            name: "LootRm";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Loot>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        lootUpdate: {
            name: "LootUpdate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Loot>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Loot>;
        };
        ls: {
            name: "Ls";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.LsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Ls>;
        };
        makeToken: {
            name: "MakeToken";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MakeTokenReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.MakeToken>;
        };
        memfilesAdd: {
            name: "MemfilesAdd";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MemfilesAddReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.MemfilesAdd>;
        };
        memfilesList: {
            name: "MemfilesList";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MemfilesListReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Ls>;
        };
        memfilesRm: {
            name: "MemfilesRm";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MemfilesRmReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.MemfilesRm>;
        };
        migrate: {
            name: "Migrate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MigrateReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Migrate>;
        };
        mkdir: {
            name: "Mkdir";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MkdirReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Mkdir>;
        };
        monitorAddConfig: {
            name: "MonitorAddConfig";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MonitoringProvider>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Response>;
        };
        monitorDelConfig: {
            name: "MonitorDelConfig";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MonitoringProvider>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Response>;
        };
        monitorListConfig: {
            name: "MonitorListConfig";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.MonitoringProviders>;
        };
        monitorStart: {
            name: "MonitorStart";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Response>;
        };
        monitorStop: {
            name: "MonitorStop";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        mount: {
            name: "Mount";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MountReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Mount>;
        };
        msf: {
            name: "Msf";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MSFReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Task>;
        };
        msfRemote: {
            name: "MsfRemote";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MSFRemoteReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Task>;
        };
        mv: {
            name: "Mv";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.MvReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Mv>;
        };
        netstat: {
            name: "Netstat";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.NetstatReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Netstat>;
        };
        openSession: {
            name: "OpenSession";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.OpenSession>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.OpenSession>;
        };
        ping: {
            name: "Ping";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.Ping>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Ping>;
        };
        pivotGraph: {
            name: "PivotGraph";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.PivotGraph>;
        };
        pivotSessionListeners: {
            name: "PivotSessionListeners";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PivotListenersReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.PivotListeners>;
        };
        pivotStartListener: {
            name: "PivotStartListener";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PivotStartListenerReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.PivotListener>;
        };
        pivotStopListener: {
            name: "PivotStopListener";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PivotStopListenerReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        portfwd: {
            name: "Portfwd";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PortfwdReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Portfwd>;
        };
        processDump: {
            name: "ProcessDump";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ProcessDumpReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ProcessDump>;
        };
        ps: {
            name: "Ps";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Ps>;
        };
        pwd: {
            name: "Pwd";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.PwdReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Pwd>;
        };
        reconfigure: {
            name: "Reconfigure";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ReconfigureReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Reconfigure>;
        };
        regenerate: {
            name: "Regenerate";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.RegenerateReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Generate>;
        };
        registerExtension: {
            name: "RegisterExtension";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegisterExtensionReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegisterExtension>;
        };
        registerWasmExtension: {
            name: "RegisterWasmExtension";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegisterWasmExtensionReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegisterWasmExtension>;
        };
        registryCreateKey: {
            name: "RegistryCreateKey";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryCreateKeyReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryCreateKey>;
        };
        registryDeleteKey: {
            name: "RegistryDeleteKey";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryDeleteKeyReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryDeleteKey>;
        };
        registryListSubKeys: {
            name: "RegistryListSubKeys";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistrySubKeyListReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistrySubKeyList>;
        };
        registryListValues: {
            name: "RegistryListValues";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryListValuesReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryValuesList>;
        };
        registryRead: {
            name: "RegistryRead";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryReadReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryRead>;
        };
        registryReadHive: {
            name: "RegistryReadHive";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryReadHiveReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryReadHive>;
        };
        registryWrite: {
            name: "RegistryWrite";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RegistryWriteReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RegistryWrite>;
        };
        removeService: {
            name: "RemoveService";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RemoveServiceReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ServiceInfo>;
        };
        rename: {
            name: "Rename";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.RenameReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        restartJobs: {
            name: "RestartJobs";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.RestartJobReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        revToSelf: {
            name: "RevToSelf";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RevToSelfReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RevToSelf>;
        };
        rm: {
            name: "Rm";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RmReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Rm>;
        };
        rmBeacon: {
            name: "RmBeacon";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Beacon>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        runAs: {
            name: "RunAs";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RunAsReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RunAs>;
        };
        runSSHCommand: {
            name: "RunSSHCommand";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.SSHCommandReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.SSHCommand>;
        };
        saveHTTPC2Profile: {
            name: "SaveHTTPC2Profile";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.HTTPC2ConfigReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        saveImplantProfile: {
            name: "SaveImplantProfile";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ImplantProfile>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ImplantProfile>;
        };
        screenshot: {
            name: "Screenshot";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ScreenshotReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Screenshot>;
        };
        serviceDetail: {
            name: "ServiceDetail";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ServiceDetailReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ServiceDetail>;
        };
        services: {
            name: "Services";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ServicesReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Services>;
        };
        setEnv: {
            name: "SetEnv";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.SetEnvReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.SetEnv>;
        };
        shell: {
            name: "Shell";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ShellReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Shell>;
        };
        shellcodeEncoder: {
            name: "ShellcodeEncoder";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ShellcodeEncodeReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ShellcodeEncode>;
        };
        shellcodeEncoderMap: {
            name: "ShellcodeEncoderMap";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ShellcodeEncoderMap>;
        };
        shellcodeRDI: {
            name: "ShellcodeRDI";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ShellcodeRDIReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ShellcodeRDI>;
        };
        shellResize: {
            name: "ShellResize";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.ShellResizeReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        sideload: {
            name: "Sideload";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.SideloadReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Sideload>;
        };
        socksProxy: {
            name: "SocksProxy";
            options: {};
            requestStream: true;
            requestType: sliverpb.MessageFns<sliverpb.SocksData>;
            responseStream: true;
            responseType: sliverpb.MessageFns<sliverpb.SocksData>;
        };
        spawnDll: {
            name: "SpawnDll";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.InvokeSpawnDllReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.SpawnDll>;
        };
        stageImplantBuild: {
            name: "StageImplantBuild";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.ImplantStageReq>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        startDNSListener: {
            name: "StartDNSListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.DNSListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ListenerJob>;
        };
        startHTTPListener: {
            name: "StartHTTPListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.HTTPListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ListenerJob>;
        };
        startHTTPSListener: {
            name: "StartHTTPSListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.HTTPListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ListenerJob>;
        };
        startMTLSListener: {
            name: "StartMTLSListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.MTLSListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ListenerJob>;
        };
        startRportFwdListener: {
            name: "StartRportFwdListener";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RportFwdStartListenerReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RportFwdListener>;
        };
        startService: {
            name: "StartService";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.StartServiceReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ServiceInfo>;
        };
        startServiceByName: {
            name: "StartServiceByName";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.StartServiceByNameReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ServiceInfo>;
        };
        startTCPStagerListener: {
            name: "StartTCPStagerListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.StagerListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.StagerListener>;
        };
        startWGListener: {
            name: "StartWGListener";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.WGListenerReq>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.ListenerJob>;
        };
        stopRportFwdListener: {
            name: "StopRportFwdListener";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.RportFwdStopListenerReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.RportFwdListener>;
        };
        stopService: {
            name: "StopService";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.StopServiceReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.ServiceInfo>;
        };
        task: {
            name: "Task";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.TaskReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Task>;
        };
        terminate: {
            name: "Terminate";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.TerminateReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Terminate>;
        };
        trafficEncoderAdd: {
            name: "TrafficEncoderAdd";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.TrafficEncoder>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.TrafficEncoderTests>;
        };
        trafficEncoderMap: {
            name: "TrafficEncoderMap";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.TrafficEncoderMap>;
        };
        trafficEncoderRm: {
            name: "TrafficEncoderRm";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.TrafficEncoder>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        tunnelData: {
            name: "TunnelData";
            options: {};
            requestStream: true;
            requestType: sliverpb.MessageFns<sliverpb.TunnelData>;
            responseStream: true;
            responseType: sliverpb.MessageFns<sliverpb.TunnelData>;
        };
        unsetEnv: {
            name: "UnsetEnv";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.UnsetEnvReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.UnsetEnv>;
        };
        updateBeaconIntegrityInformation: {
            name: "UpdateBeaconIntegrityInformation";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.BeaconIntegrity>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        upload: {
            name: "Upload";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.UploadReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.Upload>;
        };
        website: {
            name: "Website";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Website>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Website>;
        };
        websiteAddContent: {
            name: "WebsiteAddContent";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.WebsiteAddContent>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Website>;
        };
        websiteRemove: {
            name: "WebsiteRemove";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.Website>;
            responseStream: false;
            responseType: commonpb.MessageFns<commonpb.Empty>;
        };
        websiteRemoveContent: {
            name: "WebsiteRemoveContent";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.WebsiteRemoveContent>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Website>;
        };
        websites: {
            name: "Websites";
            options: {};
            requestStream: false;
            requestType: commonpb.MessageFns<commonpb.Empty>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Websites>;
        };
        websiteUpdateContent: {
            name: "WebsiteUpdateContent";
            options: {};
            requestStream: false;
            requestType: clientpb.MessageFns<clientpb.WebsiteAddContent>;
            responseStream: false;
            responseType: clientpb.MessageFns<clientpb.Website>;
        };
        wGListForwarders: {
            name: "WGListForwarders";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGTCPForwardersReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGTCPForwarders>;
        };
        wGListSocksServers: {
            name: "WGListSocksServers";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGSocksServersReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGSocksServers>;
        };
        wGStartPortForward: {
            name: "WGStartPortForward";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGPortForwardStartReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGPortForward>;
        };
        wGStartSocks: {
            name: "WGStartSocks";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGSocksStartReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGSocks>;
        };
        wGStopPortForward: {
            name: "WGStopPortForward";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGPortForwardStopReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGPortForward>;
        };
        wGStopSocks: {
            name: "WGStopSocks";
            options: {};
            requestStream: false;
            requestType: sliverpb.MessageFns<sliverpb.WGSocksStopReq>;
            responseStream: false;
            responseType: sliverpb.MessageFns<sliverpb.WGSocks>;
        };
    };
    name: "SliverRPC";
}

Type declaration

diff --git a/docs/variables/rpcpb.protobufPackage.html b/docs/variables/rpcpb.protobufPackage.html new file mode 100644 index 0000000..62d357b --- /dev/null +++ b/docs/variables/rpcpb.protobufPackage.html @@ -0,0 +1 @@ +protobufPackage | sliver-script

Variable protobufPackageConst

protobufPackage: "rpcpb"
diff --git a/docs/variables/sliverpb.BeaconRegister-1.html b/docs/variables/sliverpb.BeaconRegister-1.html new file mode 100644 index 0000000..c15f59f --- /dev/null +++ b/docs/variables/sliverpb.BeaconRegister-1.html @@ -0,0 +1 @@ +BeaconRegister | sliver-script
diff --git a/docs/variables/sliverpb.BeaconTasks-1.html b/docs/variables/sliverpb.BeaconTasks-1.html new file mode 100644 index 0000000..9000510 --- /dev/null +++ b/docs/variables/sliverpb.BeaconTasks-1.html @@ -0,0 +1 @@ +BeaconTasks | sliver-script
diff --git a/docs/variables/sliverpb.CallExtension-1.html b/docs/variables/sliverpb.CallExtension-1.html new file mode 100644 index 0000000..ca2ebc7 --- /dev/null +++ b/docs/variables/sliverpb.CallExtension-1.html @@ -0,0 +1 @@ +CallExtension | sliver-script
diff --git a/docs/variables/sliverpb.CallExtensionReq-1.html b/docs/variables/sliverpb.CallExtensionReq-1.html new file mode 100644 index 0000000..7b29408 --- /dev/null +++ b/docs/variables/sliverpb.CallExtensionReq-1.html @@ -0,0 +1 @@ +CallExtensionReq | sliver-script
diff --git a/docs/variables/sliverpb.CdReq-1.html b/docs/variables/sliverpb.CdReq-1.html new file mode 100644 index 0000000..1867ebc --- /dev/null +++ b/docs/variables/sliverpb.CdReq-1.html @@ -0,0 +1 @@ +CdReq | sliver-script
diff --git a/docs/variables/sliverpb.Chmod-1.html b/docs/variables/sliverpb.Chmod-1.html new file mode 100644 index 0000000..9cbf965 --- /dev/null +++ b/docs/variables/sliverpb.Chmod-1.html @@ -0,0 +1 @@ +Chmod | sliver-script
diff --git a/docs/variables/sliverpb.ChmodReq-1.html b/docs/variables/sliverpb.ChmodReq-1.html new file mode 100644 index 0000000..890eae7 --- /dev/null +++ b/docs/variables/sliverpb.ChmodReq-1.html @@ -0,0 +1 @@ +ChmodReq | sliver-script
diff --git a/docs/variables/sliverpb.Chown-1.html b/docs/variables/sliverpb.Chown-1.html new file mode 100644 index 0000000..51107fa --- /dev/null +++ b/docs/variables/sliverpb.Chown-1.html @@ -0,0 +1 @@ +Chown | sliver-script
diff --git a/docs/variables/sliverpb.ChownReq-1.html b/docs/variables/sliverpb.ChownReq-1.html new file mode 100644 index 0000000..046c643 --- /dev/null +++ b/docs/variables/sliverpb.ChownReq-1.html @@ -0,0 +1 @@ +ChownReq | sliver-script
diff --git a/docs/variables/sliverpb.Chtimes-1.html b/docs/variables/sliverpb.Chtimes-1.html new file mode 100644 index 0000000..a9b7e9b --- /dev/null +++ b/docs/variables/sliverpb.Chtimes-1.html @@ -0,0 +1 @@ +Chtimes | sliver-script
diff --git a/docs/variables/sliverpb.ChtimesReq-1.html b/docs/variables/sliverpb.ChtimesReq-1.html new file mode 100644 index 0000000..c75cab0 --- /dev/null +++ b/docs/variables/sliverpb.ChtimesReq-1.html @@ -0,0 +1 @@ +ChtimesReq | sliver-script
diff --git a/docs/variables/sliverpb.CloseSession-1.html b/docs/variables/sliverpb.CloseSession-1.html new file mode 100644 index 0000000..1146dcd --- /dev/null +++ b/docs/variables/sliverpb.CloseSession-1.html @@ -0,0 +1 @@ +CloseSession | sliver-script
diff --git a/docs/variables/sliverpb.Cp-1.html b/docs/variables/sliverpb.Cp-1.html new file mode 100644 index 0000000..71942d7 --- /dev/null +++ b/docs/variables/sliverpb.Cp-1.html @@ -0,0 +1 @@ +Cp | sliver-script
diff --git a/docs/variables/sliverpb.CpReq-1.html b/docs/variables/sliverpb.CpReq-1.html new file mode 100644 index 0000000..f28ab32 --- /dev/null +++ b/docs/variables/sliverpb.CpReq-1.html @@ -0,0 +1 @@ +CpReq | sliver-script
diff --git a/docs/variables/sliverpb.CurrentTokenOwner-1.html b/docs/variables/sliverpb.CurrentTokenOwner-1.html new file mode 100644 index 0000000..65da44f --- /dev/null +++ b/docs/variables/sliverpb.CurrentTokenOwner-1.html @@ -0,0 +1 @@ +CurrentTokenOwner | sliver-script
diff --git a/docs/variables/sliverpb.CurrentTokenOwnerReq-1.html b/docs/variables/sliverpb.CurrentTokenOwnerReq-1.html new file mode 100644 index 0000000..363e51c --- /dev/null +++ b/docs/variables/sliverpb.CurrentTokenOwnerReq-1.html @@ -0,0 +1 @@ +CurrentTokenOwnerReq | sliver-script
diff --git a/docs/variables/sliverpb.DeregisterWasmExtensionReq-1.html b/docs/variables/sliverpb.DeregisterWasmExtensionReq-1.html new file mode 100644 index 0000000..745d0c3 --- /dev/null +++ b/docs/variables/sliverpb.DeregisterWasmExtensionReq-1.html @@ -0,0 +1 @@ +DeregisterWasmExtensionReq | sliver-script
diff --git a/docs/variables/sliverpb.Download-1.html b/docs/variables/sliverpb.Download-1.html new file mode 100644 index 0000000..eeb5352 --- /dev/null +++ b/docs/variables/sliverpb.Download-1.html @@ -0,0 +1 @@ +Download | sliver-script
diff --git a/docs/variables/sliverpb.DownloadReq-1.html b/docs/variables/sliverpb.DownloadReq-1.html new file mode 100644 index 0000000..1d0be12 --- /dev/null +++ b/docs/variables/sliverpb.DownloadReq-1.html @@ -0,0 +1 @@ +DownloadReq | sliver-script
diff --git a/docs/variables/sliverpb.EnvInfo-1.html b/docs/variables/sliverpb.EnvInfo-1.html new file mode 100644 index 0000000..a90e542 --- /dev/null +++ b/docs/variables/sliverpb.EnvInfo-1.html @@ -0,0 +1 @@ +EnvInfo | sliver-script
diff --git a/docs/variables/sliverpb.EnvReq-1.html b/docs/variables/sliverpb.EnvReq-1.html new file mode 100644 index 0000000..f199b41 --- /dev/null +++ b/docs/variables/sliverpb.EnvReq-1.html @@ -0,0 +1 @@ +EnvReq | sliver-script
diff --git a/docs/variables/sliverpb.Envelope-1.html b/docs/variables/sliverpb.Envelope-1.html new file mode 100644 index 0000000..349e4f8 --- /dev/null +++ b/docs/variables/sliverpb.Envelope-1.html @@ -0,0 +1 @@ +Envelope | sliver-script
diff --git a/docs/variables/sliverpb.ExecWasmExtension-1.html b/docs/variables/sliverpb.ExecWasmExtension-1.html new file mode 100644 index 0000000..7fbe7d7 --- /dev/null +++ b/docs/variables/sliverpb.ExecWasmExtension-1.html @@ -0,0 +1 @@ +ExecWasmExtension | sliver-script
diff --git a/docs/variables/sliverpb.ExecWasmExtensionReq-1.html b/docs/variables/sliverpb.ExecWasmExtensionReq-1.html new file mode 100644 index 0000000..7cddac7 --- /dev/null +++ b/docs/variables/sliverpb.ExecWasmExtensionReq-1.html @@ -0,0 +1 @@ +ExecWasmExtensionReq | sliver-script
diff --git a/docs/variables/sliverpb.ExecWasmExtensionReq_MemFSEntry-1.html b/docs/variables/sliverpb.ExecWasmExtensionReq_MemFSEntry-1.html new file mode 100644 index 0000000..0c66f1e --- /dev/null +++ b/docs/variables/sliverpb.ExecWasmExtensionReq_MemFSEntry-1.html @@ -0,0 +1 @@ +ExecWasmExtensionReq_MemFSEntry | sliver-script

Variable ExecWasmExtensionReq_MemFSEntry

ExecWasmExtensionReq_MemFSEntry: sliverpb.MessageFns<
    sliverpb.ExecWasmExtensionReq_MemFSEntry,
>
diff --git a/docs/variables/sliverpb.Execute-1.html b/docs/variables/sliverpb.Execute-1.html new file mode 100644 index 0000000..54df443 --- /dev/null +++ b/docs/variables/sliverpb.Execute-1.html @@ -0,0 +1 @@ +Execute | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteAssembly-1.html b/docs/variables/sliverpb.ExecuteAssembly-1.html new file mode 100644 index 0000000..ddfd9d7 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteAssembly-1.html @@ -0,0 +1 @@ +ExecuteAssembly | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteAssemblyReq-1.html b/docs/variables/sliverpb.ExecuteAssemblyReq-1.html new file mode 100644 index 0000000..c5a6203 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteAssemblyReq-1.html @@ -0,0 +1 @@ +ExecuteAssemblyReq | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteChild-1.html b/docs/variables/sliverpb.ExecuteChild-1.html new file mode 100644 index 0000000..de3a9c0 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteChild-1.html @@ -0,0 +1 @@ +ExecuteChild | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteChildren-1.html b/docs/variables/sliverpb.ExecuteChildren-1.html new file mode 100644 index 0000000..fda72ce --- /dev/null +++ b/docs/variables/sliverpb.ExecuteChildren-1.html @@ -0,0 +1 @@ +ExecuteChildren | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteChildrenReq-1.html b/docs/variables/sliverpb.ExecuteChildrenReq-1.html new file mode 100644 index 0000000..1a1cca4 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteChildrenReq-1.html @@ -0,0 +1 @@ +ExecuteChildrenReq | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteReq-1.html b/docs/variables/sliverpb.ExecuteReq-1.html new file mode 100644 index 0000000..a1396a8 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteReq-1.html @@ -0,0 +1 @@ +ExecuteReq | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteReq_EnvEntry-1.html b/docs/variables/sliverpb.ExecuteReq_EnvEntry-1.html new file mode 100644 index 0000000..dc6f005 --- /dev/null +++ b/docs/variables/sliverpb.ExecuteReq_EnvEntry-1.html @@ -0,0 +1 @@ +ExecuteReq_EnvEntry | sliver-script
diff --git a/docs/variables/sliverpb.ExecuteWindowsReq-1.html b/docs/variables/sliverpb.ExecuteWindowsReq-1.html new file mode 100644 index 0000000..97cc7bf --- /dev/null +++ b/docs/variables/sliverpb.ExecuteWindowsReq-1.html @@ -0,0 +1 @@ +ExecuteWindowsReq | sliver-script
diff --git a/docs/variables/sliverpb.FileInfo-1.html b/docs/variables/sliverpb.FileInfo-1.html new file mode 100644 index 0000000..b4a2a03 --- /dev/null +++ b/docs/variables/sliverpb.FileInfo-1.html @@ -0,0 +1 @@ +FileInfo | sliver-script
diff --git a/docs/variables/sliverpb.GetPrivs-1.html b/docs/variables/sliverpb.GetPrivs-1.html new file mode 100644 index 0000000..0646a4a --- /dev/null +++ b/docs/variables/sliverpb.GetPrivs-1.html @@ -0,0 +1 @@ +GetPrivs | sliver-script
diff --git a/docs/variables/sliverpb.GetPrivsReq-1.html b/docs/variables/sliverpb.GetPrivsReq-1.html new file mode 100644 index 0000000..250b50a --- /dev/null +++ b/docs/variables/sliverpb.GetPrivsReq-1.html @@ -0,0 +1 @@ +GetPrivsReq | sliver-script
diff --git a/docs/variables/sliverpb.GetSystem-1.html b/docs/variables/sliverpb.GetSystem-1.html new file mode 100644 index 0000000..08af61a --- /dev/null +++ b/docs/variables/sliverpb.GetSystem-1.html @@ -0,0 +1 @@ +GetSystem | sliver-script
diff --git a/docs/variables/sliverpb.Grep-1.html b/docs/variables/sliverpb.Grep-1.html new file mode 100644 index 0000000..94f80bc --- /dev/null +++ b/docs/variables/sliverpb.Grep-1.html @@ -0,0 +1 @@ +Grep | sliver-script
diff --git a/docs/variables/sliverpb.GrepLinePosition-1.html b/docs/variables/sliverpb.GrepLinePosition-1.html new file mode 100644 index 0000000..0856c2b --- /dev/null +++ b/docs/variables/sliverpb.GrepLinePosition-1.html @@ -0,0 +1 @@ +GrepLinePosition | sliver-script
diff --git a/docs/variables/sliverpb.GrepReq-1.html b/docs/variables/sliverpb.GrepReq-1.html new file mode 100644 index 0000000..7487efb --- /dev/null +++ b/docs/variables/sliverpb.GrepReq-1.html @@ -0,0 +1 @@ +GrepReq | sliver-script
diff --git a/docs/variables/sliverpb.GrepResult-1.html b/docs/variables/sliverpb.GrepResult-1.html new file mode 100644 index 0000000..ce161f2 --- /dev/null +++ b/docs/variables/sliverpb.GrepResult-1.html @@ -0,0 +1 @@ +GrepResult | sliver-script
diff --git a/docs/variables/sliverpb.GrepResultsForFile-1.html b/docs/variables/sliverpb.GrepResultsForFile-1.html new file mode 100644 index 0000000..bdb4db2 --- /dev/null +++ b/docs/variables/sliverpb.GrepResultsForFile-1.html @@ -0,0 +1 @@ +GrepResultsForFile | sliver-script
diff --git a/docs/variables/sliverpb.Grep_ResultsEntry-1.html b/docs/variables/sliverpb.Grep_ResultsEntry-1.html new file mode 100644 index 0000000..9f522c8 --- /dev/null +++ b/docs/variables/sliverpb.Grep_ResultsEntry-1.html @@ -0,0 +1 @@ +Grep_ResultsEntry | sliver-script
diff --git a/docs/variables/sliverpb.HTTPSessionInit-1.html b/docs/variables/sliverpb.HTTPSessionInit-1.html new file mode 100644 index 0000000..3565a3e --- /dev/null +++ b/docs/variables/sliverpb.HTTPSessionInit-1.html @@ -0,0 +1 @@ +HTTPSessionInit | sliver-script
diff --git a/docs/variables/sliverpb.Ifconfig-1.html b/docs/variables/sliverpb.Ifconfig-1.html new file mode 100644 index 0000000..484e80d --- /dev/null +++ b/docs/variables/sliverpb.Ifconfig-1.html @@ -0,0 +1 @@ +Ifconfig | sliver-script
diff --git a/docs/variables/sliverpb.IfconfigReq-1.html b/docs/variables/sliverpb.IfconfigReq-1.html new file mode 100644 index 0000000..4b5e19d --- /dev/null +++ b/docs/variables/sliverpb.IfconfigReq-1.html @@ -0,0 +1 @@ +IfconfigReq | sliver-script
diff --git a/docs/variables/sliverpb.Impersonate-1.html b/docs/variables/sliverpb.Impersonate-1.html new file mode 100644 index 0000000..2d8085f --- /dev/null +++ b/docs/variables/sliverpb.Impersonate-1.html @@ -0,0 +1 @@ +Impersonate | sliver-script
diff --git a/docs/variables/sliverpb.ImpersonateReq-1.html b/docs/variables/sliverpb.ImpersonateReq-1.html new file mode 100644 index 0000000..248c080 --- /dev/null +++ b/docs/variables/sliverpb.ImpersonateReq-1.html @@ -0,0 +1 @@ +ImpersonateReq | sliver-script
diff --git a/docs/variables/sliverpb.InvokeExecuteAssemblyReq-1.html b/docs/variables/sliverpb.InvokeExecuteAssemblyReq-1.html new file mode 100644 index 0000000..996a55b --- /dev/null +++ b/docs/variables/sliverpb.InvokeExecuteAssemblyReq-1.html @@ -0,0 +1 @@ +InvokeExecuteAssemblyReq | sliver-script
diff --git a/docs/variables/sliverpb.InvokeGetSystemReq-1.html b/docs/variables/sliverpb.InvokeGetSystemReq-1.html new file mode 100644 index 0000000..4ce5f9b --- /dev/null +++ b/docs/variables/sliverpb.InvokeGetSystemReq-1.html @@ -0,0 +1 @@ +InvokeGetSystemReq | sliver-script
diff --git a/docs/variables/sliverpb.InvokeInProcExecuteAssemblyReq-1.html b/docs/variables/sliverpb.InvokeInProcExecuteAssemblyReq-1.html new file mode 100644 index 0000000..6c7db83 --- /dev/null +++ b/docs/variables/sliverpb.InvokeInProcExecuteAssemblyReq-1.html @@ -0,0 +1 @@ +InvokeInProcExecuteAssemblyReq | sliver-script

Variable InvokeInProcExecuteAssemblyReq

InvokeInProcExecuteAssemblyReq: sliverpb.MessageFns<
    sliverpb.InvokeInProcExecuteAssemblyReq,
>
diff --git a/docs/variables/sliverpb.InvokeMigrateReq-1.html b/docs/variables/sliverpb.InvokeMigrateReq-1.html new file mode 100644 index 0000000..f637ca3 --- /dev/null +++ b/docs/variables/sliverpb.InvokeMigrateReq-1.html @@ -0,0 +1 @@ +InvokeMigrateReq | sliver-script
diff --git a/docs/variables/sliverpb.InvokeSpawnDllReq-1.html b/docs/variables/sliverpb.InvokeSpawnDllReq-1.html new file mode 100644 index 0000000..a490553 --- /dev/null +++ b/docs/variables/sliverpb.InvokeSpawnDllReq-1.html @@ -0,0 +1 @@ +InvokeSpawnDllReq | sliver-script
diff --git a/docs/variables/sliverpb.KillReq-1.html b/docs/variables/sliverpb.KillReq-1.html new file mode 100644 index 0000000..e384925 --- /dev/null +++ b/docs/variables/sliverpb.KillReq-1.html @@ -0,0 +1 @@ +KillReq | sliver-script
diff --git a/docs/variables/sliverpb.ListExtensions-1.html b/docs/variables/sliverpb.ListExtensions-1.html new file mode 100644 index 0000000..90b5e63 --- /dev/null +++ b/docs/variables/sliverpb.ListExtensions-1.html @@ -0,0 +1 @@ +ListExtensions | sliver-script
diff --git a/docs/variables/sliverpb.ListExtensionsReq-1.html b/docs/variables/sliverpb.ListExtensionsReq-1.html new file mode 100644 index 0000000..3abc887 --- /dev/null +++ b/docs/variables/sliverpb.ListExtensionsReq-1.html @@ -0,0 +1 @@ +ListExtensionsReq | sliver-script
diff --git a/docs/variables/sliverpb.ListWasmExtensions-1.html b/docs/variables/sliverpb.ListWasmExtensions-1.html new file mode 100644 index 0000000..f080971 --- /dev/null +++ b/docs/variables/sliverpb.ListWasmExtensions-1.html @@ -0,0 +1 @@ +ListWasmExtensions | sliver-script
diff --git a/docs/variables/sliverpb.ListWasmExtensionsReq-1.html b/docs/variables/sliverpb.ListWasmExtensionsReq-1.html new file mode 100644 index 0000000..5624c06 --- /dev/null +++ b/docs/variables/sliverpb.ListWasmExtensionsReq-1.html @@ -0,0 +1 @@ +ListWasmExtensionsReq | sliver-script
diff --git a/docs/variables/sliverpb.Ls-1.html b/docs/variables/sliverpb.Ls-1.html new file mode 100644 index 0000000..f66e912 --- /dev/null +++ b/docs/variables/sliverpb.Ls-1.html @@ -0,0 +1 @@ +Ls | sliver-script
diff --git a/docs/variables/sliverpb.LsReq-1.html b/docs/variables/sliverpb.LsReq-1.html new file mode 100644 index 0000000..81882b2 --- /dev/null +++ b/docs/variables/sliverpb.LsReq-1.html @@ -0,0 +1 @@ +LsReq | sliver-script
diff --git a/docs/variables/sliverpb.MakeToken-1.html b/docs/variables/sliverpb.MakeToken-1.html new file mode 100644 index 0000000..02a75d2 --- /dev/null +++ b/docs/variables/sliverpb.MakeToken-1.html @@ -0,0 +1 @@ +MakeToken | sliver-script
diff --git a/docs/variables/sliverpb.MakeTokenReq-1.html b/docs/variables/sliverpb.MakeTokenReq-1.html new file mode 100644 index 0000000..346fb7e --- /dev/null +++ b/docs/variables/sliverpb.MakeTokenReq-1.html @@ -0,0 +1 @@ +MakeTokenReq | sliver-script
diff --git a/docs/variables/sliverpb.MemfilesAdd-1.html b/docs/variables/sliverpb.MemfilesAdd-1.html new file mode 100644 index 0000000..ee90e83 --- /dev/null +++ b/docs/variables/sliverpb.MemfilesAdd-1.html @@ -0,0 +1 @@ +MemfilesAdd | sliver-script
diff --git a/docs/variables/sliverpb.MemfilesAddReq-1.html b/docs/variables/sliverpb.MemfilesAddReq-1.html new file mode 100644 index 0000000..075525d --- /dev/null +++ b/docs/variables/sliverpb.MemfilesAddReq-1.html @@ -0,0 +1 @@ +MemfilesAddReq | sliver-script
diff --git a/docs/variables/sliverpb.MemfilesListReq-1.html b/docs/variables/sliverpb.MemfilesListReq-1.html new file mode 100644 index 0000000..21b2b16 --- /dev/null +++ b/docs/variables/sliverpb.MemfilesListReq-1.html @@ -0,0 +1 @@ +MemfilesListReq | sliver-script
diff --git a/docs/variables/sliverpb.MemfilesRm-1.html b/docs/variables/sliverpb.MemfilesRm-1.html new file mode 100644 index 0000000..8522877 --- /dev/null +++ b/docs/variables/sliverpb.MemfilesRm-1.html @@ -0,0 +1 @@ +MemfilesRm | sliver-script
diff --git a/docs/variables/sliverpb.MemfilesRmReq-1.html b/docs/variables/sliverpb.MemfilesRmReq-1.html new file mode 100644 index 0000000..58ee7d2 --- /dev/null +++ b/docs/variables/sliverpb.MemfilesRmReq-1.html @@ -0,0 +1 @@ +MemfilesRmReq | sliver-script
diff --git a/docs/variables/sliverpb.Migrate-1.html b/docs/variables/sliverpb.Migrate-1.html new file mode 100644 index 0000000..890bf2e --- /dev/null +++ b/docs/variables/sliverpb.Migrate-1.html @@ -0,0 +1 @@ +Migrate | sliver-script
diff --git a/docs/variables/sliverpb.Mkdir-1.html b/docs/variables/sliverpb.Mkdir-1.html new file mode 100644 index 0000000..c7acb89 --- /dev/null +++ b/docs/variables/sliverpb.Mkdir-1.html @@ -0,0 +1 @@ +Mkdir | sliver-script
diff --git a/docs/variables/sliverpb.MkdirReq-1.html b/docs/variables/sliverpb.MkdirReq-1.html new file mode 100644 index 0000000..63c7b63 --- /dev/null +++ b/docs/variables/sliverpb.MkdirReq-1.html @@ -0,0 +1 @@ +MkdirReq | sliver-script
diff --git a/docs/variables/sliverpb.Mount-1.html b/docs/variables/sliverpb.Mount-1.html new file mode 100644 index 0000000..13988c6 --- /dev/null +++ b/docs/variables/sliverpb.Mount-1.html @@ -0,0 +1 @@ +Mount | sliver-script
diff --git a/docs/variables/sliverpb.MountInfo-1.html b/docs/variables/sliverpb.MountInfo-1.html new file mode 100644 index 0000000..1b30f11 --- /dev/null +++ b/docs/variables/sliverpb.MountInfo-1.html @@ -0,0 +1 @@ +MountInfo | sliver-script
diff --git a/docs/variables/sliverpb.MountReq-1.html b/docs/variables/sliverpb.MountReq-1.html new file mode 100644 index 0000000..2ad01fd --- /dev/null +++ b/docs/variables/sliverpb.MountReq-1.html @@ -0,0 +1 @@ +MountReq | sliver-script
diff --git a/docs/variables/sliverpb.Mv-1.html b/docs/variables/sliverpb.Mv-1.html new file mode 100644 index 0000000..a0ec9d2 --- /dev/null +++ b/docs/variables/sliverpb.Mv-1.html @@ -0,0 +1 @@ +Mv | sliver-script
diff --git a/docs/variables/sliverpb.MvReq-1.html b/docs/variables/sliverpb.MvReq-1.html new file mode 100644 index 0000000..5dac0af --- /dev/null +++ b/docs/variables/sliverpb.MvReq-1.html @@ -0,0 +1 @@ +MvReq | sliver-script
diff --git a/docs/variables/sliverpb.NetConnPivot-1.html b/docs/variables/sliverpb.NetConnPivot-1.html new file mode 100644 index 0000000..bda2e3f --- /dev/null +++ b/docs/variables/sliverpb.NetConnPivot-1.html @@ -0,0 +1 @@ +NetConnPivot | sliver-script
diff --git a/docs/variables/sliverpb.NetInterface-1.html b/docs/variables/sliverpb.NetInterface-1.html new file mode 100644 index 0000000..c4799c1 --- /dev/null +++ b/docs/variables/sliverpb.NetInterface-1.html @@ -0,0 +1 @@ +NetInterface | sliver-script
diff --git a/docs/variables/sliverpb.Netstat-1.html b/docs/variables/sliverpb.Netstat-1.html new file mode 100644 index 0000000..dfc1daf --- /dev/null +++ b/docs/variables/sliverpb.Netstat-1.html @@ -0,0 +1 @@ +Netstat | sliver-script
diff --git a/docs/variables/sliverpb.NetstatReq-1.html b/docs/variables/sliverpb.NetstatReq-1.html new file mode 100644 index 0000000..e806670 --- /dev/null +++ b/docs/variables/sliverpb.NetstatReq-1.html @@ -0,0 +1 @@ +NetstatReq | sliver-script
diff --git a/docs/variables/sliverpb.OpenSession-1.html b/docs/variables/sliverpb.OpenSession-1.html new file mode 100644 index 0000000..5b30ae0 --- /dev/null +++ b/docs/variables/sliverpb.OpenSession-1.html @@ -0,0 +1 @@ +OpenSession | sliver-script
diff --git a/docs/variables/sliverpb.Ping-1.html b/docs/variables/sliverpb.Ping-1.html new file mode 100644 index 0000000..62aef25 --- /dev/null +++ b/docs/variables/sliverpb.Ping-1.html @@ -0,0 +1 @@ +Ping | sliver-script
diff --git a/docs/variables/sliverpb.PivotHello-1.html b/docs/variables/sliverpb.PivotHello-1.html new file mode 100644 index 0000000..28c3207 --- /dev/null +++ b/docs/variables/sliverpb.PivotHello-1.html @@ -0,0 +1 @@ +PivotHello | sliver-script
diff --git a/docs/variables/sliverpb.PivotListener-1.html b/docs/variables/sliverpb.PivotListener-1.html new file mode 100644 index 0000000..d83ba2f --- /dev/null +++ b/docs/variables/sliverpb.PivotListener-1.html @@ -0,0 +1 @@ +PivotListener | sliver-script
diff --git a/docs/variables/sliverpb.PivotListeners-1.html b/docs/variables/sliverpb.PivotListeners-1.html new file mode 100644 index 0000000..c2fc499 --- /dev/null +++ b/docs/variables/sliverpb.PivotListeners-1.html @@ -0,0 +1 @@ +PivotListeners | sliver-script
diff --git a/docs/variables/sliverpb.PivotListenersReq-1.html b/docs/variables/sliverpb.PivotListenersReq-1.html new file mode 100644 index 0000000..83c9105 --- /dev/null +++ b/docs/variables/sliverpb.PivotListenersReq-1.html @@ -0,0 +1 @@ +PivotListenersReq | sliver-script
diff --git a/docs/variables/sliverpb.PivotPeer-1.html b/docs/variables/sliverpb.PivotPeer-1.html new file mode 100644 index 0000000..d65a737 --- /dev/null +++ b/docs/variables/sliverpb.PivotPeer-1.html @@ -0,0 +1 @@ +PivotPeer | sliver-script
diff --git a/docs/variables/sliverpb.PivotPeerEnvelope-1.html b/docs/variables/sliverpb.PivotPeerEnvelope-1.html new file mode 100644 index 0000000..a3b6b5b --- /dev/null +++ b/docs/variables/sliverpb.PivotPeerEnvelope-1.html @@ -0,0 +1 @@ +PivotPeerEnvelope | sliver-script
diff --git a/docs/variables/sliverpb.PivotPeerFailure-1.html b/docs/variables/sliverpb.PivotPeerFailure-1.html new file mode 100644 index 0000000..e3358ae --- /dev/null +++ b/docs/variables/sliverpb.PivotPeerFailure-1.html @@ -0,0 +1 @@ +PivotPeerFailure | sliver-script
diff --git a/docs/variables/sliverpb.PivotPing-1.html b/docs/variables/sliverpb.PivotPing-1.html new file mode 100644 index 0000000..79b610d --- /dev/null +++ b/docs/variables/sliverpb.PivotPing-1.html @@ -0,0 +1 @@ +PivotPing | sliver-script
diff --git a/docs/variables/sliverpb.PivotServerKeyExchange-1.html b/docs/variables/sliverpb.PivotServerKeyExchange-1.html new file mode 100644 index 0000000..0f66b03 --- /dev/null +++ b/docs/variables/sliverpb.PivotServerKeyExchange-1.html @@ -0,0 +1 @@ +PivotServerKeyExchange | sliver-script
diff --git a/docs/variables/sliverpb.PivotStartListenerReq-1.html b/docs/variables/sliverpb.PivotStartListenerReq-1.html new file mode 100644 index 0000000..5c06634 --- /dev/null +++ b/docs/variables/sliverpb.PivotStartListenerReq-1.html @@ -0,0 +1 @@ +PivotStartListenerReq | sliver-script
diff --git a/docs/variables/sliverpb.PivotStopListenerReq-1.html b/docs/variables/sliverpb.PivotStopListenerReq-1.html new file mode 100644 index 0000000..62855c4 --- /dev/null +++ b/docs/variables/sliverpb.PivotStopListenerReq-1.html @@ -0,0 +1 @@ +PivotStopListenerReq | sliver-script
diff --git a/docs/variables/sliverpb.PollInterval-1.html b/docs/variables/sliverpb.PollInterval-1.html new file mode 100644 index 0000000..17f8fab --- /dev/null +++ b/docs/variables/sliverpb.PollInterval-1.html @@ -0,0 +1 @@ +PollInterval | sliver-script
diff --git a/docs/variables/sliverpb.PollIntervalReq-1.html b/docs/variables/sliverpb.PollIntervalReq-1.html new file mode 100644 index 0000000..a1fd7f8 --- /dev/null +++ b/docs/variables/sliverpb.PollIntervalReq-1.html @@ -0,0 +1 @@ +PollIntervalReq | sliver-script
diff --git a/docs/variables/sliverpb.Portfwd-1.html b/docs/variables/sliverpb.Portfwd-1.html new file mode 100644 index 0000000..2f3700f --- /dev/null +++ b/docs/variables/sliverpb.Portfwd-1.html @@ -0,0 +1 @@ +Portfwd | sliver-script
diff --git a/docs/variables/sliverpb.PortfwdReq-1.html b/docs/variables/sliverpb.PortfwdReq-1.html new file mode 100644 index 0000000..6934b42 --- /dev/null +++ b/docs/variables/sliverpb.PortfwdReq-1.html @@ -0,0 +1 @@ +PortfwdReq | sliver-script
diff --git a/docs/variables/sliverpb.ProcessDump-1.html b/docs/variables/sliverpb.ProcessDump-1.html new file mode 100644 index 0000000..0e7b655 --- /dev/null +++ b/docs/variables/sliverpb.ProcessDump-1.html @@ -0,0 +1 @@ +ProcessDump | sliver-script
diff --git a/docs/variables/sliverpb.ProcessDumpReq-1.html b/docs/variables/sliverpb.ProcessDumpReq-1.html new file mode 100644 index 0000000..022db03 --- /dev/null +++ b/docs/variables/sliverpb.ProcessDumpReq-1.html @@ -0,0 +1 @@ +ProcessDumpReq | sliver-script
diff --git a/docs/variables/sliverpb.Ps-1.html b/docs/variables/sliverpb.Ps-1.html new file mode 100644 index 0000000..9dbc0a3 --- /dev/null +++ b/docs/variables/sliverpb.Ps-1.html @@ -0,0 +1 @@ +Ps | sliver-script
diff --git a/docs/variables/sliverpb.PsReq-1.html b/docs/variables/sliverpb.PsReq-1.html new file mode 100644 index 0000000..8632523 --- /dev/null +++ b/docs/variables/sliverpb.PsReq-1.html @@ -0,0 +1 @@ +PsReq | sliver-script
diff --git a/docs/variables/sliverpb.Pwd-1.html b/docs/variables/sliverpb.Pwd-1.html new file mode 100644 index 0000000..90208b1 --- /dev/null +++ b/docs/variables/sliverpb.Pwd-1.html @@ -0,0 +1 @@ +Pwd | sliver-script
diff --git a/docs/variables/sliverpb.PwdReq-1.html b/docs/variables/sliverpb.PwdReq-1.html new file mode 100644 index 0000000..6d34d74 --- /dev/null +++ b/docs/variables/sliverpb.PwdReq-1.html @@ -0,0 +1 @@ +PwdReq | sliver-script
diff --git a/docs/variables/sliverpb.RPortfwd-1.html b/docs/variables/sliverpb.RPortfwd-1.html new file mode 100644 index 0000000..6907693 --- /dev/null +++ b/docs/variables/sliverpb.RPortfwd-1.html @@ -0,0 +1 @@ +RPortfwd | sliver-script
diff --git a/docs/variables/sliverpb.RPortfwdReq-1.html b/docs/variables/sliverpb.RPortfwdReq-1.html new file mode 100644 index 0000000..ab5dba2 --- /dev/null +++ b/docs/variables/sliverpb.RPortfwdReq-1.html @@ -0,0 +1 @@ +RPortfwdReq | sliver-script
diff --git a/docs/variables/sliverpb.Reconfigure-1.html b/docs/variables/sliverpb.Reconfigure-1.html new file mode 100644 index 0000000..84cfb03 --- /dev/null +++ b/docs/variables/sliverpb.Reconfigure-1.html @@ -0,0 +1 @@ +Reconfigure | sliver-script
diff --git a/docs/variables/sliverpb.ReconfigureReq-1.html b/docs/variables/sliverpb.ReconfigureReq-1.html new file mode 100644 index 0000000..b509aa7 --- /dev/null +++ b/docs/variables/sliverpb.ReconfigureReq-1.html @@ -0,0 +1 @@ +ReconfigureReq | sliver-script
diff --git a/docs/variables/sliverpb.Register-1.html b/docs/variables/sliverpb.Register-1.html new file mode 100644 index 0000000..16ae873 --- /dev/null +++ b/docs/variables/sliverpb.Register-1.html @@ -0,0 +1 @@ +Register | sliver-script
diff --git a/docs/variables/sliverpb.RegisterExtension-1.html b/docs/variables/sliverpb.RegisterExtension-1.html new file mode 100644 index 0000000..6b86552 --- /dev/null +++ b/docs/variables/sliverpb.RegisterExtension-1.html @@ -0,0 +1 @@ +RegisterExtension | sliver-script
diff --git a/docs/variables/sliverpb.RegisterExtensionReq-1.html b/docs/variables/sliverpb.RegisterExtensionReq-1.html new file mode 100644 index 0000000..f1c7258 --- /dev/null +++ b/docs/variables/sliverpb.RegisterExtensionReq-1.html @@ -0,0 +1 @@ +RegisterExtensionReq | sliver-script
diff --git a/docs/variables/sliverpb.RegisterWasmExtension-1.html b/docs/variables/sliverpb.RegisterWasmExtension-1.html new file mode 100644 index 0000000..9f8728d --- /dev/null +++ b/docs/variables/sliverpb.RegisterWasmExtension-1.html @@ -0,0 +1 @@ +RegisterWasmExtension | sliver-script
diff --git a/docs/variables/sliverpb.RegisterWasmExtensionReq-1.html b/docs/variables/sliverpb.RegisterWasmExtensionReq-1.html new file mode 100644 index 0000000..8bd3304 --- /dev/null +++ b/docs/variables/sliverpb.RegisterWasmExtensionReq-1.html @@ -0,0 +1 @@ +RegisterWasmExtensionReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryCreateKey-1.html b/docs/variables/sliverpb.RegistryCreateKey-1.html new file mode 100644 index 0000000..7ab957b --- /dev/null +++ b/docs/variables/sliverpb.RegistryCreateKey-1.html @@ -0,0 +1 @@ +RegistryCreateKey | sliver-script
diff --git a/docs/variables/sliverpb.RegistryCreateKeyReq-1.html b/docs/variables/sliverpb.RegistryCreateKeyReq-1.html new file mode 100644 index 0000000..d384040 --- /dev/null +++ b/docs/variables/sliverpb.RegistryCreateKeyReq-1.html @@ -0,0 +1 @@ +RegistryCreateKeyReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryDeleteKey-1.html b/docs/variables/sliverpb.RegistryDeleteKey-1.html new file mode 100644 index 0000000..79f5320 --- /dev/null +++ b/docs/variables/sliverpb.RegistryDeleteKey-1.html @@ -0,0 +1 @@ +RegistryDeleteKey | sliver-script
diff --git a/docs/variables/sliverpb.RegistryDeleteKeyReq-1.html b/docs/variables/sliverpb.RegistryDeleteKeyReq-1.html new file mode 100644 index 0000000..84cb55c --- /dev/null +++ b/docs/variables/sliverpb.RegistryDeleteKeyReq-1.html @@ -0,0 +1 @@ +RegistryDeleteKeyReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryListValuesReq-1.html b/docs/variables/sliverpb.RegistryListValuesReq-1.html new file mode 100644 index 0000000..3d2c20b --- /dev/null +++ b/docs/variables/sliverpb.RegistryListValuesReq-1.html @@ -0,0 +1 @@ +RegistryListValuesReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryRead-1.html b/docs/variables/sliverpb.RegistryRead-1.html new file mode 100644 index 0000000..71d6c91 --- /dev/null +++ b/docs/variables/sliverpb.RegistryRead-1.html @@ -0,0 +1 @@ +RegistryRead | sliver-script
diff --git a/docs/variables/sliverpb.RegistryReadHive-1.html b/docs/variables/sliverpb.RegistryReadHive-1.html new file mode 100644 index 0000000..e48abd5 --- /dev/null +++ b/docs/variables/sliverpb.RegistryReadHive-1.html @@ -0,0 +1 @@ +RegistryReadHive | sliver-script
diff --git a/docs/variables/sliverpb.RegistryReadHiveReq-1.html b/docs/variables/sliverpb.RegistryReadHiveReq-1.html new file mode 100644 index 0000000..2d6acd8 --- /dev/null +++ b/docs/variables/sliverpb.RegistryReadHiveReq-1.html @@ -0,0 +1 @@ +RegistryReadHiveReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryReadReq-1.html b/docs/variables/sliverpb.RegistryReadReq-1.html new file mode 100644 index 0000000..42718dd --- /dev/null +++ b/docs/variables/sliverpb.RegistryReadReq-1.html @@ -0,0 +1 @@ +RegistryReadReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistrySubKeyList-1.html b/docs/variables/sliverpb.RegistrySubKeyList-1.html new file mode 100644 index 0000000..03079c4 --- /dev/null +++ b/docs/variables/sliverpb.RegistrySubKeyList-1.html @@ -0,0 +1 @@ +RegistrySubKeyList | sliver-script
diff --git a/docs/variables/sliverpb.RegistrySubKeyListReq-1.html b/docs/variables/sliverpb.RegistrySubKeyListReq-1.html new file mode 100644 index 0000000..14c8f6c --- /dev/null +++ b/docs/variables/sliverpb.RegistrySubKeyListReq-1.html @@ -0,0 +1 @@ +RegistrySubKeyListReq | sliver-script
diff --git a/docs/variables/sliverpb.RegistryValuesList-1.html b/docs/variables/sliverpb.RegistryValuesList-1.html new file mode 100644 index 0000000..0b6dff8 --- /dev/null +++ b/docs/variables/sliverpb.RegistryValuesList-1.html @@ -0,0 +1 @@ +RegistryValuesList | sliver-script
diff --git a/docs/variables/sliverpb.RegistryWrite-1.html b/docs/variables/sliverpb.RegistryWrite-1.html new file mode 100644 index 0000000..19a5ff0 --- /dev/null +++ b/docs/variables/sliverpb.RegistryWrite-1.html @@ -0,0 +1 @@ +RegistryWrite | sliver-script
diff --git a/docs/variables/sliverpb.RegistryWriteReq-1.html b/docs/variables/sliverpb.RegistryWriteReq-1.html new file mode 100644 index 0000000..2cce92b --- /dev/null +++ b/docs/variables/sliverpb.RegistryWriteReq-1.html @@ -0,0 +1 @@ +RegistryWriteReq | sliver-script
diff --git a/docs/variables/sliverpb.RemoveServiceReq-1.html b/docs/variables/sliverpb.RemoveServiceReq-1.html new file mode 100644 index 0000000..69ae69b --- /dev/null +++ b/docs/variables/sliverpb.RemoveServiceReq-1.html @@ -0,0 +1 @@ +RemoveServiceReq | sliver-script
diff --git a/docs/variables/sliverpb.RevToSelf-1.html b/docs/variables/sliverpb.RevToSelf-1.html new file mode 100644 index 0000000..55893f0 --- /dev/null +++ b/docs/variables/sliverpb.RevToSelf-1.html @@ -0,0 +1 @@ +RevToSelf | sliver-script
diff --git a/docs/variables/sliverpb.RevToSelfReq-1.html b/docs/variables/sliverpb.RevToSelfReq-1.html new file mode 100644 index 0000000..097c993 --- /dev/null +++ b/docs/variables/sliverpb.RevToSelfReq-1.html @@ -0,0 +1 @@ +RevToSelfReq | sliver-script
diff --git a/docs/variables/sliverpb.Rm-1.html b/docs/variables/sliverpb.Rm-1.html new file mode 100644 index 0000000..5be3ac5 --- /dev/null +++ b/docs/variables/sliverpb.Rm-1.html @@ -0,0 +1 @@ +Rm | sliver-script
diff --git a/docs/variables/sliverpb.RmReq-1.html b/docs/variables/sliverpb.RmReq-1.html new file mode 100644 index 0000000..8d74263 --- /dev/null +++ b/docs/variables/sliverpb.RmReq-1.html @@ -0,0 +1 @@ +RmReq | sliver-script
diff --git a/docs/variables/sliverpb.RportFwdListener-1.html b/docs/variables/sliverpb.RportFwdListener-1.html new file mode 100644 index 0000000..4badf1c --- /dev/null +++ b/docs/variables/sliverpb.RportFwdListener-1.html @@ -0,0 +1 @@ +RportFwdListener | sliver-script
diff --git a/docs/variables/sliverpb.RportFwdListeners-1.html b/docs/variables/sliverpb.RportFwdListeners-1.html new file mode 100644 index 0000000..54b88a5 --- /dev/null +++ b/docs/variables/sliverpb.RportFwdListeners-1.html @@ -0,0 +1 @@ +RportFwdListeners | sliver-script
diff --git a/docs/variables/sliverpb.RportFwdListenersReq-1.html b/docs/variables/sliverpb.RportFwdListenersReq-1.html new file mode 100644 index 0000000..df86ca0 --- /dev/null +++ b/docs/variables/sliverpb.RportFwdListenersReq-1.html @@ -0,0 +1 @@ +RportFwdListenersReq | sliver-script
diff --git a/docs/variables/sliverpb.RportFwdStartListenerReq-1.html b/docs/variables/sliverpb.RportFwdStartListenerReq-1.html new file mode 100644 index 0000000..8dc9398 --- /dev/null +++ b/docs/variables/sliverpb.RportFwdStartListenerReq-1.html @@ -0,0 +1 @@ +RportFwdStartListenerReq | sliver-script
diff --git a/docs/variables/sliverpb.RportFwdStopListenerReq-1.html b/docs/variables/sliverpb.RportFwdStopListenerReq-1.html new file mode 100644 index 0000000..d8775f2 --- /dev/null +++ b/docs/variables/sliverpb.RportFwdStopListenerReq-1.html @@ -0,0 +1 @@ +RportFwdStopListenerReq | sliver-script
diff --git a/docs/variables/sliverpb.RunAs-1.html b/docs/variables/sliverpb.RunAs-1.html new file mode 100644 index 0000000..e373957 --- /dev/null +++ b/docs/variables/sliverpb.RunAs-1.html @@ -0,0 +1 @@ +RunAs | sliver-script
diff --git a/docs/variables/sliverpb.RunAsReq-1.html b/docs/variables/sliverpb.RunAsReq-1.html new file mode 100644 index 0000000..c3c581f --- /dev/null +++ b/docs/variables/sliverpb.RunAsReq-1.html @@ -0,0 +1 @@ +RunAsReq | sliver-script
diff --git a/docs/variables/sliverpb.SSHCommand-1.html b/docs/variables/sliverpb.SSHCommand-1.html new file mode 100644 index 0000000..b6224ed --- /dev/null +++ b/docs/variables/sliverpb.SSHCommand-1.html @@ -0,0 +1 @@ +SSHCommand | sliver-script
diff --git a/docs/variables/sliverpb.SSHCommandReq-1.html b/docs/variables/sliverpb.SSHCommandReq-1.html new file mode 100644 index 0000000..70c05e0 --- /dev/null +++ b/docs/variables/sliverpb.SSHCommandReq-1.html @@ -0,0 +1 @@ +SSHCommandReq | sliver-script
diff --git a/docs/variables/sliverpb.Screenshot-1.html b/docs/variables/sliverpb.Screenshot-1.html new file mode 100644 index 0000000..a84cb4a --- /dev/null +++ b/docs/variables/sliverpb.Screenshot-1.html @@ -0,0 +1 @@ +Screenshot | sliver-script
diff --git a/docs/variables/sliverpb.ScreenshotReq-1.html b/docs/variables/sliverpb.ScreenshotReq-1.html new file mode 100644 index 0000000..9a82139 --- /dev/null +++ b/docs/variables/sliverpb.ScreenshotReq-1.html @@ -0,0 +1 @@ +ScreenshotReq | sliver-script
diff --git a/docs/variables/sliverpb.ServiceDetail-1.html b/docs/variables/sliverpb.ServiceDetail-1.html new file mode 100644 index 0000000..beb214b --- /dev/null +++ b/docs/variables/sliverpb.ServiceDetail-1.html @@ -0,0 +1 @@ +ServiceDetail | sliver-script
diff --git a/docs/variables/sliverpb.ServiceDetailReq-1.html b/docs/variables/sliverpb.ServiceDetailReq-1.html new file mode 100644 index 0000000..45e5ccd --- /dev/null +++ b/docs/variables/sliverpb.ServiceDetailReq-1.html @@ -0,0 +1 @@ +ServiceDetailReq | sliver-script
diff --git a/docs/variables/sliverpb.ServiceDetails-1.html b/docs/variables/sliverpb.ServiceDetails-1.html new file mode 100644 index 0000000..e470bb3 --- /dev/null +++ b/docs/variables/sliverpb.ServiceDetails-1.html @@ -0,0 +1 @@ +ServiceDetails | sliver-script
diff --git a/docs/variables/sliverpb.ServiceInfo-1.html b/docs/variables/sliverpb.ServiceInfo-1.html new file mode 100644 index 0000000..e70e133 --- /dev/null +++ b/docs/variables/sliverpb.ServiceInfo-1.html @@ -0,0 +1 @@ +ServiceInfo | sliver-script
diff --git a/docs/variables/sliverpb.ServiceInfoReq-1.html b/docs/variables/sliverpb.ServiceInfoReq-1.html new file mode 100644 index 0000000..2faf49e --- /dev/null +++ b/docs/variables/sliverpb.ServiceInfoReq-1.html @@ -0,0 +1 @@ +ServiceInfoReq | sliver-script
diff --git a/docs/variables/sliverpb.Services-1.html b/docs/variables/sliverpb.Services-1.html new file mode 100644 index 0000000..edc5c8c --- /dev/null +++ b/docs/variables/sliverpb.Services-1.html @@ -0,0 +1 @@ +Services | sliver-script
diff --git a/docs/variables/sliverpb.ServicesReq-1.html b/docs/variables/sliverpb.ServicesReq-1.html new file mode 100644 index 0000000..477c9c3 --- /dev/null +++ b/docs/variables/sliverpb.ServicesReq-1.html @@ -0,0 +1 @@ +ServicesReq | sliver-script
diff --git a/docs/variables/sliverpb.SessionRegister-1.html b/docs/variables/sliverpb.SessionRegister-1.html new file mode 100644 index 0000000..478f430 --- /dev/null +++ b/docs/variables/sliverpb.SessionRegister-1.html @@ -0,0 +1 @@ +SessionRegister | sliver-script
diff --git a/docs/variables/sliverpb.SetEnv-1.html b/docs/variables/sliverpb.SetEnv-1.html new file mode 100644 index 0000000..5169e5b --- /dev/null +++ b/docs/variables/sliverpb.SetEnv-1.html @@ -0,0 +1 @@ +SetEnv | sliver-script
diff --git a/docs/variables/sliverpb.SetEnvReq-1.html b/docs/variables/sliverpb.SetEnvReq-1.html new file mode 100644 index 0000000..fc6707b --- /dev/null +++ b/docs/variables/sliverpb.SetEnvReq-1.html @@ -0,0 +1 @@ +SetEnvReq | sliver-script
diff --git a/docs/variables/sliverpb.Shell-1.html b/docs/variables/sliverpb.Shell-1.html new file mode 100644 index 0000000..8b4fa79 --- /dev/null +++ b/docs/variables/sliverpb.Shell-1.html @@ -0,0 +1 @@ +Shell | sliver-script
diff --git a/docs/variables/sliverpb.ShellReq-1.html b/docs/variables/sliverpb.ShellReq-1.html new file mode 100644 index 0000000..e8af7d1 --- /dev/null +++ b/docs/variables/sliverpb.ShellReq-1.html @@ -0,0 +1 @@ +ShellReq | sliver-script
diff --git a/docs/variables/sliverpb.ShellResizeReq-1.html b/docs/variables/sliverpb.ShellResizeReq-1.html new file mode 100644 index 0000000..e425a26 --- /dev/null +++ b/docs/variables/sliverpb.ShellResizeReq-1.html @@ -0,0 +1 @@ +ShellResizeReq | sliver-script
diff --git a/docs/variables/sliverpb.Sideload-1.html b/docs/variables/sliverpb.Sideload-1.html new file mode 100644 index 0000000..d70fdc5 --- /dev/null +++ b/docs/variables/sliverpb.Sideload-1.html @@ -0,0 +1 @@ +Sideload | sliver-script
diff --git a/docs/variables/sliverpb.SideloadReq-1.html b/docs/variables/sliverpb.SideloadReq-1.html new file mode 100644 index 0000000..a5a475a --- /dev/null +++ b/docs/variables/sliverpb.SideloadReq-1.html @@ -0,0 +1 @@ +SideloadReq | sliver-script
diff --git a/docs/variables/sliverpb.SockTabEntry-1.html b/docs/variables/sliverpb.SockTabEntry-1.html new file mode 100644 index 0000000..331e01c --- /dev/null +++ b/docs/variables/sliverpb.SockTabEntry-1.html @@ -0,0 +1 @@ +SockTabEntry | sliver-script
diff --git a/docs/variables/sliverpb.SockTabEntry_SockAddr-1.html b/docs/variables/sliverpb.SockTabEntry_SockAddr-1.html new file mode 100644 index 0000000..3cb0c6b --- /dev/null +++ b/docs/variables/sliverpb.SockTabEntry_SockAddr-1.html @@ -0,0 +1 @@ +SockTabEntry_SockAddr | sliver-script
diff --git a/docs/variables/sliverpb.Socks-1.html b/docs/variables/sliverpb.Socks-1.html new file mode 100644 index 0000000..ebc0d15 --- /dev/null +++ b/docs/variables/sliverpb.Socks-1.html @@ -0,0 +1 @@ +Socks | sliver-script
diff --git a/docs/variables/sliverpb.SocksData-1.html b/docs/variables/sliverpb.SocksData-1.html new file mode 100644 index 0000000..cbe2461 --- /dev/null +++ b/docs/variables/sliverpb.SocksData-1.html @@ -0,0 +1 @@ +SocksData | sliver-script
diff --git a/docs/variables/sliverpb.SpawnDll-1.html b/docs/variables/sliverpb.SpawnDll-1.html new file mode 100644 index 0000000..53f4b19 --- /dev/null +++ b/docs/variables/sliverpb.SpawnDll-1.html @@ -0,0 +1 @@ +SpawnDll | sliver-script
diff --git a/docs/variables/sliverpb.SpawnDllReq-1.html b/docs/variables/sliverpb.SpawnDllReq-1.html new file mode 100644 index 0000000..f1bbb23 --- /dev/null +++ b/docs/variables/sliverpb.SpawnDllReq-1.html @@ -0,0 +1 @@ +SpawnDllReq | sliver-script
diff --git a/docs/variables/sliverpb.StartServiceByNameReq-1.html b/docs/variables/sliverpb.StartServiceByNameReq-1.html new file mode 100644 index 0000000..19af1ec --- /dev/null +++ b/docs/variables/sliverpb.StartServiceByNameReq-1.html @@ -0,0 +1 @@ +StartServiceByNameReq | sliver-script
diff --git a/docs/variables/sliverpb.StartServiceReq-1.html b/docs/variables/sliverpb.StartServiceReq-1.html new file mode 100644 index 0000000..5b3619a --- /dev/null +++ b/docs/variables/sliverpb.StartServiceReq-1.html @@ -0,0 +1 @@ +StartServiceReq | sliver-script
diff --git a/docs/variables/sliverpb.StopServiceReq-1.html b/docs/variables/sliverpb.StopServiceReq-1.html new file mode 100644 index 0000000..08e9efa --- /dev/null +++ b/docs/variables/sliverpb.StopServiceReq-1.html @@ -0,0 +1 @@ +StopServiceReq | sliver-script
diff --git a/docs/variables/sliverpb.Task-1.html b/docs/variables/sliverpb.Task-1.html new file mode 100644 index 0000000..8a3504e --- /dev/null +++ b/docs/variables/sliverpb.Task-1.html @@ -0,0 +1 @@ +Task | sliver-script
diff --git a/docs/variables/sliverpb.TaskReq-1.html b/docs/variables/sliverpb.TaskReq-1.html new file mode 100644 index 0000000..fef79fa --- /dev/null +++ b/docs/variables/sliverpb.TaskReq-1.html @@ -0,0 +1 @@ +TaskReq | sliver-script
diff --git a/docs/variables/sliverpb.Terminate-1.html b/docs/variables/sliverpb.Terminate-1.html new file mode 100644 index 0000000..695a15e --- /dev/null +++ b/docs/variables/sliverpb.Terminate-1.html @@ -0,0 +1 @@ +Terminate | sliver-script
diff --git a/docs/variables/sliverpb.TerminateReq-1.html b/docs/variables/sliverpb.TerminateReq-1.html new file mode 100644 index 0000000..721d300 --- /dev/null +++ b/docs/variables/sliverpb.TerminateReq-1.html @@ -0,0 +1 @@ +TerminateReq | sliver-script
diff --git a/docs/variables/sliverpb.Tunnel-1.html b/docs/variables/sliverpb.Tunnel-1.html new file mode 100644 index 0000000..3fb4aef --- /dev/null +++ b/docs/variables/sliverpb.Tunnel-1.html @@ -0,0 +1 @@ +Tunnel | sliver-script
diff --git a/docs/variables/sliverpb.TunnelData-1.html b/docs/variables/sliverpb.TunnelData-1.html new file mode 100644 index 0000000..e176d85 --- /dev/null +++ b/docs/variables/sliverpb.TunnelData-1.html @@ -0,0 +1 @@ +TunnelData | sliver-script
diff --git a/docs/variables/sliverpb.UnsetEnv-1.html b/docs/variables/sliverpb.UnsetEnv-1.html new file mode 100644 index 0000000..69eea29 --- /dev/null +++ b/docs/variables/sliverpb.UnsetEnv-1.html @@ -0,0 +1 @@ +UnsetEnv | sliver-script
diff --git a/docs/variables/sliverpb.UnsetEnvReq-1.html b/docs/variables/sliverpb.UnsetEnvReq-1.html new file mode 100644 index 0000000..9a11c17 --- /dev/null +++ b/docs/variables/sliverpb.UnsetEnvReq-1.html @@ -0,0 +1 @@ +UnsetEnvReq | sliver-script
diff --git a/docs/variables/sliverpb.Upload-1.html b/docs/variables/sliverpb.Upload-1.html new file mode 100644 index 0000000..6a7c527 --- /dev/null +++ b/docs/variables/sliverpb.Upload-1.html @@ -0,0 +1 @@ +Upload | sliver-script
diff --git a/docs/variables/sliverpb.UploadReq-1.html b/docs/variables/sliverpb.UploadReq-1.html new file mode 100644 index 0000000..33f3908 --- /dev/null +++ b/docs/variables/sliverpb.UploadReq-1.html @@ -0,0 +1 @@ +UploadReq | sliver-script
diff --git a/docs/variables/sliverpb.WGPortForward-1.html b/docs/variables/sliverpb.WGPortForward-1.html new file mode 100644 index 0000000..ddaafe8 --- /dev/null +++ b/docs/variables/sliverpb.WGPortForward-1.html @@ -0,0 +1 @@ +WGPortForward | sliver-script
diff --git a/docs/variables/sliverpb.WGPortForwardStartReq-1.html b/docs/variables/sliverpb.WGPortForwardStartReq-1.html new file mode 100644 index 0000000..fd13513 --- /dev/null +++ b/docs/variables/sliverpb.WGPortForwardStartReq-1.html @@ -0,0 +1 @@ +WGPortForwardStartReq | sliver-script
diff --git a/docs/variables/sliverpb.WGPortForwardStopReq-1.html b/docs/variables/sliverpb.WGPortForwardStopReq-1.html new file mode 100644 index 0000000..bcbc4f6 --- /dev/null +++ b/docs/variables/sliverpb.WGPortForwardStopReq-1.html @@ -0,0 +1 @@ +WGPortForwardStopReq | sliver-script
diff --git a/docs/variables/sliverpb.WGSocks-1.html b/docs/variables/sliverpb.WGSocks-1.html new file mode 100644 index 0000000..0118fe9 --- /dev/null +++ b/docs/variables/sliverpb.WGSocks-1.html @@ -0,0 +1 @@ +WGSocks | sliver-script
diff --git a/docs/variables/sliverpb.WGSocksServer-1.html b/docs/variables/sliverpb.WGSocksServer-1.html new file mode 100644 index 0000000..fd8afd5 --- /dev/null +++ b/docs/variables/sliverpb.WGSocksServer-1.html @@ -0,0 +1 @@ +WGSocksServer | sliver-script
diff --git a/docs/variables/sliverpb.WGSocksServers-1.html b/docs/variables/sliverpb.WGSocksServers-1.html new file mode 100644 index 0000000..9684f12 --- /dev/null +++ b/docs/variables/sliverpb.WGSocksServers-1.html @@ -0,0 +1 @@ +WGSocksServers | sliver-script
diff --git a/docs/variables/sliverpb.WGSocksServersReq-1.html b/docs/variables/sliverpb.WGSocksServersReq-1.html new file mode 100644 index 0000000..57a515c --- /dev/null +++ b/docs/variables/sliverpb.WGSocksServersReq-1.html @@ -0,0 +1 @@ +WGSocksServersReq | sliver-script
diff --git a/docs/variables/sliverpb.WGSocksStartReq-1.html b/docs/variables/sliverpb.WGSocksStartReq-1.html new file mode 100644 index 0000000..7edca51 --- /dev/null +++ b/docs/variables/sliverpb.WGSocksStartReq-1.html @@ -0,0 +1 @@ +WGSocksStartReq | sliver-script
diff --git a/docs/variables/sliverpb.WGSocksStopReq-1.html b/docs/variables/sliverpb.WGSocksStopReq-1.html new file mode 100644 index 0000000..2c08b48 --- /dev/null +++ b/docs/variables/sliverpb.WGSocksStopReq-1.html @@ -0,0 +1 @@ +WGSocksStopReq | sliver-script
diff --git a/docs/variables/sliverpb.WGTCPForwarder-1.html b/docs/variables/sliverpb.WGTCPForwarder-1.html new file mode 100644 index 0000000..8c37264 --- /dev/null +++ b/docs/variables/sliverpb.WGTCPForwarder-1.html @@ -0,0 +1 @@ +WGTCPForwarder | sliver-script
diff --git a/docs/variables/sliverpb.WGTCPForwarders-1.html b/docs/variables/sliverpb.WGTCPForwarders-1.html new file mode 100644 index 0000000..9e1ebf1 --- /dev/null +++ b/docs/variables/sliverpb.WGTCPForwarders-1.html @@ -0,0 +1 @@ +WGTCPForwarders | sliver-script
diff --git a/docs/variables/sliverpb.WGTCPForwardersReq-1.html b/docs/variables/sliverpb.WGTCPForwardersReq-1.html new file mode 100644 index 0000000..647740a --- /dev/null +++ b/docs/variables/sliverpb.WGTCPForwardersReq-1.html @@ -0,0 +1 @@ +WGTCPForwardersReq | sliver-script
diff --git a/docs/variables/sliverpb.WindowsPrivilegeEntry-1.html b/docs/variables/sliverpb.WindowsPrivilegeEntry-1.html new file mode 100644 index 0000000..c48c2cc --- /dev/null +++ b/docs/variables/sliverpb.WindowsPrivilegeEntry-1.html @@ -0,0 +1 @@ +WindowsPrivilegeEntry | sliver-script
diff --git a/docs/variables/sliverpb.protobufPackage.html b/docs/variables/sliverpb.protobufPackage.html new file mode 100644 index 0000000..6d1543d --- /dev/null +++ b/docs/variables/sliverpb.protobufPackage.html @@ -0,0 +1 @@ +protobufPackage | sliver-script

Variable protobufPackageConst

protobufPackage: "sliverpb"
diff --git a/examples/e2e/status.ts b/examples/e2e/status.ts new file mode 100644 index 0000000..512e8ba --- /dev/null +++ b/examples/e2e/status.ts @@ -0,0 +1,86 @@ +import * as fs from "node:fs"; +import * as path from "node:path"; + +type SliverScriptModule = typeof import("../.."); + +function findRepoRoot(startDir: string): string | undefined { + let dir = path.resolve(startDir); + for (let i = 0; i < 10; i++) { + if (fs.existsSync(path.join(dir, "package.json"))) { + return dir; + } + const parent = path.dirname(dir); + if (parent === dir) { + break; + } + dir = parent; + } + return undefined; +} + +function guessRepoRoot(): string { + return findRepoRoot(process.cwd()) ?? findRepoRoot(__dirname) ?? process.cwd(); +} + +function loadLocalSliverScript(repoRoot: string): SliverScriptModule { + const libDir = path.join(repoRoot, "lib"); + const entry = path.join(libDir, "index.js"); + if (!fs.existsSync(entry)) { + throw new Error(`Missing built library entrypoint: ${entry}. Run: npm run build`); + } + + // CJS build; load via require for compatibility with `tsc --module commonjs`. + return require(libDir) as SliverScriptModule; +} + +const REPO_ROOT = guessRepoRoot(); +const CONFIG_PATH = process.env.SLIVER_CONFIG_FILE ?? path.join(REPO_ROOT, "localhost.cfg"); +const WAIT_TASKS = process.env.SLIVER_WAIT_TASKS === "1"; + +async function main() { + if (!fs.existsSync(CONFIG_PATH)) { + console.error(`Missing config file: ${CONFIG_PATH}`); + process.exit(2); + } + + const sliver = loadLocalSliverScript(REPO_ROOT); + const config = await sliver.ParseConfigFile(CONFIG_PATH); + const client = new sliver.SliverClient(config); + + await client.connect(); + try { + const version = await client.getVersion(); + console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); + + const operators = await client.operators(); + console.log("operators", operators.map((o) => o.Name)); + + const sessions = await client.sessions(); + console.log("sessions", sessions.length); + + const beacons = await client.beacons(); + console.log("beacons", beacons.length); + + if (beacons.length > 0) { + const beacon = client.interactBeacon(beacons[0].ID); + const task = await beacon.lsTask("."); + console.log("beacon ls queued", task.id); + + if (WAIT_TASKS) { + try { + const ls = await task.wait(60); + console.log("beacon ls result", { path: ls.Path, count: ls.Files.length }); + } catch (err) { + console.error("beacon ls wait failed", err); + } + } + } + } finally { + await client.disconnect(); + } +} + +void main().catch((err) => { + console.error(err); + process.exit(1); +}); diff --git a/examples/shell/shell.ts b/examples/shell/shell.ts index fce7703..597f50e 100644 --- a/examples/shell/shell.ts +++ b/examples/shell/shell.ts @@ -32,17 +32,17 @@ const SLIVER_CONFIG_FILE = process.env['SLIVER_CONFIG_FILE'] || DEFAULT_CONFIG_P } console.log(sessions); if (0 < sessions.length) { - const interact = await client.interactSession(sessions[0].ID) + const interact = client.interactSession(sessions[0].ID) const shell = await interact.shell('/bin/bash', true) - shell.stdout.subscribe(data => { + shell.stdout$.subscribe(data => { process.stdout.write(data) }, (err) => { console.error(err) }, () => { console.log('tunnel closed') }); - shell.stdin.next(Buffer.from('ls\n')) - shell.stdin.next(Buffer.from('exit\n')) + shell.write('ls\n') + shell.write('exit\n') setTimeout(() => { process.exit(0) }, 1000) } else { console.log('No sessions') diff --git a/package-lock.json b/package-lock.json index 2d471ea..3a2cbb7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,69 +9,69 @@ "version": "1.2.5", "license": "GPL-3.0-or-later", "dependencies": { - "@grpc/grpc-js": "^1.5.5", - "@improbable-eng/grpc-web": "^0.15.0", - "@types/google-protobuf": "^3.15.5", - "google-protobuf": "^3.19.4", - "protobufjs": "^6.11.2", - "protoc-gen-ts": "^0.8.2", - "rxjs": "^7.5.6" + "@bufbuild/protobuf": "^2.11.0", + "@grpc/grpc-js": "^1.13.4", + "nice-grpc": "^2.1.12", + "rxjs": "^7.8.2" }, "devDependencies": { - "@types/jest": "^27.4.0", - "@types/long": "^5.0.0", - "grpc-tools": "^1.11.2", - "jest": "^27.4.7", - "marked": "^4.0.10", - "ts-jest": "^27.1.3", - "ts-protoc-gen": "^0.12.0", - "typedoc": "^0.22.11", - "typescript": "^4.5.5", - "ws": ">=7.4.6" + "@types/jest": "^29.5.14", + "@types/node": "^22.13.5", + "jest": "^29.7.0", + "marked": "^15.0.7", + "ts-jest": "^29.2.6", + "ts-proto": "^2.7.7", + "typedoc": "^0.27.7", + "typescript": "^5.7.3" } }, "node_modules/@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/highlight": "^7.16.7" + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/compat-data": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.8.tgz", - "integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/core": { - "version": "7.16.12", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", - "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.8", - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helpers": "^7.16.7", - "@babel/parser": "^7.16.12", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.10", - "@babel/types": "^7.16.8", - "convert-source-map": "^1.7.0", + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" + "json5": "^2.2.3", + "semver": "^6.3.1" }, "engines": { "node": ">=6.9.0" @@ -81,48 +81,111 @@ "url": "https://opencollective.com/babel" } }, - "node_modules/@babel/core/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true, - "engines": { - "node": ">=0.10.0" + "license": "ISC", + "bin": { + "semver": "bin/semver.js" } }, "node_modules/@babel/generator": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", - "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.16.8", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/generator/node_modules/source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "node_modules/@babel/helper-compilation-targets": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", "dev": true, + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, "engines": { - "node": ">=0.10.0" + "node": ">=6.9.0" } }, - "node_modules/@babel/helper-compilation-targets": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", - "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", + "node_modules/@babel/helper-compilation-targets/node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, + "license": "ISC", "dependencies": { - "@babel/compat-data": "^7.16.4", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.17.5", - "semver": "^6.3.0" + "yallist": "^3.0.2" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "dev": true, + "license": "ISC" + }, + "node_modules/@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -131,242 +194,69 @@ "@babel/core": "^7.0.0" } }, - "node_modules/@babel/helper-environment-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-function-name": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", - "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", - "dev": true, - "dependencies": { - "@babel/helper-get-function-arity": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-get-function-arity": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-module-transforms": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz", - "integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==", - "dev": true, - "dependencies": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, "node_modules/@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/helper-simple-access": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", - "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", + "node_modules/@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", - "dev": true, - "dependencies": { - "@babel/types": "^7.16.7" - }, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helper-validator-option": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/helpers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz", - "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, - "node_modules/@babel/highlight": { - "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", - "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", - "dev": true, - "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "engines": { - "node": ">=6.9.0" - } - }, - "node_modules/@babel/highlight/node_modules/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, - "dependencies": { - "color-convert": "^1.9.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/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, - "dependencies": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - }, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/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, - "dependencies": { - "color-name": "1.1.3" - } - }, - "node_modules/@babel/highlight/node_modules/color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "node_modules/@babel/highlight/node_modules/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, - "engines": { - "node": ">=0.8.0" - } - }, - "node_modules/@babel/highlight/node_modules/has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/@babel/highlight/node_modules/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, - "dependencies": { - "has-flag": "^3.0.0" - }, - "engines": { - "node": ">=4" - } - }, "node_modules/@babel/parser": { - "version": "7.16.12", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.12.tgz", - "integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", "dev": true, + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.0" + }, "bin": { "parser": "bin/babel-parser.js" }, @@ -379,6 +269,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -391,6 +282,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz", "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -403,6 +295,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz", "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.12.13" }, @@ -410,11 +303,44 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -427,6 +353,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz", "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -434,11 +361,28 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.28.6" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -451,6 +395,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz", "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -463,6 +408,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz", "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.10.4" }, @@ -475,6 +421,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz", "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -487,6 +434,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz", "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -499,6 +447,7 @@ "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz", "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.8.0" }, @@ -506,11 +455,28 @@ "@babel/core": "^7.0.0-0" } }, + "node_modules/@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.14.5" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, "node_modules/@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==", "dev": true, + "license": "MIT", "dependencies": { "@babel/helper-plugin-utils": "^7.14.5" }, @@ -522,12 +488,13 @@ } }, "node_modules/@babel/plugin-syntax-typescript": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", - "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.28.6" }, "engines": { "node": ">=6.9.0" @@ -537,48 +504,48 @@ } }, "node_modules/@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/traverse": { - "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.10.tgz", - "integrity": "sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.8", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.16.10", - "@babel/types": "^7.16.8", - "debug": "^4.1.0", - "globals": "^11.1.0" + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" }, "engines": { "node": ">=6.9.0" } }, "node_modules/@babel/types": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", - "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" }, "engines": { "node": ">=6.9.0" @@ -588,30 +555,50 @@ "version": "0.2.3", "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz", "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", - "dev": true + "dev": true, + "license": "MIT" + }, + "node_modules/@bufbuild/protobuf": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.11.0.tgz", + "integrity": "sha512-sBXGT13cpmPR5BMgHE6UEEfEaShh5Ror6rfN3yEK5si7QVrtZg8LEPQb0VVhiLRUslD2yLnXtnRzG035J/mZXQ==", + "license": "(Apache-2.0 AND BSD-3-Clause)" + }, + "node_modules/@gerrit0/mini-shiki": { + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.27.2.tgz", + "integrity": "sha512-GeWyHz8ao2gBiUW4OJnQDxXQnFgZQwwQk05t/CVVgNBN7/rK8XZ7xY6YhLVv9tH3VppWWmr9DCl3MwemB/i+Og==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/engine-oniguruma": "^1.27.2", + "@shikijs/types": "^1.27.2", + "@shikijs/vscode-textmate": "^10.0.1" + } }, "node_modules/@grpc/grpc-js": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.5.5.tgz", - "integrity": "sha512-FTd27ItHlsSG/7hp62xgI9YnqSwRbHRSVmDVR8DwOoC+6t8JhHRXe2JL0U8N9GLc0jS0HrtEbO/KP5+G0ebjLQ==", + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", + "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "license": "Apache-2.0", "dependencies": { - "@grpc/proto-loader": "^0.6.4", - "@types/node": ">=12.12.47" + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" }, "engines": { - "node": "^8.13.0 || >=10.10.0" + "node": ">=12.10.0" } }, "node_modules/@grpc/proto-loader": { - "version": "0.6.9", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.9.tgz", - "integrity": "sha512-UlcCS8VbsU9d3XTXGiEVFonN7hXk+oMXZtoHHG2oSA1/GcDP1q6OUgs20PzHDGizzyi8ufGSUDlk3O2NyY7leg==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", + "license": "Apache-2.0", "dependencies": { - "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", - "long": "^4.0.0", - "protobufjs": "^6.10.0", - "yargs": "^16.2.0" + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" }, "bin": { "proto-loader-gen-types": "build/bin/proto-loader-gen-types.js" @@ -620,27 +607,12 @@ "node": ">=6" } }, - "node_modules/@grpc/proto-loader/node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, - "node_modules/@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "dependencies": { - "browser-headers": "^0.4.1" - }, - "peerDependencies": { - "google-protobuf": "^3.14.0" - } - }, "node_modules/@istanbuljs/load-nyc-config": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz", "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==", "dev": true, + "license": "ISC", "dependencies": { "camelcase": "^5.3.1", "find-up": "^4.1.0", @@ -657,98 +629,67 @@ "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz", "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/@jest/console": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.4.6.tgz", - "integrity": "sha512-jauXyacQD33n47A44KrlOVeiXHEXDqapSdfb9kTekOchH/Pd18kBIO1+xxJQRLuG+LUuljFCwTG92ra4NW7SpA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.4.6", - "jest-util": "^27.4.2", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/console/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/console/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/console/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/core": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.4.7.tgz", - "integrity": "sha512-n181PurSJkVMS+kClIFSX/LLvw9ExSb+4IMtD6YnfxZVerw9ANYtW0bPrm0MJu2pfe9SY9FJ9FtQ+MdZkrZwjg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/console": "^27.4.6", - "@jest/reporters": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-changed-files": "^27.4.2", - "jest-config": "^27.4.7", - "jest-haste-map": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-resolve-dependencies": "^27.4.6", - "jest-runner": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", - "jest-watcher": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "strip-ansi": "^6.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -759,222 +700,117 @@ } } }, - "node_modules/@jest/core/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/core/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/core/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/@jest/environment": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.4.6.tgz", - "integrity": "sha512-E6t+RXPfATEEGVidr84WngLNWZ8ffCPky8RqqRK6u1Bn0LK92INe0MDttyPl/JOzaq92BmDzOeuqk09TvM22Sg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.4.6" + "jest-mock": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/environment/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", + "node_modules/@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/environment/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "node_modules/@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/environment/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "jest-get-type": "^29.6.3" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/fake-timers": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.4.6.tgz", - "integrity": "sha512-mfaethuYF8scV8ntPpiVGIHQgS0XIALbpY2jt2l7wb/bvq4Q5pDLk4EP4D7SAvYT1QrPOPVZAtbdGAOOyIgs7A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", - "@sinonjs/fake-timers": "^8.0.1", + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "^27.4.6", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2" + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/fake-timers/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/fake-timers/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/fake-timers/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/globals": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.4.6.tgz", - "integrity": "sha512-kAiwMGZ7UxrgPzu8Yv9uvWmXXxsy0GciNejlHvfPIfWkSxChzv6bgTS3YqBkGuHcis+ouMFI2696n2t+XYIeFw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/types": "^27.4.2", - "expect": "^27.4.6" + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/globals/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/globals/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/globals/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/reporters": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.4.6.tgz", - "integrity": "sha512-+Zo9gV81R14+PSq4wzee4GC2mhAN9i9a7qgJWL90Gpx7fHYkWpTBvwWNZUXvJByYR9tAVBdc8VxDWqfJyIUrIQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, + "license": "MIT", "dependencies": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.4", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-instrument": "^6.0.0", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.4.6", - "jest-resolve": "^27.4.6", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "slash": "^3.0.0", - "source-map": "^0.6.0", "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -985,237 +821,200 @@ } } }, - "node_modules/@jest/reporters/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", + "node_modules/@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "@sinclair/typebox": "^0.27.8" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/reporters/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/reporters/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/source-map": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.4.0.tgz", - "integrity": "sha512-Ntjx9jzP26Bvhbm93z/AKcPRj/9wrkI88/gK60glXDx1q+IeI0rf7Lw2c89Ch6ofonB0On/iRDreQuQ6te9pgQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, + "license": "MIT", "dependencies": { + "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", - "graceful-fs": "^4.2.4", - "source-map": "^0.6.0" + "graceful-fs": "^4.2.9" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-result": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.4.6.tgz", - "integrity": "sha512-fi9IGj3fkOrlMmhQqa/t9xum8jaJOOAi/lZlm6JXSc55rJMXKHxNDN1oCP39B0/DhNOa2OMupF9BcKZnNtXMOQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/console": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/test-result/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/@jest/test-result/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/@jest/test-result/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/test-sequencer": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.4.6.tgz", - "integrity": "sha512-3GL+nsf6E1PsyNsJuvPyIz+DwFuCtBdtvPpm/LMXVkBJbdFvQYCDpccYT56qq5BGniXWlE81n2qk1sdXfZebnw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/test-result": "^27.4.6", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-runtime": "^27.4.6" + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/@jest/transform": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.4.6.tgz", - "integrity": "sha512-9MsufmJC8t5JTpWEQJ0OcOOAXaH5ioaIX6uHVBLBMoCZPfKKQF+EqP8kACAvCZ0Y1h2Zr3uOccg8re+Dr5jxyw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.4.2", + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-util": "^27.4.2", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" + "write-file-atomic": "^4.0.2" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", + "node_modules/@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, + "license": "MIT", "dependencies": { + "@jest/schemas": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "@types/istanbul-reports": "^3.0.0", "@types/node": "*", - "@types/yargs": "^16.0.0", + "@types/yargs": "^17.0.8", "chalk": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/@jest/transform/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", "dev": true, + "license": "MIT", "dependencies": { - "@types/istanbul-lib-report": "*" + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@jest/transform/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", "dev": true, + "license": "MIT", "dependencies": { - "@types/yargs-parser": "*" + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" } }, - "node_modules/@mapbox/node-pre-gyp": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.8.tgz", - "integrity": "sha512-CMGKi28CF+qlbXh26hDe6NxCd7amqeAzEqnS6IHeO6LoaKyM/n+Xw3HT1COdq8cuioOdlKdqn/hCmqPUOMOywg==", + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", "dev": true, - "dependencies": { - "detect-libc": "^1.0.3", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.5", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "bin": { - "node-pre-gyp": "bin/node-pre-gyp" - } - }, - "node_modules/@mapbox/node-pre-gyp/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, - "bin": { - "semver": "bin/semver.js" - }, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==", + "license": "MIT", + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/js-sdsl" } }, "node_modules/@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/base64": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", - "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/codegen": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", - "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -1224,245 +1023,244 @@ "node_modules/@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" }, "node_modules/@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==", + "license": "BSD-3-Clause" + }, + "node_modules/@shikijs/engine-oniguruma": { + "version": "1.29.2", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.29.2.tgz", + "integrity": "sha512-7iiOx3SG8+g1MnlzZVDYiaeHe7Ez2Kf2HrJzdmGwkRisT7r4rak0e655AcM/tF9JG/kg5fMNYlLLKglbN7gBqA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/types": "1.29.2", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "node_modules/@shikijs/types": { + "version": "1.29.2", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.29.2.tgz", + "integrity": "sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@shikijs/vscode-textmate": "^10.0.1", + "@types/hast": "^3.0.4" + } + }, + "node_modules/@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true, + "license": "MIT" + }, + "node_modules/@sinclair/typebox": { + "version": "0.27.10", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz", + "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==", + "dev": true, + "license": "MIT" }, "node_modules/@sinonjs/commons": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", - "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "type-detect": "4.0.8" } }, "node_modules/@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "@sinonjs/commons": "^1.7.0" - } - }, - "node_modules/@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true, - "engines": { - "node": ">= 6" + "@sinonjs/commons": "^3.0.0" } }, "node_modules/@types/babel__core": { - "version": "7.1.18", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", - "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "node_modules/@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, + "license": "MIT", "dependencies": { "@babel/parser": "^7.1.0", "@babel/types": "^7.0.0" } }, "node_modules/@types/babel__traverse": { - "version": "7.14.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", - "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/types": "^7.3.0" + "@babel/types": "^7.28.2" } }, - "node_modules/@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" - }, - "node_modules/@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "node_modules/@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*" } }, + "node_modules/@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/unist": "*" + } + }, "node_modules/@types/istanbul-lib-coverage": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", - "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", - "dev": true + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", + "dev": true, + "license": "MIT" }, "node_modules/@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, + "license": "MIT", "dependencies": { "@types/istanbul-lib-coverage": "*" } }, - "node_modules/@types/jest": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.0.tgz", - "integrity": "sha512-gHl8XuC1RZ8H2j5sHv/JqsaxXkDDM9iDOgu0Wp8sjs4u/snb2PVehyWXJPr+ORA0RPpgw231mnutWI1+0hgjIQ==", + "node_modules/@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, + "license": "MIT", "dependencies": { - "jest-diff": "^27.0.0", - "pretty-format": "^27.0.0" + "@types/istanbul-lib-report": "*" } }, - "node_modules/@types/long": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-5.0.0.tgz", - "integrity": "sha512-eQs9RsucA/LNjnMoJvWG/nXa7Pot/RbBzilF/QRIU/xRl+0ApxrSUFsV5lmf01SvSlqMzJ7Zwxe440wmz2SJGA==", - "deprecated": "This is a stub types definition. long provides its own type definitions, so you do not need this installed.", + "node_modules/@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", "dev": true, + "license": "MIT", "dependencies": { - "long": "*" + "expect": "^29.0.0", + "pretty-format": "^29.0.0" } }, "node_modules/@types/node": { - "version": "13.13.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.4.tgz", - "integrity": "sha512-x26ur3dSXgv5AwKS0lNfbjpCakGIduWU1DU91Zz58ONRWrIKGunmZBNv4P7N+e27sJkiGDsw/3fT4AtsqQBrBA==" - }, - "node_modules/@types/prettier": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.3.tgz", - "integrity": "sha512-QzSuZMBuG5u8HqYz01qtMdg/Jfctlnvj1z/lYnIDXs/golxw0fxtRAHd9KrzjR7Yxz1qVeI00o0kiO3PmVdJ9w==", - "dev": true + "version": "22.19.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.11.tgz", + "integrity": "sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==", + "license": "MIT", + "dependencies": { + "undici-types": "~6.21.0" + } }, "node_modules/@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", - "dev": true + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/yargs-parser": "*" + } }, "node_modules/@types/yargs-parser": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz", - "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", - "dev": true - }, - "node_modules/abab": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", - "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", - "dev": true - }, - "node_modules/abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "node_modules/acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } + "license": "MIT" }, - "node_modules/acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "dependencies": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - } - }, - "node_modules/acorn-globals/node_modules/acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true, - "bin": { - "acorn": "bin/acorn" - }, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "dependencies": { - "debug": "4" - }, - "engines": { - "node": ">= 6.0.0" - } + "node_modules/abort-controller-x": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/abort-controller-x/-/abort-controller-x-0.4.3.tgz", + "integrity": "sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==", + "license": "MIT" }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==", "dev": true, + "license": "MIT", "dependencies": { "type-fest": "^0.21.3" }, @@ -1482,19 +1280,26 @@ } }, "node_modules/ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "license": "MIT", "dependencies": { - "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, "node_modules/anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, + "license": "ISC", "dependencies": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" @@ -1503,101 +1308,44 @@ "node": ">= 8" } }, - "node_modules/aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", - "dev": true - }, - "node_modules/are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "dev": true, - "dependencies": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, + "license": "MIT", "dependencies": { "sprintf-js": "~1.0.2" } }, - "node_modules/asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "node_modules/babel-jest": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.4.6.tgz", - "integrity": "sha512-qZL0JT0HS1L+lOuH+xC2DVASR3nunZi/ozGhpgauJHgmI7f8rudxf6hUjEHympdQ/J64CdKmPkgfJ+A3U6QCrg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.4.0", + "babel-preset-jest": "^29.6.3", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.8.0" } }, - "node_modules/babel-jest/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/babel-jest/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/babel-jest/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/babel-plugin-istanbul": { "version": "6.1.1", "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz", "integrity": "sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@istanbuljs/load-nyc-config": "^1.0.0", @@ -1609,55 +1357,78 @@ "node": ">=8" } }, - "node_modules/babel-plugin-jest-hoist": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.4.0.tgz", - "integrity": "sha512-Jcu7qS4OX5kTWBc45Hz7BMmgXuJqRnhatqpUhnzGC3OBYpOmf2tv6jFNwZpwM7wU7MUuv2r9IPS/ZlYOuburVw==", + "node_modules/babel-plugin-istanbul/node_modules/istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", "dev": true, + "license": "BSD-3-Clause", + "dependencies": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/babel-plugin-jest-hoist": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", + "dev": true, + "license": "MIT", "dependencies": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", + "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", "dev": true, + "license": "MIT", "dependencies": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" }, "peerDependencies": { - "@babel/core": "^7.0.0" + "@babel/core": "^7.0.0 || ^8.0.0-0" } }, "node_modules/babel-preset-jest": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.4.0.tgz", - "integrity": "sha512-NK4jGYpnBvNxcGo7/ZpZJr51jCGT+3bwwpVIDY2oNfTxJJldRtB4VAcYdgp1loDE50ODuTu+yBjpMAswv5tlpg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, + "license": "MIT", "dependencies": { - "babel-plugin-jest-hoist": "^27.4.0", + "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "@babel/core": "^7.0.0" @@ -1669,6 +1440,16 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "node_modules/baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "dev": true, + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.js" + } + }, "node_modules/brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -1680,46 +1461,50 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, + "license": "MIT", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" + }, + "engines": { + "node": ">=8" } }, - "node_modules/browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, - "node_modules/browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "node_modules/browserslist": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz", - "integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", "dependencies": { - "caniuse-lite": "^1.0.30001286", - "electron-to-chromium": "^1.4.17", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" }, "bin": { "browserslist": "cli.js" }, "engines": { "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" } }, "node_modules/bs-logger": { @@ -1736,21 +1521,24 @@ "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz", "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "node-int64": "^0.4.0" } }, "node_modules/buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "dev": true, + "license": "MIT" }, "node_modules/callsites": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -1760,18 +1548,43 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz", "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, "node_modules/caniuse-lite": { - "version": "1.0.30001303", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001303.tgz", - "integrity": "sha512-/Mqc1oESndUNszJP0kx0UaQU9kEv9nNtJ7Kn8AdA0mNnH8eR1cj0kG+NbNuC1Wq/b21eA8prhKRA3bbkjONegQ==", + "version": "1.0.30001770", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz", + "integrity": "sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==", "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.13" + }, "funding": { - "type": "opencollective", - "url": "https://opencollective.com/browserslist" + "url": "https://github.com/sponsors/mesqueeb" } }, "node_modules/chalk": { @@ -1779,6 +1592,7 @@ "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", "dev": true, + "license": "MIT", "dependencies": { "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" @@ -1795,90 +1609,83 @@ "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz", "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true, - "engines": { - "node": ">=10" - } - }, - "node_modules/chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, "node_modules/ci-info": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", - "dev": true + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "license": "MIT", + "engines": { + "node": ">=8" + } }, "node_modules/cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", - "dev": true + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", + "dev": true, + "license": "MIT" }, "node_modules/cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "license": "ISC", "dependencies": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" } }, "node_modules/co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true, + "license": "MIT", "engines": { "iojs": ">= 1.0.0", "node": ">= 0.12.0" } }, "node_modules/collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", - "dev": true + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", + "dev": true, + "license": "MIT" }, "node_modules/color-convert": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "license": "MIT", "dependencies": { "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" } }, "node_modules/color-name": { "version": "1.1.4", "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" - }, - "node_modules/color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "dev": true, - "bin": { - "color-support": "bin.js" - } - }, - "node_modules/combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "dependencies": { - "delayed-stream": "~1.0.0" - }, - "engines": { - "node": ">= 0.8" - } + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "license": "MIT" }, "node_modules/concat-map": { "version": "0.0.1", @@ -1886,26 +1693,41 @@ "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, - "node_modules/console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", - "dev": true - }, "node_modules/convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true, + "license": "MIT" + }, + "node_modules/create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", + "dev": true, + "license": "MIT", "dependencies": { - "safe-buffer": "~5.1.1" + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" + }, + "bin": { + "create-jest": "bin/create-jest.js" + }, + "engines": { + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -1915,95 +1737,49 @@ "node": ">= 8" } }, - "node_modules/cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "node_modules/cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "dependencies": { - "cssom": "~0.3.6" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/cssstyle/node_modules/cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - }, - "node_modules/data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "dependencies": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, + "license": "MIT", "dependencies": { - "ms": "^2.1.1" + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } } }, - "node_modules/decimal.js": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", - "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", - "dev": true - }, "node_modules/dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", - "dev": true - }, - "node_modules/deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", + "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", + "dev": true, + "license": "MIT", + "peerDependencies": { + "babel-plugin-macros": "^3.1.0" + }, + "peerDependenciesMeta": { + "babel-plugin-macros": { + "optional": true + } + } }, "node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } }, - "node_modules/delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true, - "engines": { - "node": ">=0.4.0" - } - }, - "node_modules/delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", - "dev": true - }, "node_modules/detect-libc": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", @@ -2021,53 +1797,46 @@ "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz", "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/diff-sequences": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.4.0.tgz", - "integrity": "sha512-YqiQzkrsmHMH5uuh8OdQFU9/ZpADnwzml8z0O5HvRNda+5UZsaX/xN+AAxfR2hWq1Y7HZnAzO9J5lJXOuDz2Ww==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true, + "license": "MIT", "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, - "node_modules/domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "node_modules/dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", "dev": true, + "license": "MIT", "dependencies": { - "webidl-conversions": "^5.0.0" - }, - "engines": { - "node": ">=8" - } - }, - "node_modules/domexception/node_modules/webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true, - "engines": { - "node": ">=8" + "detect-libc": "^1.0.3" } }, "node_modules/electron-to-chromium": { - "version": "1.4.57", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.57.tgz", - "integrity": "sha512-FNC+P5K1n6pF+M0zIK+gFCoXcJhhzDViL3DRIGy2Fv5PohuSES1JHR7T+GlwxSxlzx4yYbsuzCZvHxcBSRCIOw==", - "dev": true + "version": "1.5.286", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", + "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", + "dev": true, + "license": "ISC" }, "node_modules/emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true, + "license": "MIT", "engines": { - "node": ">=10" + "node": ">=12" }, "funding": { "url": "https://github.com/sindresorhus/emittery?sponsor=1" @@ -2078,10 +1847,34 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, + "node_modules/entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true, + "license": "BSD-2-Clause", + "engines": { + "node": ">=0.12" + }, + "funding": { + "url": "https://github.com/fb55/entities?sponsor=1" + } + }, + "node_modules/error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "is-arrayish": "^0.2.1" + } + }, "node_modules/escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", "engines": { "node": ">=6" } @@ -2091,37 +1884,17 @@ "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dev": true, - "dependencies": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1" - }, - "bin": { - "escodegen": "bin/escodegen.js", - "esgenerate": "bin/esgenerate.js" - }, - "engines": { - "node": ">=6.0" - }, - "optionalDependencies": { - "source-map": "~0.6.1" - } - }, "node_modules/esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true, + "license": "BSD-2-Clause", "bin": { "esparse": "bin/esparse.js", "esvalidate": "bin/esvalidate.js" @@ -2130,29 +1903,12 @@ "node": ">=4" } }, - "node_modules/estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true, - "engines": { - "node": ">=4.0" - } - }, - "node_modules/esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==", "dev": true, + "license": "MIT", "dependencies": { "cross-spawn": "^7.0.3", "get-stream": "^6.0.0", @@ -2174,59 +1930,27 @@ "node_modules/exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true, "engines": { "node": ">= 0.8.0" } }, "node_modules/expect": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.4.6.tgz", - "integrity": "sha512-1M/0kAALIaj5LaG66sFJTbRsWTADnylly82cu4bspI0nl+pgP4E6Bh/aqdHlTUjul06K7xQnnrAoqfxVU0+/ag==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", - "jest-get-type": "^27.4.0", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6" + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/expect/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/expect/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/expect/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/fast-json-stable-stringify": { @@ -2235,28 +1959,27 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "node_modules/fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, "node_modules/fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, + "license": "Apache-2.0", "dependencies": { "bser": "2.1.1" } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, + "license": "MIT", "dependencies": { "to-regex-range": "^5.0.1" + }, + "engines": { + "node": ">=8" } }, "node_modules/find-up": { @@ -2264,6 +1987,7 @@ "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", "dev": true, + "license": "MIT", "dependencies": { "locate-path": "^5.0.0", "path-exists": "^4.0.0" @@ -2272,32 +1996,6 @@ "node": ">=8" } }, - "node_modules/form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "dependencies": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0" - }, - "engines": { - "node": ">= 8" - } - }, "node_modules/fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -2305,11 +2003,12 @@ "dev": true }, "node_modules/fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "hasInstallScript": true, + "license": "MIT", "optional": true, "os": [ "darwin" @@ -2319,29 +2018,13 @@ } }, "node_modules/function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "node_modules/gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true, - "dependencies": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - }, - "engines": { - "node": ">=10" + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, "node_modules/gensync": { @@ -2349,6 +2032,7 @@ "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6.9.0" } @@ -2357,6 +2041,7 @@ "version": "2.0.5", "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "license": "ISC", "engines": { "node": "6.* || 8.* || >= 10.*" } @@ -2366,6 +2051,7 @@ "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz", "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.0.0" } @@ -2375,6 +2061,7 @@ "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz", "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -2402,135 +2089,81 @@ "url": "https://github.com/sponsors/isaacs" } }, - "node_modules/globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true, - "engines": { - "node": ">=4" - } - }, - "node_modules/google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "node_modules/graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", - "dev": true - }, - "node_modules/grpc-tools": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz", - "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true, - "hasInstallScript": true, + "license": "ISC" + }, + "node_modules/handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", + "dev": true, + "license": "MIT", "dependencies": { - "@mapbox/node-pre-gyp": "^1.0.5" + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "wordwrap": "^1.0.0" }, "bin": { - "grpc_tools_node_protoc": "bin/protoc.js", - "grpc_tools_node_protoc_plugin": "bin/protoc_plugin.js" - } - }, - "node_modules/has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "dependencies": { - "function-bind": "^1.1.1" + "handlebars": "bin/handlebars" }, "engines": { - "node": ">= 0.4.0" + "node": ">=0.4.7" + }, + "optionalDependencies": { + "uglify-js": "^3.1.4" } }, "node_modules/has-flag": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "node_modules/has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "node_modules/html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", + "dev": true, + "license": "MIT", "dependencies": { - "whatwg-encoding": "^1.0.5" + "function-bind": "^1.1.2" }, "engines": { - "node": ">=10" + "node": ">= 0.4" } }, "node_modules/html-escaper": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz", "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", - "dev": true - }, - "node_modules/http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", "dev": true, - "dependencies": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } - }, - "node_modules/https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", - "dev": true, - "dependencies": { - "agent-base": "6", - "debug": "4" - }, - "engines": { - "node": ">= 6" - } + "license": "MIT" }, "node_modules/human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true, + "license": "Apache-2.0", "engines": { "node": ">=10.17.0" } }, - "node_modules/iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "dependencies": { - "safer-buffer": ">= 2.1.2 < 3" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, + "license": "MIT", "dependencies": { "pkg-dir": "^4.2.0", "resolve-cwd": "^3.0.0" @@ -2548,8 +2181,9 @@ "node_modules/imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.8.19" } @@ -2570,13 +2204,24 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, - "node_modules/is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", + "node_modules/is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", "dev": true, + "license": "MIT" + }, + "node_modules/is-core-module": { + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", + "dev": true, + "license": "MIT", "dependencies": { - "has": "^1.0.3" + "hasown": "^2.0.2" + }, + "engines": { + "node": ">= 0.4" }, "funding": { "url": "https://github.com/sponsors/ljharb" @@ -2595,6 +2240,7 @@ "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz", "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -2603,19 +2249,18 @@ "version": "7.0.0", "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", - "dev": true - }, - "node_modules/is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.12.0" + } }, "node_modules/is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" }, @@ -2623,55 +2268,95 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "node_modules/isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", - "dev": true + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "dev": true, + "license": "ISC" }, "node_modules/istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=8" } }, "node_modules/istanbul-lib-instrument": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", - "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "semver": "^7.5.4" }, "engines": { - "node": ">=8" + "node": ">=10" + } + }, + "node_modules/istanbul-lib-instrument/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" }, "engines": { - "node": ">=8" + "node": ">=10" + } + }, + "node_modules/istanbul-lib-report/node_modules/make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "license": "MIT", + "dependencies": { + "semver": "^7.5.3" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/istanbul-lib-report/node_modules/semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true, + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" } }, "node_modules/istanbul-lib-source-maps": { @@ -2679,6 +2364,7 @@ "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz", "integrity": "sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "debug": "^4.1.1", "istanbul-lib-coverage": "^3.0.0", @@ -2689,10 +2375,11 @@ } }, "node_modules/istanbul-reports": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.3.tgz", - "integrity": "sha512-x9LtDVtfm/t1GFiLl3NffC7hz+I1ragvgX1P/Lg1NlIagifZDKUkuuaAxH/qpwj2IuEfD8G2Bs/UKp+sZ/pKkg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "html-escaper": "^2.0.0", "istanbul-lib-report": "^3.0.0" @@ -2702,20 +2389,22 @@ } }, "node_modules/jest": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.4.7.tgz", - "integrity": "sha512-8heYvsx7nV/m8m24Vk26Y87g73Ba6ueUd0MWed/NXMhSZIm62U/llVbS0PJe1SHunbyXjJ/BqG1z9bFjGUIvTg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/core": "^27.4.7", + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", "import-local": "^3.0.2", - "jest-cli": "^27.4.7" + "jest-cli": "^29.7.0" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2727,141 +2416,76 @@ } }, "node_modules/jest-changed-files": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.4.2.tgz", - "integrity": "sha512-/9x8MjekuzUQoPjDHbBiXbNEBauhrPU2ct7m8TfCg69ywt1y/N+yYwGh3gCpnqUS3klYWDU/lSNgv+JhoD2k1A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", "execa": "^5.0.0", - "throat": "^6.0.1" + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-changed-files/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-changed-files/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-changed-files/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-circus": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.4.6.tgz", - "integrity": "sha512-UA7AI5HZrW4wRM72Ro80uRR2Fg+7nR0GESbSI/2M+ambbzVuA63mn5T1p3Z/wlhntzGpIG1xx78GP2YIkf6PhQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.4.6", + "dedent": "^1.0.0", "is-generator-fn": "^2.0.0", - "jest-each": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" + "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-circus/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-circus/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-circus/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-cli": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.4.7.tgz", - "integrity": "sha512-zREYhvjjqe1KsGV15mdnxjThKNDgza1fhDT+iUsXWLCq3sxe9w5xnvyctcYVT5PcdLSjv7Y5dCwTS3FCF1tiuw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/core": "^27.4.7", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", + "create-jest": "^29.7.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.4", "import-local": "^3.0.2", - "jest-config": "^27.4.7", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", - "prompts": "^2.0.1", - "yargs": "^16.2.0" + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" }, "bin": { "jest": "bin/jest.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0" @@ -2872,560 +2496,224 @@ } } }, - "node_modules/jest-cli/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-cli/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-cli/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/jest-config": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.4.7.tgz", - "integrity": "sha512-xz/o/KJJEedHMrIY9v2ParIoYSrSVY6IVeE4z5Z3i101GoA5XgfbJz+1C8EYPsv7u7f39dS8F9v46BHDhn0vlw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.4.6", - "@jest/types": "^27.4.2", - "babel-jest": "^27.4.6", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-circus": "^27.4.6", - "jest-environment-jsdom": "^27.4.6", - "jest-environment-node": "^27.4.6", - "jest-get-type": "^27.4.0", - "jest-jasmine2": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-runner": "^27.4.6", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "micromatch": "^4.0.4", - "pretty-format": "^27.4.6", - "slash": "^3.0.0" + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "peerDependencies": { + "@types/node": "*", "ts-node": ">=9.0.0" }, "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, "ts-node": { "optional": true } } }, - "node_modules/jest-config/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-config/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-config/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/jest-diff": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.4.6.tgz", - "integrity": "sha512-zjaB0sh0Lb13VyPsd92V7HkqF6yKRH9vm33rwBt7rPYrpQvS1nCvlIy2pICbKta+ZjWngYLNn4cCK4nyZkjS/w==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", - "diff-sequences": "^27.4.0", - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-docblock": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.4.0.tgz", - "integrity": "sha512-7TBazUdCKGV7svZ+gh7C8esAnweJoG+SvcF6Cjqj4l17zA2q1cMwx2JObSioubk317H+cjcHgP+7fTs60paulg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, + "license": "MIT", "dependencies": { "detect-newline": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-each": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.4.6.tgz", - "integrity": "sha512-n6QDq8y2Hsmn22tRkgAk+z6MCX7MeVlAzxmZDshfS2jLcaBlyhpF3tZSJLR+kXmh23GEvS0ojMR8i6ZeRvpQcA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", - "jest-get-type": "^27.4.0", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6" + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-each/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-each/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-each/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-environment-jsdom": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.4.6.tgz", - "integrity": "sha512-o3dx5p/kHPbUlRvSNjypEcEtgs6LmvESMzgRFQE6c+Prwl2JLA4RZ7qAnxc5VM8kutsGRTB15jXeeSbJsKN9iA==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/node": "*", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2", - "jsdom": "^16.6.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-jsdom/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-jsdom/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-environment-jsdom/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-environment-node": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.4.6.tgz", - "integrity": "sha512-yfHlZ9m+kzTKZV0hVfhVu6GuDxKAYeFHrfulmy7Jxwsq4V7+ZK7f+c0XP/tbVDMQW7E4neG2u147hFkuVz0MlQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2" + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-environment-node/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-environment-node/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-get-type": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.4.0.tgz", - "integrity": "sha512-tk9o+ld5TWq41DkK14L4wox4s2D9MtTpKaAVzXfr5CUKm5ZK2ExcaFE0qls2W71zE/6R2TxxrK9w2r6svAFDBQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true, + "license": "MIT", "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-haste-map": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.4.6.tgz", - "integrity": "sha512-0tNpgxg7BKurZeFkIOvGCkbmOHbLFf4LUQOxrQSMjvrQaQe3l6E8x6jYC1NuWkGo5WDdbr8FEzUxV2+LWNawKQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", - "@types/graceful-fs": "^4.1.2", + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^27.4.0", - "jest-serializer": "^27.4.0", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "micromatch": "^4.0.4", - "walker": "^1.0.7" + "walker": "^1.0.8" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" }, "optionalDependencies": { "fsevents": "^2.3.2" } }, - "node_modules/jest-haste-map/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-haste-map/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-haste-map/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-jasmine2": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.4.6.tgz", - "integrity": "sha512-uAGNXF644I/whzhsf7/qf74gqy9OuhvJ0XYp8SDecX2ooGeaPnmJMjXjKt0mqh1Rl5dtRGxJgNrHlBQIBfS5Nw==", - "dev": true, - "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/source-map": "^27.4.0", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.4.6", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6", - "throat": "^6.0.1" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-jasmine2/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-jasmine2/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-jasmine2/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, "node_modules/jest-leak-detector": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.4.6.tgz", - "integrity": "sha512-kkaGixDf9R7CjHm2pOzfTxZTQQQ2gHTIWKY/JZSiYTc90bZp8kSZnUMS3uLAfwTZwc0tcMRoEX74e14LG1WapA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, + "license": "MIT", "dependencies": { - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-matcher-utils": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.4.6.tgz", - "integrity": "sha512-XD4PKT3Wn1LQnRAq7ZsTI0VRuEc9OrCPFiO1XL7bftTGmfNF0DcEwMHRgqiu7NGf8ZoZDREpGrCniDkjt79WbA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, + "license": "MIT", "dependencies": { "chalk": "^4.0.0", - "jest-diff": "^27.4.6", - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-message-util": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.4.6.tgz", - "integrity": "sha512-0p5szriFU0U74czRSFjH6RyS7UYIAkn/ntwMuOwTGWrQIOh5NzXXrq72LOqIkJKKvFbPq+byZKuBz78fjBERBA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, + "license": "MIT", "dependencies": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.4.6", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-message-util/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-message-util/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-message-util/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-mock": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.4.6.tgz", - "integrity": "sha512-kvojdYRkst8iVSZ1EJ+vc1RRD9llueBjKzXzeCytH3dMM7zvPV/ULcfI2nr0v0VUgm3Bjt3hBCQvOeaBz+ZTHw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", - "@types/node": "*" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-mock/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" + "jest-util": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-mock/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-mock/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-pnp-resolver": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" }, @@ -3439,339 +2727,155 @@ } }, "node_modules/jest-regex-util": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.4.0.tgz", - "integrity": "sha512-WeCpMpNnqJYMQoOjm1nTtsgbR4XHAk1u00qDoNBQoykM280+/TmgA5Qh5giC1ecy6a5d4hbSsHzpBtu5yvlbEg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true, + "license": "MIT", "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.4.6.tgz", - "integrity": "sha512-SFfITVApqtirbITKFAO7jOVN45UgFzcRdQanOFzjnbd+CACDoyeX7206JyU92l4cRr73+Qy/TlW51+4vHGt+zw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", + "resolve.exports": "^2.0.0", "slash": "^3.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-resolve-dependencies": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.4.6.tgz", - "integrity": "sha512-W85uJZcFXEVZ7+MZqIPCscdjuctruNGXUZ3OHSXOfXR9ITgbUKeHj+uGcies+0SsvI5GtUfTw4dY7u9qjTvQOw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", - "jest-regex-util": "^27.4.0", - "jest-snapshot": "^27.4.6" + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve-dependencies/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve-dependencies/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-resolve-dependencies/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-resolve/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-resolve/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-resolve/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runner": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.4.6.tgz", - "integrity": "sha512-IDeFt2SG4DzqalYBZRgbbPmpwV3X0DcntjezPBERvnhwKGWTW7C5pbbA5lVkmvgteeNfdd/23gwqv3aiilpYPg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/console": "^27.4.6", - "@jest/environment": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-docblock": "^27.4.0", - "jest-environment-jsdom": "^27.4.6", - "jest-environment-node": "^27.4.6", - "jest-haste-map": "^27.4.6", - "jest-leak-detector": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-resolve": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runner/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runner/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-runner/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-runtime": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.4.6.tgz", - "integrity": "sha512-eXYeoR/MbIpVDrjqy5d6cGCFOYBFFDeKaNWqTp0h6E74dK0zLHzASQXJpl5a2/40euBmKnprNLJ0Kh0LCndnWQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/globals": "^27.4.6", - "@jest/source-map": "^27.4.0", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-mock": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0", "strip-bom": "^4.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runtime/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-runtime/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-runtime/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" - } - }, - "node_modules/jest-serializer": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.4.0.tgz", - "integrity": "sha512-RDhpcn5f1JYTX2pvJAGDcnsNTnsV9bjYPU8xcV+xPwOXnUPOQwf4ZEuiU6G9H1UztH+OapMgu/ckEVwO87PwnQ==", - "dev": true, - "dependencies": { - "@types/node": "*", - "graceful-fs": "^4.2.4" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.4.6.tgz", - "integrity": "sha512-fafUCDLQfzuNP9IRcEqaFAMzEe7u5BF7mude51wyWv7VRex60WznZIC7DfKTgSIlJa8aFzYmXclmN328aqSDmQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, + "license": "MIT", "dependencies": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.4.6", - "graceful-fs": "^4.2.4", - "jest-diff": "^27.4.6", - "jest-get-type": "^27.4.0", - "jest-haste-map": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-util": "^27.4.2", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "natural-compare": "^1.4.0", - "pretty-format": "^27.4.6", - "semver": "^7.3.2" + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-snapshot/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-snapshot/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-snapshot/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -3780,105 +2884,39 @@ } }, "node_modules/jest-util": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.4.2.tgz", - "integrity": "sha512-YuxxpXU6nlMan9qyLuxHaMMOzXAl5aGZWCSzben5DhLHemYQxCc4YK+4L3ZrCutT8GPQ+ui9k5D8rUJoDioMnA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "picomatch": "^2.2.3" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-util/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-util/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-util/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.4.6.tgz", - "integrity": "sha512-872mEmCPVlBqbA5dToC57vA3yJaMRfIdpCoD3cyHWJOMx+SJwLNw0I71EkWs41oza/Er9Zno9XuTkRYCPDUJXQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.4.0", + "jest-get-type": "^29.6.3", "leven": "^3.1.0", - "pretty-format": "^27.4.6" + "pretty-format": "^29.7.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-validate/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-validate/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-validate/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-validate/node_modules/camelcase": { @@ -3886,6 +2924,7 @@ "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -3894,69 +2933,39 @@ } }, "node_modules/jest-watcher": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.4.6.tgz", - "integrity": "sha512-yKQ20OMBiCDigbD0quhQKLkBO+ObGN79MO4nT7YaCuQ5SM+dkBNWE8cZX0FjU6czwMvWw6StWbe+Wv4jJPJ+fw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, + "license": "MIT", "dependencies": { - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.4.2", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", "string-length": "^4.0.1" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-watcher/node_modules/@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - }, - "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" - } - }, - "node_modules/jest-watcher/node_modules/@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "dependencies": { - "@types/istanbul-lib-report": "*" - } - }, - "node_modules/jest-watcher/node_modules/@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "dependencies": { - "@types/yargs-parser": "*" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", - "integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, + "license": "MIT", "dependencies": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, "engines": { - "node": ">= 10.13.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/jest-worker/node_modules/supports-color": { @@ -3964,6 +2973,7 @@ "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", "dev": true, + "license": "MIT", "dependencies": { "has-flag": "^4.0.0" }, @@ -3978,13 +2988,15 @@ "version": "4.0.0", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", "dev": true, + "license": "MIT", "dependencies": { "argparse": "^1.0.7", "esprima": "^4.0.0" @@ -3993,105 +3005,45 @@ "js-yaml": "bin/js-yaml.js" } }, - "node_modules/jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "dependencies": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - }, - "peerDependencies": { - "canvas": "^2.5.0" - }, - "peerDependenciesMeta": { - "canvas": { - "optional": true - } - } - }, - "node_modules/jsdom/node_modules/ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "engines": { - "node": ">=8.3.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } - } - }, "node_modules/jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", "dev": true, + "license": "MIT", "bin": { "jsesc": "bin/jsesc" }, "engines": { - "node": ">=4" + "node": ">=6" } }, + "node_modules/json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", + "dev": true, + "license": "MIT" + }, "node_modules/json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true, - "dependencies": { - "minimist": "^1.2.5" + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" } }, - "node_modules/jsonc-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", - "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", - "dev": true - }, "node_modules/kleur": { "version": "3.0.3", "resolved": "https://registry.npmjs.org/kleur/-/kleur-3.0.3.tgz", "integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -4101,21 +3053,26 @@ "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz", "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "node_modules/lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", "dev": true, + "license": "MIT" + }, + "node_modules/linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", + "dev": true, + "license": "MIT", "dependencies": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" - }, - "engines": { - "node": ">= 0.8.0" + "uc.micro": "^2.0.0" } }, "node_modules/locate-path": { @@ -4123,6 +3080,7 @@ "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", "dev": true, + "license": "MIT", "dependencies": { "p-locate": "^4.1.0" }, @@ -4130,16 +3088,11 @@ "node": ">=8" } }, - "node_modules/lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, "node_modules/lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==", + "license": "MIT" }, "node_modules/lodash.memoize": { "version": "4.1.2", @@ -4148,21 +3101,10 @@ "dev": true }, "node_modules/long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "node_modules/lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=10" - } + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" }, "node_modules/lunr": { "version": "2.3.9", @@ -4170,15 +3112,6 @@ "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", "dev": true }, - "node_modules/make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "dependencies": { - "semver": "^6.0.0" - } - }, "node_modules/make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -4190,67 +3123,83 @@ "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz", "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==", "dev": true, + "license": "BSD-3-Clause", "dependencies": { "tmpl": "1.0.5" } }, - "node_modules/marked": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.1.0.tgz", - "integrity": "sha512-+Z6KDjSPa6/723PQYyc1axYZpYYpDnECDaU6hkaf5gqBieBkMKYReL5hteF2QizhlMbgbo8umXl/clZ67+GlsA==", + "node_modules/markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==", "dev": true, + "license": "MIT", + "dependencies": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "bin": { + "markdown-it": "bin/markdown-it.mjs" + } + }, + "node_modules/markdown-it/node_modules/argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true, + "license": "Python-2.0" + }, + "node_modules/marked": { + "version": "15.0.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz", + "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", + "dev": true, + "license": "MIT", "bin": { "marked": "bin/marked.js" }, "engines": { - "node": ">= 12" + "node": ">= 18" } }, + "node_modules/mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", + "dev": true, + "license": "MIT" + }, "node_modules/merge-stream": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz", "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, + "license": "MIT", "dependencies": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" + "braces": "^3.0.3", + "picomatch": "^2.3.1" }, "engines": { "node": ">=8.6" } }, - "node_modules/mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, - "node_modules/mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "dev": true, - "dependencies": { - "mime-db": "1.51.0" - }, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/mimic-fn": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } @@ -4265,128 +3214,76 @@ } }, "node_modules/minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "node_modules/minipass": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz", - "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true, - "dependencies": { - "yallist": "^4.0.0" - }, - "engines": { - "node": ">=8" + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dev": true, - "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 8" - } - }, - "node_modules/mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", - "dev": true - }, "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", - "dev": true + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "dev": true, + "license": "MIT" }, "node_modules/natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", - "dev": true - }, - "node_modules/node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true, + "license": "MIT" + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true, + "license": "MIT" + }, + "node_modules/nice-grpc": { + "version": "2.1.14", + "resolved": "https://registry.npmjs.org/nice-grpc/-/nice-grpc-2.1.14.tgz", + "integrity": "sha512-GK9pKNxlvnU5FAdaw7i2FFuR9CqBspcE+if2tqnKXBcE0R8525wj4BZvfcwj7FjvqbssqKxRHt2nwedalbJlww==", + "license": "MIT", "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } + "@grpc/grpc-js": "^1.14.0", + "abort-controller-x": "^0.4.0", + "nice-grpc-common": "^2.0.2" } }, - "node_modules/node-fetch/node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "dev": true - }, - "node_modules/node-fetch/node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", - "dev": true - }, - "node_modules/node-fetch/node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dev": true, + "node_modules/nice-grpc-common": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nice-grpc-common/-/nice-grpc-common-2.0.2.tgz", + "integrity": "sha512-7RNWbls5kAL1QVUOXvBsv1uO0wPQK3lHv+cY1gwkTzirnG1Nop4cBJZubpgziNbaVc/bl9QJcyvsf/NQxa3rjQ==", + "license": "MIT", "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" + "ts-error": "^1.0.6" } }, "node_modules/node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", - "dev": true + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", + "dev": true, + "license": "MIT" }, "node_modules/node-releases": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==", - "dev": true - }, - "node_modules/nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true, - "dependencies": { - "abbrev": "1" - }, - "bin": { - "nopt": "bin/nopt.js" - }, - "engines": { - "node": ">=6" - } + "license": "MIT" }, "node_modules/normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", "dev": true, + "license": "MIT", "engines": { "node": ">=0.10.0" } @@ -4396,6 +3293,7 @@ "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz", "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.0.0" }, @@ -4403,33 +3301,6 @@ "node": ">=8" } }, - "node_modules/npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "dev": true, - "dependencies": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "node_modules/nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true - }, - "node_modules/object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -4444,6 +3315,7 @@ "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", "dev": true, + "license": "MIT", "dependencies": { "mimic-fn": "^2.1.0" }, @@ -4454,33 +3326,17 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "dependencies": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, + "license": "MIT", "dependencies": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" }, "engines": { - "node": ">=6" + "node": ">=10" }, "funding": { "url": "https://github.com/sponsors/sindresorhus" @@ -4491,6 +3347,7 @@ "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", "dev": true, + "license": "MIT", "dependencies": { "p-limit": "^2.2.0" }, @@ -4498,26 +3355,57 @@ "node": ">=8" } }, + "node_modules/p-locate/node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, "node_modules/p-try": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true + "node_modules/parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } }, "node_modules/path-exists": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4533,6 +3421,7 @@ "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4541,19 +3430,22 @@ "version": "1.0.7", "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", - "dev": true + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" }, "node_modules/picomatch": { "version": "2.3.1", "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz", "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==", "dev": true, + "license": "MIT", "engines": { "node": ">=8.6" }, @@ -4562,10 +3454,11 @@ } }, "node_modules/pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true, + "license": "MIT", "engines": { "node": ">= 6" } @@ -4575,6 +3468,7 @@ "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", "dev": true, + "license": "MIT", "dependencies": { "find-up": "^4.0.0" }, @@ -4582,27 +3476,19 @@ "node": ">=8" } }, - "node_modules/prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/pretty-format": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.4.6.tgz", - "integrity": "sha512-NblstegA1y/RJW2VyML+3LlpFjzx62cUrtBIKIWDXEDkjNeleA7Od7nrzcs/VLQvAeV4CgSYhrN39DRN88Qi/g==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, + "license": "MIT", "dependencies": { - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" + "react-is": "^18.0.0" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || >=18.0.0" } }, "node_modules/pretty-format/node_modules/ansi-styles": { @@ -4610,6 +3496,7 @@ "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz", "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" }, @@ -4622,6 +3509,7 @@ "resolved": "https://registry.npmjs.org/prompts/-/prompts-2.4.2.tgz", "integrity": "sha512-NxNv/kLguCA7p3jE8oL2aEBsrJWgAakBpgmgK6lpPWV+WuOmY6r2/zbAVnP+T8bQlA0nzHXSJSJW0Hq7ylaD2Q==", "dev": true, + "license": "MIT", "dependencies": { "kleur": "^3.0.3", "sisteransi": "^1.0.5" @@ -4631,10 +3519,11 @@ } }, "node_modules/protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", "hasInstallScript": true, + "license": "BSD-3-Clause", "dependencies": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -4646,92 +3535,73 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" + "long": "^5.0.0" }, - "bin": { - "pbjs": "bin/pbjs", - "pbts": "bin/pbts" + "engines": { + "node": ">=12.0.0" } }, - "node_modules/protobufjs/node_modules/@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - }, - "node_modules/protoc-gen-ts": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/protoc-gen-ts/-/protoc-gen-ts-0.8.2.tgz", - "integrity": "sha512-KRHMRLQqhDnaGq31qLDxhW4vcGmPqS2NS1XflDJyUBt2G6Egy9exBKFA2leyDgRab0BBRshoSXpJMkqmRtoQ6w==", - "bin": { - "protoc-gen-ts": "bin/protoc-gen-ts.js" - }, - "funding": { - "type": "individual", - "url": "https://www.buymeacoffee.com/thesayyn" - }, - "peerDependencies": { - "google-protobuf": "^3.13.0", - "typescript": ">=4" - } - }, - "node_modules/psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", - "dev": true - }, - "node_modules/punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "node_modules/punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", - "dev": true - }, - "node_modules/readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", + "node_modules/pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", "dev": true, - "dependencies": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - }, - "engines": { - "node": ">= 6" - } + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/dubzzz" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/fast-check" + } + ], + "license": "MIT" + }, + "node_modules/react-is": { + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", + "dev": true, + "license": "MIT" }, "node_modules/require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "license": "MIT", "engines": { "node": ">=0.10.0" } }, "node_modules/resolve": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dev": true, + "license": "MIT", "dependencies": { - "is-core-module": "^2.8.1", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" }, "bin": { "resolve": "bin/resolve" }, + "engines": { + "node": ">= 0.4" + }, "funding": { "url": "https://github.com/sponsors/ljharb" } @@ -4741,6 +3611,7 @@ "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", "dev": true, + "license": "MIT", "dependencies": { "resolve-from": "^5.0.0" }, @@ -4753,77 +3624,42 @@ "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, "node_modules/resolve.exports": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", "dev": true, + "license": "MIT", "engines": { "node": ">=10" } }, - "node_modules/rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "dependencies": { - "glob": "^7.1.3" - } - }, "node_modules/rxjs": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz", - "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "license": "Apache-2.0", "dependencies": { "tslib": "^2.1.0" } }, - "node_modules/safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "node_modules/safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "node_modules/saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "dependencies": { - "xmlchars": "^2.2.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true }, - "node_modules/set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==", "dev": true, + "license": "MIT", "dependencies": { "shebang-regex": "^3.0.0" }, @@ -4836,38 +3672,31 @@ "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz", "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } }, - "node_modules/shiki": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.10.0.tgz", - "integrity": "sha512-iczxaIYeBFHTFrQPb9DVy2SKgYxC4Wo7Iucm7C17cCh2Ge/refnvHscUOxM85u57MfLoNOtjoEFUWt9gBexblA==", - "dev": true, - "dependencies": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "5.2.0" - } - }, "node_modules/signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", - "dev": true + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "dev": true, + "license": "ISC" }, "node_modules/sisteransi": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", - "dev": true + "dev": true, + "license": "MIT" }, "node_modules/slash": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4877,15 +3706,17 @@ "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", "dev": true, + "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" } }, "node_modules/source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, + "license": "MIT", "dependencies": { "buffer-from": "^1.0.0", "source-map": "^0.6.0" @@ -4894,14 +3725,16 @@ "node_modules/sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", + "dev": true, + "license": "BSD-3-Clause" }, "node_modules/stack-utils": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", - "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, + "license": "MIT", "dependencies": { "escape-string-regexp": "^2.0.0" }, @@ -4909,40 +3742,12 @@ "node": ">=10" } }, - "node_modules/string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "dependencies": { - "safe-buffer": "~5.2.0" - } - }, - "node_modules/string_decoder/node_modules/safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/feross" - }, - { - "type": "patreon", - "url": "https://www.patreon.com/feross" - }, - { - "type": "consulting", - "url": "https://feross.org/support" - } - ] - }, "node_modules/string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==", "dev": true, + "license": "MIT", "dependencies": { "char-regex": "^1.0.2", "strip-ansi": "^6.0.0" @@ -4980,6 +3785,7 @@ "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz", "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==", "dev": true, + "license": "MIT", "engines": { "node": ">=8" } @@ -4989,27 +3795,32 @@ "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz", "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true, + "license": "MIT", "engines": { "node": ">=6" } }, - "node_modules/supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "node_modules/strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", "dev": true, - "dependencies": { - "has-flag": "^4.0.0" + "license": "MIT", + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/supports-hyperlinks": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", + "node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, + "license": "MIT", "dependencies": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" + "has-flag": "^4.0.0" }, "engines": { "node": ">=8" @@ -5020,6 +3831,7 @@ "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true, + "license": "MIT", "engines": { "node": ">= 0.4" }, @@ -5027,50 +3839,12 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "node_modules/tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "dev": true, - "dependencies": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - }, - "engines": { - "node": ">= 10" - } - }, - "node_modules/terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "dependencies": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - }, - "engines": { - "node": ">=8" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, "node_modules/test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==", "dev": true, + "license": "ISC", "dependencies": { "@istanbuljs/schema": "^0.1.2", "glob": "^7.1.4", @@ -5080,96 +3854,72 @@ "node": ">=8" } }, - "node_modules/throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true - }, "node_modules/tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", - "dev": true - }, - "node_modules/to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", "dev": true, - "engines": { - "node": ">=4" - } + "license": "BSD-3-Clause" }, "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", "dev": true, + "license": "MIT", "dependencies": { "is-number": "^7.0.0" - } - }, - "node_modules/tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", - "dev": true, - "dependencies": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.1.2" }, "engines": { - "node": ">=6" + "node": ">=8.0" } }, - "node_modules/tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "dependencies": { - "punycode": "^2.1.1" - }, - "engines": { - "node": ">=8" - } + "node_modules/ts-error": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/ts-error/-/ts-error-1.0.6.tgz", + "integrity": "sha512-tLJxacIQUM82IR7JO1UUkKlYuUTmoY9HBJAmNWFzheSlDS5SPMcNIepejHJa4BpPQLAcbRhRf3GDJzyj6rbKvA==", + "license": "MIT" }, "node_modules/ts-jest": { - "version": "27.1.3", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", - "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", + "version": "29.4.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", + "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", "dev": true, + "license": "MIT", "dependencies": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.3", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" }, "bin": { "ts-jest": "cli.js" }, "engines": { - "node": "^10.13.0 || ^12.13.0 || ^14.15.0 || >=15.0.0" + "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0" }, "peerDependencies": { "@babel/core": ">=7.0.0-beta.0 <8", - "@types/jest": "^27.0.0", - "babel-jest": ">=27.0.0 <28", - "esbuild": "~0.14.0", - "jest": "^27.0.0", - "typescript": ">=3.8 <5.0" + "@jest/transform": "^29.0.0 || ^30.0.0", + "@jest/types": "^29.0.0 || ^30.0.0", + "babel-jest": "^29.0.0 || ^30.0.0", + "jest": "^29.0.0 || ^30.0.0", + "jest-util": "^29.0.0 || ^30.0.0", + "typescript": ">=4.3 <6" }, "peerDependenciesMeta": { "@babel/core": { "optional": true }, - "@types/jest": { + "@jest/transform": { + "optional": true + }, + "@jest/types": { "optional": true }, "babel-jest": { @@ -5177,17 +3927,18 @@ }, "esbuild": { "optional": true + }, + "jest-util": { + "optional": true } } }, "node_modules/ts-jest/node_modules/semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, + "license": "ISC", "bin": { "semver": "bin/semver.js" }, @@ -5195,13 +3946,53 @@ "node": ">=10" } }, - "node_modules/ts-protoc-gen": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.12.0.tgz", - "integrity": "sha512-V7jnICJxKqalBrnJSMTW5tB9sGi48gOC325bfcM7TDNUItVOlaMM//rQmuo49ybipk/SyJTnWXgtJnhHCevNJw==", + "node_modules/ts-jest/node_modules/type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", "dev": true, + "license": "(MIT OR CC0-1.0)", + "engines": { + "node": ">=16" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/ts-poet": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.0.tgz", + "integrity": "sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==", + "dev": true, + "license": "Apache-2.0", "dependencies": { - "google-protobuf": "^3.6.1" + "dprint-node": "^1.0.8" + } + }, + "node_modules/ts-proto": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.11.2.tgz", + "integrity": "sha512-+bPq2zDwNtJHtuyu2fGYgvTDxS7cBcY4u4moO1LyFA+my144Mfj9/sbNyGXKMtBK7DNXVGf76puwGa6hPzJw/g==", + "dev": true, + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.10.2", + "case-anything": "^2.1.13", + "ts-poet": "^6.12.0", + "ts-proto-descriptors": "2.1.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.1.0.tgz", + "integrity": "sha512-S5EZYEQ6L9KLFfjSRpZWDIXDV/W7tAj8uW7pLsihIxyr62EAVSiKuVPwE8iWnr849Bqa53enex1jhDUcpgquzA==", + "dev": true, + "license": "ISC", + "dependencies": { + "@bufbuild/protobuf": "^2.0.0" } }, "node_modules/tslib": { @@ -5209,23 +4000,12 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, - "node_modules/type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "dependencies": { - "prelude-ls": "~1.1.2" - }, - "engines": { - "node": ">= 0.8.0" - } - }, "node_modules/type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==", "dev": true, + "license": "MIT", "engines": { "node": ">=4" } @@ -5235,6 +4015,7 @@ "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz", "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true, + "license": "(MIT OR CC0-1.0)", "engines": { "node": ">=10" }, @@ -5242,172 +4023,158 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, "node_modules/typedoc": { - "version": "0.22.11", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.11.tgz", - "integrity": "sha512-pVr3hh6dkS3lPPaZz1fNpvcrqLdtEvXmXayN55czlamSgvEjh+57GUqfhAI1Xsuu/hNHUT1KNSx8LH2wBP/7SA==", + "version": "0.27.9", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.9.tgz", + "integrity": "sha512-/z585740YHURLl9DN2jCWe6OW7zKYm6VoQ93H0sxZ1cwHQEQrUn5BJrEnkWhfzUdyO+BLGjnKUZ9iz9hKloFDw==", "dev": true, + "license": "Apache-2.0", "dependencies": { - "glob": "^7.2.0", + "@gerrit0/mini-shiki": "^1.24.0", "lunr": "^2.3.9", - "marked": "^4.0.10", - "minimatch": "^3.0.4", - "shiki": "^0.10.0" + "markdown-it": "^14.1.0", + "minimatch": "^9.0.5", + "yaml": "^2.6.1" }, "bin": { "typedoc": "bin/typedoc" }, "engines": { - "node": ">= 12.10.0" + "node": ">= 18" }, "peerDependencies": { - "typescript": "4.0.x || 4.1.x || 4.2.x || 4.3.x || 4.4.x || 4.5.x" + "typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x" + } + }, + "node_modules/typedoc/node_modules/brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/typedoc/node_modules/minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" } }, "node_modules/typescript": { - "version": "4.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", - "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==", + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", + "dev": true, + "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" }, "engines": { - "node": ">=4.2.0" + "node": ">=14.17" } }, - "node_modules/universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "node_modules/uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", "dev": true, + "license": "MIT" + }, + "node_modules/uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "license": "BSD-2-Clause", + "optional": true, + "bin": { + "uglifyjs": "bin/uglifyjs" + }, "engines": { - "node": ">= 4.0.0" + "node": ">=0.8.0" } }, - "node_modules/util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", + "license": "MIT" + }, + "node_modules/update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } }, "node_modules/v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, + "license": "ISC", "dependencies": { + "@jridgewell/trace-mapping": "^0.3.12", "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "convert-source-map": "^2.0.0" }, "engines": { "node": ">=10.12.0" } }, - "node_modules/v8-to-istanbul/node_modules/source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true, - "engines": { - "node": ">= 8" - } - }, - "node_modules/vscode-oniguruma": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.1.tgz", - "integrity": "sha512-vc4WhSIaVpgJ0jJIejjYxPvURJavX6QG41vu0mGhqywMkQqulezEqEQ3cO3gc8GvcOpX6ycmKGqRoROEMBNXTQ==", - "dev": true - }, - "node_modules/vscode-textmate": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-5.2.0.tgz", - "integrity": "sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==", - "dev": true - }, - "node_modules/w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", - "dev": true, - "dependencies": { - "browser-process-hrtime": "^1.0.0" - } - }, - "node_modules/w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", - "dev": true, - "dependencies": { - "xml-name-validator": "^3.0.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/walker": { "version": "1.0.8", "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz", "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==", "dev": true, + "license": "Apache-2.0", "dependencies": { "makeerror": "1.0.12" } }, - "node_modules/webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true, - "engines": { - "node": ">=10.4" - } - }, - "node_modules/whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "dependencies": { - "iconv-lite": "0.4.24" - } - }, - "node_modules/whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "node_modules/whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "dependencies": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", "dev": true, + "license": "ISC", "dependencies": { "isexe": "^2.0.0" }, @@ -5418,28 +4185,18 @@ "node": ">= 8" } }, - "node_modules/wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "node_modules/wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", "dev": true, - "dependencies": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "node_modules/word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", - "dev": true, - "engines": { - "node": ">=0.10.0" - } + "license": "MIT" }, "node_modules/wrap-ansi": { "version": "7.0.0", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "license": "MIT", "dependencies": { "ansi-styles": "^4.0.0", "string-width": "^4.1.0", @@ -5459,353 +4216,253 @@ "dev": true }, "node_modules/write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, + "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "node_modules/ws": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", - "dev": true, + "signal-exit": "^3.0.7" + }, "engines": { - "node": ">=10.0.0" - }, - "peerDependencies": { - "bufferutil": "^4.0.1", - "utf-8-validate": "^5.0.2" - }, - "peerDependenciesMeta": { - "bufferutil": { - "optional": true - }, - "utf-8-validate": { - "optional": true - } + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" } }, - "node_modules/xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "node_modules/xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, "node_modules/y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "license": "ISC", "engines": { "node": ">=10" } }, - "node_modules/yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "node_modules/yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", + "dev": true, + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + }, + "funding": { + "url": "https://github.com/sponsors/eemeli" + } }, "node_modules/yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "license": "MIT", "dependencies": { - "cliui": "^7.0.2", + "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.0", + "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "yargs-parser": "^21.1.1" }, "engines": { - "node": ">=10" + "node": ">=12" } }, "node_modules/yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==", + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true, + "license": "MIT", "engines": { "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" } } }, "dependencies": { "@babel/code-frame": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.16.7.tgz", - "integrity": "sha512-iAXqUn8IIeBTNd72xsFlgaXHkMBMt6y4HJp1tIaK465CWLT/fG1aqB7ykr95gHHmlBdGbFeWWfyB4NJJ0nmeIg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz", + "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==", "dev": true, "requires": { - "@babel/highlight": "^7.16.7" + "@babel/helper-validator-identifier": "^7.28.5", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" } }, "@babel/compat-data": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.16.8.tgz", - "integrity": "sha512-m7OkX0IdKLKPpBlJtF561YJal5y/jyI5fNfWbPxh2D/nbzzGI4qRyrD8xO2jB24u7l+5I2a43scCG2IrfjC50Q==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz", + "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==", "dev": true }, "@babel/core": { - "version": "7.16.12", - "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.16.12.tgz", - "integrity": "sha512-dK5PtG1uiN2ikk++5OzSYsitZKny4wOCD0nrO4TqnW4BVBTQ2NGS3NgilvT/TEyxTST7LNyWV/T4tXDoD3fOgg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz", + "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==", "dev": true, "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.8", - "@babel/helper-compilation-targets": "^7.16.7", - "@babel/helper-module-transforms": "^7.16.7", - "@babel/helpers": "^7.16.7", - "@babel/parser": "^7.16.12", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.10", - "@babel/types": "^7.16.8", - "convert-source-map": "^1.7.0", + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-compilation-targets": "^7.28.6", + "@babel/helper-module-transforms": "^7.28.6", + "@babel/helpers": "^7.28.6", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/traverse": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", "debug": "^4.1.0", "gensync": "^1.0.0-beta.2", - "json5": "^2.1.2", - "semver": "^6.3.0", - "source-map": "^0.5.0" + "json5": "^2.2.3", + "semver": "^6.3.1" }, "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "dev": true } } }, "@babel/generator": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.16.8.tgz", - "integrity": "sha512-1ojZwE9+lOXzcWdWmO6TbUzDfqLD39CmEhN8+2cX9XkDo5yW1OpgfejfliysR2AWLpMamTiOiAp/mtroaymhpw==", + "version": "7.29.1", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz", + "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==", "dev": true, "requires": { - "@babel/types": "^7.16.8", - "jsesc": "^2.5.1", - "source-map": "^0.5.0" - }, - "dependencies": { - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - } + "@babel/parser": "^7.29.0", + "@babel/types": "^7.29.0", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" } }, "@babel/helper-compilation-targets": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.16.7.tgz", - "integrity": "sha512-mGojBwIWcwGD6rfqgRXVlVYmPAv7eOpIemUG3dGnDdCY4Pae70ROij3XmfrH6Fa1h1aiDylpglbZyktfzyo/hA==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz", + "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==", "dev": true, "requires": { - "@babel/compat-data": "^7.16.4", - "@babel/helper-validator-option": "^7.16.7", - "browserslist": "^4.17.5", - "semver": "^6.3.0" - } - }, - "@babel/helper-environment-visitor": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-environment-visitor/-/helper-environment-visitor-7.16.7.tgz", - "integrity": "sha512-SLLb0AAn6PkUeAfKJCCOl9e1R53pQlGAfc4y4XuMRZfqeMYLE0dM1LMhqbGAlGQY0lfw5/ohoYWAe9V1yibRag==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-function-name": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-function-name/-/helper-function-name-7.16.7.tgz", - "integrity": "sha512-QfDfEnIUyyBSR3HtrtGECuZ6DAyCkYFp7GHl75vFtTnn6pjKeK0T1DB5lLkFvBea8MdaiUABx3osbgLyInoejA==", - "dev": true, - "requires": { - "@babel/helper-get-function-arity": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-get-function-arity": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-get-function-arity/-/helper-get-function-arity-7.16.7.tgz", - "integrity": "sha512-flc+RLSOBXzNzVhcLu6ujeHUrD6tANAOU5ojrRx/as+tbzf8+stUCj7+IfRRoAbEZqj/ahXEMsjhOhgeZsrnTw==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-hoist-variables": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-hoist-variables/-/helper-hoist-variables-7.16.7.tgz", - "integrity": "sha512-m04d/0Op34H5v7pbZw6pSKP7weA6lsMvfiIAMeIvkY/R4xQtBSMFEigu9QTZ2qB/9l22vsxtM8a+Q8CzD255fg==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-module-imports": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.16.7.tgz", - "integrity": "sha512-LVtS6TqjJHFc+nYeITRo6VLXve70xmq7wPhWTqDJusJEgGmkAACWwMiTNrvfoQo6hEhFwAIixNkvB0jPXDL8Wg==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-module-transforms": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.16.7.tgz", - "integrity": "sha512-gaqtLDxJEFCeQbYp9aLAefjhkKdjKcdh6DB7jniIGU3Pz52WAmP268zK0VgPz9hUNkMSYeH976K2/Y6yPadpng==", - "dev": true, - "requires": { - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-module-imports": "^7.16.7", - "@babel/helper-simple-access": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/helper-validator-identifier": "^7.16.7", - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-plugin-utils": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.16.7.tgz", - "integrity": "sha512-Qg3Nk7ZxpgMrsox6HreY1ZNKdBq7K72tDSliA6dCl5f007jR4ne8iD5UzuNnCJH2xBf2BEEVGr+/OL6Gdp7RxA==", - "dev": true - }, - "@babel/helper-simple-access": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-simple-access/-/helper-simple-access-7.16.7.tgz", - "integrity": "sha512-ZIzHVyoeLMvXMN/vok/a4LWRy8G2v205mNP0XOuf9XRLyX5/u9CnVulUtDgUTama3lT+bf/UqucuZjqiGuTS1g==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-split-export-declaration": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.16.7.tgz", - "integrity": "sha512-xbWoy/PFoxSWazIToT9Sif+jJTlrMcndIsaOKvTA6u7QEo7ilkRZpjew18/W3c7nm8fXdUDXh02VXTbZ0pGDNw==", - "dev": true, - "requires": { - "@babel/types": "^7.16.7" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.16.7.tgz", - "integrity": "sha512-hsEnFemeiW4D08A5gUAZxLBTXpZ39P+a+DGDsHw1yxqyQ/jzFEnxf5uTEGp+3bzAbNOxU1paTgYS4ECU/IgfDw==", - "dev": true - }, - "@babel/helper-validator-option": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.16.7.tgz", - "integrity": "sha512-TRtenOuRUVo9oIQGPC5G9DgK4743cdxvtOw0weQNpZXaS16SCBi5MNjZF8vba3ETURjZpTbVn7Vvcf2eAwFozQ==", - "dev": true - }, - "@babel/helpers": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.16.7.tgz", - "integrity": "sha512-9ZDoqtfY7AuEOt3cxchfii6C7GDyyMBffktR5B2jvWv8u2+efwvpnVKXMWzNehqy68tKgAfSwfdw/lWpthS2bw==", - "dev": true, - "requires": { - "@babel/template": "^7.16.7", - "@babel/traverse": "^7.16.7", - "@babel/types": "^7.16.7" - } - }, - "@babel/highlight": { - "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.16.10.tgz", - "integrity": "sha512-5FnTQLSLswEj6IkgVw5KusNUUFY9ZGqe/TRFnP/BKYHYgfh7tc+C7mwiy95/yNP7Dh9x580Vv8r7u7ZfTBFxdw==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" + "@babel/compat-data": "^7.28.6", + "@babel/helper-validator-option": "^7.27.1", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" }, "dependencies": { - "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==", + "lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", "dev": true, "requires": { - "color-convert": "^1.9.0" + "yallist": "^3.0.2" } }, - "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=", + "semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", "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=", + "yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "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" - } } } }, - "@babel/parser": { - "version": "7.16.12", - "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.16.12.tgz", - "integrity": "sha512-VfaV15po8RiZssrkPweyvbGVSe4x2y+aciFCgn0n0/SJMR22cwofRV1mtnJQYcSB1wUTaA/X1LnA3es66MCO5A==", + "@babel/helper-globals": { + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz", + "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==", "dev": true }, + "@babel/helper-module-imports": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz", + "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==", + "dev": true, + "requires": { + "@babel/traverse": "^7.28.6", + "@babel/types": "^7.28.6" + } + }, + "@babel/helper-module-transforms": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz", + "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==", + "dev": true, + "requires": { + "@babel/helper-module-imports": "^7.28.6", + "@babel/helper-validator-identifier": "^7.28.5", + "@babel/traverse": "^7.28.6" + } + }, + "@babel/helper-plugin-utils": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz", + "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==", + "dev": true + }, + "@babel/helper-string-parser": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz", + "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==", + "dev": true + }, + "@babel/helper-validator-identifier": { + "version": "7.28.5", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz", + "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==", + "dev": true + }, + "@babel/helper-validator-option": { + "version": "7.27.1", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz", + "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==", + "dev": true + }, + "@babel/helpers": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz", + "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==", + "dev": true, + "requires": { + "@babel/template": "^7.28.6", + "@babel/types": "^7.28.6" + } + }, + "@babel/parser": { + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz", + "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==", + "dev": true, + "requires": { + "@babel/types": "^7.29.0" + } + }, "@babel/plugin-syntax-async-generators": { "version": "7.8.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz", @@ -5833,6 +4490,24 @@ "@babel/helper-plugin-utils": "^7.12.13" } }, + "@babel/plugin-syntax-class-static-block": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz", + "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, + "@babel/plugin-syntax-import-attributes": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz", + "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.28.6" + } + }, "@babel/plugin-syntax-import-meta": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz", @@ -5851,6 +4526,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-jsx": { + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz", + "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.28.6" + } + }, "@babel/plugin-syntax-logical-assignment-operators": { "version": "7.10.4", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz", @@ -5905,6 +4589,15 @@ "@babel/helper-plugin-utils": "^7.8.0" } }, + "@babel/plugin-syntax-private-property-in-object": { + "version": "7.14.5", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz", + "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==", + "dev": true, + "requires": { + "@babel/helper-plugin-utils": "^7.14.5" + } + }, "@babel/plugin-syntax-top-level-await": { "version": "7.14.5", "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz", @@ -5915,51 +4608,48 @@ } }, "@babel/plugin-syntax-typescript": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.16.7.tgz", - "integrity": "sha512-YhUIJHHGkqPgEcMYkPCKTyGUdoGKWtopIycQyjJH8OjvRgOYsXsaKehLVPScKJWAULPxMa4N1vCe6szREFlZ7A==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz", + "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==", "dev": true, "requires": { - "@babel/helper-plugin-utils": "^7.16.7" + "@babel/helper-plugin-utils": "^7.28.6" } }, "@babel/template": { - "version": "7.16.7", - "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.16.7.tgz", - "integrity": "sha512-I8j/x8kHUrbYRTUxXrrMbfCa7jxkE7tZre39x3kjr9hvI82cK1FfqLygotcWN5kdPGWcLdWMHpSBavse5tWw3w==", + "version": "7.28.6", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz", + "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==", "dev": true, "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/parser": "^7.16.7", - "@babel/types": "^7.16.7" + "@babel/code-frame": "^7.28.6", + "@babel/parser": "^7.28.6", + "@babel/types": "^7.28.6" } }, "@babel/traverse": { - "version": "7.16.10", - "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.16.10.tgz", - "integrity": "sha512-yzuaYXoRJBGMlBhsMJoUW7G1UmSb/eXr/JHYM/MsOJgavJibLwASijW7oXBdw3NQ6T0bW7Ty5P/VarOs9cHmqw==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz", + "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==", "dev": true, "requires": { - "@babel/code-frame": "^7.16.7", - "@babel/generator": "^7.16.8", - "@babel/helper-environment-visitor": "^7.16.7", - "@babel/helper-function-name": "^7.16.7", - "@babel/helper-hoist-variables": "^7.16.7", - "@babel/helper-split-export-declaration": "^7.16.7", - "@babel/parser": "^7.16.10", - "@babel/types": "^7.16.8", - "debug": "^4.1.0", - "globals": "^11.1.0" + "@babel/code-frame": "^7.29.0", + "@babel/generator": "^7.29.0", + "@babel/helper-globals": "^7.28.0", + "@babel/parser": "^7.29.0", + "@babel/template": "^7.28.6", + "@babel/types": "^7.29.0", + "debug": "^4.3.1" } }, "@babel/types": { - "version": "7.16.8", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.16.8.tgz", - "integrity": "sha512-smN2DQc5s4M7fntyjGtyIPbRJv6wW4rU/94fmYJ7PKQuZkC0qGMHXJbg6sNGt12JmVr4k5YaptI/XtiLJBnmIg==", + "version": "7.29.0", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz", + "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==", "dev": true, "requires": { - "@babel/helper-validator-identifier": "^7.16.7", - "to-fast-properties": "^2.0.0" + "@babel/helper-string-parser": "^7.27.1", + "@babel/helper-validator-identifier": "^7.28.5" } }, "@bcoe/v8-coverage": { @@ -5968,40 +4658,40 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "@grpc/grpc-js": { - "version": "1.5.5", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.5.5.tgz", - "integrity": "sha512-FTd27ItHlsSG/7hp62xgI9YnqSwRbHRSVmDVR8DwOoC+6t8JhHRXe2JL0U8N9GLc0jS0HrtEbO/KP5+G0ebjLQ==", + "@bufbuild/protobuf": { + "version": "2.11.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-2.11.0.tgz", + "integrity": "sha512-sBXGT13cpmPR5BMgHE6UEEfEaShh5Ror6rfN3yEK5si7QVrtZg8LEPQb0VVhiLRUslD2yLnXtnRzG035J/mZXQ==" + }, + "@gerrit0/mini-shiki": { + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-1.27.2.tgz", + "integrity": "sha512-GeWyHz8ao2gBiUW4OJnQDxXQnFgZQwwQk05t/CVVgNBN7/rK8XZ7xY6YhLVv9tH3VppWWmr9DCl3MwemB/i+Og==", + "dev": true, "requires": { - "@grpc/proto-loader": "^0.6.4", - "@types/node": ">=12.12.47" + "@shikijs/engine-oniguruma": "^1.27.2", + "@shikijs/types": "^1.27.2", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "@grpc/grpc-js": { + "version": "1.14.3", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.14.3.tgz", + "integrity": "sha512-Iq8QQQ/7X3Sac15oB6p0FmUg/klxQvXLeileoqrTRGJYLV+/9tubbr9ipz0GKHjmXVsgFPo/+W+2cA8eNcR+XA==", + "requires": { + "@grpc/proto-loader": "^0.8.0", + "@js-sdsl/ordered-map": "^4.4.2" } }, "@grpc/proto-loader": { - "version": "0.6.9", - "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.6.9.tgz", - "integrity": "sha512-UlcCS8VbsU9d3XTXGiEVFonN7hXk+oMXZtoHHG2oSA1/GcDP1q6OUgs20PzHDGizzyi8ufGSUDlk3O2NyY7leg==", + "version": "0.8.0", + "resolved": "https://registry.npmjs.org/@grpc/proto-loader/-/proto-loader-0.8.0.tgz", + "integrity": "sha512-rc1hOQtjIWGxcxpb9aHAfLpIctjEnsDehj0DAiVfBlmT84uvR0uUtN2hEi/ecvWVjXUGf5qPF4qEgiLOx1YIMQ==", "requires": { - "@types/long": "^4.0.1", "lodash.camelcase": "^4.3.0", - "long": "^4.0.0", - "protobufjs": "^6.10.0", - "yargs": "^16.2.0" - }, - "dependencies": { - "@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - } - } - }, - "@improbable-eng/grpc-web": { - "version": "0.15.0", - "resolved": "https://registry.npmjs.org/@improbable-eng/grpc-web/-/grpc-web-0.15.0.tgz", - "integrity": "sha512-ERft9/0/8CmYalqOVnJnpdDry28q+j+nAlFFARdjyxXDJ+Mhgv9+F600QC8BR9ygOfrXRlAk6CvST2j+JCpQPg==", - "requires": { - "browser-headers": "^0.4.1" + "long": "^5.0.0", + "protobufjs": "^7.5.3", + "yargs": "^17.7.2" } }, "@istanbuljs/load-nyc-config": { @@ -6024,479 +4714,276 @@ "dev": true }, "@jest/console": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/console/-/console-27.4.6.tgz", - "integrity": "sha512-jauXyacQD33n47A44KrlOVeiXHEXDqapSdfb9kTekOchH/Pd18kBIO1+xxJQRLuG+LUuljFCwTG92ra4NW7SpA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/console/-/console-29.7.0.tgz", + "integrity": "sha512-5Ni4CU7XHQi32IJ398EEP4RrB8eV09sXP2ROqD4bksHrnTree52PsxvX8tpL8LvTZ3pFzXyPbNQReSN41CAhOg==", "dev": true, "requires": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "jest-message-util": "^27.4.6", - "jest-util": "^27.4.2", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "@jest/core": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/@jest/core/-/core-27.4.7.tgz", - "integrity": "sha512-n181PurSJkVMS+kClIFSX/LLvw9ExSb+4IMtD6YnfxZVerw9ANYtW0bPrm0MJu2pfe9SY9FJ9FtQ+MdZkrZwjg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/core/-/core-29.7.0.tgz", + "integrity": "sha512-n7aeXWKMnGtDA48y8TLWJPJmLmmZ642Ceo78cYWEpiD7FzDgmNDV/GCVRorPABdXLJZ/9wzzgZAlHjXjxDHGsg==", "dev": true, "requires": { - "@jest/console": "^27.4.6", - "@jest/reporters": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/reporters": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "emittery": "^0.8.1", + "ci-info": "^3.2.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-changed-files": "^27.4.2", - "jest-config": "^27.4.7", - "jest-haste-map": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-resolve-dependencies": "^27.4.6", - "jest-runner": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", - "jest-watcher": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-changed-files": "^29.7.0", + "jest-config": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-resolve-dependencies": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "jest-watcher": "^29.7.0", "micromatch": "^4.0.4", - "rimraf": "^3.0.0", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "strip-ansi": "^6.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "@jest/environment": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-27.4.6.tgz", - "integrity": "sha512-E6t+RXPfATEEGVidr84WngLNWZ8ffCPky8RqqRK6u1Bn0LK92INe0MDttyPl/JOzaq92BmDzOeuqk09TvM22Sg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-29.7.0.tgz", + "integrity": "sha512-aQIfHDq33ExsN4jP1NWGXhxgQ/wixs60gDiKO+XVMd8Mn0NWPWgc34ZQDTb2jKaUWQ7MuwoitXAsN2XVXNMpAw==", "dev": true, "requires": { - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.4.6" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-mock": "^29.7.0" + } + }, + "@jest/expect": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-8uMeAMycttpva3P1lBHB8VciS9V0XAr3GymPpipdyQXbBcuhkLQOSe8E/p92RyAdToS6ZD1tFkX+CkhoECE0dQ==", + "dev": true, + "requires": { + "expect": "^29.7.0", + "jest-snapshot": "^29.7.0" + } + }, + "@jest/expect-utils": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.7.0.tgz", + "integrity": "sha512-GlsNBWiFQFCVi9QVSx7f5AgMeLxe9YCCs5PuP2O2LdjDAA8Jh9eX7lA1Jq/xdXw3Wb3hyvlFNfZIfcRetSzYcA==", + "dev": true, + "requires": { + "jest-get-type": "^29.6.3" } }, "@jest/fake-timers": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-27.4.6.tgz", - "integrity": "sha512-mfaethuYF8scV8ntPpiVGIHQgS0XIALbpY2jt2l7wb/bvq4Q5pDLk4EP4D7SAvYT1QrPOPVZAtbdGAOOyIgs7A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-29.7.0.tgz", + "integrity": "sha512-q4DH1Ha4TTFPdxLsqDXK1d3+ioSL7yL5oCMJZgDYm6i+6CygW5E5xVr/D1HdsGxjt1ZWSfUAs9OxSB/BNelWrQ==", "dev": true, "requires": { - "@jest/types": "^27.4.2", - "@sinonjs/fake-timers": "^8.0.1", + "@jest/types": "^29.6.3", + "@sinonjs/fake-timers": "^10.0.2", "@types/node": "*", - "jest-message-util": "^27.4.6", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" } }, "@jest/globals": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-27.4.6.tgz", - "integrity": "sha512-kAiwMGZ7UxrgPzu8Yv9uvWmXXxsy0GciNejlHvfPIfWkSxChzv6bgTS3YqBkGuHcis+ouMFI2696n2t+XYIeFw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-29.7.0.tgz", + "integrity": "sha512-mpiz3dutLbkW2MNFubUGUEVLkTGiqW6yLVTA+JbP6fI6J5iL9Y0Nlg8k95pcF8ctKwCS7WVxteBs29hhfAotzQ==", "dev": true, "requires": { - "@jest/environment": "^27.4.6", - "@jest/types": "^27.4.2", - "expect": "^27.4.6" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/types": "^29.6.3", + "jest-mock": "^29.7.0" } }, "@jest/reporters": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-27.4.6.tgz", - "integrity": "sha512-+Zo9gV81R14+PSq4wzee4GC2mhAN9i9a7qgJWL90Gpx7fHYkWpTBvwWNZUXvJByYR9tAVBdc8VxDWqfJyIUrIQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-29.7.0.tgz", + "integrity": "sha512-DApq0KJbJOEzAFYjHADNNxAE3KbhxQB1y5Kplb5Waqw6zVbuWatSnMjE5gs8FUgEPmNsnZA3NCWl9NG0ia04Pg==", "dev": true, "requires": { "@bcoe/v8-coverage": "^0.2.3", - "@jest/console": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "@types/node": "*", "chalk": "^4.0.0", "collect-v8-coverage": "^1.0.0", "exit": "^0.1.2", - "glob": "^7.1.2", - "graceful-fs": "^4.2.4", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", "istanbul-lib-coverage": "^3.0.0", - "istanbul-lib-instrument": "^5.1.0", + "istanbul-lib-instrument": "^6.0.0", "istanbul-lib-report": "^3.0.0", "istanbul-lib-source-maps": "^4.0.0", "istanbul-reports": "^3.1.3", - "jest-haste-map": "^27.4.6", - "jest-resolve": "^27.4.6", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "slash": "^3.0.0", - "source-map": "^0.6.0", "string-length": "^4.0.1", - "terminal-link": "^2.0.0", - "v8-to-istanbul": "^8.1.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "strip-ansi": "^6.0.0", + "v8-to-istanbul": "^9.0.1" + } + }, + "@jest/schemas": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-29.6.3.tgz", + "integrity": "sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA==", + "dev": true, + "requires": { + "@sinclair/typebox": "^0.27.8" } }, "@jest/source-map": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-27.4.0.tgz", - "integrity": "sha512-Ntjx9jzP26Bvhbm93z/AKcPRj/9wrkI88/gK60glXDx1q+IeI0rf7Lw2c89Ch6ofonB0On/iRDreQuQ6te9pgQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-29.6.3.tgz", + "integrity": "sha512-MHjT95QuipcPrpLM+8JMSzFx6eHp5Bm+4XeFDJlwsvVBjmKNiIAvasGK2fxz2WbGRlnvqehFbh07MMa7n3YJnw==", "dev": true, "requires": { + "@jridgewell/trace-mapping": "^0.3.18", "callsites": "^3.0.0", - "graceful-fs": "^4.2.4", - "source-map": "^0.6.0" + "graceful-fs": "^4.2.9" } }, "@jest/test-result": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-27.4.6.tgz", - "integrity": "sha512-fi9IGj3fkOrlMmhQqa/t9xum8jaJOOAi/lZlm6JXSc55rJMXKHxNDN1oCP39B0/DhNOa2OMupF9BcKZnNtXMOQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-29.7.0.tgz", + "integrity": "sha512-Fdx+tv6x1zlkJPcWXmMDAG2HBnaR9XPSd5aDWQVsfrZmLVT3lU1cwyxLgRmXR9yrq4NBoEm9BMsfgFzTQAbJYA==", "dev": true, "requires": { - "@jest/console": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/types": "^29.6.3", "@types/istanbul-lib-coverage": "^2.0.0", "collect-v8-coverage": "^1.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "@jest/test-sequencer": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-27.4.6.tgz", - "integrity": "sha512-3GL+nsf6E1PsyNsJuvPyIz+DwFuCtBdtvPpm/LMXVkBJbdFvQYCDpccYT56qq5BGniXWlE81n2qk1sdXfZebnw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-29.7.0.tgz", + "integrity": "sha512-GQwJ5WZVrKnOJuiYiAF52UNUJXgTZx1NHjFSEB0qEMmSZKAkdMoIzw/Cj6x6NF4AvV23AUqDpFzQkN/eYCYTxw==", "dev": true, "requires": { - "@jest/test-result": "^27.4.6", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-runtime": "^27.4.6" + "@jest/test-result": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "slash": "^3.0.0" } }, "@jest/transform": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-27.4.6.tgz", - "integrity": "sha512-9MsufmJC8t5JTpWEQJ0OcOOAXaH5ioaIX6uHVBLBMoCZPfKKQF+EqP8kACAvCZ0Y1h2Zr3uOccg8re+Dr5jxyw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-29.7.0.tgz", + "integrity": "sha512-ok/BTPFzFKVMwO5eOHRrvnBVHdRy9IrsrW1GpMaQ9MCnilNLXQKmAX8s1YXDFaai9xJpac2ySzV0YeRRECr2Vw==", "dev": true, "requires": { - "@babel/core": "^7.1.0", - "@jest/types": "^27.4.2", + "@babel/core": "^7.11.6", + "@jest/types": "^29.6.3", + "@jridgewell/trace-mapping": "^0.3.18", "babel-plugin-istanbul": "^6.1.1", "chalk": "^4.0.0", - "convert-source-map": "^1.4.0", - "fast-json-stable-stringify": "^2.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-util": "^27.4.2", + "convert-source-map": "^2.0.0", + "fast-json-stable-stringify": "^2.1.0", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", "micromatch": "^4.0.4", "pirates": "^4.0.4", "slash": "^3.0.0", - "source-map": "^0.6.1", - "write-file-atomic": "^3.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "write-file-atomic": "^4.0.2" } }, - "@mapbox/node-pre-gyp": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.8.tgz", - "integrity": "sha512-CMGKi28CF+qlbXh26hDe6NxCd7amqeAzEqnS6IHeO6LoaKyM/n+Xw3HT1COdq8cuioOdlKdqn/hCmqPUOMOywg==", + "@jest/types": { + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/@jest/types/-/types-29.6.3.tgz", + "integrity": "sha512-u3UPsIilWKOM3F9CXtrG8LEJmNxwoCQC/XVj4IKYXvvpx7QIi/Kg1LI5uDmDpKlac62NUtX7eLjRh+jVZcLOzw==", "dev": true, "requires": { - "detect-libc": "^1.0.3", - "https-proxy-agent": "^5.0.0", - "make-dir": "^3.1.0", - "node-fetch": "^2.6.5", - "nopt": "^5.0.0", - "npmlog": "^5.0.1", - "rimraf": "^3.0.2", - "semver": "^7.3.5", - "tar": "^6.1.11" - }, - "dependencies": { - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } - } + "@jest/schemas": "^29.6.3", + "@types/istanbul-lib-coverage": "^2.0.0", + "@types/istanbul-reports": "^3.0.0", + "@types/node": "*", + "@types/yargs": "^17.0.8", + "chalk": "^4.0.0" } }, + "@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "requires": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "requires": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true + }, + "@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true + }, + "@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "requires": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "@js-sdsl/ordered-map": { + "version": "4.4.2", + "resolved": "https://registry.npmjs.org/@js-sdsl/ordered-map/-/ordered-map-4.4.2.tgz", + "integrity": "sha512-iUKgm52T8HOE/makSxjqoWhe95ZJA1/G1sYsGev2JDKUSS14KAgg1LHb+Ba+IPow0xflbnSkOsZcO08C7w1gYw==" + }, "@protobufjs/aspromise": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", - "integrity": "sha1-m4sMxmPWaafY9vXQiToU00jzD78=" + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" }, "@protobufjs/base64": { "version": "1.1.2", @@ -6511,12 +4998,12 @@ "@protobufjs/eventemitter": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", - "integrity": "sha1-NVy8mLr61ZePntCV85diHx0Ga3A=" + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" }, "@protobufjs/fetch": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", - "integrity": "sha1-upn7WYYUr2VwDBYZ/wbUVLDYTEU=", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", "requires": { "@protobufjs/aspromise": "^1.1.1", "@protobufjs/inquire": "^1.1.0" @@ -6525,78 +5012,104 @@ "@protobufjs/float": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", - "integrity": "sha1-Xp4avctz/Ap8uLKR33jIy9l7h9E=" + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" }, "@protobufjs/inquire": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", - "integrity": "sha1-/yAOPnzyQp4tyvwRQIKOjMY48Ik=" + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" }, "@protobufjs/path": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", - "integrity": "sha1-bMKyDFya1q0NzP0hynZz2Nf79o0=" + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" }, "@protobufjs/pool": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", - "integrity": "sha1-Cf0V8tbTq/qbZbw2ZQbWrXhG/1Q=" + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" }, "@protobufjs/utf8": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", - "integrity": "sha1-p3c2C1s5oaLlEG+OhY8v0tBgxXA=" + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "@shikijs/engine-oniguruma": { + "version": "1.29.2", + "resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-1.29.2.tgz", + "integrity": "sha512-7iiOx3SG8+g1MnlzZVDYiaeHe7Ez2Kf2HrJzdmGwkRisT7r4rak0e655AcM/tF9JG/kg5fMNYlLLKglbN7gBqA==", + "dev": true, + "requires": { + "@shikijs/types": "1.29.2", + "@shikijs/vscode-textmate": "^10.0.1" + } + }, + "@shikijs/types": { + "version": "1.29.2", + "resolved": "https://registry.npmjs.org/@shikijs/types/-/types-1.29.2.tgz", + "integrity": "sha512-VJjK0eIijTZf0QSTODEXCqinjBn0joAHQ+aPSBzrv4O2d/QSbsMw+ZeSRx03kV34Hy7NzUvV/7NqfYGRLrASmw==", + "dev": true, + "requires": { + "@shikijs/vscode-textmate": "^10.0.1", + "@types/hast": "^3.0.4" + } + }, + "@shikijs/vscode-textmate": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.0.2.tgz", + "integrity": "sha512-83yeghZ2xxin3Nj8z1NMd/NCuca+gsYXswywDy5bHvwlWL8tpTQmzGeUuHd9FC3E/SBEMvzJRwWEOz5gGes9Qg==", + "dev": true + }, + "@sinclair/typebox": { + "version": "0.27.10", + "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.27.10.tgz", + "integrity": "sha512-MTBk/3jGLNB2tVxv6uLlFh1iu64iYOQ2PbdOSK3NW8JZsmlaOh2q6sdtKowBhfw8QFLmYNzTW4/oK4uATIi6ZA==", + "dev": true }, "@sinonjs/commons": { - "version": "1.8.3", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.3.tgz", - "integrity": "sha512-xkNcLAn/wZaX14RPlwizcKicDk9G3F8m2nU3L7Ukm5zBgTwiT0wsoFAHx9Jq56fJA1z/7uKGtCRu16sOUCLIHQ==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz", + "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==", "dev": true, "requires": { "type-detect": "4.0.8" } }, "@sinonjs/fake-timers": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-8.1.0.tgz", - "integrity": "sha512-OAPJUAtgeINhh/TAlUID4QTs53Njm7xzddaVlEs/SXwgtiD1tW22zAB/W1wdqfrpmikgaWQ9Fw6Ws+hsiRm5Vg==", + "version": "10.3.0", + "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz", + "integrity": "sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA==", "dev": true, "requires": { - "@sinonjs/commons": "^1.7.0" + "@sinonjs/commons": "^3.0.0" } }, - "@tootallnate/once": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", - "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", - "dev": true - }, "@types/babel__core": { - "version": "7.1.18", - "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.1.18.tgz", - "integrity": "sha512-S7unDjm/C7z2A2R9NzfKCK1I+BAALDtxEmsJBwlB3EzNfb929ykjL++1CK9LO++EIp2fQrC8O+BwjKvz6UeDyQ==", + "version": "7.20.5", + "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz", + "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==", "dev": true, "requires": { - "@babel/parser": "^7.1.0", - "@babel/types": "^7.0.0", + "@babel/parser": "^7.20.7", + "@babel/types": "^7.20.7", "@types/babel__generator": "*", "@types/babel__template": "*", "@types/babel__traverse": "*" } }, "@types/babel__generator": { - "version": "7.6.4", - "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.6.4.tgz", - "integrity": "sha512-tFkciB9j2K755yrTALxD44McOrk+gfpIpvC3sxHjRawj6PfnQxrse4Clq5y/Rq+G3mrBurMax/lG8Qn2t9mSsg==", + "version": "7.27.0", + "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz", + "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==", "dev": true, "requires": { "@babel/types": "^7.0.0" } }, "@types/babel__template": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.1.tgz", - "integrity": "sha512-azBFKemX6kMg5Io+/rdGT0dkGreboUVR0Cdm3fz9QJWpaQGJRQXl7C+6hOTCZcMll7KFyEQpgbYI2lHdsS4U7g==", + "version": "7.4.4", + "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz", + "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==", "dev": true, "requires": { "@babel/parser": "^7.1.0", @@ -6604,140 +5117,105 @@ } }, "@types/babel__traverse": { - "version": "7.14.2", - "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.14.2.tgz", - "integrity": "sha512-K2waXdXBi2302XUdcHcR1jCeU0LL4TD9HRs/gk0N2Xvrht+G/BfJa4QObBQZfhMdxiCpV3COl5Nfq4uKTeTnJA==", + "version": "7.28.0", + "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz", + "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==", "dev": true, "requires": { - "@babel/types": "^7.3.0" + "@babel/types": "^7.28.2" } }, - "@types/color-name": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/color-name/-/color-name-1.1.1.tgz", - "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" - }, - "@types/google-protobuf": { - "version": "3.15.5", - "resolved": "https://registry.npmjs.org/@types/google-protobuf/-/google-protobuf-3.15.5.tgz", - "integrity": "sha512-6bgv24B+A2bo9AfzReeg5StdiijKzwwnRflA8RLd1V4Yv995LeTmo0z69/MPbBDFSiZWdZHQygLo/ccXhMEDgw==" - }, "@types/graceful-fs": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.5.tgz", - "integrity": "sha512-anKkLmZZ+xm4p8JWBf4hElkM4XR+EZeA2M9BAkkTldmcyDY4mbdIJnRghDJH3Ov5ooY7/UAoENtmdMSkaAd7Cw==", + "version": "4.1.9", + "resolved": "https://registry.npmjs.org/@types/graceful-fs/-/graceful-fs-4.1.9.tgz", + "integrity": "sha512-olP3sd1qOEe5dXTSaFvQG+02VdRXcdytWLAZsAq1PecU8uqQAhkrnbli7DagjtXKW/Bl7YJbUsa8MPcuc8LHEQ==", "dev": true, "requires": { "@types/node": "*" } }, + "@types/hast": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", + "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", + "dev": true, + "requires": { + "@types/unist": "*" + } + }, "@types/istanbul-lib-coverage": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.1.tgz", - "integrity": "sha512-hRJD2ahnnpLgsj6KWMYSrmXkM3rm2Dl1qkx6IOFD5FnuNPXJIG5L0dhgKXCYTRMGzU4n0wImQ/xfmRc4POUFlg==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", + "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==", "dev": true }, "@types/istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-plGgXAPfVKFoYfa9NpYDAkseG+g6Jr294RqeqcqDixSbU34MZVJRi/P+7Y8GDpzkEwLaGZZOpKIEmeVZNtKsrg==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz", + "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==", "dev": true, "requires": { "@types/istanbul-lib-coverage": "*" } }, - "@types/jest": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/@types/jest/-/jest-27.4.0.tgz", - "integrity": "sha512-gHl8XuC1RZ8H2j5sHv/JqsaxXkDDM9iDOgu0Wp8sjs4u/snb2PVehyWXJPr+ORA0RPpgw231mnutWI1+0hgjIQ==", + "@types/istanbul-reports": { + "version": "3.0.4", + "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz", + "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==", "dev": true, "requires": { - "jest-diff": "^27.0.0", - "pretty-format": "^27.0.0" + "@types/istanbul-lib-report": "*" } }, - "@types/long": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@types/long/-/long-5.0.0.tgz", - "integrity": "sha512-eQs9RsucA/LNjnMoJvWG/nXa7Pot/RbBzilF/QRIU/xRl+0ApxrSUFsV5lmf01SvSlqMzJ7Zwxe440wmz2SJGA==", + "@types/jest": { + "version": "29.5.14", + "resolved": "https://registry.npmjs.org/@types/jest/-/jest-29.5.14.tgz", + "integrity": "sha512-ZN+4sdnLUbo8EVvVc2ao0GFW6oVrQRPn4K2lglySj7APvSrgzxHiNNK99us4WDMi57xxA2yggblIAMNhXOotLQ==", "dev": true, "requires": { - "long": "*" + "expect": "^29.0.0", + "pretty-format": "^29.0.0" } }, "@types/node": { - "version": "13.13.4", - "resolved": "https://registry.npmjs.org/@types/node/-/node-13.13.4.tgz", - "integrity": "sha512-x26ur3dSXgv5AwKS0lNfbjpCakGIduWU1DU91Zz58ONRWrIKGunmZBNv4P7N+e27sJkiGDsw/3fT4AtsqQBrBA==" - }, - "@types/prettier": { - "version": "2.4.3", - "resolved": "https://registry.npmjs.org/@types/prettier/-/prettier-2.4.3.tgz", - "integrity": "sha512-QzSuZMBuG5u8HqYz01qtMdg/Jfctlnvj1z/lYnIDXs/golxw0fxtRAHd9KrzjR7Yxz1qVeI00o0kiO3PmVdJ9w==", - "dev": true + "version": "22.19.11", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.11.tgz", + "integrity": "sha512-BH7YwL6rA93ReqeQS1c4bsPpcfOmJasG+Fkr6Y59q83f9M1WcBRHR2vM+P9eOisYRcN3ujQoiZY8uk5W+1WL8w==", + "requires": { + "undici-types": "~6.21.0" + } }, "@types/stack-utils": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.1.tgz", - "integrity": "sha512-Hl219/BT5fLAaz6NDkSuhzasy49dwQS/DSdu4MdggFB8zcXv7vflBI3xp7FEmkmdDkBUI2bPUNeMttp2knYdxw==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz", + "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==", "dev": true }, + "@types/unist": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz", + "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==", + "dev": true + }, + "@types/yargs": { + "version": "17.0.35", + "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz", + "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==", + "dev": true, + "requires": { + "@types/yargs-parser": "*" + } + }, "@types/yargs-parser": { - "version": "15.0.0", - "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-15.0.0.tgz", - "integrity": "sha512-FA/BWv8t8ZWJ+gEOnLLd8ygxH/2UFbAvgEonyfN6yWGLKc7zVjbpl2Y4CTjid9h2RfgPP6SEt6uHwEOply00yw==", + "version": "21.0.3", + "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz", + "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==", "dev": true }, - "abab": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/abab/-/abab-2.0.5.tgz", - "integrity": "sha512-9IK9EadsbHo6jLWIpxpR6pL0sazTXV6+SQv25ZB+F7Bj9mJNaOc4nCRabwd5M/JwmUa8idz6Eci6eKfJryPs6Q==", - "dev": true - }, - "abbrev": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", - "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", - "dev": true - }, - "acorn": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", - "integrity": "sha512-V/LGr1APy+PXIwKebEWrkZPwoeoF+w1jiOBUmuxuiUIaOHtob8Qc9BTrYo7VuI5fR8tqsy+buA2WFooR5olqvQ==", - "dev": true - }, - "acorn-globals": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/acorn-globals/-/acorn-globals-6.0.0.tgz", - "integrity": "sha512-ZQl7LOWaF5ePqqcX4hLuv/bLXYQNfNWw2c0/yX/TsPRKamzHcTGQnlCjHT3TsmkOUVEPS3crCxiPfdzE/Trlhg==", - "dev": true, - "requires": { - "acorn": "^7.1.1", - "acorn-walk": "^7.1.1" - }, - "dependencies": { - "acorn": { - "version": "7.4.1", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", - "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", - "dev": true - } - } - }, - "acorn-walk": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", - "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", - "dev": true - }, - "agent-base": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", - "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", - "dev": true, - "requires": { - "debug": "4" - } + "abort-controller-x": { + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/abort-controller-x/-/abort-controller-x-0.4.3.tgz", + "integrity": "sha512-VtUwTNU8fpMwvWGn4xE93ywbogTYsuT+AUxAXOeelbXuQVIwNmC5YLeho9sH4vZ4ITW8414TTAOG1nW6uIVHCA==" }, "ansi-escapes": { "version": "4.3.2", @@ -6754,40 +5232,23 @@ "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==" }, "ansi-styles": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", - "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", "requires": { - "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" } }, "anymatch": { - "version": "3.1.2", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.2.tgz", - "integrity": "sha512-P43ePfOAIupkguHUycrc4qJ9kz8ZiuOUijaETwX7THt0Y/GNK7v0aa8rY816xWjZ7rJdA5XdMcpVFTKMq+RvWg==", + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz", + "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==", "dev": true, "requires": { "normalize-path": "^3.0.0", "picomatch": "^2.0.4" } }, - "aproba": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", - "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", - "dev": true - }, - "are-we-there-yet": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz", - "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==", - "dev": true, - "requires": { - "delegates": "^1.0.0", - "readable-stream": "^3.6.0" - } - }, "argparse": { "version": "1.0.10", "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", @@ -6797,59 +5258,19 @@ "sprintf-js": "~1.0.2" } }, - "asynckit": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", - "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", - "dev": true - }, "babel-jest": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-27.4.6.tgz", - "integrity": "sha512-qZL0JT0HS1L+lOuH+xC2DVASR3nunZi/ozGhpgauJHgmI7f8rudxf6hUjEHympdQ/J64CdKmPkgfJ+A3U6QCrg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-29.7.0.tgz", + "integrity": "sha512-BrvGY3xZSwEcCzKvKsCi2GgHqDqsYkOP4/by5xCgIwGXQxIEh+8ew3gmrE1y7XRR6LHZIj6yLYnUi/mm2KXKBg==", "dev": true, "requires": { - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/transform": "^29.7.0", "@types/babel__core": "^7.1.14", "babel-plugin-istanbul": "^6.1.1", - "babel-preset-jest": "^27.4.0", + "babel-preset-jest": "^29.6.3", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "slash": "^3.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "babel-plugin-istanbul": { @@ -6863,47 +5284,65 @@ "@istanbuljs/schema": "^0.1.2", "istanbul-lib-instrument": "^5.0.4", "test-exclude": "^6.0.0" + }, + "dependencies": { + "istanbul-lib-instrument": { + "version": "5.2.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz", + "integrity": "sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg==", + "dev": true, + "requires": { + "@babel/core": "^7.12.3", + "@babel/parser": "^7.14.7", + "@istanbuljs/schema": "^0.1.2", + "istanbul-lib-coverage": "^3.2.0", + "semver": "^6.3.0" + } + } } }, "babel-plugin-jest-hoist": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-27.4.0.tgz", - "integrity": "sha512-Jcu7qS4OX5kTWBc45Hz7BMmgXuJqRnhatqpUhnzGC3OBYpOmf2tv6jFNwZpwM7wU7MUuv2r9IPS/ZlYOuburVw==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-29.6.3.tgz", + "integrity": "sha512-ESAc/RJvGTFEzRwOTT4+lNDk/GNHMkKbNzsvT0qKRfDyyYTskxB5rnU2njIDYVxXCBHHEI1c0YwHob3WaYujOg==", "dev": true, "requires": { "@babel/template": "^7.3.3", "@babel/types": "^7.3.3", - "@types/babel__core": "^7.0.0", + "@types/babel__core": "^7.1.14", "@types/babel__traverse": "^7.0.6" } }, "babel-preset-current-node-syntax": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.0.1.tgz", - "integrity": "sha512-M7LQ0bxarkxQoN+vz5aJPsLBn77n8QgTFmo8WK0/44auK2xlCXrYcUxHFxgU7qW5Yzw/CjmLRK2uJzaCd7LvqQ==", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz", + "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==", "dev": true, "requires": { "@babel/plugin-syntax-async-generators": "^7.8.4", "@babel/plugin-syntax-bigint": "^7.8.3", - "@babel/plugin-syntax-class-properties": "^7.8.3", - "@babel/plugin-syntax-import-meta": "^7.8.3", + "@babel/plugin-syntax-class-properties": "^7.12.13", + "@babel/plugin-syntax-class-static-block": "^7.14.5", + "@babel/plugin-syntax-import-attributes": "^7.24.7", + "@babel/plugin-syntax-import-meta": "^7.10.4", "@babel/plugin-syntax-json-strings": "^7.8.3", - "@babel/plugin-syntax-logical-assignment-operators": "^7.8.3", + "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4", "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3", - "@babel/plugin-syntax-numeric-separator": "^7.8.3", + "@babel/plugin-syntax-numeric-separator": "^7.10.4", "@babel/plugin-syntax-object-rest-spread": "^7.8.3", "@babel/plugin-syntax-optional-catch-binding": "^7.8.3", "@babel/plugin-syntax-optional-chaining": "^7.8.3", - "@babel/plugin-syntax-top-level-await": "^7.8.3" + "@babel/plugin-syntax-private-property-in-object": "^7.14.5", + "@babel/plugin-syntax-top-level-await": "^7.14.5" } }, "babel-preset-jest": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-27.4.0.tgz", - "integrity": "sha512-NK4jGYpnBvNxcGo7/ZpZJr51jCGT+3bwwpVIDY2oNfTxJJldRtB4VAcYdgp1loDE50ODuTu+yBjpMAswv5tlpg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-29.6.3.tgz", + "integrity": "sha512-0B3bhxR6snWXJZtR/RliHTDPRgn1sNHOR0yVtq/IiQFyuOVjFS+wuio/R4gSNkyYmKmJB4wGZv2NZanmKmTnNA==", "dev": true, "requires": { - "babel-plugin-jest-hoist": "^27.4.0", + "babel-plugin-jest-hoist": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0" } }, @@ -6913,6 +5352,12 @@ "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, + "baseline-browser-mapping": { + "version": "2.9.19", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.19.tgz", + "integrity": "sha512-ipDqC8FrAl/76p2SSWKSI+H9tFwm7vYqXQrItCuiVPt26Km0jS+NzSsBWAaBusvSbQcfJG+JitdMm+wZAgTYqg==", + "dev": true + }, "brace-expansion": { "version": "1.1.11", "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", @@ -6924,36 +5369,25 @@ } }, "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dev": true, "requires": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" } }, - "browser-headers": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/browser-headers/-/browser-headers-0.4.1.tgz", - "integrity": "sha512-CA9hsySZVo9371qEHjHZtYxV2cFtVj5Wj/ZHi8ooEsrtm4vOnl9Y9HmyYWk9q+05d7K3rdoAE0j3MVEFVvtQtg==" - }, - "browser-process-hrtime": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/browser-process-hrtime/-/browser-process-hrtime-1.0.0.tgz", - "integrity": "sha512-9o5UecI3GhkpM6DrXr69PblIuWxPKk9Y0jHBRhdocZ2y7YECBFCsHm79Pr3OyR2AvjhDkabFJaDJMYRazHgsow==", - "dev": true - }, "browserslist": { - "version": "4.19.1", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.19.1.tgz", - "integrity": "sha512-u2tbbG5PdKRTUoctO3NBD8FQ5HdPh1ZXPHzp1rwaa5jTc+RV9/+RlWiAIKmjRPQF+xbGM9Kklj5bZQFa2s/38A==", + "version": "4.28.1", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz", + "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==", "dev": true, "requires": { - "caniuse-lite": "^1.0.30001286", - "electron-to-chromium": "^1.4.17", - "escalade": "^3.1.1", - "node-releases": "^2.0.1", - "picocolors": "^1.0.0" + "baseline-browser-mapping": "^2.9.0", + "caniuse-lite": "^1.0.30001759", + "electron-to-chromium": "^1.5.263", + "node-releases": "^2.0.27", + "update-browserslist-db": "^1.2.0" } }, "bs-logger": { @@ -6975,9 +5409,9 @@ } }, "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", "dev": true }, "callsites": { @@ -6993,9 +5427,15 @@ "dev": true }, "caniuse-lite": { - "version": "1.0.30001303", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001303.tgz", - "integrity": "sha512-/Mqc1oESndUNszJP0kx0UaQU9kEv9nNtJ7Kn8AdA0mNnH8eR1cj0kG+NbNuC1Wq/b21eA8prhKRA3bbkjONegQ==", + "version": "1.0.30001770", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001770.tgz", + "integrity": "sha512-x/2CLQ1jHENRbHg5PSId2sXq1CIO1CISvwWAj027ltMVG2UNgW+w9oH2+HzgEIRFembL8bUlXtfbBHR1fCg2xw==", + "dev": true + }, + "case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", "dev": true }, "chalk": { @@ -7014,44 +5454,38 @@ "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==", "dev": true }, - "chownr": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", - "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", - "dev": true - }, "ci-info": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.3.0.tgz", - "integrity": "sha512-riT/3vI5YpVH6/qomlDnJow6TBee2PBKSEpx3O32EGPYbWGIRsIlGRms3Sm74wYE1JMo8RnO04Hb12+v1J5ICw==", + "version": "3.9.0", + "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-3.9.0.tgz", + "integrity": "sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==", "dev": true }, "cjs-module-lexer": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.2.2.tgz", - "integrity": "sha512-cOU9usZw8/dXIXKtwa8pM0OTJQuJkxMN6w30csNRUerHfeQ5R6U3kkU/FtJeIf3M202OHfY2U8ccInBG7/xogA==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz", + "integrity": "sha512-9z8TZaGM1pfswYeXrUpzPrkx8UnWYdhJclsiYMm6x/w5+nN+8Tf/LnAgfLGQCm59qAOxU8WwHEq2vNwF6i4j+Q==", "dev": true }, "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", "requires": { "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", + "strip-ansi": "^6.0.1", "wrap-ansi": "^7.0.0" } }, "co": { "version": "4.6.0", "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz", - "integrity": "sha1-bqa989hTrlTMuOR7+gvz+QMfsYQ=", + "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==", "dev": true }, "collect-v8-coverage": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz", - "integrity": "sha512-iBPtljfCNcTKNAto0KEtDfZ3qzjJvqE3aTGZsbhjSBlorqpXJlaWWtPO35D+ZImoC3KWejX64o+yPGxhWSTzfg==", + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz", + "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==", "dev": true }, "color-convert": { @@ -7067,46 +5501,37 @@ "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" }, - "color-support": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", - "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", - "dev": true - }, - "combined-stream": { - "version": "1.0.8", - "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", - "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", - "dev": true, - "requires": { - "delayed-stream": "~1.0.0" - } - }, "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 }, - "console-control-strings": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", - "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", + "convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true }, - "convert-source-map": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.8.0.tgz", - "integrity": "sha512-+OQdjP49zViI/6i7nIJpA8rAl4sV/JdPfU9nZs3VqOwGIgizICvuN2ru6fMd+4llL0tar18UYJXfZ/TWtmhUjA==", + "create-jest": { + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/create-jest/-/create-jest-29.7.0.tgz", + "integrity": "sha512-Adz2bdH0Vq3F53KEMJOoftQFutWCukm6J24wbPWRO4k1kMY7gS7ds/uoJkNuV8wDCtWWnuwGcJwpWcih+zEW1Q==", "dev": true, "requires": { - "safe-buffer": "~5.1.1" + "@jest/types": "^29.6.3", + "chalk": "^4.0.0", + "exit": "^0.1.2", + "graceful-fs": "^4.2.9", + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "prompts": "^2.0.1" } }, "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "requires": { "path-key": "^3.1.0", @@ -7114,83 +5539,26 @@ "which": "^2.0.1" } }, - "cssom": { - "version": "0.4.4", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.4.4.tgz", - "integrity": "sha512-p3pvU7r1MyyqbTk+WbNJIgJjG2VmTIaB10rI93LzVPrmDJKkzKYMtxxyAvQXR/NS6otuzveI7+7BBq3SjBS2mw==", - "dev": true - }, - "cssstyle": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/cssstyle/-/cssstyle-2.3.0.tgz", - "integrity": "sha512-AZL67abkUzIuvcHqk7c09cezpGNcxUxU4Ioi/05xHk4DQeTkWmGYftIE6ctU6AEt+Gn4n1lDStOtj7FKycP71A==", - "dev": true, - "requires": { - "cssom": "~0.3.6" - }, - "dependencies": { - "cssom": { - "version": "0.3.8", - "resolved": "https://registry.npmjs.org/cssom/-/cssom-0.3.8.tgz", - "integrity": "sha512-b0tGHbfegbhPJpxpiBPU2sCkigAqtM9O121le6bbOlgyV+NyGyCmVfJ6QW9eRjz8CpNfWEOYBIMIGRYkLwsIYg==", - "dev": true - } - } - }, - "data-urls": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/data-urls/-/data-urls-2.0.0.tgz", - "integrity": "sha512-X5eWTSXO/BJmpdIKCRuKUgSCgAN0OwliVK3yPKbwIWU1Tdw5BRajxlzMidvh+gwko9AfQ9zIj52pzF91Q3YAvQ==", - "dev": true, - "requires": { - "abab": "^2.0.3", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.0.0" - } - }, "debug": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", - "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", "dev": true, "requires": { - "ms": "^2.1.1" + "ms": "^2.1.3" } }, - "decimal.js": { - "version": "10.3.1", - "resolved": "https://registry.npmjs.org/decimal.js/-/decimal.js-10.3.1.tgz", - "integrity": "sha512-V0pfhfr8suzyPGOx3nmq4aHqabehUZn6Ch9kyFpV79TGDTWFmHqUqXdabR7QHqxzrYolF4+tVmJhUG4OURg5dQ==", - "dev": true - }, "dedent": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/dedent/-/dedent-0.7.0.tgz", - "integrity": "sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw=", - "dev": true - }, - "deep-is": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz", - "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==", - "dev": true + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.1.tgz", + "integrity": "sha512-9JmrhGZpOlEgOLdQgSm0zxFaYoQon408V1v49aqTWuXENVlnCuY9JBZcXZiCsZQWDjTm5Qf/nIvAy77mXDAjEg==", + "dev": true, + "requires": {} }, "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", - "dev": true - }, - "delayed-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", - "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", - "dev": true - }, - "delegates": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", - "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true }, "detect-libc": { @@ -7206,38 +5574,30 @@ "dev": true }, "diff-sequences": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-27.4.0.tgz", - "integrity": "sha512-YqiQzkrsmHMH5uuh8OdQFU9/ZpADnwzml8z0O5HvRNda+5UZsaX/xN+AAxfR2hWq1Y7HZnAzO9J5lJXOuDz2Ww==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/diff-sequences/-/diff-sequences-29.6.3.tgz", + "integrity": "sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q==", "dev": true }, - "domexception": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/domexception/-/domexception-2.0.1.tgz", - "integrity": "sha512-yxJ2mFy/sibVQlu5qHjOkf9J3K6zgmCxgJ94u2EdvDOV09H+32LtRswEcUsmUWN72pVLOEnTSRaIVVzVQgS0dg==", + "dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", "dev": true, "requires": { - "webidl-conversions": "^5.0.0" - }, - "dependencies": { - "webidl-conversions": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-5.0.0.tgz", - "integrity": "sha512-VlZwKPCkYKxQgeSbH5EyngOmRp7Ww7I9rQLERETtf5ofd9pGeswWiOtogpEO850jziPRarreGxn5QIiTqpb2wA==", - "dev": true - } + "detect-libc": "^1.0.3" } }, "electron-to-chromium": { - "version": "1.4.57", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.57.tgz", - "integrity": "sha512-FNC+P5K1n6pF+M0zIK+gFCoXcJhhzDViL3DRIGy2Fv5PohuSES1JHR7T+GlwxSxlzx4yYbsuzCZvHxcBSRCIOw==", + "version": "1.5.286", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.286.tgz", + "integrity": "sha512-9tfDXhJ4RKFNerfjdCcZfufu49vg620741MNs26a9+bhLThdB+plgMeou98CAaHu/WATj2iHOOHTp1hWtABj2A==", "dev": true }, "emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", + "version": "0.13.1", + "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz", + "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==", "dev": true }, "emoji-regex": { @@ -7245,10 +5605,25 @@ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" }, + "entities": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz", + "integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==", + "dev": true + }, + "error-ex": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz", + "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==", + "dev": true, + "requires": { + "is-arrayish": "^0.2.1" + } + }, "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==" + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==" }, "escape-string-regexp": { "version": "2.0.0", @@ -7256,37 +5631,12 @@ "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", "dev": true }, - "escodegen": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-2.0.0.tgz", - "integrity": "sha512-mmHKys/C8BFUGI+MAWNcSYoORYLMdPzjrknd2Vc+bUsjN5bXcr8EhrNB+UTqfL1y3I9c4fw2ihgtMPQLBRiQxw==", - "dev": true, - "requires": { - "esprima": "^4.0.1", - "estraverse": "^5.2.0", - "esutils": "^2.0.2", - "optionator": "^0.8.1", - "source-map": "~0.6.1" - } - }, "esprima": { "version": "4.0.1", "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", "dev": true }, - "estraverse": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz", - "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, "execa": { "version": "5.1.1", "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz", @@ -7307,52 +5657,20 @@ "exit": { "version": "0.1.2", "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", - "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", + "integrity": "sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ==", "dev": true }, "expect": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/expect/-/expect-27.4.6.tgz", - "integrity": "sha512-1M/0kAALIaj5LaG66sFJTbRsWTADnylly82cu4bspI0nl+pgP4E6Bh/aqdHlTUjul06K7xQnnrAoqfxVU0+/ag==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/expect/-/expect-29.7.0.tgz", + "integrity": "sha512-2Zks0hf1VLFYI1kbh0I5jP3KHHyCHpkfyHBzsSXRFgl/Bg9mWYfMW8oD+PdMPlEwy5HNsR9JutYy6pMeOh61nw==", "dev": true, "requires": { - "@jest/types": "^27.4.2", - "jest-get-type": "^27.4.0", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "@jest/expect-utils": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0" } }, "fast-json-stable-stringify": { @@ -7361,25 +5679,19 @@ "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==", "dev": true }, - "fast-levenshtein": { - "version": "2.0.6", - "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz", - "integrity": "sha1-PYpcZog6FqMMqGQ+hR8Zuqd5eRc=", - "dev": true - }, "fb-watchman": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.1.tgz", - "integrity": "sha512-DkPJKQeY6kKwmuMretBhr7G6Vodr7bFwDYTXIkfG1gjvNpaxBTQV3PbXg6bR1c1UP4jPOX0jHUbbHANL9vRjVg==", + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz", + "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==", "dev": true, "requires": { "bser": "2.1.1" } }, "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dev": true, "requires": { "to-regex-range": "^5.0.1" @@ -7395,26 +5707,6 @@ "path-exists": "^4.0.0" } }, - "form-data": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/form-data/-/form-data-3.0.1.tgz", - "integrity": "sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==", - "dev": true, - "requires": { - "asynckit": "^0.4.0", - "combined-stream": "^1.0.8", - "mime-types": "^2.1.12" - } - }, - "fs-minipass": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", - "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", - "dev": true, - "requires": { - "minipass": "^3.0.0" - } - }, "fs.realpath": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", @@ -7422,35 +5714,18 @@ "dev": true }, "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", "dev": true, "optional": true }, "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", + "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==", "dev": true }, - "gauge": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz", - "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==", - "dev": true, - "requires": { - "aproba": "^1.0.3 || ^2.0.0", - "color-support": "^1.1.2", - "console-control-strings": "^1.0.0", - "has-unicode": "^2.0.1", - "object-assign": "^4.1.1", - "signal-exit": "^3.0.0", - "string-width": "^4.2.3", - "strip-ansi": "^6.0.1", - "wide-align": "^1.1.2" - } - }, "gensync": { "version": "1.0.0-beta.2", "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", @@ -7488,39 +5763,23 @@ "path-is-absolute": "^1.0.0" } }, - "globals": { - "version": "11.12.0", - "resolved": "https://registry.npmjs.org/globals/-/globals-11.12.0.tgz", - "integrity": "sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==", - "dev": true - }, - "google-protobuf": { - "version": "3.19.4", - "resolved": "https://registry.npmjs.org/google-protobuf/-/google-protobuf-3.19.4.tgz", - "integrity": "sha512-OIPNCxsG2lkIvf+P5FNfJ/Km95CsXOBecS9ZcAU6m2Rq3svc0Apl9nB3GMDNKfQ9asNv4KjyAqGwPQFrVle3Yg==" - }, "graceful-fs": { - "version": "4.2.9", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.9.tgz", - "integrity": "sha512-NtNxqUcXgpW2iMrfqSfR73Glt39K+BLwWsPs94yR63v45T0Wbej7eRmL5cWfwEgqXnmjQp3zaJTshdRW/qC2ZQ==", + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "dev": true }, - "grpc-tools": { - "version": "1.11.2", - "resolved": "https://registry.npmjs.org/grpc-tools/-/grpc-tools-1.11.2.tgz", - "integrity": "sha512-4+EgpnnkJraamY++oyBCw5Hp9huRYfgakjNVKbiE3PgO9Tv5ydVlRo7ZyGJ0C0SEiA7HhbVc1sNNtIyK7FiEtg==", + "handlebars": { + "version": "4.7.8", + "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.8.tgz", + "integrity": "sha512-vafaFqs8MZkRrSX7sFVUdo3ap/eNiLnb4IakshzvP56X5Nr1iGKAIqdX6tMlm6HcNRIkr6AxO5jFEoJzzpT8aQ==", "dev": true, "requires": { - "@mapbox/node-pre-gyp": "^1.0.5" - } - }, - "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" + "minimist": "^1.2.5", + "neo-async": "^2.6.2", + "source-map": "^0.6.1", + "uglify-js": "^3.1.4", + "wordwrap": "^1.0.0" } }, "has-flag": { @@ -7529,19 +5788,13 @@ "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", "dev": true }, - "has-unicode": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", - "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", - "dev": true - }, - "html-encoding-sniffer": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-encoding-sniffer/-/html-encoding-sniffer-2.0.1.tgz", - "integrity": "sha512-D5JbOMBIR/TVZkubHT+OyT2705QvogUW4IBn6nHd756OwieSF9aDYFj4dv6HHEVGYbHaLETa3WggZYWWMyy3ZQ==", + "hasown": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz", + "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==", "dev": true, "requires": { - "whatwg-encoding": "^1.0.5" + "function-bind": "^1.1.2" } }, "html-escaper": { @@ -7550,46 +5803,16 @@ "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==", "dev": true }, - "http-proxy-agent": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", - "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", - "dev": true, - "requires": { - "@tootallnate/once": "1", - "agent-base": "6", - "debug": "4" - } - }, - "https-proxy-agent": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.0.tgz", - "integrity": "sha512-EkYm5BcKUGiduxzSt3Eppko+PiNWNEpa4ySk9vTC6wDsQJW9rHSa+UhGNJoRYp7bz6Ht1eaRIa6QaJqO5rCFbA==", - "dev": true, - "requires": { - "agent-base": "6", - "debug": "4" - } - }, "human-signals": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz", "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==", "dev": true }, - "iconv-lite": { - "version": "0.4.24", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.24.tgz", - "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", - "dev": true, - "requires": { - "safer-buffer": ">= 2.1.2 < 3" - } - }, "import-local": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", - "integrity": "sha512-ASB07uLtnDs1o6EHjKpX34BKYDSqnFerfTOJL2HvMqF70LnxpjkzDB8J44oT9pu4AMPkQwf8jl6szgvNd2tRIg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz", + "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==", "dev": true, "requires": { "pkg-dir": "^4.2.0", @@ -7599,7 +5822,7 @@ "imurmurhash": { "version": "0.1.4", "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", "dev": true }, "inflight": { @@ -7618,13 +5841,19 @@ "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", "dev": true }, + "is-arrayish": { + "version": "0.2.1", + "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", + "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==", + "dev": true + }, "is-core-module": { - "version": "2.8.1", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.8.1.tgz", - "integrity": "sha512-SdNCUs284hr40hFTFP6l0IfZ/RSrMXF3qgoRHd3/79unUTvrFO/JoXwkGm+5J/Oe3E/b5GsnG330uUNgRpu1PA==", + "version": "2.16.1", + "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz", + "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==", "dev": true, "requires": { - "has": "^1.0.3" + "hasown": "^2.0.2" } }, "is-fullwidth-code-point": { @@ -7644,58 +5873,71 @@ "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", "dev": true }, - "is-potential-custom-element-name": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/is-potential-custom-element-name/-/is-potential-custom-element-name-1.0.1.tgz", - "integrity": "sha512-bCYeRA2rVibKZd+s2625gGnGF/t7DSqDs4dP7CrLA1m7jKWz6pps0LpYLJN8Q64HtmPKJ1hrN3nzPNKFEKOUiQ==", - "dev": true - }, "is-stream": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz", "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==", "dev": true }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, "isexe": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", - "integrity": "sha1-6PvzdNxVb/iUehDcsFctYz8s+hA=", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, "istanbul-lib-coverage": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.0.tgz", - "integrity": "sha512-eOeJ5BHCmHYvQK7xt9GkdHuzuCGS1Y6g9Gvnx3Ym33fz/HpLRYxiS0wHNr+m/MBC8B647Xt608vCDEvhl9c6Mw==", + "version": "3.2.2", + "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz", + "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==", "dev": true }, "istanbul-lib-instrument": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-5.1.0.tgz", - "integrity": "sha512-czwUz525rkOFDJxfKK6mYfIs9zBKILyrZQxjz3ABhjQXhbhFsSbo1HW/BFcsDnfJYJWA6thRR5/TUY2qs5W99Q==", + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz", + "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==", "dev": true, "requires": { - "@babel/core": "^7.12.3", - "@babel/parser": "^7.14.7", - "@istanbuljs/schema": "^0.1.2", + "@babel/core": "^7.23.9", + "@babel/parser": "^7.23.9", + "@istanbuljs/schema": "^0.1.3", "istanbul-lib-coverage": "^3.2.0", - "semver": "^6.3.0" + "semver": "^7.5.4" + }, + "dependencies": { + "semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true + } } }, "istanbul-lib-report": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.0.tgz", - "integrity": "sha512-wcdi+uAKzfiGT2abPpKZ0hSU1rGQjUQnLvtY5MpQ7QCTahD3VODhcu4wcfY1YtkGaDD5yuydOLINXsfbus9ROw==", + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz", + "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==", "dev": true, "requires": { "istanbul-lib-coverage": "^3.0.0", - "make-dir": "^3.0.0", + "make-dir": "^4.0.0", "supports-color": "^7.1.0" + }, + "dependencies": { + "make-dir": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz", + "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==", + "dev": true, + "requires": { + "semver": "^7.5.3" + } + }, + "semver": { + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true + } } }, "istanbul-lib-source-maps": { @@ -7710,9 +5952,9 @@ } }, "istanbul-reports": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.1.3.tgz", - "integrity": "sha512-x9LtDVtfm/t1GFiLl3NffC7hz+I1ragvgX1P/Lg1NlIagifZDKUkuuaAxH/qpwj2IuEfD8G2Bs/UKp+sZ/pKkg==", + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz", + "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==", "dev": true, "requires": { "html-escaper": "^2.0.0", @@ -7720,1039 +5962,392 @@ } }, "jest": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest/-/jest-27.4.7.tgz", - "integrity": "sha512-8heYvsx7nV/m8m24Vk26Y87g73Ba6ueUd0MWed/NXMhSZIm62U/llVbS0PJe1SHunbyXjJ/BqG1z9bFjGUIvTg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest/-/jest-29.7.0.tgz", + "integrity": "sha512-NIy3oAFp9shda19hy4HK0HRTWKtPJmGdnvywu01nOqNC2vZg+Z+fvJDxpMQA88eb2I9EcafcdjYgsDthnYTvGw==", "dev": true, "requires": { - "@jest/core": "^27.4.7", + "@jest/core": "^29.7.0", + "@jest/types": "^29.6.3", "import-local": "^3.0.2", - "jest-cli": "^27.4.7" + "jest-cli": "^29.7.0" } }, "jest-changed-files": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-27.4.2.tgz", - "integrity": "sha512-/9x8MjekuzUQoPjDHbBiXbNEBauhrPU2ct7m8TfCg69ywt1y/N+yYwGh3gCpnqUS3klYWDU/lSNgv+JhoD2k1A==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-29.7.0.tgz", + "integrity": "sha512-fEArFiwf1BpQ+4bXSprcDc3/x4HSzL4al2tozwVpDFpsxALjLYdyiIK4e5Vz66GQJIbXJ82+35PtysofptNX2w==", "dev": true, "requires": { - "@jest/types": "^27.4.2", "execa": "^5.0.0", - "throat": "^6.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-util": "^29.7.0", + "p-limit": "^3.1.0" } }, "jest-circus": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-27.4.6.tgz", - "integrity": "sha512-UA7AI5HZrW4wRM72Ro80uRR2Fg+7nR0GESbSI/2M+ambbzVuA63mn5T1p3Z/wlhntzGpIG1xx78GP2YIkf6PhQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-29.7.0.tgz", + "integrity": "sha512-3E1nCMgipcTkCocFwM90XXQab9bS+GMsjdpmPrlelaxwD93Ad8iVEjX/vvHPdLPnFf+L40u+5+iutRdA1N9myw==", "dev": true, "requires": { - "@jest/environment": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/expect": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "co": "^4.6.0", - "dedent": "^0.7.0", - "expect": "^27.4.6", + "dedent": "^1.0.0", "is-generator-fn": "^2.0.0", - "jest-each": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6", + "jest-each": "^29.7.0", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", + "p-limit": "^3.1.0", + "pretty-format": "^29.7.0", + "pure-rand": "^6.0.0", "slash": "^3.0.0", - "stack-utils": "^2.0.3", - "throat": "^6.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "stack-utils": "^2.0.3" } }, "jest-cli": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-27.4.7.tgz", - "integrity": "sha512-zREYhvjjqe1KsGV15mdnxjThKNDgza1fhDT+iUsXWLCq3sxe9w5xnvyctcYVT5PcdLSjv7Y5dCwTS3FCF1tiuw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-29.7.0.tgz", + "integrity": "sha512-OVVobw2IubN/GSYsxETi+gOe7Ka59EFMR/twOU3Jb2GnKKeMGJB5SGUUrEz3SFVmJASUdZUzy83sLNNQ2gZslg==", "dev": true, "requires": { - "@jest/core": "^27.4.7", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/core": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", + "create-jest": "^29.7.0", "exit": "^0.1.2", - "graceful-fs": "^4.2.4", "import-local": "^3.0.2", - "jest-config": "^27.4.7", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", - "prompts": "^2.0.1", - "yargs": "^16.2.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-config": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", + "yargs": "^17.3.1" } }, "jest-config": { - "version": "27.4.7", - "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-27.4.7.tgz", - "integrity": "sha512-xz/o/KJJEedHMrIY9v2ParIoYSrSVY6IVeE4z5Z3i101GoA5XgfbJz+1C8EYPsv7u7f39dS8F9v46BHDhn0vlw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-29.7.0.tgz", + "integrity": "sha512-uXbpfeQ7R6TZBqI3/TxCU4q4ttk3u0PJeC+E0zbfSoSjq6bJ7buBPxzQPL0ifrkY4DNu4JUdk0ImlBUYi840eQ==", "dev": true, "requires": { - "@babel/core": "^7.8.0", - "@jest/test-sequencer": "^27.4.6", - "@jest/types": "^27.4.2", - "babel-jest": "^27.4.6", + "@babel/core": "^7.11.6", + "@jest/test-sequencer": "^29.7.0", + "@jest/types": "^29.6.3", + "babel-jest": "^29.7.0", "chalk": "^4.0.0", "ci-info": "^3.2.0", "deepmerge": "^4.2.2", - "glob": "^7.1.1", - "graceful-fs": "^4.2.4", - "jest-circus": "^27.4.6", - "jest-environment-jsdom": "^27.4.6", - "jest-environment-node": "^27.4.6", - "jest-get-type": "^27.4.0", - "jest-jasmine2": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-runner": "^27.4.6", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", + "glob": "^7.1.3", + "graceful-fs": "^4.2.9", + "jest-circus": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-runner": "^29.7.0", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "micromatch": "^4.0.4", - "pretty-format": "^27.4.6", - "slash": "^3.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "parse-json": "^5.2.0", + "pretty-format": "^29.7.0", + "slash": "^3.0.0", + "strip-json-comments": "^3.1.1" } }, "jest-diff": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-27.4.6.tgz", - "integrity": "sha512-zjaB0sh0Lb13VyPsd92V7HkqF6yKRH9vm33rwBt7rPYrpQvS1nCvlIy2pICbKta+ZjWngYLNn4cCK4nyZkjS/w==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-29.7.0.tgz", + "integrity": "sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw==", "dev": true, "requires": { "chalk": "^4.0.0", - "diff-sequences": "^27.4.0", - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "diff-sequences": "^29.6.3", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" } }, "jest-docblock": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-27.4.0.tgz", - "integrity": "sha512-7TBazUdCKGV7svZ+gh7C8esAnweJoG+SvcF6Cjqj4l17zA2q1cMwx2JObSioubk317H+cjcHgP+7fTs60paulg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-29.7.0.tgz", + "integrity": "sha512-q617Auw3A612guyaFgsbFeYpNP5t2aoUNLwBUbc/0kD1R4t9ixDbyFTHd1nok4epoVFpr7PmeWHrhvuV3XaJ4g==", "dev": true, "requires": { "detect-newline": "^3.0.0" } }, "jest-each": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-27.4.6.tgz", - "integrity": "sha512-n6QDq8y2Hsmn22tRkgAk+z6MCX7MeVlAzxmZDshfS2jLcaBlyhpF3tZSJLR+kXmh23GEvS0ojMR8i6ZeRvpQcA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-29.7.0.tgz", + "integrity": "sha512-gns+Er14+ZrEoC5fhOfYCY1LOHHr0TI+rQUHZS8Ttw2l7gl+80eHc/gFf2Ktkw0+SIACDTeWvpFcv3B04VembQ==", "dev": true, "requires": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "chalk": "^4.0.0", - "jest-get-type": "^27.4.0", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-environment-jsdom": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-environment-jsdom/-/jest-environment-jsdom-27.4.6.tgz", - "integrity": "sha512-o3dx5p/kHPbUlRvSNjypEcEtgs6LmvESMzgRFQE6c+Prwl2JLA4RZ7qAnxc5VM8kutsGRTB15jXeeSbJsKN9iA==", - "dev": true, - "requires": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/node": "*", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2", - "jsdom": "^16.6.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-get-type": "^29.6.3", + "jest-util": "^29.7.0", + "pretty-format": "^29.7.0" } }, "jest-environment-node": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-27.4.6.tgz", - "integrity": "sha512-yfHlZ9m+kzTKZV0hVfhVu6GuDxKAYeFHrfulmy7Jxwsq4V7+ZK7f+c0XP/tbVDMQW7E4neG2u147hFkuVz0MlQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-29.7.0.tgz", + "integrity": "sha512-DOSwCRqXirTOyheM+4d5YZOrWcdu0LNZ87ewUoywbcb2XR4wKgqiG8vNeYwhjFMbEkfju7wx2GYH0P2gevGvFw==", "dev": true, "requires": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", - "jest-mock": "^27.4.6", - "jest-util": "^27.4.2" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-mock": "^29.7.0", + "jest-util": "^29.7.0" } }, "jest-get-type": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-27.4.0.tgz", - "integrity": "sha512-tk9o+ld5TWq41DkK14L4wox4s2D9MtTpKaAVzXfr5CUKm5ZK2ExcaFE0qls2W71zE/6R2TxxrK9w2r6svAFDBQ==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-get-type/-/jest-get-type-29.6.3.tgz", + "integrity": "sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw==", "dev": true }, "jest-haste-map": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-27.4.6.tgz", - "integrity": "sha512-0tNpgxg7BKurZeFkIOvGCkbmOHbLFf4LUQOxrQSMjvrQaQe3l6E8x6jYC1NuWkGo5WDdbr8FEzUxV2+LWNawKQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-29.7.0.tgz", + "integrity": "sha512-fP8u2pyfqx0K1rGn1R9pyE0/KTn+G7PxktWidOBTqFPLYX0b9ksaMFkhK5vrS3DVun09pckLdlx90QthlW7AmA==", "dev": true, "requires": { - "@jest/types": "^27.4.2", - "@types/graceful-fs": "^4.1.2", + "@jest/types": "^29.6.3", + "@types/graceful-fs": "^4.1.3", "@types/node": "*", "anymatch": "^3.0.3", "fb-watchman": "^2.0.0", "fsevents": "^2.3.2", - "graceful-fs": "^4.2.4", - "jest-regex-util": "^27.4.0", - "jest-serializer": "^27.4.0", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-regex-util": "^29.6.3", + "jest-util": "^29.7.0", + "jest-worker": "^29.7.0", "micromatch": "^4.0.4", - "walker": "^1.0.7" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-jasmine2": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-jasmine2/-/jest-jasmine2-27.4.6.tgz", - "integrity": "sha512-uAGNXF644I/whzhsf7/qf74gqy9OuhvJ0XYp8SDecX2ooGeaPnmJMjXjKt0mqh1Rl5dtRGxJgNrHlBQIBfS5Nw==", - "dev": true, - "requires": { - "@jest/environment": "^27.4.6", - "@jest/source-map": "^27.4.0", - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/node": "*", - "chalk": "^4.0.0", - "co": "^4.6.0", - "expect": "^27.4.6", - "is-generator-fn": "^2.0.0", - "jest-each": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", - "pretty-format": "^27.4.6", - "throat": "^6.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "walker": "^1.0.8" } }, "jest-leak-detector": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-27.4.6.tgz", - "integrity": "sha512-kkaGixDf9R7CjHm2pOzfTxZTQQQ2gHTIWKY/JZSiYTc90bZp8kSZnUMS3uLAfwTZwc0tcMRoEX74e14LG1WapA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-29.7.0.tgz", + "integrity": "sha512-kYA8IJcSYtST2BY9I+SMC32nDpBT3J2NvWJx8+JCuCdl/CR1I4EKUJROiP8XtCcxqgTTBGJNdbB1A8XRKbTetw==", "dev": true, "requires": { - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" } }, "jest-matcher-utils": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-27.4.6.tgz", - "integrity": "sha512-XD4PKT3Wn1LQnRAq7ZsTI0VRuEc9OrCPFiO1XL7bftTGmfNF0DcEwMHRgqiu7NGf8ZoZDREpGrCniDkjt79WbA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-29.7.0.tgz", + "integrity": "sha512-sBkD+Xi9DtcChsI3L3u0+N0opgPYnCRPtGcQYrgXmR+hmt/fYfWAL0xRXYU8eWOdfuLgBe0YCW3AFtnRLagq/g==", "dev": true, "requires": { "chalk": "^4.0.0", - "jest-diff": "^27.4.6", - "jest-get-type": "^27.4.0", - "pretty-format": "^27.4.6" + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "pretty-format": "^29.7.0" } }, "jest-message-util": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-27.4.6.tgz", - "integrity": "sha512-0p5szriFU0U74czRSFjH6RyS7UYIAkn/ntwMuOwTGWrQIOh5NzXXrq72LOqIkJKKvFbPq+byZKuBz78fjBERBA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-29.7.0.tgz", + "integrity": "sha512-GBEV4GRADeP+qtB2+6u61stea8mGcOT4mCtrYISZwfu9/ISHFJ/5zOMXYbpBE9RsS5+Gb63DW4FgmnKJ79Kf6w==", "dev": true, "requires": { "@babel/code-frame": "^7.12.13", - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/stack-utils": "^2.0.0", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "micromatch": "^4.0.4", - "pretty-format": "^27.4.6", + "pretty-format": "^29.7.0", "slash": "^3.0.0", "stack-utils": "^2.0.3" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "jest-mock": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-27.4.6.tgz", - "integrity": "sha512-kvojdYRkst8iVSZ1EJ+vc1RRD9llueBjKzXzeCytH3dMM7zvPV/ULcfI2nr0v0VUgm3Bjt3hBCQvOeaBz+ZTHw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-29.7.0.tgz", + "integrity": "sha512-ITOMZn+UkYS4ZFh83xYAOzWStloNzJFO2s8DWrE4lhtGD+AorgnbkiKERe4wQVBydIGPx059g6riW5Btp6Llnw==", "dev": true, "requires": { - "@jest/types": "^27.4.2", - "@types/node": "*" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "@jest/types": "^29.6.3", + "@types/node": "*", + "jest-util": "^29.7.0" } }, "jest-pnp-resolver": { - "version": "1.2.2", - "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.2.tgz", - "integrity": "sha512-olV41bKSMm8BdnuMsewT4jqlZ8+3TCARAXjZGT9jcoSnrfUnRCqnMoF9XEeoWjbzObpqF9dRhHQj0Xb9QdF6/w==", + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz", + "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==", "dev": true, "requires": {} }, "jest-regex-util": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-27.4.0.tgz", - "integrity": "sha512-WeCpMpNnqJYMQoOjm1nTtsgbR4XHAk1u00qDoNBQoykM280+/TmgA5Qh5giC1ecy6a5d4hbSsHzpBtu5yvlbEg==", + "version": "29.6.3", + "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-29.6.3.tgz", + "integrity": "sha512-KJJBsRCyyLNWCNBOvZyRDnAIfUiRJ8v+hOBQYGn8gDyF3UegwiP4gwRR3/SDa42g1YbVycTidUF3rKjyLFDWbg==", "dev": true }, "jest-resolve": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-27.4.6.tgz", - "integrity": "sha512-SFfITVApqtirbITKFAO7jOVN45UgFzcRdQanOFzjnbd+CACDoyeX7206JyU92l4cRr73+Qy/TlW51+4vHGt+zw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-29.7.0.tgz", + "integrity": "sha512-IOVhZSrg+UvVAshDSDtHyFCCBUl/Q3AAJv8iZ6ZjnZ74xzvwuzLXid9IIIPgTnY62SJjfuupMKZsZQRsCvxEgA==", "dev": true, "requires": { - "@jest/types": "^27.4.2", "chalk": "^4.0.0", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", "jest-pnp-resolver": "^1.2.2", - "jest-util": "^27.4.2", - "jest-validate": "^27.4.6", + "jest-util": "^29.7.0", + "jest-validate": "^29.7.0", "resolve": "^1.20.0", - "resolve.exports": "^1.1.0", + "resolve.exports": "^2.0.0", "slash": "^3.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "jest-resolve-dependencies": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-27.4.6.tgz", - "integrity": "sha512-W85uJZcFXEVZ7+MZqIPCscdjuctruNGXUZ3OHSXOfXR9ITgbUKeHj+uGcies+0SsvI5GtUfTw4dY7u9qjTvQOw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-29.7.0.tgz", + "integrity": "sha512-un0zD/6qxJ+S0et7WxeI3H5XSe9lTBBR7bOHCHXkKR6luG5mwDDlIzVQ0V5cZCuoTgEdcdwzTghYkTWfubi+nA==", "dev": true, "requires": { - "@jest/types": "^27.4.2", - "jest-regex-util": "^27.4.0", - "jest-snapshot": "^27.4.6" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "jest-regex-util": "^29.6.3", + "jest-snapshot": "^29.7.0" } }, "jest-runner": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-27.4.6.tgz", - "integrity": "sha512-IDeFt2SG4DzqalYBZRgbbPmpwV3X0DcntjezPBERvnhwKGWTW7C5pbbA5lVkmvgteeNfdd/23gwqv3aiilpYPg==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-29.7.0.tgz", + "integrity": "sha512-fsc4N6cPCAahybGBfTRcq5wFR6fpLznMg47sY5aDpsoejOcVYFb07AHuSnR0liMcPTgBsA3ZJL6kFOjPdoNipQ==", "dev": true, "requires": { - "@jest/console": "^27.4.6", - "@jest/environment": "^27.4.6", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/console": "^29.7.0", + "@jest/environment": "^29.7.0", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", - "emittery": "^0.8.1", - "exit": "^0.1.2", - "graceful-fs": "^4.2.4", - "jest-docblock": "^27.4.0", - "jest-environment-jsdom": "^27.4.6", - "jest-environment-node": "^27.4.6", - "jest-haste-map": "^27.4.6", - "jest-leak-detector": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-resolve": "^27.4.6", - "jest-runtime": "^27.4.6", - "jest-util": "^27.4.2", - "jest-worker": "^27.4.6", - "source-map-support": "^0.5.6", - "throat": "^6.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } + "emittery": "^0.13.1", + "graceful-fs": "^4.2.9", + "jest-docblock": "^29.7.0", + "jest-environment-node": "^29.7.0", + "jest-haste-map": "^29.7.0", + "jest-leak-detector": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-resolve": "^29.7.0", + "jest-runtime": "^29.7.0", + "jest-util": "^29.7.0", + "jest-watcher": "^29.7.0", + "jest-worker": "^29.7.0", + "p-limit": "^3.1.0", + "source-map-support": "0.5.13" } }, "jest-runtime": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-27.4.6.tgz", - "integrity": "sha512-eXYeoR/MbIpVDrjqy5d6cGCFOYBFFDeKaNWqTp0h6E74dK0zLHzASQXJpl5a2/40euBmKnprNLJ0Kh0LCndnWQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-29.7.0.tgz", + "integrity": "sha512-gUnLjgwdGqW7B4LvOIkbKs9WGbn+QLqRQQ9juC6HndeDiezIwhDP+mhMwHWCEcfQ5RUXa6OPnFF8BJh5xegwwQ==", "dev": true, "requires": { - "@jest/environment": "^27.4.6", - "@jest/fake-timers": "^27.4.6", - "@jest/globals": "^27.4.6", - "@jest/source-map": "^27.4.0", - "@jest/test-result": "^27.4.6", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/environment": "^29.7.0", + "@jest/fake-timers": "^29.7.0", + "@jest/globals": "^29.7.0", + "@jest/source-map": "^29.6.3", + "@jest/test-result": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", + "@types/node": "*", "chalk": "^4.0.0", "cjs-module-lexer": "^1.0.0", "collect-v8-coverage": "^1.0.0", - "execa": "^5.0.0", "glob": "^7.1.3", - "graceful-fs": "^4.2.4", - "jest-haste-map": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-mock": "^27.4.6", - "jest-regex-util": "^27.4.0", - "jest-resolve": "^27.4.6", - "jest-snapshot": "^27.4.6", - "jest-util": "^27.4.2", + "graceful-fs": "^4.2.9", + "jest-haste-map": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-mock": "^29.7.0", + "jest-regex-util": "^29.6.3", + "jest-resolve": "^29.7.0", + "jest-snapshot": "^29.7.0", + "jest-util": "^29.7.0", "slash": "^3.0.0", "strip-bom": "^4.0.0" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } - } - }, - "jest-serializer": { - "version": "27.4.0", - "resolved": "https://registry.npmjs.org/jest-serializer/-/jest-serializer-27.4.0.tgz", - "integrity": "sha512-RDhpcn5f1JYTX2pvJAGDcnsNTnsV9bjYPU8xcV+xPwOXnUPOQwf4ZEuiU6G9H1UztH+OapMgu/ckEVwO87PwnQ==", - "dev": true, - "requires": { - "@types/node": "*", - "graceful-fs": "^4.2.4" } }, "jest-snapshot": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-27.4.6.tgz", - "integrity": "sha512-fafUCDLQfzuNP9IRcEqaFAMzEe7u5BF7mude51wyWv7VRex60WznZIC7DfKTgSIlJa8aFzYmXclmN328aqSDmQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-29.7.0.tgz", + "integrity": "sha512-Rm0BMWtxBcioHr1/OX5YCP8Uov4riHvKPknOGs804Zg9JGZgmIBkbtlxJC/7Z4msKYVbIJtfU+tKb8xlYNfdkw==", "dev": true, "requires": { - "@babel/core": "^7.7.2", + "@babel/core": "^7.11.6", "@babel/generator": "^7.7.2", + "@babel/plugin-syntax-jsx": "^7.7.2", "@babel/plugin-syntax-typescript": "^7.7.2", - "@babel/traverse": "^7.7.2", - "@babel/types": "^7.0.0", - "@jest/transform": "^27.4.6", - "@jest/types": "^27.4.2", - "@types/babel__traverse": "^7.0.4", - "@types/prettier": "^2.1.5", + "@babel/types": "^7.3.3", + "@jest/expect-utils": "^29.7.0", + "@jest/transform": "^29.7.0", + "@jest/types": "^29.6.3", "babel-preset-current-node-syntax": "^1.0.0", "chalk": "^4.0.0", - "expect": "^27.4.6", - "graceful-fs": "^4.2.4", - "jest-diff": "^27.4.6", - "jest-get-type": "^27.4.0", - "jest-haste-map": "^27.4.6", - "jest-matcher-utils": "^27.4.6", - "jest-message-util": "^27.4.6", - "jest-util": "^27.4.2", + "expect": "^29.7.0", + "graceful-fs": "^4.2.9", + "jest-diff": "^29.7.0", + "jest-get-type": "^29.6.3", + "jest-matcher-utils": "^29.7.0", + "jest-message-util": "^29.7.0", + "jest-util": "^29.7.0", "natural-compare": "^1.4.0", - "pretty-format": "^27.4.6", - "semver": "^7.3.2" + "pretty-format": "^29.7.0", + "semver": "^7.5.3" }, "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true } } }, "jest-util": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-27.4.2.tgz", - "integrity": "sha512-YuxxpXU6nlMan9qyLuxHaMMOzXAl5aGZWCSzben5DhLHemYQxCc4YK+4L3ZrCutT8GPQ+ui9k5D8rUJoDioMnA==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-29.7.0.tgz", + "integrity": "sha512-z6EbKajIpqGKU56y5KBUgy1dt1ihhQJgWzUlZHArA/+X2ad7Cb5iF+AK1EWVL/Bo7Rz9uurpqw6SiBCefUbCGA==", "dev": true, "requires": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "@types/node": "*", "chalk": "^4.0.0", "ci-info": "^3.2.0", - "graceful-fs": "^4.2.4", + "graceful-fs": "^4.2.9", "picomatch": "^2.2.3" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "jest-validate": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-27.4.6.tgz", - "integrity": "sha512-872mEmCPVlBqbA5dToC57vA3yJaMRfIdpCoD3cyHWJOMx+SJwLNw0I71EkWs41oza/Er9Zno9XuTkRYCPDUJXQ==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-29.7.0.tgz", + "integrity": "sha512-ZB7wHqaRGVw/9hST/OuFUReG7M8vKeq0/J2egIGLdvjHCmYqGARhzXmtgi+gVeZ5uXFF219aOc3Ls2yLg27tkw==", "dev": true, "requires": { - "@jest/types": "^27.4.2", + "@jest/types": "^29.6.3", "camelcase": "^6.2.0", "chalk": "^4.0.0", - "jest-get-type": "^27.4.0", + "jest-get-type": "^29.6.3", "leven": "^3.1.0", - "pretty-format": "^27.4.6" + "pretty-format": "^29.7.0" }, "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - }, "camelcase": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz", @@ -8762,60 +6357,29 @@ } }, "jest-watcher": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-27.4.6.tgz", - "integrity": "sha512-yKQ20OMBiCDigbD0quhQKLkBO+ObGN79MO4nT7YaCuQ5SM+dkBNWE8cZX0FjU6czwMvWw6StWbe+Wv4jJPJ+fw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-29.7.0.tgz", + "integrity": "sha512-49Fg7WXkU3Vl2h6LbLtMQ/HyB6rXSIX7SqvBLQmssRBGN9I0PNvPmAmCWSOY6SOvrjhI/F7/bGAv9RtnsPA03g==", "dev": true, "requires": { - "@jest/test-result": "^27.4.6", - "@jest/types": "^27.4.2", + "@jest/test-result": "^29.7.0", + "@jest/types": "^29.6.3", "@types/node": "*", "ansi-escapes": "^4.2.1", "chalk": "^4.0.0", - "jest-util": "^27.4.2", + "emittery": "^0.13.1", + "jest-util": "^29.7.0", "string-length": "^4.0.1" - }, - "dependencies": { - "@jest/types": { - "version": "27.4.2", - "resolved": "https://registry.npmjs.org/@jest/types/-/types-27.4.2.tgz", - "integrity": "sha512-j35yw0PMTPpZsUoOBiuHzr1zTYoad1cVIE0ajEjcrJONxxrko/IRGKkXx3os0Nsi4Hu3+5VmDbVfq5WhG/pWAg==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.0", - "@types/istanbul-reports": "^3.0.0", - "@types/node": "*", - "@types/yargs": "^16.0.0", - "chalk": "^4.0.0" - } - }, - "@types/istanbul-reports": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.1.tgz", - "integrity": "sha512-c3mAZEuK0lvBp8tmuL74XRKn1+y2dcwOUpH7x4WrF6gk1GIgiluDRgMYQtw2OFcBvAJWlt6ASU3tSqxp0Uu0Aw==", - "dev": true, - "requires": { - "@types/istanbul-lib-report": "*" - } - }, - "@types/yargs": { - "version": "16.0.4", - "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-16.0.4.tgz", - "integrity": "sha512-T8Yc9wt/5LbJyCaLiHPReJa0kApcIgJ7Bn735GjItUfh08Z1pJvu8QZqb9s+mMvKV6WUQRV7K2R46YbjMXTTJw==", - "dev": true, - "requires": { - "@types/yargs-parser": "*" - } - } } }, "jest-worker": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-27.4.6.tgz", - "integrity": "sha512-gHWJF/6Xi5CTG5QCvROr6GcmpIqNYpDJyc8A1h/DyXqH1tD6SnRCM0d3U5msV31D2LB/U+E0M+W4oyvKV44oNw==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-29.7.0.tgz", + "integrity": "sha512-eIz2msL/EzL9UFTFFx7jBTkeZfku0yUAyZZZmJ93H2TYEiroIx2PQjEXcwYtYl8zXCxb+PAmA2hLIt/6ZEkPHw==", "dev": true, "requires": { "@types/node": "*", + "jest-util": "^29.7.0", "merge-stream": "^2.0.0", "supports-color": "^8.0.0" }, @@ -8838,78 +6402,31 @@ "dev": true }, "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", + "version": "3.14.2", + "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz", + "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==", "dev": true, "requires": { "argparse": "^1.0.7", "esprima": "^4.0.0" } }, - "jsdom": { - "version": "16.7.0", - "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-16.7.0.tgz", - "integrity": "sha512-u9Smc2G1USStM+s/x1ru5Sxrl6mPYCbByG1U/hUmqaVsm4tbNyS7CicOSRyuGQYZhTu0h84qkZZQ/I+dzizSVw==", - "dev": true, - "requires": { - "abab": "^2.0.5", - "acorn": "^8.2.4", - "acorn-globals": "^6.0.0", - "cssom": "^0.4.4", - "cssstyle": "^2.3.0", - "data-urls": "^2.0.0", - "decimal.js": "^10.2.1", - "domexception": "^2.0.1", - "escodegen": "^2.0.0", - "form-data": "^3.0.0", - "html-encoding-sniffer": "^2.0.1", - "http-proxy-agent": "^4.0.1", - "https-proxy-agent": "^5.0.0", - "is-potential-custom-element-name": "^1.0.1", - "nwsapi": "^2.2.0", - "parse5": "6.0.1", - "saxes": "^5.0.1", - "symbol-tree": "^3.2.4", - "tough-cookie": "^4.0.0", - "w3c-hr-time": "^1.0.2", - "w3c-xmlserializer": "^2.0.0", - "webidl-conversions": "^6.1.0", - "whatwg-encoding": "^1.0.5", - "whatwg-mimetype": "^2.3.0", - "whatwg-url": "^8.5.0", - "ws": "^7.4.6", - "xml-name-validator": "^3.0.0" - }, - "dependencies": { - "ws": { - "version": "7.5.9", - "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.9.tgz", - "integrity": "sha512-F+P9Jil7UiSKSkppIiD94dN07AwvFixvLIj1Og1Rl9GGMuNipJnV9JzjD6XuqmAeiswGvUmNLjr5cFuXwNS77Q==", - "dev": true, - "requires": {} - } - } - }, "jsesc": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", - "integrity": "sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "dev": true + }, + "json-parse-even-better-errors": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", + "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", "dev": true }, "json5": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.1.3.tgz", - "integrity": "sha512-KXPvOm8K9IJKFM0bmdn8QXh7udDh1g/giieX0NLCaMnb4hEiVFqnop2ImTXCc5e0/oHz3LTqmHGtExn5hfMkOA==", - "dev": true, - "requires": { - "minimist": "^1.2.5" - } - }, - "jsonc-parser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/jsonc-parser/-/jsonc-parser-3.0.0.tgz", - "integrity": "sha512-fQzRfAbIBnR0IQvftw9FJveWiHp72Fg20giDrHz6TdfB12UH/uue0D3hm57UB5KgAVuniLMCaS8P1IMj9NR7cA==", + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", "dev": true }, "kleur": { @@ -8924,14 +6441,19 @@ "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==", "dev": true }, - "levn": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", - "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", + "lines-and-columns": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz", + "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==", + "dev": true + }, + "linkify-it": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.0.tgz", + "integrity": "sha512-5aHCbzQRADcdP+ATqnDuhhJ/MRIqDkZX5pyjFHRRysS8vZ5AbqGEoFIb6pYHPZ+L/OC2Lc+xT8uHVVR5CAK/wQ==", "dev": true, "requires": { - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2" + "uc.micro": "^2.0.0" } }, "locate-path": { @@ -8943,16 +6465,10 @@ "p-locate": "^4.1.0" } }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, "lodash.camelcase": { "version": "4.3.0", "resolved": "https://registry.npmjs.org/lodash.camelcase/-/lodash.camelcase-4.3.0.tgz", - "integrity": "sha1-soqmKIorn8ZRA1x3EfZathkDMaY=" + "integrity": "sha512-TwuEnCnxbc3rAvhf/LbG7tJUDzhqXyFnv3dtzLOPgCG/hODL7WFnsbwktkD7yUV0RrreP/l1PALq/YSg6VvjlA==" }, "lodash.memoize": { "version": "4.1.2", @@ -8961,18 +6477,9 @@ "dev": true }, "long": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/long/-/long-4.0.0.tgz", - "integrity": "sha512-XsP+KhQif4bjX1kbuSiySJFNAehNxgLb6hPRGJ9QsUr8ajHkuXGdrHmFUTUUXhDwVX2R5bY4JNZEwbUiMhV+MA==" - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==" }, "lunr": { "version": "2.3.9", @@ -8980,15 +6487,6 @@ "integrity": "sha512-zTU3DaZaF3Rt9rhN3uBMGQD3dD2/vFQqnvZCDv4dl5iOzq2IZQqTxu90r4E5J+nP70J3ilqVCrbho2eWaeW8Ow==", "dev": true }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - } - }, "make-error": { "version": "1.3.6", "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz", @@ -9004,10 +6502,38 @@ "tmpl": "1.0.5" } }, + "markdown-it": { + "version": "14.1.1", + "resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.1.1.tgz", + "integrity": "sha512-BuU2qnTti9YKgK5N+IeMubp14ZUKUUw7yeJbkjtosvHiP0AZ5c8IAgEMk79D0eC8F23r4Ac/q8cAIFdm2FtyoA==", + "dev": true, + "requires": { + "argparse": "^2.0.1", + "entities": "^4.4.0", + "linkify-it": "^5.0.0", + "mdurl": "^2.0.0", + "punycode.js": "^2.3.1", + "uc.micro": "^2.1.0" + }, + "dependencies": { + "argparse": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", + "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", + "dev": true + } + } + }, "marked": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-4.1.0.tgz", - "integrity": "sha512-+Z6KDjSPa6/723PQYyc1axYZpYYpDnECDaU6hkaf5gqBieBkMKYReL5hteF2QizhlMbgbo8umXl/clZ67+GlsA==", + "version": "15.0.12", + "resolved": "https://registry.npmjs.org/marked/-/marked-15.0.12.tgz", + "integrity": "sha512-8dD6FusOQSrpv9Z1rdNMdlSgQOIP880DHqnohobOmYLElGEqAL/JvxvuxZO16r4HtjTlfPRDC1hbvxC9dPN2nA==", + "dev": true + }, + "mdurl": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.0.0.tgz", + "integrity": "sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==", "dev": true }, "merge-stream": { @@ -9017,28 +6543,13 @@ "dev": true }, "micromatch": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.4.tgz", - "integrity": "sha512-pRmzw/XUcwXGpD9aI9q/0XOwLNygjETJ8y0ao0wdqprrzDa4YnxLcz7fQRZr8voh8V10kGhABbNcHVk5wHgWwg==", + "version": "4.0.8", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz", + "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==", "dev": true, "requires": { - "braces": "^3.0.1", - "picomatch": "^2.2.3" - } - }, - "mime-db": { - "version": "1.51.0", - "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.51.0.tgz", - "integrity": "sha512-5y8A56jg7XVQx2mbv1lu49NR4dokRnhZYTtL+KGfaa27uq4pSTXkwQkFJl4pkRMyNFz/EtYDSkiiEHx3F7UN6g==", - "dev": true - }, - "mime-types": { - "version": "2.1.34", - "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.34.tgz", - "integrity": "sha512-6cP692WwGIs9XXdOO4++N+7qjqv0rqxxVvJ3VHPh/Sc9mVZcQP+ZGhkKiTvWMQRr2tbHkJP/Yn7Y0npb3ZBs4A==", - "dev": true, - "requires": { - "mime-db": "1.51.0" + "braces": "^3.0.3", + "picomatch": "^2.3.1" } }, "mimic-fn": { @@ -9057,102 +6568,59 @@ } }, "minimist": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", - "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", - "dev": true - }, - "minipass": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.1.6.tgz", - "integrity": "sha512-rty5kpw9/z8SX9dmxblFA6edItUmwJgMeYDZRrwlIVN27i8gysGbznJwUggw2V/FVqFSDdWy040ZPS811DYAqQ==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "minizlib": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", - "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", - "dev": true, - "requires": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" - } - }, - "mkdirp": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", - "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", "dev": true }, "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, "natural-compare": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz", - "integrity": "sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=", + "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==", "dev": true }, - "node-fetch": { - "version": "2.6.7", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz", - "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==", - "dev": true, + "neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "nice-grpc": { + "version": "2.1.14", + "resolved": "https://registry.npmjs.org/nice-grpc/-/nice-grpc-2.1.14.tgz", + "integrity": "sha512-GK9pKNxlvnU5FAdaw7i2FFuR9CqBspcE+if2tqnKXBcE0R8525wj4BZvfcwj7FjvqbssqKxRHt2nwedalbJlww==", "requires": { - "whatwg-url": "^5.0.0" - }, - "dependencies": { - "tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha1-gYT9NH2snNwYWZLzpmIuFLnZq2o=", - "dev": true - }, - "webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha1-JFNCdeKnvGvnvIZhHMFq4KVlSHE=", - "dev": true - }, - "whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha1-lmRU6HZUYuN2RNNib2dCzotwll0=", - "dev": true, - "requires": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - } + "@grpc/grpc-js": "^1.14.0", + "abort-controller-x": "^0.4.0", + "nice-grpc-common": "^2.0.2" + } + }, + "nice-grpc-common": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/nice-grpc-common/-/nice-grpc-common-2.0.2.tgz", + "integrity": "sha512-7RNWbls5kAL1QVUOXvBsv1uO0wPQK3lHv+cY1gwkTzirnG1Nop4cBJZubpgziNbaVc/bl9QJcyvsf/NQxa3rjQ==", + "requires": { + "ts-error": "^1.0.6" } }, "node-int64": { "version": "0.4.0", "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz", - "integrity": "sha1-h6kGXNs1XTGC2PlM4RGIuCXGijs=", + "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==", "dev": true }, "node-releases": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.1.tgz", - "integrity": "sha512-CqyzN6z7Q6aMeF/ktcMVTzhAHCEpf8SOarwpzpf8pNBY2k5/oM34UHldUwp8VKI7uxct2HxSRdJjBaZeESzcxA==", + "version": "2.0.27", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz", + "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==", "dev": true }, - "nopt": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", - "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", - "dev": true, - "requires": { - "abbrev": "1" - } - }, "normalize-path": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", @@ -9168,30 +6636,6 @@ "path-key": "^3.0.0" } }, - "npmlog": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz", - "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==", - "dev": true, - "requires": { - "are-we-there-yet": "^2.0.0", - "console-control-strings": "^1.1.0", - "gauge": "^3.0.0", - "set-blocking": "^2.0.0" - } - }, - "nwsapi": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.0.tgz", - "integrity": "sha512-h2AatdwYH+JHiZpv7pt/gSX1XoRGb7L/qSIeuqA6GwYoF9w1vP1cw42TO0aI2pNyshRK5893hNSl+1//vHK7hQ==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, "once": { "version": "1.4.0", "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", @@ -9210,27 +6654,13 @@ "mimic-fn": "^2.1.0" } }, - "optionator": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.8.3.tgz", - "integrity": "sha512-+IW9pACdk3XWmmTXG8m3upGUJst5XRGzxMRjXzAuJ1XnIFNvfhjjIuYkDvysnPQ7qzqVzLt78BCruntqRhWQbA==", - "dev": true, - "requires": { - "deep-is": "~0.1.3", - "fast-levenshtein": "~2.0.6", - "levn": "~0.3.0", - "prelude-ls": "~1.1.2", - "type-check": "~0.3.2", - "word-wrap": "~1.2.3" - } - }, "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", + "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==", "dev": true, "requires": { - "p-try": "^2.0.0" + "yocto-queue": "^0.1.0" } }, "p-locate": { @@ -9240,6 +6670,17 @@ "dev": true, "requires": { "p-limit": "^2.2.0" + }, + "dependencies": { + "p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "dev": true, + "requires": { + "p-try": "^2.0.0" + } + } } }, "p-try": { @@ -9248,11 +6689,17 @@ "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", "dev": true }, - "parse5": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/parse5/-/parse5-6.0.1.tgz", - "integrity": "sha512-Ofn/CTFzRGTTxwpNEs9PP93gXShHcTq255nzRYSKe8AkVpZY7e1fpmTfOyoIvjP5HG7Z2ZM7VS9PPhQGW2pOpw==", - "dev": true + "parse-json": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", + "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", + "dev": true, + "requires": { + "@babel/code-frame": "^7.0.0", + "error-ex": "^1.3.1", + "json-parse-even-better-errors": "^2.3.0", + "lines-and-columns": "^1.1.6" + } }, "path-exists": { "version": "4.0.0", @@ -9279,9 +6726,9 @@ "dev": true }, "picocolors": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz", - "integrity": "sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ==", + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", "dev": true }, "picomatch": { @@ -9291,9 +6738,9 @@ "dev": true }, "pirates": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz", - "integrity": "sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", "dev": true }, "pkg-dir": { @@ -9305,21 +6752,15 @@ "find-up": "^4.0.0" } }, - "prelude-ls": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.1.2.tgz", - "integrity": "sha1-IZMqVJ9eUv/ZqCf1cOBL5iqX2lQ=", - "dev": true - }, "pretty-format": { - "version": "27.4.6", - "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-27.4.6.tgz", - "integrity": "sha512-NblstegA1y/RJW2VyML+3LlpFjzx62cUrtBIKIWDXEDkjNeleA7Od7nrzcs/VLQvAeV4CgSYhrN39DRN88Qi/g==", + "version": "29.7.0", + "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-29.7.0.tgz", + "integrity": "sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ==", "dev": true, "requires": { - "ansi-regex": "^5.0.1", + "@jest/schemas": "^29.6.3", "ansi-styles": "^5.0.0", - "react-is": "^17.0.1" + "react-is": "^18.0.0" }, "dependencies": { "ansi-styles": { @@ -9341,9 +6782,9 @@ } }, "protobufjs": { - "version": "6.11.3", - "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-6.11.3.tgz", - "integrity": "sha512-xL96WDdCZYdU7Slin569tFX712BxsxslWwAfAhCYjQKGTq7dAU91Lomy6nLLhh/dyGhk/YH4TwTSRxTzhuHyZg==", + "version": "7.5.4", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.4.tgz", + "integrity": "sha512-CvexbZtbov6jW2eXAvLukXjXUW1TzFaivC46BpWc/3BpcCysb5Vffu+B3XHMm8lVEuy2Mm4XGex8hBSg1yapPg==", "requires": { "@protobufjs/aspromise": "^1.1.2", "@protobufjs/base64": "^1.1.2", @@ -9355,65 +6796,40 @@ "@protobufjs/path": "^1.1.2", "@protobufjs/pool": "^1.1.0", "@protobufjs/utf8": "^1.1.0", - "@types/long": "^4.0.1", "@types/node": ">=13.7.0", - "long": "^4.0.0" - }, - "dependencies": { - "@types/long": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@types/long/-/long-4.0.2.tgz", - "integrity": "sha512-MqTGEo5bj5t157U6fA/BiDynNkn0YknVdh48CMPkTSpFTVmvao5UQmm7uEF6xBEo7qIMAlY/JSleYaE6VOdpaA==" - } + "long": "^5.0.0" } }, - "protoc-gen-ts": { - "version": "0.8.2", - "resolved": "https://registry.npmjs.org/protoc-gen-ts/-/protoc-gen-ts-0.8.2.tgz", - "integrity": "sha512-KRHMRLQqhDnaGq31qLDxhW4vcGmPqS2NS1XflDJyUBt2G6Egy9exBKFA2leyDgRab0BBRshoSXpJMkqmRtoQ6w==", - "requires": {} - }, - "psl": { - "version": "1.8.0", - "resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz", - "integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ==", + "punycode.js": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz", + "integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==", "dev": true }, - "punycode": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", - "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", + "pure-rand": { + "version": "6.1.0", + "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-6.1.0.tgz", + "integrity": "sha512-bVWawvoZoBYpp6yIoQtQXHZjmz35RSVHnUOTefl8Vcjr8snTPY1wnpSPMWekcFwbxI6gtmT7rSYPFvz71ldiOA==", "dev": true }, "react-is": { - "version": "17.0.2", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-17.0.2.tgz", - "integrity": "sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==", + "version": "18.3.1", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz", + "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==", "dev": true }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, "require-directory": { "version": "2.1.1", "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=" + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==" }, "resolve": { - "version": "1.22.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.0.tgz", - "integrity": "sha512-Hhtrw0nLeSrFQ7phPp4OOcVjLPIeMnRlr5mcnVuMe7M/7eBn98A3hmFRLoFo3DLZkivSYwhRUJTyPyWAk56WLw==", + "version": "1.22.11", + "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz", + "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==", "dev": true, "requires": { - "is-core-module": "^2.8.1", + "is-core-module": "^2.16.1", "path-parse": "^1.0.7", "supports-preserve-symlinks-flag": "^1.0.0" } @@ -9434,61 +6850,25 @@ "dev": true }, "resolve.exports": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-1.1.0.tgz", - "integrity": "sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ==", + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/resolve.exports/-/resolve.exports-2.0.3.tgz", + "integrity": "sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==", "dev": true }, - "rimraf": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, "rxjs": { - "version": "7.5.6", - "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.5.6.tgz", - "integrity": "sha512-dnyv2/YsXhnm461G+R/Pe5bWP41Nm6LBXEYWI6eiFP4fiwx6WRI/CD0zbdVAudd9xwLEF2IDcKXLHit0FYjUzw==", + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", "requires": { "tslib": "^2.1.0" } }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "safer-buffer": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", - "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", - "dev": true - }, - "saxes": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/saxes/-/saxes-5.0.1.tgz", - "integrity": "sha512-5LBh1Tls8c9xgGjw3QrMwETmTMVk0oFgvrFSvWx62llR2hcEInrKNZ2GZCCuuy2lvWrdl5jhbpeqc5hRYKFOcw==", - "dev": true, - "requires": { - "xmlchars": "^2.2.0" - } - }, "semver": { "version": "6.3.0", "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true }, - "set-blocking": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", - "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", - "dev": true - }, "shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -9504,21 +6884,10 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, - "shiki": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/shiki/-/shiki-0.10.0.tgz", - "integrity": "sha512-iczxaIYeBFHTFrQPb9DVy2SKgYxC4Wo7Iucm7C17cCh2Ge/refnvHscUOxM85u57MfLoNOtjoEFUWt9gBexblA==", - "dev": true, - "requires": { - "jsonc-parser": "^3.0.0", - "vscode-oniguruma": "^1.6.1", - "vscode-textmate": "5.2.0" - } - }, "signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", "dev": true }, "sisteransi": { @@ -9540,9 +6909,9 @@ "dev": true }, "source-map-support": { - "version": "0.5.21", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", - "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "version": "0.5.13", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz", + "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==", "dev": true, "requires": { "buffer-from": "^1.0.0", @@ -9552,35 +6921,18 @@ "sprintf-js": { "version": "1.0.3", "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", + "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==", "dev": true }, "stack-utils": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.5.tgz", - "integrity": "sha512-xrQcmYhOsn/1kX+Vraq+7j4oE2j/6BFscZ0etmYg81xuM8Gq0022Pxb8+IqgOFUIaxHs0KaSb7T1+OegiNrNFA==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz", + "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==", "dev": true, "requires": { "escape-string-regexp": "^2.0.0" } }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", - "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - }, - "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, "string-length": { "version": "4.0.2", "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz", @@ -9621,61 +6973,27 @@ "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==", "dev": true }, + "strip-json-comments": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz", + "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==", + "dev": true + }, "supports-color": { - "version": "7.1.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.1.0.tgz", - "integrity": "sha512-oRSIpR8pxT1Wr2FquTNnGet79b3BWljqOuoW/h4oBhxJ/HUbX5nX6JSruTkvXDCFMwDPvsaTTbvMLKZWSy0R5g==", + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", "dev": true, "requires": { "has-flag": "^4.0.0" } }, - "supports-hyperlinks": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz", - "integrity": "sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==", - "dev": true, - "requires": { - "has-flag": "^4.0.0", - "supports-color": "^7.0.0" - } - }, "supports-preserve-symlinks-flag": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", "dev": true }, - "symbol-tree": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/symbol-tree/-/symbol-tree-3.2.4.tgz", - "integrity": "sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==", - "dev": true - }, - "tar": { - "version": "6.1.11", - "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.11.tgz", - "integrity": "sha512-an/KZQzQUkZCkuoAA64hM92X0Urb6VpRhAFllDzz44U2mcD5scmT3zBc4VgVpkugF580+DQn8eAFSyoQt0tznA==", - "dev": true, - "requires": { - "chownr": "^2.0.0", - "fs-minipass": "^2.0.0", - "minipass": "^3.0.0", - "minizlib": "^2.1.1", - "mkdirp": "^1.0.3", - "yallist": "^4.0.0" - } - }, - "terminal-link": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/terminal-link/-/terminal-link-2.1.1.tgz", - "integrity": "sha512-un0FmiRUQNr5PJqy9kP7c40F5BOfpGlYTrxonDChEZB7pzZxRNp/bt+ymiy9/npwXya9KH99nJ/GXFIiUkYGFQ==", - "dev": true, - "requires": { - "ansi-escapes": "^4.2.1", - "supports-hyperlinks": "^2.0.0" - } - }, "test-exclude": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz", @@ -9687,24 +7005,12 @@ "minimatch": "^3.0.4" } }, - "throat": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/throat/-/throat-6.0.1.tgz", - "integrity": "sha512-8hmiGIJMDlwjg7dlJ4yKGLK8EsYqKgPWbG3b4wjJddKNwc7N7Dpn08Df4szr/sZdMVeOstrdYSsqzX6BYbcB+w==", - "dev": true - }, "tmpl": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz", "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==", "dev": true }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, "to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", @@ -9714,60 +7020,70 @@ "is-number": "^7.0.0" } }, - "tough-cookie": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-4.0.0.tgz", - "integrity": "sha512-tHdtEpQCMrc1YLrMaqXXcj6AxhYi/xgit6mZu1+EDWUn+qhUf8wMQoFIy9NXuq23zAwtcB0t/MjACGR18pcRbg==", - "dev": true, - "requires": { - "psl": "^1.1.33", - "punycode": "^2.1.1", - "universalify": "^0.1.2" - } - }, - "tr46": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-2.1.0.tgz", - "integrity": "sha512-15Ih7phfcdP5YxqiB+iDtLoaTz4Nd35+IiAv0kQ5FNKHzXgdWqPoTIqEDDJmXceQt4JZk6lVPT8lnDlPpGDppw==", - "dev": true, - "requires": { - "punycode": "^2.1.1" - } + "ts-error": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/ts-error/-/ts-error-1.0.6.tgz", + "integrity": "sha512-tLJxacIQUM82IR7JO1UUkKlYuUTmoY9HBJAmNWFzheSlDS5SPMcNIepejHJa4BpPQLAcbRhRf3GDJzyj6rbKvA==" }, "ts-jest": { - "version": "27.1.3", - "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-27.1.3.tgz", - "integrity": "sha512-6Nlura7s6uM9BVUAoqLH7JHyMXjz8gluryjpPXxr3IxZdAXnU6FhjvVLHFtfd1vsE1p8zD1OJfskkc0jhTSnkA==", + "version": "29.4.6", + "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.6.tgz", + "integrity": "sha512-fSpWtOO/1AjSNQguk43hb/JCo16oJDnMJf3CdEGNkqsEX3t0KX96xvyX1D7PfLCpVoKu4MfVrqUkFyblYoY4lA==", "dev": true, "requires": { - "bs-logger": "0.x", - "fast-json-stable-stringify": "2.x", - "jest-util": "^27.0.0", - "json5": "2.x", - "lodash.memoize": "4.x", - "make-error": "1.x", - "semver": "7.x", - "yargs-parser": "20.x" + "bs-logger": "^0.2.6", + "fast-json-stable-stringify": "^2.1.0", + "handlebars": "^4.7.8", + "json5": "^2.2.3", + "lodash.memoize": "^4.1.2", + "make-error": "^1.3.6", + "semver": "^7.7.3", + "type-fest": "^4.41.0", + "yargs-parser": "^21.1.1" }, "dependencies": { "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.7.4", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz", + "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==", + "dev": true + }, + "type-fest": { + "version": "4.41.0", + "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz", + "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==", + "dev": true } } }, - "ts-protoc-gen": { - "version": "0.12.0", - "resolved": "https://registry.npmjs.org/ts-protoc-gen/-/ts-protoc-gen-0.12.0.tgz", - "integrity": "sha512-V7jnICJxKqalBrnJSMTW5tB9sGi48gOC325bfcM7TDNUItVOlaMM//rQmuo49ybipk/SyJTnWXgtJnhHCevNJw==", + "ts-poet": { + "version": "6.12.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.12.0.tgz", + "integrity": "sha512-xo+iRNMWqyvXpFTaOAvLPA5QAWO6TZrSUs5s4Odaya3epqofBu/fMLHEWl8jPmjhA0s9sgj9sNvF1BmaQlmQkA==", "dev": true, "requires": { - "google-protobuf": "^3.6.1" + "dprint-node": "^1.0.8" + } + }, + "ts-proto": { + "version": "2.11.2", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-2.11.2.tgz", + "integrity": "sha512-+bPq2zDwNtJHtuyu2fGYgvTDxS7cBcY4u4moO1LyFA+my144Mfj9/sbNyGXKMtBK7DNXVGf76puwGa6hPzJw/g==", + "dev": true, + "requires": { + "@bufbuild/protobuf": "^2.10.2", + "case-anything": "^2.1.13", + "ts-poet": "^6.12.0", + "ts-proto-descriptors": "2.1.0" + } + }, + "ts-proto-descriptors": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-2.1.0.tgz", + "integrity": "sha512-S5EZYEQ6L9KLFfjSRpZWDIXDV/W7tAj8uW7pLsihIxyr62EAVSiKuVPwE8iWnr849Bqa53enex1jhDUcpgquzA==", + "dev": true, + "requires": { + "@bufbuild/protobuf": "^2.0.0" } }, "tslib": { @@ -9775,15 +7091,6 @@ "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.4.0.tgz", "integrity": "sha512-d6xOpEDfsi2CZVlPQzGeux8XMwLT9hssAsaPYExaQMuYskwb+x1x7J371tWlbBdWHroy99KnVB6qIkUbs5X3UQ==" }, - "type-check": { - "version": "0.3.2", - "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.3.2.tgz", - "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", - "dev": true, - "requires": { - "prelude-ls": "~1.1.2" - } - }, "type-detect": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz", @@ -9796,92 +7103,82 @@ "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==", "dev": true }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, "typedoc": { - "version": "0.22.11", - "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.22.11.tgz", - "integrity": "sha512-pVr3hh6dkS3lPPaZz1fNpvcrqLdtEvXmXayN55czlamSgvEjh+57GUqfhAI1Xsuu/hNHUT1KNSx8LH2wBP/7SA==", + "version": "0.27.9", + "resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.27.9.tgz", + "integrity": "sha512-/z585740YHURLl9DN2jCWe6OW7zKYm6VoQ93H0sxZ1cwHQEQrUn5BJrEnkWhfzUdyO+BLGjnKUZ9iz9hKloFDw==", "dev": true, "requires": { - "glob": "^7.2.0", + "@gerrit0/mini-shiki": "^1.24.0", "lunr": "^2.3.9", - "marked": "^4.0.10", - "minimatch": "^3.0.4", - "shiki": "^0.10.0" - } - }, - "typescript": { - "version": "4.8.2", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.2.tgz", - "integrity": "sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==" - }, - "universalify": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", - "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", - "dev": true - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "v8-to-istanbul": { - "version": "8.1.1", - "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-8.1.1.tgz", - "integrity": "sha512-FGtKtv3xIpR6BYhvgH8MI/y78oT7d8Au3ww4QIxymrCtZEh5b8gCw2siywE+puhEmuWKDtmfrvF5UlB298ut3w==", - "dev": true, - "requires": { - "@types/istanbul-lib-coverage": "^2.0.1", - "convert-source-map": "^1.6.0", - "source-map": "^0.7.3" + "markdown-it": "^14.1.0", + "minimatch": "^9.0.5", + "yaml": "^2.6.1" }, "dependencies": { - "source-map": { - "version": "0.7.3", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.7.3.tgz", - "integrity": "sha512-CkCj6giN3S+n9qrYiBTX5gystlENnRW5jZeNLHpe6aue+SrHcG5VYwujhW9s4dY31mEGsxBDrHR6oI69fTXsaQ==", - "dev": true + "brace-expansion": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz", + "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==", + "dev": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "minimatch": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz", + "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==", + "dev": true, + "requires": { + "brace-expansion": "^2.0.1" + } } } }, - "vscode-oniguruma": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/vscode-oniguruma/-/vscode-oniguruma-1.6.1.tgz", - "integrity": "sha512-vc4WhSIaVpgJ0jJIejjYxPvURJavX6QG41vu0mGhqywMkQqulezEqEQ3cO3gc8GvcOpX6ycmKGqRoROEMBNXTQ==", + "typescript": { + "version": "5.8.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz", + "integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==", "dev": true }, - "vscode-textmate": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/vscode-textmate/-/vscode-textmate-5.2.0.tgz", - "integrity": "sha512-Uw5ooOQxRASHgu6C7GVvUxisKXfSgW4oFlO+aa+PAkgmH89O3CXxEEzNRNtHSqtXFTl0nAC1uYj0GMSH27uwtQ==", + "uc.micro": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz", + "integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==", "dev": true }, - "w3c-hr-time": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/w3c-hr-time/-/w3c-hr-time-1.0.2.tgz", - "integrity": "sha512-z8P5DvDNjKDoFIHK7q8r8lackT6l+jo/Ye3HOle7l9nICP9lf1Ci25fy9vHd0JOWewkIFzXIEig3TdKT7JQ5fQ==", + "uglify-js": { + "version": "3.19.3", + "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz", + "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==", + "dev": true, + "optional": true + }, + "undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==" + }, + "update-browserslist-db": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz", + "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==", "dev": true, "requires": { - "browser-process-hrtime": "^1.0.0" + "escalade": "^3.2.0", + "picocolors": "^1.1.1" } }, - "w3c-xmlserializer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz", - "integrity": "sha512-4tzD0mF8iSiMiNs30BiLO3EpfGLZUT2MSX/G+o7ZywDzliWQ3OPtTZ0PTC3B3ca1UAf4cJMHB+2Bf56EriJuRA==", + "v8-to-istanbul": { + "version": "9.3.0", + "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz", + "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==", "dev": true, "requires": { - "xml-name-validator": "^3.0.0" + "@jridgewell/trace-mapping": "^0.3.12", + "@types/istanbul-lib-coverage": "^2.0.1", + "convert-source-map": "^2.0.0" } }, "walker": { @@ -9893,38 +7190,6 @@ "makeerror": "1.0.12" } }, - "webidl-conversions": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz", - "integrity": "sha512-qBIvFLGiBpLjfwmYAaHPXsn+ho5xZnGvyGvsarywGNc8VyQJUMHJ8OBKGGrPER0okBeMDaan4mNBlgBROxuI8w==", - "dev": true - }, - "whatwg-encoding": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", - "integrity": "sha512-b5lim54JOPN9HtzvK9HFXvBma/rnfFeqsic0hSpjtDbVxR3dJKLc+KB4V6GgiGOvl7CY/KNh8rxSo9DKQrnUEw==", - "dev": true, - "requires": { - "iconv-lite": "0.4.24" - } - }, - "whatwg-mimetype": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz", - "integrity": "sha512-M4yMwr6mAnQz76TbJm914+gPpB/nCwvZbJU28cUD6dR004SAxDLOOSUaB1JDRqLtaOV/vi0IC5lEAGFgrjGv/g==", - "dev": true - }, - "whatwg-url": { - "version": "8.7.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-8.7.0.tgz", - "integrity": "sha512-gAojqb/m9Q8a5IV96E3fHJM70AzCkgt4uXYX2O7EmuyOnLrViCQlsEBmF9UQIu3/aeAIp2U17rtbpZWNntQqdg==", - "dev": true, - "requires": { - "lodash": "^4.7.0", - "tr46": "^2.1.0", - "webidl-conversions": "^6.1.0" - } - }, "which": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", @@ -9934,19 +7199,10 @@ "isexe": "^2.0.0" } }, - "wide-align": { - "version": "1.1.5", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", - "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", - "dev": true, - "requires": { - "string-width": "^1.0.2 || 2 || 3 || 4" - } - }, - "word-wrap": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz", - "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==", + "wordwrap": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz", + "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==", "dev": true }, "wrap-ansi": { @@ -9966,65 +7222,50 @@ "dev": true }, "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-4.0.2.tgz", + "integrity": "sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg==", "dev": true, "requires": { "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" + "signal-exit": "^3.0.7" } }, - "ws": { - "version": "8.8.1", - "resolved": "https://registry.npmjs.org/ws/-/ws-8.8.1.tgz", - "integrity": "sha512-bGy2JzvzkPowEJV++hF07hAD6niYSr0JzBNo/J29WsB57A2r7Wlc1UFcTR9IzrPvuNVO4B8LGqF8qcpsVOhJCA==", - "dev": true, - "requires": {} - }, - "xml-name-validator": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/xml-name-validator/-/xml-name-validator-3.0.0.tgz", - "integrity": "sha512-A5CUptxDsvxKJEU3yO6DuWBSJz/qizqzJKOMIfUJHETbBw/sFaDxgd6fxm1ewUaM0jZ444Fc5vC5ROYurg/4Pw==", - "dev": true - }, - "xmlchars": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/xmlchars/-/xmlchars-2.2.0.tgz", - "integrity": "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw==", - "dev": true - }, "y18n": { "version": "5.0.8", "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==" }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", + "yaml": { + "version": "2.8.2", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.2.tgz", + "integrity": "sha512-mplynKqc1C2hTVYxd0PU2xQAc22TI1vShAYGksCCfxbn/dFwnHTNi1bvYsBTkhdUNtGIf5xNOg938rrSSYvS9A==", "dev": true }, "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", "requires": { - "cliui": "^7.0.2", + "cliui": "^8.0.1", "escalade": "^3.1.1", "get-caller-file": "^2.0.5", "require-directory": "^2.1.1", - "string-width": "^4.2.0", + "string-width": "^4.2.3", "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "yargs-parser": "^21.1.1" } }, "yargs-parser": { - "version": "20.2.9", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz", - "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==" + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==" + }, + "yocto-queue": { + "version": "0.1.0", + "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz", + "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==", + "dev": true } } } diff --git a/package.json b/package.json index d28e101..ee5f346 100644 --- a/package.json +++ b/package.json @@ -4,11 +4,17 @@ "description": "TypeScript/JavaScript Sliver client library", "main": "lib/index.js", "types": "lib/index.d.ts", + "engines": { + "node": ">=24" + }, "scripts": { - "build": "rm -rf ./lib && mkdir -p ./lib && cp -r ./src/pb ./lib/pb && tsc", + "build": "rm -rf ./lib && tsc -p tsconfig.json", + "build:examples": "npm run build && rm -rf ./examples/dist && tsc -p tsconfig.examples.json", "pb": "./protobuf.sh", "docs": "typedoc --out ./docs/ ./src", - "test": "jest --config jestconfig.json" + "test": "jest --config jestconfig.json", + "test:e2e": "SLIVER_E2E=1 jest --config jestconfig.json", + "example:e2e": "npm run build:examples && node examples/dist/e2e/status.js" }, "prepublishOnly": "npm test && npm run build", "files": [ @@ -22,24 +28,19 @@ "url": "https://github.com/moloch--/sliver-script" }, "devDependencies": { - "@types/jest": "^27.4.0", - "@types/long": "^5.0.0", - "grpc-tools": "^1.11.2", - "jest": "^27.4.7", - "marked": "^4.0.10", - "ts-jest": "^27.1.3", - "ts-protoc-gen": "^0.12.0", - "typedoc": "^0.22.11", - "typescript": "^4.5.5", - "ws": ">=7.4.6" + "@types/jest": "^29.5.14", + "@types/node": "^22.13.5", + "jest": "^29.7.0", + "marked": "^15.0.7", + "ts-jest": "^29.2.6", + "ts-proto": "^2.7.7", + "typedoc": "^0.27.7", + "typescript": "^5.7.3" }, "dependencies": { - "@grpc/grpc-js": "^1.5.5", - "@improbable-eng/grpc-web": "^0.15.0", - "@types/google-protobuf": "^3.15.5", - "google-protobuf": "^3.19.4", - "protobufjs": "^6.11.2", - "protoc-gen-ts": "^0.8.2", - "rxjs": "^7.5.6" + "@bufbuild/protobuf": "^2.11.0", + "@grpc/grpc-js": "^1.13.4", + "nice-grpc": "^2.1.12", + "rxjs": "^7.8.2" } -} \ No newline at end of file +} diff --git a/protobuf.sh b/protobuf.sh index f609393..043b60b 100755 --- a/protobuf.sh +++ b/protobuf.sh @@ -1,104 +1,48 @@ -#!/bin/bash +#!/usr/bin/env bash -# Sliver Implant Framework -# Copyright (C) 2019 Bishop Fox -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +set -euo pipefail +ROOT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" -# Path to this plugin -OUT_DIR="./src/pb" -TS_OUT_DIR="./src/pb" +DEFAULT_IN_DIR="${ROOT_DIR}/sliver/protobuf" +# If a full Sliver checkout exists next to this repo, prefer it (it is easier to keep up to date) +# while still allowing explicit overrides via SLIVER_PROTO_ROOT. +if [[ -d "${ROOT_DIR}/../sliver/protobuf" ]]; then + DEFAULT_IN_DIR="${ROOT_DIR}/../sliver/protobuf" +fi +IN_DIR="${SLIVER_PROTO_ROOT:-${DEFAULT_IN_DIR}}" +OUT_DIR="${ROOT_DIR}/src/pb" -IN_DIR="./sliver/protobuf" +TS_PROTO_PLUGIN="${ROOT_DIR}/node_modules/.bin/protoc-gen-ts_proto" -PROTOC="node_modules/.bin/grpc_tools_node_protoc" -PROTOC_GEN_TS="node_modules/.bin/protoc-gen-ts" +if [[ ! -d "${IN_DIR}" ]]; then + echo "Missing protobuf input directory: ${IN_DIR}" + echo "Set SLIVER_PROTO_ROOT to override the default." + exit 1 +fi -# By default the _pb.js files are broken, we need to insert this line of code to create the namespaces -# before any of hte _pb.js code can be used. Why are they broken by default? Fuck you that's why. -INIT_NAMESPACE="if (proto === undefined) { var proto = {commonpb: {}, clientpb: {}, sliverpb: {}}; }" +if [[ ! -x "${TS_PROTO_PLUGIN}" ]]; then + echo "Missing ${TS_PROTO_PLUGIN}" + echo "Run: npm install" + exit 1 +fi +rm -rf "${OUT_DIR}" +mkdir -p "${OUT_DIR}" -mkdir -p "$OUT_DIR" -mkdir -p "$TS_OUT_DIR" +# We compile against the Sliver protobufs checked into ./sliver (submodule). +# Do not write anything into ./sliver; it is treated as read-only input. +PROTO_FILES=( + "commonpb/common.proto" + "clientpb/client.proto" + "sliverpb/sliver.proto" + "rpcpb/services.proto" + "dnspb/dns.proto" +) - -$PROTOC \ - -I ./sliver/protobuf/ \ - --plugin="protoc-gen-ts=${PROTOC_GEN_TS}" \ - --js_out="import_style=commonjs,binary:${OUT_DIR}" \ - --ts_out="${OUT_DIR}" \ - sliver/protobuf/commonpb/common.proto - -$PROTOC \ - -I ./sliver/protobuf/ \ - --plugin="protoc-gen-ts=${PROTOC_GEN_TS}" \ - --js_out="import_style=commonjs,binary:${OUT_DIR}" \ - --ts_out="${OUT_DIR}" \ - sliver/protobuf/sliverpb/sliver.proto - -$PROTOC \ - -I ./sliver/protobuf/ \ - --plugin="protoc-gen-ts=${PROTOC_GEN_TS}" \ - --js_out="import_style=commonjs,binary:${OUT_DIR}" \ - --ts_out="${OUT_DIR}" \ - sliver/protobuf/clientpb/client.proto - - -$PROTOC \ - -I=$IN_DIR \ - --plugin=protoc-gen-ts=$PROTOC_GEN_TS \ - --js_out=import_style=commonjs:$OUT_DIR \ - --grpc_out=:$OUT_DIR \ - --ts_out=service=grpc-node:$TS_OUT_DIR \ - $IN_DIR/rpcpb/services.proto - -sed -i "" -e \ - "s/require('grpc')/require('@grpc\/grpc-js')/g" \ - "$OUT_DIR/rpcpb/"* - -sed -i "" -e \ - "s/from \"grpc\"/from \"@grpc\/grpc-js\"/g" \ - "$TS_OUT_DIR/rpcpb/"* - - -# *** clientpb *** -# - Init namespace -# - Remove eval()'s -sed -i "" -e \ - "s/Function('return this')()/(function(){return this;})()/g" \ - "$TS_OUT_DIR/clientpb/"* -sed -i "" -e \ - "s/\/\/\ \@ts-nocheck/\/\/\ \@ts-nocheck\n$INIT_NAMESPACE\n/g" \ - "$TS_OUT_DIR/clientpb/"* - - -# *** commonpb *** -# - Init namespace -# - Remove eval()'s -sed -i "" -e \ - "s/Function('return this')()/(function(){return this;})()/g" \ - "$TS_OUT_DIR/commonpb/"* -sed -i "" -e \ - "s/\/\/\ \@ts-nocheck/\/\/\ \@ts-nocheck\n$INIT_NAMESPACE\n/g" \ - "$TS_OUT_DIR/commonpb/"* - - -# *** sliverpb *** -# - Init namespace -# - Remove eval()'s -sed -i "" -e \ - "s/Function('return this')()/(function(){return this;})()/g" \ - "$TS_OUT_DIR/sliverpb/"* -sed -i "" -e \ - "s/\/\/\ \@ts-nocheck/\/\/\ \@ts-nocheck\n$INIT_NAMESPACE\n/g" \ - "$TS_OUT_DIR/sliverpb/"* \ No newline at end of file +protoc \ + -I "${IN_DIR}" \ + --plugin="protoc-gen-ts_proto=${TS_PROTO_PLUGIN}" \ + --ts_proto_out="${OUT_DIR}" \ + --ts_proto_opt="env=node,esModuleInterop=true,forceLong=string,useExactTypes=false,useOptionals=messages,outputServices=nice-grpc,outputServices=generic-definitions" \ + "${PROTO_FILES[@]}" diff --git a/src/client.ts b/src/client.ts index 521e1bc..735b687 100644 --- a/src/client.ts +++ b/src/client.ts @@ -1,1053 +1,780 @@ -import * as zlib from 'zlib'; +import { gunzip as gunzipCb, gzip as gzipCb } from "node:zlib"; +import { promisify } from "node:util"; -import * as grpc from '@grpc/grpc-js'; -import { Subject, Observable, Observer, Subscription } from 'rxjs'; -import { filter } from 'rxjs/operators'; +import { createChannel, createClient, type Channel } from "nice-grpc"; +import { Subject, filter, map, type Observable } from "rxjs"; -import { commonpb } from './pb/commonpb/common'; -import { sliverpb } from './pb/sliverpb/sliver'; -import { clientpb } from './pb/clientpb/client'; -import { rpcpb } from './pb/rpcpb/services'; -import { Events } from './events'; -import { SliverClientConfig } from './config'; +import type { SliverClientConfig } from "./config"; +import { createSliverRpcCredentials } from "./internal/credentials"; +import { withTimeoutSignal } from "./internal/timeout"; +import { TunnelManager } from "./internal/tunnelManager"; +import { BeaconTask } from "./pb/clientpb/client"; +import type { + Event, + Operators, + Sessions, + Version, + Beacons, + Jobs, + Beacon, + ImplantConfig, + ImplantProfile, + Loot, + WebContent, +} from "./pb/clientpb/client"; +import type { Request as CommonRequest } from "./pb/commonpb/common"; +import { SliverRPCDefinition } from "./pb/rpcpb/services"; +import type { SliverRPCClient } from "./pb/rpcpb/services"; +import { Ls } from "./pb/sliverpb/sliver"; +const gzip = promisify(gzipCb); +const gunzip = promisify(gunzipCb); -const TIMEOUT = 30; // Default timeout in seconds -const Kb = 1024; -const Mb = 1024 * Kb; -const Gb = 1024 * Mb; +const DEFAULT_TIMEOUT_SECONDS = 30; +const KiB = 1024; +const MiB = 1024 * KiB; +const GiB = 1024 * MiB; -export async function gzip(data: Buffer): Promise { - return new Promise((resolve, reject) => { - zlib.gzip(data, (err, result) => { - err ? reject(err) : resolve(result); - }); - }); -} - -export async function gunzip(data: Buffer): Promise { - return new Promise((resolve, reject) => { - zlib.gunzip(data, (err, result) => { - err ? reject(err) : resolve(result); - }); - }); -} - -// Exported/simplified tunnel interfaces export interface Tunnel { - stdout: Observable - stdin: Observer + readonly id: string; + readonly stdout$: Observable; + write(data: Buffer | string): void; + close(): Promise; } -// BaseCommands - Base command implementations shared between sessions and beacon class BaseCommands { + constructor(protected readonly rpc: SliverRPCClient) {} - protected _rpc: rpcpb.SliverRPCClient; - - constructor(rpc: rpcpb.SliverRPCClient) { - this._rpc = rpc; + protected request(timeoutSeconds: number): CommonRequest { + return { Async: false, Timeout: `${timeoutSeconds}`, BeaconID: "", SessionID: "" }; } - // request - should be overloaded by sub classes - protected request(timeout: number): commonpb.Request { return new commonpb.Request(); } - - protected deadline(timeout = TIMEOUT) { - return { - 'deadline': Date.now() + ((timeout + 1) * 1000) - } + protected async unary(timeoutSeconds: number, fn: (signal: AbortSignal) => Promise): Promise { + return withTimeoutSignal(timeoutSeconds, fn); } - protected toUint8Array(buf: Buffer): Uint8Array { - const arrayBuf = new ArrayBuffer(buf.length); - const uint8Array = new Uint8Array(arrayBuf); - for (let index = 0; index < buf.length; ++index) { - uint8Array[index] = buf[index]; - } - return uint8Array; + ping(nonce: number, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.ping({ Nonce: nonce, Request: this.request(timeoutSeconds) }, { signal }), + ); } - ping(nonce: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const ping = new sliverpb.Ping(); - ping.Request = this.request(timeout); - ping.Nonce = nonce; - this._rpc.Ping(ping, this.deadline(timeout), (err, pong) => { - err ? reject(err) : resolve(pong); - }); + ps(fullInfo = false, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.ps({ FullInfo: fullInfo, Request: this.request(timeoutSeconds) }, { signal }), + ); + } + + ls(path = ".", timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.ls({ Path: path, Request: this.request(timeoutSeconds) }, { signal }), + ); + } + + download(path: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return this.unary(timeoutSeconds, async (signal) => { + const download = await this.rpc.download({ Path: path, Request: this.request(timeoutSeconds) }, { signal }); + if (download.Encoder === "gzip") { + return await gunzip(download.Data); + } + if (download.Encoder !== "") { + throw new Error(`Unsupported encoder: ${download.Encoder}`); + } + return download.Data; }); } - ps(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.PsReq(); - req.Request = this.request(timeout); - this._rpc.Ps(req, this.deadline(timeout), (err, ps) => { - err ? reject(err) : resolve(ps?.Processes); - }); + upload(path: string, data: Buffer, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, async (signal) => { + const payload = await gzip(data); + return this.rpc.upload( + { Path: path, Encoder: "gzip", Data: payload, Request: this.request(timeoutSeconds) }, + { signal }, + ); }); } - terminate(pid: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.TerminateReq(); - req.Pid = pid; - req.Request = this.request(timeout); - this._rpc.Terminate(req, this.deadline(timeout), (err, terminate) => { - err ? reject(err) : resolve(terminate); - }); - }); + terminate(pid: number, force = false, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.terminate({ Pid: pid, Force: force, Request: this.request(timeoutSeconds) }, { signal }), + ); } - ifconfig(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.IfconfigReq(); - req.Request = this.request(timeout); - this._rpc.Ifconfig(req, this.deadline(timeout), (err, ifconfig) => { - err ? reject(err) : resolve(ifconfig); - }); - }); + ifconfig(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.ifconfig({ Request: this.request(timeoutSeconds) }, { signal }), + ); } - netstat(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.NetstatReq(); - req.Request = this.request(timeout); - this._rpc.Netstat(req, this.deadline(timeout), (err, netstat) => { - err ? reject(err) : resolve(netstat); - }); - }); + netstat(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.netstat({ Request: this.request(timeoutSeconds) }, { signal }), + ); } - ls(path = '.', timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.LsReq(); - req.Path = path; - req.Request = this.request(timeout); - this._rpc.Ls(req, this.deadline(timeout), (err, ls) => { - err ? reject(err) : resolve(ls); - }); - }); + cd(path: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => this.rpc.cd({ Path: path, Request: this.request(timeoutSeconds) }, { signal })); } - cd(path: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.CdReq(); - req.Path = path; - req.Request = this.request(timeout); - this._rpc.Cd(req, this.deadline(timeout), (err, pwd) => { - err ? reject(err) : resolve(pwd); - }); - }); + pwd(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => this.rpc.pwd({ Request: this.request(timeoutSeconds) }, { signal })); } - pwd(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.PwdReq(); - req.Request = this.request(timeout); - this._rpc.Pwd(req, this.deadline(timeout), (err, pwd) => { - err ? reject(err) : resolve(pwd); - }); - }); + rm(path: string, recursive = false, force = false, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.rm({ Path: path, Recursive: recursive, Force: force, Request: this.request(timeoutSeconds) }, { signal }), + ); } - rm(path: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.RmReq(); - req.Path = path; - req.Request = this.request(timeout); - this._rpc.Rm(req, this.deadline(timeout), (err, rm) => { - err ? reject(err) : resolve(rm); - }); - }); + mkdir(path: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.mkdir({ Path: path, Request: this.request(timeoutSeconds) }, { signal }), + ); } - mkdir(path: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.MkdirReq(); - req.Path = path; - req.Request = this.request(timeout); - this._rpc.Mkdir(req, this.deadline(timeout), (err, mkdir) => { - err ? reject(err) : resolve(mkdir); - }); - }); + processDump(pid: number, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.processDump({ Pid: pid, Request: this.request(timeoutSeconds) }, { signal }), + ); } - download(path: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.DownloadReq(); - req.Path = path; - req.Request = this.request(timeout); - this._rpc.Download(req, this.deadline(timeout), async (err, download) => { - if (err || download === undefined) { - return reject(err ? err : 'Null response'); - } - let data = Buffer.from(download.Data); - if (download.Encoder === 'gzip') { - data = await gunzip(data); - } else if (download.Encoder !== '') { - return reject(`Unsupported encoder ${download.Encoder}`); - } - resolve(data); - }); - }); + runAs(userName: string, processName: string, args: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.runAs( + { Username: userName, ProcessName: processName, Args: args, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - upload(path: string, data: Buffer, timeout = TIMEOUT): Promise { - return new Promise(async (resolve, reject) => { - const req = new sliverpb.UploadReq(); - req.Path = path; - req.Encoder = 'gzip'; - const payload = await gzip(data) - req.Data = this.toUint8Array(payload); - req.Request = this.request(timeout); - this._rpc.Upload(req, this.deadline(timeout), (err, upload) => { - err ? reject(err) : resolve(upload); - }); - }); + impersonate(userName: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.impersonate({ Username: userName, Request: this.request(timeoutSeconds) }, { signal }), + ); } - processDump(pid: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.ProcessDumpReq(); - req.Pid = pid; - req.Request = this.request(timeout); - this._rpc.ProcessDump(req, this.deadline(timeout), (err, procdump) => { - err ? reject(err) : resolve(procdump); - }); - }); + revToSelf(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => this.rpc.revToSelf({ Request: this.request(timeoutSeconds) }, { signal })); } - runAs(userName: string, processName: string, args: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.RunAsReq(); - req.Username = userName; - req.ProcessName = processName; - req.Args = args; - req.Request = this.request(timeout); - this._rpc.RunAs(req, this.deadline(timeout), (err, runAs) => { - err ? reject(err) : resolve(runAs); - }); - }); + getSystem(hostingProcess: string, config: ImplantConfig, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.getSystem( + { HostingProcess: hostingProcess, Config: config, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - impersonate(userName: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.ImpersonateReq(); - req.Username = userName; - req.Request = this.request(timeout); - this._rpc.Impersonate(req, this.deadline(timeout), (err, impersonate) => { - err ? reject(err) : resolve(impersonate); - }); - }); + /** + * Execute arbitrary shellcode (aka "task" in Sliver terminology). + * + * Note: For beacon interactions this will queue an async task; use the + * returned Response.TaskID to fetch results. + */ + task( + pid: number, + shellcode: Buffer, + encoder = "", + rwxPages = false, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.task( + { + Pid: pid, + Data: shellcode, + Encoder: encoder, + RWXPages: rwxPages, + Request: this.request(timeoutSeconds), + }, + { signal }, + ), + ); } - revToSelf(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.RevToSelfReq(); - req.Request = this.request(timeout); - this._rpc.RevToSelf(req, this.deadline(timeout), (err, revToSelf) => { - err ? reject(err) : resolve(revToSelf); - }); - }); + msf( + payload: string, + lhost: string, + lport: number, + encoder = "", + iterations = 0, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.msf( + { Payload: payload, LHost: lhost, LPort: lport, Encoder: encoder, Iterations: iterations, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - getSystem(hostingProcess: string, config: clientpb.ImplantConfig, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.GetSystemReq(); - req.HostingProcess = hostingProcess; - req.Config = config; - req.Request = this.request(timeout); - this._rpc.GetSystem(req, this.deadline(timeout), (err, getSystem) => { - err ? reject(err) : resolve(getSystem); - }); - }); + msfRemote( + pid: number, + payload: string, + lhost: string, + lport: number, + encoder = "", + iterations = 0, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.msfRemote( + { PID: pid, Payload: payload, LHost: lhost, LPort: lport, Encoder: encoder, Iterations: iterations, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - // 'shellcode' aka "task" - executeShellcode(pid: number, shellcode: Buffer, encoder: string, rwx: boolean, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.TaskReq(); - req.Encoder = encoder; - req.RWXPages = rwx; - req.Pid = pid; - req.Data = shellcode; - req.Request = this.request(timeout); - this._rpc.Task(req, this.deadline(timeout), (err, task) => { - err ? reject(err) : resolve(task); - }); - }); + executeAssembly(assembly: Buffer, args: string[] = [], process = "", timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.executeAssembly( + { Assembly: assembly, Arguments: args, Process: process, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - msf(payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.MSFReq(); - req.Payload = payload; - req.LHost = lhost; - req.LPort = lport; - req.Encoder = encoder; - req.Iterations = iterations; - req.Request = this.request(timeout); - this._rpc.Msf(req, this.deadline(timeout), (err) => { - err ? reject(err) : resolve(); - }); - }); + migrate(pid: number, config: ImplantConfig, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.migrate({ Pid: pid, Config: config, Request: this.request(timeoutSeconds) }, { signal }), + ); } - msfRemote(pid: number, payload: string, lhost: string, lport: number, encoder: string, iterations: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.MSFRemoteReq(); - req.PID = pid; - req.Payload = payload; - req.LHost = lhost; - req.LPort = lport; - req.Encoder = encoder; - req.Iterations = iterations; - req.Request = this.request(timeout); - this._rpc.Msf(req, (err) => { - err ? reject(err) : resolve(); - }); - }); + execute(exe: string, args: string[] = [], output = true, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.execute({ Path: exe, Args: args, Output: output, Request: this.request(timeoutSeconds) }, { signal }), + ); } - executeAssembly(assembly: Buffer, args: string, process: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.ExecuteAssemblyReq(); - req.Assembly = assembly; - req.Arguments = args; - req.Process = process; - req.Request = this.request(timeout); - this._rpc.ExecuteAssembly(req, this.deadline(timeout), (err, executeAssembly) => { - err ? reject(err) : resolve(executeAssembly); - }); - }); + sideload( + data: Buffer, + processName: string, + args: string[] = [], + entryPoint: string, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.sideload( + { Data: data, ProcessName: processName, Args: args, EntryPoint: entryPoint, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - migrate(pid: number, config: clientpb.ImplantConfig, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.MigrateReq(); - req.Pid = pid; - req.Config = config; - req.Request = this.request(timeout); - this._rpc.Migrate(req, this.deadline(timeout), (err, migration) => { - err ? reject(err) : resolve(migration); - }); - }); + spawnDll( + data: Buffer, + entrypoint: string, + processName: string, + args: string[] = [], + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.spawnDll( + { Data: data, EntryPoint: entrypoint, ProcessName: processName, Args: args, Request: this.request(timeoutSeconds) }, + { signal }, + ), + ); } - execute(exe: string, args: string[], output: boolean, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.ExecuteReq(); - req.Path = exe; - req.Args = args; - req.Output = output; - req.Request = this.request(timeout); - this._rpc.Execute(req, this.deadline(timeout), (err, exec) => { - err ? reject(err) : resolve(exec); - }); - }); + screenshot(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return this.unary(timeoutSeconds, (signal) => + this.rpc.screenshot({ Request: this.request(timeoutSeconds) }, { signal }), + ); } - - sideload(data: Buffer, processName: string, args: string, entryPoint: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.SideloadReq(); - req.Data = data; - req.ProcessName = processName; - req.Args = args; - req.EntryPoint = entryPoint; - req.Request = this.request(timeout); - this._rpc.Sideload(req, this.deadline(timeout), (err, exec) => { - err ? reject(err) : resolve(exec); - }); - }); - } - - spawnDLL(data: Buffer, entrypoint: string, processName: string, args: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.InvokeSpawnDllReq(); - req.Data = data; - req.ProcessName = processName; - req.Args = args; - req.EntryPoint = entrypoint; - req.Request = this.request(timeout); - this._rpc.SpawnDll(req, this.deadline(timeout), (err, dll) => { - err ? reject(err) : resolve(dll); - }); - }); - } - - screenshot(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new sliverpb.ScreenshotReq(); - req.Request = this.request(timeout); - this._rpc.Screenshot(req, this.deadline(timeout), (err, screenshot) => { - err ? reject(err) : resolve(screenshot); - }); - }); - } - } export class InteractiveBeacon extends BaseCommands { - - private _beaconID: string; - private _taskresult$: Observable; - private _pendingTasks: Map = new Map(); - - constructor(rpc: rpcpb.SliverRPCClient, taskresult$: Observable, beaconID: string) { + constructor( + rpc: SliverRPCClient, + private readonly taskResult$: Observable, + private readonly beaconId: string, + ) { super(rpc); - this._beaconID = beaconID; - this._taskresult$ = taskresult$; } - protected request(timeout: number): commonpb.Request { - const req = new commonpb.Request(); - req.BeaconID = this._beaconID; - req.Timeout = timeout; - req.Async = true; - return req; + protected request(timeoutSeconds: number): CommonRequest { + return { + Async: true, + Timeout: `${timeoutSeconds}`, + BeaconID: this.beaconId, + SessionID: "", + }; } - async ls(path?: string, timeout?: number): Promise { - const lsTask = await super.ls(); - if (!lsTask || lsTask.Response.Err !== undefined) { - console.error(`lsTask.Response.Err: ${lsTask?.Response?.Err}`); - return Promise.reject(lsTask?.Response?.Err); + async lsTask(path = ".", timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const lsTask = await super.ls(path, timeoutSeconds); + if (lsTask.Response?.Err) { + throw new Error(lsTask.Response.Err); } - return new Promise(async (resolve, reject) => { - const taskSubscription = this._taskresult$.subscribe(async (event: clientpb.Event) => { - let beaconTask = clientpb.BeaconTask.deserializeBinary(event.Data); - if (beaconTask.ID === lsTask?.Response?.TaskID) { - this._pendingTasks.get(beaconTask.ID)?.unsubscribe(); - this._pendingTasks.delete(beaconTask.ID); - const taskReq = new clientpb.BeaconTask({ ID: beaconTask.ID }); - this._rpc.GetBeaconTaskContent(taskReq, async (err, taskContent) => { - if (err || !taskContent) { - reject(err); - } else { - const ls = sliverpb.Ls.deserializeBinary(taskContent.Response); - resolve(ls); - } - }); - } - }); - this._pendingTasks.set(lsTask.Response.TaskID, taskSubscription); - }); + const taskId = lsTask.Response?.TaskID; + if (!taskId) { + throw new Error("Missing beacon task id"); + } + return { + id: taskId, + wait: async (waitTimeoutSeconds = timeoutSeconds) => { + const beaconTask = await waitForBeaconTask(this.taskResult$, taskId, waitTimeoutSeconds); + const taskContent = await this.unary(waitTimeoutSeconds, (signal) => + this.rpc.getBeaconTaskContent({ ID: beaconTask.ID }, { signal }), + ); + return Ls.decode(taskContent.Response); + }, + }; + } + + async ls(path = ".", timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const task = await this.lsTask(path, timeoutSeconds); + return task.wait(timeoutSeconds); } } export class InteractiveSession extends BaseCommands { - - private _sessionID: string; - private _tunnelStream: grpc.ClientDuplexStream; - - constructor(rpc: rpcpb.SliverRPCClient, - tunnelStream: grpc.ClientDuplexStream, - sessionId: string) { + constructor( + rpc: SliverRPCClient, + private readonly tunnels: TunnelManager, + private readonly sessionId: string, + ) { super(rpc); - this._tunnelStream = tunnelStream; - this._sessionID = sessionId; } - protected request(timeout: number): commonpb.Request { - const req = new commonpb.Request(); - req.SessionID = this._sessionID; - req.Timeout = timeout; - return req; + protected request(timeoutSeconds: number): CommonRequest { + return { + Async: false, + Timeout: `${timeoutSeconds}`, + BeaconID: "", + SessionID: this.sessionId, + }; } - shell(path: string, pty: boolean, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { + async shell(path: string, pty = true, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + const tunnel = await this.unary(timeoutSeconds, (signal) => + this.rpc.createTunnel({ SessionID: this.sessionId }, { signal }), + ); + if (!tunnel?.TunnelID) { + throw new Error("Failed to create tunnel"); + } + const tunnelId = tunnel.TunnelID; - const tunnel = new sliverpb.Tunnel(); - tunnel.SessionID = this._sessionID; + // Subscribe first so we don't miss early data. + const stdout$ = this.tunnels.subscribe(tunnelId).pipe( + filter((msg) => msg.TunnelID === tunnelId), + filter((msg) => msg.Data.length > 0), + map((msg) => msg.Data), + ); - this._rpc.CreateTunnel(tunnel, (err, rpcTunnel) => { - if (err || rpcTunnel === undefined) { - return reject(err); - } - const tunnelId = rpcTunnel.TunnelID; - const tunnelData = new sliverpb.TunnelData(); - tunnelData.SessionID = this._sessionID; - tunnelData.TunnelID = tunnelId; + // Bind tunnel to the tunnel stream. + this.tunnels.send({ TunnelID: tunnelId, SessionID: this.sessionId }); - this._tunnelStream.write(tunnelData, () => { - const req = new sliverpb.ShellReq(); - req.TunnelID = tunnelId; - req.Path = path; - req.EnablePTY = pty; - req.Request = this.request(timeout); - this._rpc.Shell(req, (err, shell) => { - if (err || shell === undefined) { - return reject(err); - } - const stdout = new Observable(producer => { - this._tunnelStream.on('data', (tunnelData: sliverpb.TunnelData) => { - console.log(tunnelData); - if (tunnelData.TunnelID !== tunnelId) { - return; // Data is from another tunnel - } - const isClosed = tunnelData.Closed; - if (isClosed) { - const drain = Buffer.from(tunnelData.Data); - if (drain.length) { - producer.next(drain); - } - producer.complete(); - } else { - producer.next(Buffer.from(tunnelData.Data)); - } - }); - }); + // Ask the implant to open a shell on the bound tunnel. + await this.unary(timeoutSeconds, (signal) => + this.rpc.shell( + { + Path: path, + EnablePTY: pty, + TunnelID: tunnelId, + Request: this.request(timeoutSeconds), + }, + { signal }, + ), + ); - const stdin: Observer = { - next: (raw: Buffer) => { - const data = new sliverpb.TunnelData(); - data.TunnelID = tunnelId; - data.SessionID = this._sessionID; - data.Data = this.toUint8Array(raw); - this._tunnelStream.write(data); - }, - complete: () => { - this._rpc.closeTunnel(rpcTunnel, () => { }); - }, - error: () => { - this._rpc.closeTunnel(rpcTunnel, () => { }); - }, - }; - resolve({ stdin: stdin, stdout: stdout }); - }); - }); // Bind tunnel - }); - }); + return { + id: tunnelId, + stdout$, + write: (data: Buffer | string) => { + const buf = Buffer.isBuffer(data) ? data : Buffer.from(data); + this.tunnels.send({ TunnelID: tunnelId, SessionID: this.sessionId, Data: buf }); + }, + close: async () => { + await this.unary(DEFAULT_TIMEOUT_SECONDS, (signal) => + this.rpc.closeTunnel({ TunnelID: tunnelId, SessionID: this.sessionId }, { signal }), + ); + }, + }; } - } - export class SliverClient { + static readonly EVENT_BEACON_REGISTERED = "beacon-registered"; + static readonly EVENT_BEACON_TASKRESULT = "beacon-taskresult"; - readonly BEACON_REGISTERED = 'beacon-registered'; - readonly BEACON_TASKRESULT = 'beacon-taskresult'; + private readonly empty = {}; + private rpcClient: SliverRPCClient | null = null; + private channel: Channel | null = null; - private _config: SliverClientConfig; - private _rpc: rpcpb.SliverRPCClient | null = null; - private empty = new commonpb.Empty(); + private eventsAbort: AbortController | null = null; + private tunnels: TunnelManager | null = null; - private lootEventTypes: string[] = [Events.LootAddedEvent, Events.LootRemovedEvent]; - private _events: grpc.ClientReadableStream | null = null; - event$ = new Subject(); + private readonly eventSubject = new Subject(); + readonly event$ = this.eventSubject.asObservable(); - session$ = this.event$.pipe(filter(event => event.Session !== undefined)); - job$ = this.event$.pipe(filter(event => event.Job !== undefined)); - client$ = this.event$.pipe(filter(event => event.Client !== undefined)); - beacon$ = this.event$.pipe(filter(event => event.EventType === this.BEACON_REGISTERED)); - taskresult$ = this.event$.pipe(filter(event => event.EventType === this.BEACON_TASKRESULT)); + readonly session$ = this.event$.pipe(filter((event): event is Event & { Session: NonNullable } => + event.Session !== undefined + )); + readonly job$ = this.event$.pipe(filter((event): event is Event & { Job: NonNullable } => + event.Job !== undefined + )); + readonly client$ = this.event$.pipe(filter((event): event is Event & { Client: NonNullable } => + event.Client !== undefined + )); - // Filter anything that doesn't match one of the loot event types - loot$ = this.event$.pipe(filter(event => this.lootEventTypes.some(lootEventType => { - lootEventType === event.EventType - }))); + readonly beacon$ = this.event$.pipe(filter((event) => event.EventType === SliverClient.EVENT_BEACON_REGISTERED)); + readonly taskResult$ = this.event$.pipe(filter((event) => event.EventType === SliverClient.EVENT_BEACON_TASKRESULT)); - private _tunnelStream: grpc.ClientDuplexStream | null = null; - - constructor(config: SliverClientConfig) { - this._config = config; - } + constructor(readonly config: SliverClientConfig) {} rpcHost(): string { - return `${this._config.lhost}:${this._config.lport}`; + return `${this.config.lhost}:${this.config.lport}`; } - rpcCredentials(): grpc.ChannelCredentials { - const ca = Buffer.from(this._config.ca_certificate); - const privateKey = Buffer.from(this._config.private_key); - const certificate = Buffer.from(this._config.certificate); - - return grpc.credentials.combineChannelCredentials( - grpc.credentials.createSsl(ca, privateKey, certificate, { - checkServerIdentity: () => undefined, - }), - grpc.credentials.createFromMetadataGenerator((args, cb) => { - const meta = new grpc.Metadata(); - meta.set('Authorization', `Bearer ${this._config.token}`); - cb(null, meta); - }), - ); - } - - get config(): SliverClientConfig { - return this._config; - } - - get rpc(): rpcpb.SliverRPCClient { - if (this._rpc === null) { - throw new Error('SliverRPCClient not connected'); + get rpc(): SliverRPCClient { + if (!this.rpcClient) { + throw new Error("SliverClient is not connected"); } - return this._rpc; - } - - get tunnelStream(): grpc.ClientDuplexStream { - if (this._tunnelStream === null) { - throw new Error('SliverRPCClient not connected'); - } - return this._tunnelStream; + return this.rpcClient; } get isConnected(): boolean { - return this._rpc !== null; + return this.rpcClient !== null; } - connect(): Promise { - return new Promise((resolve, reject) => { + async connect(): Promise { + if (this.rpcClient) return this; - const rpc = new rpcpb.SliverRPCClient(this.rpcHost(), this.rpcCredentials(), { - 'grpc.max_send_message_length': 2 * Gb, - 'grpc.max_receive_message_length': 2 * Gb, - }); - rpc.GetVersion(this.empty, (err) => { - if (err) { - return reject(err); - } + this.eventsAbort = new AbortController(); + this.tunnels = new TunnelManager(); - // RPC Client - this._rpc = rpc; - - // Events streams - this._events = this.rpc.Events(this.empty); - this._events?.on('data', event => { this.event$.next(event) }); - this._events?.on('error', err => { this.event$.error(err) }); - this._events?.on('end', () => { this.event$.complete() }); - - // Tunnel streams - this._tunnelStream = rpc.TunnelData(); - if (this._tunnelStream === undefined) { - return reject('Failed to open tunnel data stream'); - } - resolve(this); - }); + const creds = createSliverRpcCredentials(this.config); + this.channel = createChannel(this.rpcHost(), creds, { + "grpc.max_send_message_length": 2 * GiB, + "grpc.max_receive_message_length": 2 * GiB, }); + + this.rpcClient = createClient(SliverRPCDefinition, this.channel); + + // Ensure auth and connectivity are working before we start streams. + await this.getVersion(); + + this.tunnels.start(this.rpcClient); + this.startEventsStream(); + return this; } async disconnect(): Promise { - if (this._events !== null) { - this._events.on('error', () => { }); - this._events.cancel(); + this.eventsAbort?.abort(); + this.eventsAbort = null; + + await this.tunnels?.stop(); + this.tunnels = null; + + this.rpcClient = null; + this.channel?.close(); + this.channel = null; + } + + private startEventsStream(): void { + const rpc = this.rpcClient; + const abort = this.eventsAbort; + if (!rpc || !abort) return; + + (async () => { + try { + const stream = rpc.events(this.empty, { signal: abort.signal }); + for await (const event of stream) { + this.eventSubject.next(event); + } + } catch (err) { + // Abort is expected on disconnect; don't surface as an error. + if (abort.signal.aborted) { + return; + } + this.eventSubject.error(err); + } + })(); + } + + // --- Convenience APIs (typed, promise-based) --- + + getVersion(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.getVersion(this.empty, { signal })); + } + + getOperators(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.getOperators(this.empty, { signal })); + } + + getSessions(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.getSessions(this.empty, { signal })); + } + + getBeacons(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.getBeacons(this.empty, { signal })); + } + + getJobs(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.getJobs(this.empty, { signal })); + } + + killJob(jobId: number, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.killJob({ ID: jobId }, { signal })); + } + + restartJobs(jobIds: number[], timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.restartJobs({ JobIDs: jobIds }, { signal }); + }); + } + + startMTLSListener(host: string, port: number, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.startMTLSListener({ Host: host, Port: port }, { signal })); + } + + startWGListener( + host: string, + port: number, + tunIP: string, + nPort: number, + keyPort: number, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.startWGListener({ Host: host, Port: port, TunIP: tunIP, NPort: nPort, KeyPort: keyPort }, { signal }), + ); + } + + startDNSListener( + domains: string[], + canaries: boolean, + host: string, + port: number, + enforceOTP = false, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.startDNSListener( + { Domains: domains, Canaries: canaries, Host: host, Port: port, EnforceOTP: enforceOTP }, + { signal }, + ), + ); + } + + startHTTPListener( + domain: string, + host: string, + port: number, + website = "", + enforceOTP = false, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.startHTTPListener( + { Domain: domain, Host: host, Port: port, Secure: false, Website: website, EnforceOTP: enforceOTP }, + { signal }, + ), + ); + } + + startHTTPSListener( + domain: string, + host: string, + port: number, + website = "", + acme = false, + cert?: Buffer, + key?: Buffer, + enforceOTP = false, + timeoutSeconds = DEFAULT_TIMEOUT_SECONDS, + ) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.startHTTPSListener( + { + Domain: domain, + Host: host, + Port: port, + Secure: true, + Website: website, + ACME: acme, + Cert: cert ?? Buffer.alloc(0), + Key: key ?? Buffer.alloc(0), + EnforceOTP: enforceOTP, + }, + { signal }, + ), + ); + } + + startTCPStagerListener(host: string, port: number, data: Buffer, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.startTCPStagerListener({ Protocol: 0, Host: host, Port: port, Data: data }, { signal }), + ); + } + + async generate(config: ImplantConfig, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.generate({ Config: config }, { signal })); + return res.File; + } + + async regenerate(implantName: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.regenerate({ ImplantName: implantName }, { signal }), + ); + return res.File; + } + + implantBuilds(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.implantBuilds(this.empty, { signal })); + } + + deleteImplantBuild(name: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.deleteImplantBuild({ Name: name }, { signal }); + }); + } + + canaries(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.canaries(this.empty, { signal })); + } + + implantProfiles(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.implantProfiles(this.empty, { signal })); + } + + saveImplantProfile(profile: ImplantProfile, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.saveImplantProfile(profile, { signal })); + } + + deleteImplantProfile(name: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.deleteImplantProfile({ Name: name }, { signal }); + }); + } + + lootAll(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + const res = await this.rpc.lootAll(this.empty, { signal }); + return res.Loot; + }); + } + + lootAdd(loot: Loot, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.lootAdd(loot, { signal })); + } + + lootUpdate(loot: Loot, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.lootUpdate(loot, { signal })); + } + + lootRemove(lootId: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.lootRm({ ID: lootId }, { signal }); + }); + } + + lootContent(lootId: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.lootContent({ ID: lootId }, { signal })); + } + + websites(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + const res = await this.rpc.websites(this.empty, { signal }); + return res.Websites; + }); + } + + website(name: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.website({ Name: name }, { signal })); + } + + websiteRemove(name: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.websiteRemove({ Name: name }, { signal }); + }); + } + + websiteAddContent(name: string, contents: Record, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.websiteAddContent({ Name: name, Contents: contents }, { signal }), + ); + } + + websiteUpdateContent(name: string, contents: Record, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.websiteUpdateContent({ Name: name, Contents: contents }, { signal }), + ); + } + + websiteRemoveContent(name: string, paths: string[], timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + return withTimeoutSignal(timeoutSeconds, (signal) => + this.rpc.websiteRemoveContent({ Name: name, Paths: paths }, { signal }), + ); + } + + // --- High-level helpers (ergonomic wrappers) --- + + async operators(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await this.getOperators(timeoutSeconds); + return res.Operators; + } + + async sessions(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await this.getSessions(timeoutSeconds); + return res.Sessions; + } + + async beacons(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await this.getBeacons(timeoutSeconds); + return res.Beacons; + } + + async jobs(timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { + const res = await this.getJobs(timeoutSeconds); + return res.Active; + } + + interactSession(sessionId: string): InteractiveSession { + if (!this.tunnels) { + throw new Error("SliverClient is not connected"); } - if (this._tunnelStream !== null) { - this._tunnelStream.on('error', () => { }); - this._tunnelStream.cancel(); - } - this.rpc.close(); - this._rpc = null; + return new InteractiveSession(this.rpc, this.tunnels, sessionId); } - private deadline(timeout: number) { - return { - 'deadline': Date.now() + (timeout * 1000) - } + interactBeacon(beaconId: string): InteractiveBeacon { + return new InteractiveBeacon(this.rpc, this.taskResult$, beaconId); } - // ---- Version ---- - - getVersion(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetVersion(this.empty, this.deadline(timeout), (err, version) => { - err ? reject(err) : resolve(version); - }); - }) + async rmBeacon(beaconId: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + await withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.rmBeacon({ ID: beaconId } as Beacon, { signal })); } - - // ---- Operators ---- - - getOperators(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetOperators(this.empty, this.deadline(timeout), (err, operators) => { - err ? reject(err) : resolve(operators?.Operators); - }); - }); - } - - // ---- Sessions ---- - - sessions(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetSessions(this.empty, this.deadline(timeout), (err, sessions) => { - err ? reject(err) : resolve(sessions?.Sessions); - }); - }); - } - - async interactSession(sessionID: string, timeout = TIMEOUT): Promise { - return new InteractiveSession(this.rpc, this.tunnelStream, sessionID); - } - - beacons(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetBeacons(this.empty, this.deadline(timeout), (err, beacons) => { - err ? reject(err) : resolve(beacons?.Beacons); - }); - }); - } - - async interactBeacon(beaconID: string, timeout = TIMEOUT): Promise { - return new InteractiveBeacon(this.rpc, this.taskresult$, beaconID); - } - - // ---- Jobs ---- - - jobs(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetJobs(this.empty, this.deadline(timeout), (err, jobs) => { - err ? reject(err) : resolve(jobs?.Active); - }); - }); - } - - killJob(jobId: number, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const killJob = new clientpb.KillJobReq(); - killJob.ID = jobId; - this.rpc.KillJob(killJob, this.deadline(timeout), (err, killed) => { - err ? reject(err) : resolve(killed); - }); - }); - } - - // ---- Listeners ---- - - startMTLSListener(host: string, port: number, persistent = false, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const mtls = new clientpb.MTLSListenerReq(); - mtls.Host = host; - mtls.Port = port; - mtls.Persistent = persistent; - this.rpc.StartMTLSListener(mtls, this.deadline(timeout), (err, listener) => { - err ? reject(err) : resolve(listener); - }); - }); - } - - startDNSListener(domains: string[], canaries: boolean, host: string, port: number, persistent = false, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const dns = new clientpb.DNSListenerReq(); - dns.Domains = domains; - dns.Canaries = canaries; - dns.Host = host; - dns.Port = port; - dns.Persistent = persistent; - this.rpc.StartDNSListener(dns, this.deadline(timeout), (err, listener) => { - err ? reject(err) : resolve(listener); - }); - }); - } - - startHTTPListener(domain: string, host: string, port: number, website = '', persistent = false, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const http = new clientpb.HTTPListenerReq(); - http.Domain = domain; - http.Host = host; - http.Port = port; - http.Secure = false; - http.Website = website; - http.Persistent = persistent; - this.rpc.StartHTTPListener(http, this.deadline(timeout), (err, listener) => { - err ? reject(err) : resolve(listener); - }); - }); - } - - startHTTPSListener(domain: string, host: string, port: number, acme = false, website = '', - cert?: Buffer, key?: Buffer, persistent = false, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const https = new clientpb.HTTPListenerReq(); - https.Domain = domain; - https.Host = host; - https.Port = port; - https.Secure = true; - cert ? https.Cert = cert : null; - key ? https.Key = key : null; - https.ACME = acme; - https.Website = website; - https.Persistent = persistent; - this.rpc.StartHTTPSListener(https, this.deadline(timeout), (err, listener) => { - err ? reject(err) : resolve(listener); - }); - }); - } - - startWGListener(port: number, nPort: number, keyPort: number, persistent = false, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.WGListenerReq(); - req.Port = port; - req.NPort = nPort; - req.KeyPort = keyPort; - req.Persistent = persistent; - this.rpc.StartWGListener(req, this.deadline(timeout), (err, wgListener) => { - err ? reject(err) : resolve(wgListener); - }); - }); - } - - startTCPStagerListener(host: string, port: number, data: Buffer, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.StagerListenerReq(); - req.Protocol = clientpb.StageProtocol.TCP; - req.Host = host; - req.Port = port; - req.Data = data; - this.rpc.StartTCPStagerListener(req, (err, tcpListener) => { - err ? reject(err) : resolve(tcpListener); - }); - }); - } - - startHTTPStagerListener(host: string, port: number, data: Buffer, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.StagerListenerReq(); - req.Protocol = clientpb.StageProtocol.HTTP; - req.Host = host; - req.Port = port; - req.Data = data; - this.rpc.StartHTTPStagerListener(req, this.deadline(timeout), (err, httpListener) => { - err ? reject(err) : resolve(httpListener); - }); - }); - } - - startHTTPSStagerListener(host: string, port: number, data: Buffer, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.StagerListenerReq(); - req.Protocol = clientpb.StageProtocol.HTTPS; - req.Host = host; - req.Port = port; - req.Data = data; - this.rpc.StartHTTPStagerListener(req, this.deadline(timeout), (err, httpsListener) => { - err ? reject(err) : resolve(httpsListener); - }); - }); - } - - // ---- Implants ---- - - generate(config: clientpb.ImplantConfig, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.GenerateReq(); - req.Config = config; - this.rpc.Generate(req, this.deadline(timeout), (err, generated) => { - err ? reject(err) : resolve(generated?.File); - }); - }); - } - - compilerInfo(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.GetCompiler(new commonpb.Empty(), this.deadline(timeout), (err, info) => { - err ? reject(err) : resolve(info); - }); - }); - } - - regenerate(name: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const req = new clientpb.RegenerateReq(); - req.ImplantName = name; - this.rpc.Regenerate(req, this.deadline(timeout), (err, generated) => { - err ? reject(err) : resolve(generated?.File); - }); - }); - } - - implantBuilds(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.ImplantBuilds(this.empty, this.deadline(timeout), (err, builds) => { - err ? reject(err) : resolve(builds); - }); - }); - } - - deleteImplantBuild(name: string, timeout = TIMEOUT): Promise { - const delReq = new clientpb.DeleteReq(); - delReq.Name = name; - return new Promise((resolve, reject) => { - this.rpc.DeleteImplantBuild(delReq, this.deadline(timeout), (err) => { - err ? reject(err) : resolve(); - }); - }); - } - - canaries(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.Canaries(this.empty, this.deadline(timeout), (err, canaries) => { - err ? reject(err) : resolve(canaries?.Canaries); - }); - }); - } - - implantProfiles(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.ImplantProfiles(this.empty, this.deadline(timeout), (err, profiles) => { - err ? reject(err) : resolve(profiles?.Profiles); - }); - }); - } - - saveImplantProfile(profile: clientpb.ImplantProfile, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.SaveImplantProfile(profile, this.deadline(timeout), (err, profile) => { - err ? reject(err) : resolve(profile); - }); - }); - } - - deleteImplantProfile(name: string, timeout = TIMEOUT): Promise { - const delReq = new clientpb.DeleteReq(); - delReq.Name = name; - return new Promise((resolve, reject) => { - this.rpc.DeleteImplantProfile(delReq, this.deadline(timeout), (err) => { - err ? reject(err) : resolve(); - }); - }); - } - - // ---- Loot ---- - lootAll(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.LootAll(this.empty, this.deadline(timeout), (err, loot) => { - err ? reject(err) : resolve(loot?.Loot); - }); - }); - } - - lootAllOf(lootType: string, timeout = TIMEOUT): Promise { - - // There doesn't seem to be a good way to strongly type this parameter - const loot = new clientpb.Loot(); - switch (lootType.toLowerCase()) { - case 'c': - case 'cred': - case 'creds': - case 'credential': - case 'credentials': - loot.Type = clientpb.LootType.LOOT_CREDENTIAL; - break; - - case 'f': - case 'file': - case 'files': - loot.Type = clientpb.LootType.LOOT_FILE; - break; - - default: - throw new Error(`Unknown loot type: ${lootType}`); - } - - return new Promise((resolve, reject) => { - this.rpc.LootAllOf(loot, this.deadline(timeout), (err, allLoot) => { - err ? reject(err) : resolve(allLoot?.Loot); - }); - }); - } - - lootAdd(loot: clientpb.Loot, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.LootAdd(loot, this.deadline(timeout), (err, loot) => { - err ? reject(err) : resolve(loot); - }); - }); - } - - lootUpdate(lootID: string, name: string, timeout = TIMEOUT): Promise { - const loot = new clientpb.Loot(); - loot.LootID = lootID; - loot.Name = name; - return new Promise((resolve, reject) => { - this.rpc.LootUpdate(loot, this.deadline(timeout), (err, loot) => { - err ? reject(err) : resolve(loot); - }); - }); - } - - lootRemove(lootID: string, timeout = TIMEOUT): Promise { - const loot = new clientpb.Loot(); - loot.LootID = lootID; - return new Promise((resolve, reject) => { - this.rpc.LootRm(loot, this.deadline(timeout), (err) => { - err ? reject(err) : resolve(); - }); - }); - } - - lootContent(lootID: string, timeout = TIMEOUT): Promise { - const loot = new clientpb.Loot(); - loot.LootID = lootID; - return new Promise((resolve, reject) => { - this.rpc.LootContent(loot, this.deadline(timeout), (err, loot) => { - err ? reject(err) : resolve(loot); - }); - }); - } - - // ---- Websites ---- - - websites(timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - this.rpc.Websites(this.empty, this.deadline(timeout), (err, websites) => { - err ? reject(err) : resolve(websites?.Websites); - }); - }); - } - - website(name: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const web = new clientpb.Website(); - web.Name = name; - this.rpc.Website(web, this.deadline(timeout), (err, website) => { - err ? reject(err) : resolve(website); - }); - }); - } - - websiteRemove(name: string, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const web = new clientpb.Website(); - web.Name = name; - this.rpc.WebsiteRemove(web, this.deadline(timeout), (err) => { - err ? reject(err) : resolve(); - }); - }); - } - - websiteAddContent(name: string, contents: Map, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const addContent = new clientpb.WebsiteAddContent(); - addContent.Name = name; - addContent.Contents = contents; - this.rpc.WebsiteAddContent(addContent, this.deadline(timeout), (err, website) => { - err ? reject(err) : resolve(website); - }); - }); - } - - websiteUpdateContent(name: string, contents: Map, timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const addContent = new clientpb.WebsiteAddContent(); - addContent.Name = name; - addContent.Contents = contents; - this.rpc.WebsiteUpdateContent(addContent, this.deadline(timeout), (err, website) => { - err ? reject(err) : resolve(website); - }); - }); - } - - websiteRemoveContent(name: string, paths: string[], timeout = TIMEOUT): Promise { - return new Promise((resolve, reject) => { - const rm = new clientpb.WebsiteRemoveContent(); - rm.Name = name; - rm.Paths = paths; - this.rpc.WebsiteRemoveContent(rm, this.deadline(timeout), (err, website) => { - err ? reject(err) : resolve(website); - }); - }); - } - +} + +async function waitForBeaconTask(taskResult$: Observable, taskId: string, timeoutSeconds: number) { + return new Promise((resolve, reject) => { + const timeoutMs = Math.floor(timeoutSeconds * 1000); + const timer = setTimeout(() => { + sub.unsubscribe(); + reject(new Error(`Timeout waiting for beacon task result: ${taskId}`)); + }, timeoutMs); + + const sub = taskResult$.subscribe({ + next: (event) => { + try { + const task = BeaconTask.decode(event.Data); + if (task.ID !== taskId) return; + clearTimeout(timer); + sub.unsubscribe(); + resolve(task); + } catch (err) { + clearTimeout(timer); + sub.unsubscribe(); + reject(err); + } + }, + error: (err) => { + clearTimeout(timer); + sub.unsubscribe(); + reject(err); + }, + }); + }); } diff --git a/src/config.ts b/src/config.ts index b7aa17d..f6eb1dc 100644 --- a/src/config.ts +++ b/src/config.ts @@ -1,5 +1,6 @@ -import * as fs from 'fs'; -import * as path from 'path'; +import { readdir, readFile } from "node:fs/promises"; +import * as fs from "node:fs"; +import * as path from "node:path"; export interface SliverClientConfig { operator: string; @@ -11,48 +12,64 @@ export interface SliverClientConfig { token: string; } -export function ParseConfigFile(filePath: string): Promise { - return new Promise((resolve, reject) => { - fs.exists(filePath, (exists) => { - if (exists) { - fs.readFile(filePath, (err, data) => { - if (!err) { - try { - const config = ParseConfig(data); - resolve(config); - } catch(err) { - reject(err); - } - } else { - reject(err); - } - }); - } else { - reject('File does not exist'); - } - }); - }); +export async function parseConfigFile(filePath: string): Promise { + if (!fs.existsSync(filePath)) { + throw new Error(`Config file does not exist: ${filePath}`); + } + const data = await readFile(filePath); + return parseConfig(data); } -export function ParseConfig(data: Buffer): SliverClientConfig { - return JSON.parse(data.toString('utf8')); +export function parseConfig(data: Buffer): SliverClientConfig { + const raw = JSON.parse(data.toString("utf8")) as Partial; + validateConfig(raw); + return raw as SliverClientConfig; } -export async function ListConfigs(configDir: string): Promise { - return new Promise((resolve) => { - fs.readdir(configDir, (_, items) => { - if (!fs.existsSync(configDir) || items === undefined) { - return resolve([]); +export async function listConfigs(configDir: string): Promise { + try { + const items = await readdir(configDir); + const configs: SliverClientConfig[] = []; + + for (const item of items) { + const filePath = path.join(configDir, item); + if (!fs.existsSync(filePath) || fs.lstatSync(filePath).isDirectory()) { + continue; } - const configs: SliverClientConfig[] = []; - for (let index = 0; index < items.length; ++index) { - const filePath = path.join(configDir, items[index]); - if (fs.existsSync(filePath) && !fs.lstatSync(filePath).isDirectory()) { - const fileData = fs.readFileSync(filePath); - configs.push(JSON.parse(fileData.toString('utf8'))); - } + try { + configs.push(await parseConfigFile(filePath)); + } catch { + // Best-effort: ignore invalid config files in the directory. } - resolve(configs); - }); - }); -} \ No newline at end of file + } + + return configs; + } catch { + return []; + } +} + +function validateConfig(config: Partial): asserts config is SliverClientConfig { + const mustBeString = [ + "operator", + "lhost", + "ca_certificate", + "certificate", + "private_key", + "token", + ] as const; + + for (const key of mustBeString) { + if (typeof config[key] !== "string") { + throw new Error(`Invalid sliver config: missing/invalid ${key}`); + } + } + if (typeof config.lport !== "number" || !Number.isFinite(config.lport)) { + throw new Error("Invalid sliver config: missing/invalid lport"); + } +} + +// Back-compat exports (v1.x API) +export const ParseConfigFile = parseConfigFile; +export const ParseConfig = parseConfig; +export const ListConfigs = listConfigs; diff --git a/src/index.ts b/src/index.ts index d0e1efb..5920285 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,7 @@ export * from './client'; export * from './config'; +export * as commonpb from "./pb/commonpb/common"; +export * as clientpb from "./pb/clientpb/client"; +export * as sliverpb from "./pb/sliverpb/sliver"; +export * as rpcpb from "./pb/rpcpb/services"; +export * as dnspb from "./pb/dnspb/dns"; diff --git a/src/internal/asyncQueue.ts b/src/internal/asyncQueue.ts new file mode 100644 index 0000000..a250241 --- /dev/null +++ b/src/internal/asyncQueue.ts @@ -0,0 +1,71 @@ +export class AsyncQueue implements AsyncIterable { + private readonly queue: T[] = []; + private readonly pending: Array<{ + resolve: (result: IteratorResult) => void; + reject: (err: unknown) => void; + }> = []; + + private closed = false; + private failure: unknown | null = null; + + push(item: T): void { + if (this.closed) { + throw new Error("AsyncQueue is closed"); + } + + const waiter = this.pending.shift(); + if (waiter) { + waiter.resolve({ value: item, done: false }); + return; + } + + this.queue.push(item); + } + + close(): void { + if (this.closed) return; + this.closed = true; + for (const waiter of this.pending.splice(0, this.pending.length)) { + waiter.resolve({ value: undefined as never, done: true }); + } + } + + fail(err: unknown): void { + if (this.closed) return; + this.failure = err; + this.closed = true; + for (const waiter of this.pending.splice(0, this.pending.length)) { + waiter.reject(err); + } + } + + [Symbol.asyncIterator](): AsyncIterator { + return { + next: () => this.next(), + return: async () => { + this.close(); + return { value: undefined as never, done: true }; + }, + }; + } + + private next(): Promise> { + if (this.failure) { + return Promise.reject(this.failure); + } + + const item = this.queue.shift(); + if (item !== undefined) { + return Promise.resolve({ value: item, done: false }); + } + + if (this.closed) { + return Promise.resolve({ value: undefined as never, done: true }); + } + + return new Promise((resolve, reject) => { + this.pending.push({ resolve, reject }); + }); + } +} + diff --git a/src/internal/credentials.ts b/src/internal/credentials.ts new file mode 100644 index 0000000..6ee6cf1 --- /dev/null +++ b/src/internal/credentials.ts @@ -0,0 +1,23 @@ +import * as grpc from "@grpc/grpc-js"; + +import type { SliverClientConfig } from "../config"; + +export function createSliverRpcCredentials(config: SliverClientConfig): grpc.ChannelCredentials { + const ca = Buffer.from(config.ca_certificate); + const privateKey = Buffer.from(config.private_key); + const certificate = Buffer.from(config.certificate); + + return grpc.credentials.combineChannelCredentials( + grpc.credentials.createSsl(ca, privateKey, certificate, { + // Sliver configs are typically self-signed; we only verify the presented cert + // chains up to the configured CA, not the hostname. + checkServerIdentity: () => undefined, + }), + grpc.credentials.createFromMetadataGenerator((_, callback) => { + const meta = new grpc.Metadata(); + meta.set("Authorization", `Bearer ${config.token}`); + callback(null, meta); + }), + ); +} + diff --git a/src/internal/timeout.ts b/src/internal/timeout.ts new file mode 100644 index 0000000..8df4201 --- /dev/null +++ b/src/internal/timeout.ts @@ -0,0 +1,18 @@ +export async function withTimeoutSignal( + timeoutSeconds: number, + fn: (signal: AbortSignal) => Promise, +): Promise { + if (!(timeoutSeconds > 0)) { + return fn(new AbortController().signal); + } + + const controller = new AbortController(); + const timeoutMs = Math.floor(timeoutSeconds * 1000); + const timer = setTimeout(() => controller.abort(), timeoutMs); + try { + return await fn(controller.signal); + } finally { + clearTimeout(timer); + } +} + diff --git a/src/internal/tunnelManager.ts b/src/internal/tunnelManager.ts new file mode 100644 index 0000000..79c0d20 --- /dev/null +++ b/src/internal/tunnelManager.ts @@ -0,0 +1,67 @@ +import { Subject, type Observable } from "rxjs"; + +import type { SliverRPCClient, DeepPartial } from "../pb/rpcpb/services"; +import type { TunnelData } from "../pb/sliverpb/sliver"; + +import { AsyncQueue } from "./asyncQueue"; + +export class TunnelManager { + private readonly outgoing = new AsyncQueue>(); + private readonly byTunnelId = new Map>(); + private readonly abort = new AbortController(); + + private running: Promise | null = null; + + start(rpc: SliverRPCClient): void { + if (this.running) return; + + this.running = (async () => { + try { + const stream = rpc.tunnelData(this.outgoing, { signal: this.abort.signal }); + for await (const msg of stream) { + const tunnelId = msg.TunnelID; + const subject = this.byTunnelId.get(tunnelId); + if (!subject) continue; + + subject.next(msg); + if (msg.Closed) { + subject.complete(); + this.byTunnelId.delete(tunnelId); + } + } + } catch (err) { + for (const subject of this.byTunnelId.values()) { + subject.error(err); + } + this.byTunnelId.clear(); + this.outgoing.fail(err); + } + })(); + } + + subscribe(tunnelId: string): Observable { + let subject = this.byTunnelId.get(tunnelId); + if (!subject) { + subject = new Subject(); + this.byTunnelId.set(tunnelId, subject); + } + return subject.asObservable(); + } + + send(msg: DeepPartial): void { + this.outgoing.push(msg); + } + + async stop(): Promise { + this.abort.abort(); + this.outgoing.close(); + if (this.running) { + await this.running; + } + this.running = null; + for (const subject of this.byTunnelId.values()) { + subject.complete(); + } + this.byTunnelId.clear(); + } +} diff --git a/src/pb/clientpb/client.ts b/src/pb/clientpb/client.ts index a555c3f..cdd6739 100644 --- a/src/pb/clientpb/client.ts +++ b/src/pb/clientpb/client.ts @@ -1,10433 +1,21337 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 3.15.6 - * source: clientpb/client.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./../commonpb/common"; -import * as pb_1 from "google-protobuf"; -export namespace clientpb { - export enum OutputFormat { - SHARED_LIB = 0, - SHELLCODE = 1, - EXECUTABLE = 2, - SERVICE = 3 - } - export enum StageProtocol { - TCP = 0, - HTTP = 1, - HTTPS = 2 - } - export enum LootType { - LOOT_FILE = 0, - LOOT_CREDENTIAL = 1 - } - export enum CredentialType { - NO_CREDENTIAL = 0, - USER_PASSWORD = 1, - API_KEY = 2, - FILE = 3 - } - export enum FileType { - NO_FILE = 0, - BINARY = 1, - TEXT = 2 - } - export enum ShellcodeEncoder { - SHIKATA_GA_NAI = 0 - } - export class Version extends pb_1.Message { - constructor(data?: any[] | { - Major?: number; - Minor?: number; - Patch?: number; - Commit?: string; - Dirty?: boolean; - CompiledAt?: number; - OS?: string; - Arch?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Major" in data && data.Major != undefined) { - this.Major = data.Major; - } - if ("Minor" in data && data.Minor != undefined) { - this.Minor = data.Minor; - } - if ("Patch" in data && data.Patch != undefined) { - this.Patch = data.Patch; - } - if ("Commit" in data && data.Commit != undefined) { - this.Commit = data.Commit; - } - if ("Dirty" in data && data.Dirty != undefined) { - this.Dirty = data.Dirty; - } - if ("CompiledAt" in data && data.CompiledAt != undefined) { - this.CompiledAt = data.CompiledAt; - } - if ("OS" in data && data.OS != undefined) { - this.OS = data.OS; - } - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - } - } - get Major() { - return pb_1.Message.getField(this, 1) as number; - } - set Major(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Minor() { - return pb_1.Message.getField(this, 2) as number; - } - set Minor(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Patch() { - return pb_1.Message.getField(this, 3) as number; - } - set Patch(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Commit() { - return pb_1.Message.getField(this, 4) as string; - } - set Commit(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Dirty() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Dirty(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get CompiledAt() { - return pb_1.Message.getField(this, 6) as number; - } - set CompiledAt(value: number) { - pb_1.Message.setField(this, 6, value); - } - get OS() { - return pb_1.Message.getField(this, 7) as string; - } - set OS(value: string) { - pb_1.Message.setField(this, 7, value); - } - get Arch() { - return pb_1.Message.getField(this, 8) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 8, value); - } - static fromObject(data: { - Major?: number; - Minor?: number; - Patch?: number; - Commit?: string; - Dirty?: boolean; - CompiledAt?: number; - OS?: string; - Arch?: string; - }) { - const message = new Version({}); - if (data.Major != null) { - message.Major = data.Major; - } - if (data.Minor != null) { - message.Minor = data.Minor; - } - if (data.Patch != null) { - message.Patch = data.Patch; - } - if (data.Commit != null) { - message.Commit = data.Commit; - } - if (data.Dirty != null) { - message.Dirty = data.Dirty; - } - if (data.CompiledAt != null) { - message.CompiledAt = data.CompiledAt; - } - if (data.OS != null) { - message.OS = data.OS; - } - if (data.Arch != null) { - message.Arch = data.Arch; - } - return message; - } - toObject() { - const data: { - Major?: number; - Minor?: number; - Patch?: number; - Commit?: string; - Dirty?: boolean; - CompiledAt?: number; - OS?: string; - Arch?: string; - } = {}; - if (this.Major != null) { - data.Major = this.Major; - } - if (this.Minor != null) { - data.Minor = this.Minor; - } - if (this.Patch != null) { - data.Patch = this.Patch; - } - if (this.Commit != null) { - data.Commit = this.Commit; - } - if (this.Dirty != null) { - data.Dirty = this.Dirty; - } - if (this.CompiledAt != null) { - data.CompiledAt = this.CompiledAt; - } - if (this.OS != null) { - data.OS = this.OS; - } - if (this.Arch != null) { - data.Arch = this.Arch; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Major !== undefined) - writer.writeInt32(1, this.Major); - if (this.Minor !== undefined) - writer.writeInt32(2, this.Minor); - if (this.Patch !== undefined) - writer.writeInt32(3, this.Patch); - if (typeof this.Commit === "string" && this.Commit.length) - writer.writeString(4, this.Commit); - if (this.Dirty !== undefined) - writer.writeBool(5, this.Dirty); - if (this.CompiledAt !== undefined) - writer.writeInt64(6, this.CompiledAt); - if (typeof this.OS === "string" && this.OS.length) - writer.writeString(7, this.OS); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(8, this.Arch); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Version { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Version(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Major = reader.readInt32(); - break; - case 2: - message.Minor = reader.readInt32(); - break; - case 3: - message.Patch = reader.readInt32(); - break; - case 4: - message.Commit = reader.readString(); - break; - case 5: - message.Dirty = reader.readBool(); - break; - case 6: - message.CompiledAt = reader.readInt64(); - break; - case 7: - message.OS = reader.readString(); - break; - case 8: - message.Arch = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Version { - return Version.deserialize(bytes); - } - } - export class Session extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ReconnectInterval?: number; - ProxyURL?: string; - Burned?: boolean; - Extensions?: string[]; - PeerID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [23], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("UUID" in data && data.UUID != undefined) { - this.UUID = data.UUID; - } - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("UID" in data && data.UID != undefined) { - this.UID = data.UID; - } - if ("GID" in data && data.GID != undefined) { - this.GID = data.GID; - } - if ("OS" in data && data.OS != undefined) { - this.OS = data.OS; - } - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - if ("Transport" in data && data.Transport != undefined) { - this.Transport = data.Transport; - } - if ("RemoteAddress" in data && data.RemoteAddress != undefined) { - this.RemoteAddress = data.RemoteAddress; - } - if ("PID" in data && data.PID != undefined) { - this.PID = data.PID; - } - if ("Filename" in data && data.Filename != undefined) { - this.Filename = data.Filename; - } - if ("LastCheckin" in data && data.LastCheckin != undefined) { - this.LastCheckin = data.LastCheckin; - } - if ("ActiveC2" in data && data.ActiveC2 != undefined) { - this.ActiveC2 = data.ActiveC2; - } - if ("Version" in data && data.Version != undefined) { - this.Version = data.Version; - } - if ("Evasion" in data && data.Evasion != undefined) { - this.Evasion = data.Evasion; - } - if ("IsDead" in data && data.IsDead != undefined) { - this.IsDead = data.IsDead; - } - if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) { - this.ReconnectInterval = data.ReconnectInterval; - } - if ("ProxyURL" in data && data.ProxyURL != undefined) { - this.ProxyURL = data.ProxyURL; - } - if ("Burned" in data && data.Burned != undefined) { - this.Burned = data.Burned; - } - if ("Extensions" in data && data.Extensions != undefined) { - this.Extensions = data.Extensions; - } - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Hostname() { - return pb_1.Message.getField(this, 3) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 3, value); - } - get UUID() { - return pb_1.Message.getField(this, 4) as string; - } - set UUID(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Username() { - return pb_1.Message.getField(this, 5) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 5, value); - } - get UID() { - return pb_1.Message.getField(this, 6) as string; - } - set UID(value: string) { - pb_1.Message.setField(this, 6, value); - } - get GID() { - return pb_1.Message.getField(this, 7) as string; - } - set GID(value: string) { - pb_1.Message.setField(this, 7, value); - } - get OS() { - return pb_1.Message.getField(this, 8) as string; - } - set OS(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Arch() { - return pb_1.Message.getField(this, 9) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 9, value); - } - get Transport() { - return pb_1.Message.getField(this, 10) as string; - } - set Transport(value: string) { - pb_1.Message.setField(this, 10, value); - } - get RemoteAddress() { - return pb_1.Message.getField(this, 11) as string; - } - set RemoteAddress(value: string) { - pb_1.Message.setField(this, 11, value); - } - get PID() { - return pb_1.Message.getField(this, 12) as number; - } - set PID(value: number) { - pb_1.Message.setField(this, 12, value); - } - get Filename() { - return pb_1.Message.getField(this, 13) as string; - } - set Filename(value: string) { - pb_1.Message.setField(this, 13, value); - } - get LastCheckin() { - return pb_1.Message.getField(this, 14) as number; - } - set LastCheckin(value: number) { - pb_1.Message.setField(this, 14, value); - } - get ActiveC2() { - return pb_1.Message.getField(this, 15) as string; - } - set ActiveC2(value: string) { - pb_1.Message.setField(this, 15, value); - } - get Version() { - return pb_1.Message.getField(this, 16) as string; - } - set Version(value: string) { - pb_1.Message.setField(this, 16, value); - } - get Evasion() { - return pb_1.Message.getField(this, 17) as boolean; - } - set Evasion(value: boolean) { - pb_1.Message.setField(this, 17, value); - } - get IsDead() { - return pb_1.Message.getField(this, 18) as boolean; - } - set IsDead(value: boolean) { - pb_1.Message.setField(this, 18, value); - } - get ReconnectInterval() { - return pb_1.Message.getField(this, 19) as number; - } - set ReconnectInterval(value: number) { - pb_1.Message.setField(this, 19, value); - } - get ProxyURL() { - return pb_1.Message.getField(this, 20) as string; - } - set ProxyURL(value: string) { - pb_1.Message.setField(this, 20, value); - } - get Burned() { - return pb_1.Message.getField(this, 22) as boolean; - } - set Burned(value: boolean) { - pb_1.Message.setField(this, 22, value); - } - get Extensions() { - return pb_1.Message.getField(this, 23) as string[]; - } - set Extensions(value: string[]) { - pb_1.Message.setField(this, 23, value); - } - get PeerID() { - return pb_1.Message.getField(this, 25) as number; - } - set PeerID(value: number) { - pb_1.Message.setField(this, 25, value); - } - static fromObject(data: { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ReconnectInterval?: number; - ProxyURL?: string; - Burned?: boolean; - Extensions?: string[]; - PeerID?: number; - }) { - const message = new Session({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.UUID != null) { - message.UUID = data.UUID; - } - if (data.Username != null) { - message.Username = data.Username; - } - if (data.UID != null) { - message.UID = data.UID; - } - if (data.GID != null) { - message.GID = data.GID; - } - if (data.OS != null) { - message.OS = data.OS; - } - if (data.Arch != null) { - message.Arch = data.Arch; - } - if (data.Transport != null) { - message.Transport = data.Transport; - } - if (data.RemoteAddress != null) { - message.RemoteAddress = data.RemoteAddress; - } - if (data.PID != null) { - message.PID = data.PID; - } - if (data.Filename != null) { - message.Filename = data.Filename; - } - if (data.LastCheckin != null) { - message.LastCheckin = data.LastCheckin; - } - if (data.ActiveC2 != null) { - message.ActiveC2 = data.ActiveC2; - } - if (data.Version != null) { - message.Version = data.Version; - } - if (data.Evasion != null) { - message.Evasion = data.Evasion; - } - if (data.IsDead != null) { - message.IsDead = data.IsDead; - } - if (data.ReconnectInterval != null) { - message.ReconnectInterval = data.ReconnectInterval; - } - if (data.ProxyURL != null) { - message.ProxyURL = data.ProxyURL; - } - if (data.Burned != null) { - message.Burned = data.Burned; - } - if (data.Extensions != null) { - message.Extensions = data.Extensions; - } - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - return message; - } - toObject() { - const data: { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ReconnectInterval?: number; - ProxyURL?: string; - Burned?: boolean; - Extensions?: string[]; - PeerID?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.UUID != null) { - data.UUID = this.UUID; - } - if (this.Username != null) { - data.Username = this.Username; - } - if (this.UID != null) { - data.UID = this.UID; - } - if (this.GID != null) { - data.GID = this.GID; - } - if (this.OS != null) { - data.OS = this.OS; - } - if (this.Arch != null) { - data.Arch = this.Arch; - } - if (this.Transport != null) { - data.Transport = this.Transport; - } - if (this.RemoteAddress != null) { - data.RemoteAddress = this.RemoteAddress; - } - if (this.PID != null) { - data.PID = this.PID; - } - if (this.Filename != null) { - data.Filename = this.Filename; - } - if (this.LastCheckin != null) { - data.LastCheckin = this.LastCheckin; - } - if (this.ActiveC2 != null) { - data.ActiveC2 = this.ActiveC2; - } - if (this.Version != null) { - data.Version = this.Version; - } - if (this.Evasion != null) { - data.Evasion = this.Evasion; - } - if (this.IsDead != null) { - data.IsDead = this.IsDead; - } - if (this.ReconnectInterval != null) { - data.ReconnectInterval = this.ReconnectInterval; - } - if (this.ProxyURL != null) { - data.ProxyURL = this.ProxyURL; - } - if (this.Burned != null) { - data.Burned = this.Burned; - } - if (this.Extensions != null) { - data.Extensions = this.Extensions; - } - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(3, this.Hostname); - if (typeof this.UUID === "string" && this.UUID.length) - writer.writeString(4, this.UUID); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(5, this.Username); - if (typeof this.UID === "string" && this.UID.length) - writer.writeString(6, this.UID); - if (typeof this.GID === "string" && this.GID.length) - writer.writeString(7, this.GID); - if (typeof this.OS === "string" && this.OS.length) - writer.writeString(8, this.OS); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(9, this.Arch); - if (typeof this.Transport === "string" && this.Transport.length) - writer.writeString(10, this.Transport); - if (typeof this.RemoteAddress === "string" && this.RemoteAddress.length) - writer.writeString(11, this.RemoteAddress); - if (this.PID !== undefined) - writer.writeInt32(12, this.PID); - if (typeof this.Filename === "string" && this.Filename.length) - writer.writeString(13, this.Filename); - if (this.LastCheckin !== undefined) - writer.writeInt64(14, this.LastCheckin); - if (typeof this.ActiveC2 === "string" && this.ActiveC2.length) - writer.writeString(15, this.ActiveC2); - if (typeof this.Version === "string" && this.Version.length) - writer.writeString(16, this.Version); - if (this.Evasion !== undefined) - writer.writeBool(17, this.Evasion); - if (this.IsDead !== undefined) - writer.writeBool(18, this.IsDead); - if (this.ReconnectInterval !== undefined) - writer.writeInt64(19, this.ReconnectInterval); - if (typeof this.ProxyURL === "string" && this.ProxyURL.length) - writer.writeString(20, this.ProxyURL); - if (this.Burned !== undefined) - writer.writeBool(22, this.Burned); - if (this.Extensions !== undefined) - writer.writeRepeatedString(23, this.Extensions); - if (this.PeerID !== undefined) - writer.writeInt64(25, this.PeerID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Session { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Session(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.Name = reader.readString(); - break; - case 3: - message.Hostname = reader.readString(); - break; - case 4: - message.UUID = reader.readString(); - break; - case 5: - message.Username = reader.readString(); - break; - case 6: - message.UID = reader.readString(); - break; - case 7: - message.GID = reader.readString(); - break; - case 8: - message.OS = reader.readString(); - break; - case 9: - message.Arch = reader.readString(); - break; - case 10: - message.Transport = reader.readString(); - break; - case 11: - message.RemoteAddress = reader.readString(); - break; - case 12: - message.PID = reader.readInt32(); - break; - case 13: - message.Filename = reader.readString(); - break; - case 14: - message.LastCheckin = reader.readInt64(); - break; - case 15: - message.ActiveC2 = reader.readString(); - break; - case 16: - message.Version = reader.readString(); - break; - case 17: - message.Evasion = reader.readBool(); - break; - case 18: - message.IsDead = reader.readBool(); - break; - case 19: - message.ReconnectInterval = reader.readInt64(); - break; - case 20: - message.ProxyURL = reader.readString(); - break; - case 22: - message.Burned = reader.readBool(); - break; - case 23: - pb_1.Message.addToRepeatedField(message, 23, reader.readString()); - break; - case 25: - message.PeerID = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Session { - return Session.deserialize(bytes); - } - } - export class Beacon extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ProxyURL?: string; - ReconnectInterval?: number; - Interval?: number; - Jitter?: number; - Burned?: boolean; - NextCheckin?: number; - TasksCount?: number; - TasksCountCompleted?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("UUID" in data && data.UUID != undefined) { - this.UUID = data.UUID; - } - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("UID" in data && data.UID != undefined) { - this.UID = data.UID; - } - if ("GID" in data && data.GID != undefined) { - this.GID = data.GID; - } - if ("OS" in data && data.OS != undefined) { - this.OS = data.OS; - } - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - if ("Transport" in data && data.Transport != undefined) { - this.Transport = data.Transport; - } - if ("RemoteAddress" in data && data.RemoteAddress != undefined) { - this.RemoteAddress = data.RemoteAddress; - } - if ("PID" in data && data.PID != undefined) { - this.PID = data.PID; - } - if ("Filename" in data && data.Filename != undefined) { - this.Filename = data.Filename; - } - if ("LastCheckin" in data && data.LastCheckin != undefined) { - this.LastCheckin = data.LastCheckin; - } - if ("ActiveC2" in data && data.ActiveC2 != undefined) { - this.ActiveC2 = data.ActiveC2; - } - if ("Version" in data && data.Version != undefined) { - this.Version = data.Version; - } - if ("Evasion" in data && data.Evasion != undefined) { - this.Evasion = data.Evasion; - } - if ("IsDead" in data && data.IsDead != undefined) { - this.IsDead = data.IsDead; - } - if ("ProxyURL" in data && data.ProxyURL != undefined) { - this.ProxyURL = data.ProxyURL; - } - if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) { - this.ReconnectInterval = data.ReconnectInterval; - } - if ("Interval" in data && data.Interval != undefined) { - this.Interval = data.Interval; - } - if ("Jitter" in data && data.Jitter != undefined) { - this.Jitter = data.Jitter; - } - if ("Burned" in data && data.Burned != undefined) { - this.Burned = data.Burned; - } - if ("NextCheckin" in data && data.NextCheckin != undefined) { - this.NextCheckin = data.NextCheckin; - } - if ("TasksCount" in data && data.TasksCount != undefined) { - this.TasksCount = data.TasksCount; - } - if ("TasksCountCompleted" in data && data.TasksCountCompleted != undefined) { - this.TasksCountCompleted = data.TasksCountCompleted; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Hostname() { - return pb_1.Message.getField(this, 3) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 3, value); - } - get UUID() { - return pb_1.Message.getField(this, 4) as string; - } - set UUID(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Username() { - return pb_1.Message.getField(this, 5) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 5, value); - } - get UID() { - return pb_1.Message.getField(this, 6) as string; - } - set UID(value: string) { - pb_1.Message.setField(this, 6, value); - } - get GID() { - return pb_1.Message.getField(this, 7) as string; - } - set GID(value: string) { - pb_1.Message.setField(this, 7, value); - } - get OS() { - return pb_1.Message.getField(this, 8) as string; - } - set OS(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Arch() { - return pb_1.Message.getField(this, 9) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 9, value); - } - get Transport() { - return pb_1.Message.getField(this, 10) as string; - } - set Transport(value: string) { - pb_1.Message.setField(this, 10, value); - } - get RemoteAddress() { - return pb_1.Message.getField(this, 11) as string; - } - set RemoteAddress(value: string) { - pb_1.Message.setField(this, 11, value); - } - get PID() { - return pb_1.Message.getField(this, 12) as number; - } - set PID(value: number) { - pb_1.Message.setField(this, 12, value); - } - get Filename() { - return pb_1.Message.getField(this, 13) as string; - } - set Filename(value: string) { - pb_1.Message.setField(this, 13, value); - } - get LastCheckin() { - return pb_1.Message.getField(this, 14) as number; - } - set LastCheckin(value: number) { - pb_1.Message.setField(this, 14, value); - } - get ActiveC2() { - return pb_1.Message.getField(this, 15) as string; - } - set ActiveC2(value: string) { - pb_1.Message.setField(this, 15, value); - } - get Version() { - return pb_1.Message.getField(this, 16) as string; - } - set Version(value: string) { - pb_1.Message.setField(this, 16, value); - } - get Evasion() { - return pb_1.Message.getField(this, 17) as boolean; - } - set Evasion(value: boolean) { - pb_1.Message.setField(this, 17, value); - } - get IsDead() { - return pb_1.Message.getField(this, 18) as boolean; - } - set IsDead(value: boolean) { - pb_1.Message.setField(this, 18, value); - } - get ProxyURL() { - return pb_1.Message.getField(this, 20) as string; - } - set ProxyURL(value: string) { - pb_1.Message.setField(this, 20, value); - } - get ReconnectInterval() { - return pb_1.Message.getField(this, 21) as number; - } - set ReconnectInterval(value: number) { - pb_1.Message.setField(this, 21, value); - } - get Interval() { - return pb_1.Message.getField(this, 22) as number; - } - set Interval(value: number) { - pb_1.Message.setField(this, 22, value); - } - get Jitter() { - return pb_1.Message.getField(this, 23) as number; - } - set Jitter(value: number) { - pb_1.Message.setField(this, 23, value); - } - get Burned() { - return pb_1.Message.getField(this, 24) as boolean; - } - set Burned(value: boolean) { - pb_1.Message.setField(this, 24, value); - } - get NextCheckin() { - return pb_1.Message.getField(this, 25) as number; - } - set NextCheckin(value: number) { - pb_1.Message.setField(this, 25, value); - } - get TasksCount() { - return pb_1.Message.getField(this, 26) as number; - } - set TasksCount(value: number) { - pb_1.Message.setField(this, 26, value); - } - get TasksCountCompleted() { - return pb_1.Message.getField(this, 27) as number; - } - set TasksCountCompleted(value: number) { - pb_1.Message.setField(this, 27, value); - } - static fromObject(data: { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ProxyURL?: string; - ReconnectInterval?: number; - Interval?: number; - Jitter?: number; - Burned?: boolean; - NextCheckin?: number; - TasksCount?: number; - TasksCountCompleted?: number; - }) { - const message = new Beacon({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.UUID != null) { - message.UUID = data.UUID; - } - if (data.Username != null) { - message.Username = data.Username; - } - if (data.UID != null) { - message.UID = data.UID; - } - if (data.GID != null) { - message.GID = data.GID; - } - if (data.OS != null) { - message.OS = data.OS; - } - if (data.Arch != null) { - message.Arch = data.Arch; - } - if (data.Transport != null) { - message.Transport = data.Transport; - } - if (data.RemoteAddress != null) { - message.RemoteAddress = data.RemoteAddress; - } - if (data.PID != null) { - message.PID = data.PID; - } - if (data.Filename != null) { - message.Filename = data.Filename; - } - if (data.LastCheckin != null) { - message.LastCheckin = data.LastCheckin; - } - if (data.ActiveC2 != null) { - message.ActiveC2 = data.ActiveC2; - } - if (data.Version != null) { - message.Version = data.Version; - } - if (data.Evasion != null) { - message.Evasion = data.Evasion; - } - if (data.IsDead != null) { - message.IsDead = data.IsDead; - } - if (data.ProxyURL != null) { - message.ProxyURL = data.ProxyURL; - } - if (data.ReconnectInterval != null) { - message.ReconnectInterval = data.ReconnectInterval; - } - if (data.Interval != null) { - message.Interval = data.Interval; - } - if (data.Jitter != null) { - message.Jitter = data.Jitter; - } - if (data.Burned != null) { - message.Burned = data.Burned; - } - if (data.NextCheckin != null) { - message.NextCheckin = data.NextCheckin; - } - if (data.TasksCount != null) { - message.TasksCount = data.TasksCount; - } - if (data.TasksCountCompleted != null) { - message.TasksCountCompleted = data.TasksCountCompleted; - } - return message; - } - toObject() { - const data: { - ID?: string; - Name?: string; - Hostname?: string; - UUID?: string; - Username?: string; - UID?: string; - GID?: string; - OS?: string; - Arch?: string; - Transport?: string; - RemoteAddress?: string; - PID?: number; - Filename?: string; - LastCheckin?: number; - ActiveC2?: string; - Version?: string; - Evasion?: boolean; - IsDead?: boolean; - ProxyURL?: string; - ReconnectInterval?: number; - Interval?: number; - Jitter?: number; - Burned?: boolean; - NextCheckin?: number; - TasksCount?: number; - TasksCountCompleted?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.UUID != null) { - data.UUID = this.UUID; - } - if (this.Username != null) { - data.Username = this.Username; - } - if (this.UID != null) { - data.UID = this.UID; - } - if (this.GID != null) { - data.GID = this.GID; - } - if (this.OS != null) { - data.OS = this.OS; - } - if (this.Arch != null) { - data.Arch = this.Arch; - } - if (this.Transport != null) { - data.Transport = this.Transport; - } - if (this.RemoteAddress != null) { - data.RemoteAddress = this.RemoteAddress; - } - if (this.PID != null) { - data.PID = this.PID; - } - if (this.Filename != null) { - data.Filename = this.Filename; - } - if (this.LastCheckin != null) { - data.LastCheckin = this.LastCheckin; - } - if (this.ActiveC2 != null) { - data.ActiveC2 = this.ActiveC2; - } - if (this.Version != null) { - data.Version = this.Version; - } - if (this.Evasion != null) { - data.Evasion = this.Evasion; - } - if (this.IsDead != null) { - data.IsDead = this.IsDead; - } - if (this.ProxyURL != null) { - data.ProxyURL = this.ProxyURL; - } - if (this.ReconnectInterval != null) { - data.ReconnectInterval = this.ReconnectInterval; - } - if (this.Interval != null) { - data.Interval = this.Interval; - } - if (this.Jitter != null) { - data.Jitter = this.Jitter; - } - if (this.Burned != null) { - data.Burned = this.Burned; - } - if (this.NextCheckin != null) { - data.NextCheckin = this.NextCheckin; - } - if (this.TasksCount != null) { - data.TasksCount = this.TasksCount; - } - if (this.TasksCountCompleted != null) { - data.TasksCountCompleted = this.TasksCountCompleted; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(3, this.Hostname); - if (typeof this.UUID === "string" && this.UUID.length) - writer.writeString(4, this.UUID); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(5, this.Username); - if (typeof this.UID === "string" && this.UID.length) - writer.writeString(6, this.UID); - if (typeof this.GID === "string" && this.GID.length) - writer.writeString(7, this.GID); - if (typeof this.OS === "string" && this.OS.length) - writer.writeString(8, this.OS); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(9, this.Arch); - if (typeof this.Transport === "string" && this.Transport.length) - writer.writeString(10, this.Transport); - if (typeof this.RemoteAddress === "string" && this.RemoteAddress.length) - writer.writeString(11, this.RemoteAddress); - if (this.PID !== undefined) - writer.writeInt32(12, this.PID); - if (typeof this.Filename === "string" && this.Filename.length) - writer.writeString(13, this.Filename); - if (this.LastCheckin !== undefined) - writer.writeInt64(14, this.LastCheckin); - if (typeof this.ActiveC2 === "string" && this.ActiveC2.length) - writer.writeString(15, this.ActiveC2); - if (typeof this.Version === "string" && this.Version.length) - writer.writeString(16, this.Version); - if (this.Evasion !== undefined) - writer.writeBool(17, this.Evasion); - if (this.IsDead !== undefined) - writer.writeBool(18, this.IsDead); - if (typeof this.ProxyURL === "string" && this.ProxyURL.length) - writer.writeString(20, this.ProxyURL); - if (this.ReconnectInterval !== undefined) - writer.writeInt64(21, this.ReconnectInterval); - if (this.Interval !== undefined) - writer.writeInt64(22, this.Interval); - if (this.Jitter !== undefined) - writer.writeInt64(23, this.Jitter); - if (this.Burned !== undefined) - writer.writeBool(24, this.Burned); - if (this.NextCheckin !== undefined) - writer.writeInt64(25, this.NextCheckin); - if (this.TasksCount !== undefined) - writer.writeInt64(26, this.TasksCount); - if (this.TasksCountCompleted !== undefined) - writer.writeInt64(27, this.TasksCountCompleted); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Beacon { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Beacon(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.Name = reader.readString(); - break; - case 3: - message.Hostname = reader.readString(); - break; - case 4: - message.UUID = reader.readString(); - break; - case 5: - message.Username = reader.readString(); - break; - case 6: - message.UID = reader.readString(); - break; - case 7: - message.GID = reader.readString(); - break; - case 8: - message.OS = reader.readString(); - break; - case 9: - message.Arch = reader.readString(); - break; - case 10: - message.Transport = reader.readString(); - break; - case 11: - message.RemoteAddress = reader.readString(); - break; - case 12: - message.PID = reader.readInt32(); - break; - case 13: - message.Filename = reader.readString(); - break; - case 14: - message.LastCheckin = reader.readInt64(); - break; - case 15: - message.ActiveC2 = reader.readString(); - break; - case 16: - message.Version = reader.readString(); - break; - case 17: - message.Evasion = reader.readBool(); - break; - case 18: - message.IsDead = reader.readBool(); - break; - case 20: - message.ProxyURL = reader.readString(); - break; - case 21: - message.ReconnectInterval = reader.readInt64(); - break; - case 22: - message.Interval = reader.readInt64(); - break; - case 23: - message.Jitter = reader.readInt64(); - break; - case 24: - message.Burned = reader.readBool(); - break; - case 25: - message.NextCheckin = reader.readInt64(); - break; - case 26: - message.TasksCount = reader.readInt64(); - break; - case 27: - message.TasksCountCompleted = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Beacon { - return Beacon.deserialize(bytes); - } - } - export class Beacons extends pb_1.Message { - constructor(data?: any[] | { - Beacons?: Beacon[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Beacons" in data && data.Beacons != undefined) { - this.Beacons = data.Beacons; - } - } - } - get Beacons() { - return pb_1.Message.getRepeatedWrapperField(this, Beacon, 2) as Beacon[]; - } - set Beacons(value: Beacon[]) { - pb_1.Message.setRepeatedWrapperField(this, 2, value); - } - static fromObject(data: { - Beacons?: ReturnType[]; - }) { - const message = new Beacons({}); - if (data.Beacons != null) { - message.Beacons = data.Beacons.map(item => Beacon.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Beacons?: ReturnType[]; - } = {}; - if (this.Beacons != null) { - data.Beacons = this.Beacons.map((item: Beacon) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Beacons !== undefined) - writer.writeRepeatedMessage(2, this.Beacons, (item: Beacon) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Beacons { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Beacons(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 2: - reader.readMessage(message.Beacons, () => pb_1.Message.addToRepeatedWrapperField(message, 2, Beacon.deserialize(reader), Beacon)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Beacons { - return Beacons.deserialize(bytes); - } - } - export class BeaconTask extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - BeaconID?: string; - CreatedAt?: number; - State?: string; - SentAt?: number; - CompletedAt?: number; - Request?: Uint8Array; - Response?: Uint8Array; - Description?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("BeaconID" in data && data.BeaconID != undefined) { - this.BeaconID = data.BeaconID; - } - if ("CreatedAt" in data && data.CreatedAt != undefined) { - this.CreatedAt = data.CreatedAt; - } - if ("State" in data && data.State != undefined) { - this.State = data.State; - } - if ("SentAt" in data && data.SentAt != undefined) { - this.SentAt = data.SentAt; - } - if ("CompletedAt" in data && data.CompletedAt != undefined) { - this.CompletedAt = data.CompletedAt; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - if ("Description" in data && data.Description != undefined) { - this.Description = data.Description; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get BeaconID() { - return pb_1.Message.getField(this, 2) as string; - } - set BeaconID(value: string) { - pb_1.Message.setField(this, 2, value); - } - get CreatedAt() { - return pb_1.Message.getField(this, 3) as number; - } - set CreatedAt(value: number) { - pb_1.Message.setField(this, 3, value); - } - get State() { - return pb_1.Message.getField(this, 4) as string; - } - set State(value: string) { - pb_1.Message.setField(this, 4, value); - } - get SentAt() { - return pb_1.Message.getField(this, 5) as number; - } - set SentAt(value: number) { - pb_1.Message.setField(this, 5, value); - } - get CompletedAt() { - return pb_1.Message.getField(this, 6) as number; - } - set CompletedAt(value: number) { - pb_1.Message.setField(this, 6, value); - } - get Request() { - return pb_1.Message.getField(this, 7) as Uint8Array; - } - set Request(value: Uint8Array) { - pb_1.Message.setField(this, 7, value); - } - get Response() { - return pb_1.Message.getField(this, 8) as Uint8Array; - } - set Response(value: Uint8Array) { - pb_1.Message.setField(this, 8, value); - } - get Description() { - return pb_1.Message.getField(this, 9) as string; - } - set Description(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - ID?: string; - BeaconID?: string; - CreatedAt?: number; - State?: string; - SentAt?: number; - CompletedAt?: number; - Request?: Uint8Array; - Response?: Uint8Array; - Description?: string; - }) { - const message = new BeaconTask({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.BeaconID != null) { - message.BeaconID = data.BeaconID; - } - if (data.CreatedAt != null) { - message.CreatedAt = data.CreatedAt; - } - if (data.State != null) { - message.State = data.State; - } - if (data.SentAt != null) { - message.SentAt = data.SentAt; - } - if (data.CompletedAt != null) { - message.CompletedAt = data.CompletedAt; - } - if (data.Request != null) { - message.Request = data.Request; - } - if (data.Response != null) { - message.Response = data.Response; - } - if (data.Description != null) { - message.Description = data.Description; - } - return message; - } - toObject() { - const data: { - ID?: string; - BeaconID?: string; - CreatedAt?: number; - State?: string; - SentAt?: number; - CompletedAt?: number; - Request?: Uint8Array; - Response?: Uint8Array; - Description?: string; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.BeaconID != null) { - data.BeaconID = this.BeaconID; - } - if (this.CreatedAt != null) { - data.CreatedAt = this.CreatedAt; - } - if (this.State != null) { - data.State = this.State; - } - if (this.SentAt != null) { - data.SentAt = this.SentAt; - } - if (this.CompletedAt != null) { - data.CompletedAt = this.CompletedAt; - } - if (this.Request != null) { - data.Request = this.Request; - } - if (this.Response != null) { - data.Response = this.Response; - } - if (this.Description != null) { - data.Description = this.Description; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (typeof this.BeaconID === "string" && this.BeaconID.length) - writer.writeString(2, this.BeaconID); - if (this.CreatedAt !== undefined) - writer.writeInt64(3, this.CreatedAt); - if (typeof this.State === "string" && this.State.length) - writer.writeString(4, this.State); - if (this.SentAt !== undefined) - writer.writeInt64(5, this.SentAt); - if (this.CompletedAt !== undefined) - writer.writeInt64(6, this.CompletedAt); - if (this.Request !== undefined) - writer.writeBytes(7, this.Request); - if (this.Response !== undefined) - writer.writeBytes(8, this.Response); - if (typeof this.Description === "string" && this.Description.length) - writer.writeString(9, this.Description); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BeaconTask { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BeaconTask(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.BeaconID = reader.readString(); - break; - case 3: - message.CreatedAt = reader.readInt64(); - break; - case 4: - message.State = reader.readString(); - break; - case 5: - message.SentAt = reader.readInt64(); - break; - case 6: - message.CompletedAt = reader.readInt64(); - break; - case 7: - message.Request = reader.readBytes(); - break; - case 8: - message.Response = reader.readBytes(); - break; - case 9: - message.Description = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): BeaconTask { - return BeaconTask.deserialize(bytes); - } - } - export class BeaconTasks extends pb_1.Message { - constructor(data?: any[] | { - BeaconID?: string; - Tasks?: BeaconTask[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("BeaconID" in data && data.BeaconID != undefined) { - this.BeaconID = data.BeaconID; - } - if ("Tasks" in data && data.Tasks != undefined) { - this.Tasks = data.Tasks; - } - } - } - get BeaconID() { - return pb_1.Message.getField(this, 1) as string; - } - set BeaconID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Tasks() { - return pb_1.Message.getRepeatedWrapperField(this, BeaconTask, 2) as BeaconTask[]; - } - set Tasks(value: BeaconTask[]) { - pb_1.Message.setRepeatedWrapperField(this, 2, value); - } - static fromObject(data: { - BeaconID?: string; - Tasks?: ReturnType[]; - }) { - const message = new BeaconTasks({}); - if (data.BeaconID != null) { - message.BeaconID = data.BeaconID; - } - if (data.Tasks != null) { - message.Tasks = data.Tasks.map(item => BeaconTask.fromObject(item)); - } - return message; - } - toObject() { - const data: { - BeaconID?: string; - Tasks?: ReturnType[]; - } = {}; - if (this.BeaconID != null) { - data.BeaconID = this.BeaconID; - } - if (this.Tasks != null) { - data.Tasks = this.Tasks.map((item: BeaconTask) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.BeaconID === "string" && this.BeaconID.length) - writer.writeString(1, this.BeaconID); - if (this.Tasks !== undefined) - writer.writeRepeatedMessage(2, this.Tasks, (item: BeaconTask) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BeaconTasks { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BeaconTasks(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.BeaconID = reader.readString(); - break; - case 2: - reader.readMessage(message.Tasks, () => pb_1.Message.addToRepeatedWrapperField(message, 2, BeaconTask.deserialize(reader), BeaconTask)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): BeaconTasks { - return BeaconTasks.deserialize(bytes); - } - } - export class ImplantC2 extends pb_1.Message { - constructor(data?: any[] | { - Priority?: number; - URL?: string; - Options?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Priority" in data && data.Priority != undefined) { - this.Priority = data.Priority; - } - if ("URL" in data && data.URL != undefined) { - this.URL = data.URL; - } - if ("Options" in data && data.Options != undefined) { - this.Options = data.Options; - } - } - } - get Priority() { - return pb_1.Message.getField(this, 1) as number; - } - set Priority(value: number) { - pb_1.Message.setField(this, 1, value); - } - get URL() { - return pb_1.Message.getField(this, 2) as string; - } - set URL(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Options() { - return pb_1.Message.getField(this, 3) as string; - } - set Options(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - Priority?: number; - URL?: string; - Options?: string; - }) { - const message = new ImplantC2({}); - if (data.Priority != null) { - message.Priority = data.Priority; - } - if (data.URL != null) { - message.URL = data.URL; - } - if (data.Options != null) { - message.Options = data.Options; - } - return message; - } - toObject() { - const data: { - Priority?: number; - URL?: string; - Options?: string; - } = {}; - if (this.Priority != null) { - data.Priority = this.Priority; - } - if (this.URL != null) { - data.URL = this.URL; - } - if (this.Options != null) { - data.Options = this.Options; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Priority !== undefined) - writer.writeUint32(1, this.Priority); - if (typeof this.URL === "string" && this.URL.length) - writer.writeString(2, this.URL); - if (typeof this.Options === "string" && this.Options.length) - writer.writeString(3, this.Options); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImplantC2 { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImplantC2(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Priority = reader.readUint32(); - break; - case 2: - message.URL = reader.readString(); - break; - case 3: - message.Options = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImplantC2 { - return ImplantC2.deserialize(bytes); - } - } - export class ImplantConfig extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - IsBeacon?: boolean; - BeaconInterval?: number; - BeaconJitter?: number; - GOOS?: string; - GOARCH?: string; - Name?: string; - Debug?: boolean; - Evasion?: boolean; - ObfuscateSymbols?: boolean; - MtlsCACert?: string; - MtlsCert?: string; - MtlsKey?: string; - ECCPublicKey?: string; - ECCPrivateKey?: string; - ECCPublicKeySignature?: string; - MinisignServerPublicKey?: string; - WGImplantPrivKey?: string; - WGServerPubKey?: string; - WGPeerTunIP?: string; - WGKeyExchangePort?: number; - WGTcpCommsPort?: number; - ReconnectInterval?: number; - MaxConnectionErrors?: number; - PollTimeout?: number; - C2?: ImplantC2[]; - CanaryDomains?: string[]; - ConnectionStrategy?: string; - LimitDomainJoined?: boolean; - LimitDatetime?: string; - LimitHostname?: string; - LimitUsername?: string; - LimitFileExists?: string; - Format?: OutputFormat; - IsSharedLib?: boolean; - FileName?: string; - IsService?: boolean; - IsShellcode?: boolean; - RunAtLoad?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [50, 51], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("IsBeacon" in data && data.IsBeacon != undefined) { - this.IsBeacon = data.IsBeacon; - } - if ("BeaconInterval" in data && data.BeaconInterval != undefined) { - this.BeaconInterval = data.BeaconInterval; - } - if ("BeaconJitter" in data && data.BeaconJitter != undefined) { - this.BeaconJitter = data.BeaconJitter; - } - if ("GOOS" in data && data.GOOS != undefined) { - this.GOOS = data.GOOS; - } - if ("GOARCH" in data && data.GOARCH != undefined) { - this.GOARCH = data.GOARCH; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Debug" in data && data.Debug != undefined) { - this.Debug = data.Debug; - } - if ("Evasion" in data && data.Evasion != undefined) { - this.Evasion = data.Evasion; - } - if ("ObfuscateSymbols" in data && data.ObfuscateSymbols != undefined) { - this.ObfuscateSymbols = data.ObfuscateSymbols; - } - if ("MtlsCACert" in data && data.MtlsCACert != undefined) { - this.MtlsCACert = data.MtlsCACert; - } - if ("MtlsCert" in data && data.MtlsCert != undefined) { - this.MtlsCert = data.MtlsCert; - } - if ("MtlsKey" in data && data.MtlsKey != undefined) { - this.MtlsKey = data.MtlsKey; - } - if ("ECCPublicKey" in data && data.ECCPublicKey != undefined) { - this.ECCPublicKey = data.ECCPublicKey; - } - if ("ECCPrivateKey" in data && data.ECCPrivateKey != undefined) { - this.ECCPrivateKey = data.ECCPrivateKey; - } - if ("ECCPublicKeySignature" in data && data.ECCPublicKeySignature != undefined) { - this.ECCPublicKeySignature = data.ECCPublicKeySignature; - } - if ("MinisignServerPublicKey" in data && data.MinisignServerPublicKey != undefined) { - this.MinisignServerPublicKey = data.MinisignServerPublicKey; - } - if ("WGImplantPrivKey" in data && data.WGImplantPrivKey != undefined) { - this.WGImplantPrivKey = data.WGImplantPrivKey; - } - if ("WGServerPubKey" in data && data.WGServerPubKey != undefined) { - this.WGServerPubKey = data.WGServerPubKey; - } - if ("WGPeerTunIP" in data && data.WGPeerTunIP != undefined) { - this.WGPeerTunIP = data.WGPeerTunIP; - } - if ("WGKeyExchangePort" in data && data.WGKeyExchangePort != undefined) { - this.WGKeyExchangePort = data.WGKeyExchangePort; - } - if ("WGTcpCommsPort" in data && data.WGTcpCommsPort != undefined) { - this.WGTcpCommsPort = data.WGTcpCommsPort; - } - if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) { - this.ReconnectInterval = data.ReconnectInterval; - } - if ("MaxConnectionErrors" in data && data.MaxConnectionErrors != undefined) { - this.MaxConnectionErrors = data.MaxConnectionErrors; - } - if ("PollTimeout" in data && data.PollTimeout != undefined) { - this.PollTimeout = data.PollTimeout; - } - if ("C2" in data && data.C2 != undefined) { - this.C2 = data.C2; - } - if ("CanaryDomains" in data && data.CanaryDomains != undefined) { - this.CanaryDomains = data.CanaryDomains; - } - if ("ConnectionStrategy" in data && data.ConnectionStrategy != undefined) { - this.ConnectionStrategy = data.ConnectionStrategy; - } - if ("LimitDomainJoined" in data && data.LimitDomainJoined != undefined) { - this.LimitDomainJoined = data.LimitDomainJoined; - } - if ("LimitDatetime" in data && data.LimitDatetime != undefined) { - this.LimitDatetime = data.LimitDatetime; - } - if ("LimitHostname" in data && data.LimitHostname != undefined) { - this.LimitHostname = data.LimitHostname; - } - if ("LimitUsername" in data && data.LimitUsername != undefined) { - this.LimitUsername = data.LimitUsername; - } - if ("LimitFileExists" in data && data.LimitFileExists != undefined) { - this.LimitFileExists = data.LimitFileExists; - } - if ("Format" in data && data.Format != undefined) { - this.Format = data.Format; - } - if ("IsSharedLib" in data && data.IsSharedLib != undefined) { - this.IsSharedLib = data.IsSharedLib; - } - if ("FileName" in data && data.FileName != undefined) { - this.FileName = data.FileName; - } - if ("IsService" in data && data.IsService != undefined) { - this.IsService = data.IsService; - } - if ("IsShellcode" in data && data.IsShellcode != undefined) { - this.IsShellcode = data.IsShellcode; - } - if ("RunAtLoad" in data && data.RunAtLoad != undefined) { - this.RunAtLoad = data.RunAtLoad; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get IsBeacon() { - return pb_1.Message.getField(this, 2) as boolean; - } - set IsBeacon(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get BeaconInterval() { - return pb_1.Message.getField(this, 3) as number; - } - set BeaconInterval(value: number) { - pb_1.Message.setField(this, 3, value); - } - get BeaconJitter() { - return pb_1.Message.getField(this, 4) as number; - } - set BeaconJitter(value: number) { - pb_1.Message.setField(this, 4, value); - } - get GOOS() { - return pb_1.Message.getField(this, 5) as string; - } - set GOOS(value: string) { - pb_1.Message.setField(this, 5, value); - } - get GOARCH() { - return pb_1.Message.getField(this, 6) as string; - } - set GOARCH(value: string) { - pb_1.Message.setField(this, 6, value); - } - get Name() { - return pb_1.Message.getField(this, 7) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 7, value); - } - get Debug() { - return pb_1.Message.getField(this, 8) as boolean; - } - set Debug(value: boolean) { - pb_1.Message.setField(this, 8, value); - } - get Evasion() { - return pb_1.Message.getField(this, 9) as boolean; - } - set Evasion(value: boolean) { - pb_1.Message.setField(this, 9, value); - } - get ObfuscateSymbols() { - return pb_1.Message.getField(this, 10) as boolean; - } - set ObfuscateSymbols(value: boolean) { - pb_1.Message.setField(this, 10, value); - } - get MtlsCACert() { - return pb_1.Message.getField(this, 20) as string; - } - set MtlsCACert(value: string) { - pb_1.Message.setField(this, 20, value); - } - get MtlsCert() { - return pb_1.Message.getField(this, 21) as string; - } - set MtlsCert(value: string) { - pb_1.Message.setField(this, 21, value); - } - get MtlsKey() { - return pb_1.Message.getField(this, 22) as string; - } - set MtlsKey(value: string) { - pb_1.Message.setField(this, 22, value); - } - get ECCPublicKey() { - return pb_1.Message.getField(this, 23) as string; - } - set ECCPublicKey(value: string) { - pb_1.Message.setField(this, 23, value); - } - get ECCPrivateKey() { - return pb_1.Message.getField(this, 24) as string; - } - set ECCPrivateKey(value: string) { - pb_1.Message.setField(this, 24, value); - } - get ECCPublicKeySignature() { - return pb_1.Message.getField(this, 25) as string; - } - set ECCPublicKeySignature(value: string) { - pb_1.Message.setField(this, 25, value); - } - get MinisignServerPublicKey() { - return pb_1.Message.getField(this, 26) as string; - } - set MinisignServerPublicKey(value: string) { - pb_1.Message.setField(this, 26, value); - } - get WGImplantPrivKey() { - return pb_1.Message.getField(this, 30) as string; - } - set WGImplantPrivKey(value: string) { - pb_1.Message.setField(this, 30, value); - } - get WGServerPubKey() { - return pb_1.Message.getField(this, 31) as string; - } - set WGServerPubKey(value: string) { - pb_1.Message.setField(this, 31, value); - } - get WGPeerTunIP() { - return pb_1.Message.getField(this, 32) as string; - } - set WGPeerTunIP(value: string) { - pb_1.Message.setField(this, 32, value); - } - get WGKeyExchangePort() { - return pb_1.Message.getField(this, 33) as number; - } - set WGKeyExchangePort(value: number) { - pb_1.Message.setField(this, 33, value); - } - get WGTcpCommsPort() { - return pb_1.Message.getField(this, 34) as number; - } - set WGTcpCommsPort(value: number) { - pb_1.Message.setField(this, 34, value); - } - get ReconnectInterval() { - return pb_1.Message.getField(this, 40) as number; - } - set ReconnectInterval(value: number) { - pb_1.Message.setField(this, 40, value); - } - get MaxConnectionErrors() { - return pb_1.Message.getField(this, 41) as number; - } - set MaxConnectionErrors(value: number) { - pb_1.Message.setField(this, 41, value); - } - get PollTimeout() { - return pb_1.Message.getField(this, 42) as number; - } - set PollTimeout(value: number) { - pb_1.Message.setField(this, 42, value); - } - get C2() { - return pb_1.Message.getRepeatedWrapperField(this, ImplantC2, 50) as ImplantC2[]; - } - set C2(value: ImplantC2[]) { - pb_1.Message.setRepeatedWrapperField(this, 50, value); - } - get CanaryDomains() { - return pb_1.Message.getField(this, 51) as string[]; - } - set CanaryDomains(value: string[]) { - pb_1.Message.setField(this, 51, value); - } - get ConnectionStrategy() { - return pb_1.Message.getField(this, 52) as string; - } - set ConnectionStrategy(value: string) { - pb_1.Message.setField(this, 52, value); - } - get LimitDomainJoined() { - return pb_1.Message.getField(this, 60) as boolean; - } - set LimitDomainJoined(value: boolean) { - pb_1.Message.setField(this, 60, value); - } - get LimitDatetime() { - return pb_1.Message.getField(this, 61) as string; - } - set LimitDatetime(value: string) { - pb_1.Message.setField(this, 61, value); - } - get LimitHostname() { - return pb_1.Message.getField(this, 62) as string; - } - set LimitHostname(value: string) { - pb_1.Message.setField(this, 62, value); - } - get LimitUsername() { - return pb_1.Message.getField(this, 63) as string; - } - set LimitUsername(value: string) { - pb_1.Message.setField(this, 63, value); - } - get LimitFileExists() { - return pb_1.Message.getField(this, 64) as string; - } - set LimitFileExists(value: string) { - pb_1.Message.setField(this, 64, value); - } - get Format() { - return pb_1.Message.getField(this, 100) as OutputFormat; - } - set Format(value: OutputFormat) { - pb_1.Message.setField(this, 100, value); - } - get IsSharedLib() { - return pb_1.Message.getField(this, 101) as boolean; - } - set IsSharedLib(value: boolean) { - pb_1.Message.setField(this, 101, value); - } - get FileName() { - return pb_1.Message.getField(this, 102) as string; - } - set FileName(value: string) { - pb_1.Message.setField(this, 102, value); - } - get IsService() { - return pb_1.Message.getField(this, 103) as boolean; - } - set IsService(value: boolean) { - pb_1.Message.setField(this, 103, value); - } - get IsShellcode() { - return pb_1.Message.getField(this, 104) as boolean; - } - set IsShellcode(value: boolean) { - pb_1.Message.setField(this, 104, value); - } - get RunAtLoad() { - return pb_1.Message.getField(this, 105) as boolean; - } - set RunAtLoad(value: boolean) { - pb_1.Message.setField(this, 105, value); - } - static fromObject(data: { - ID?: string; - IsBeacon?: boolean; - BeaconInterval?: number; - BeaconJitter?: number; - GOOS?: string; - GOARCH?: string; - Name?: string; - Debug?: boolean; - Evasion?: boolean; - ObfuscateSymbols?: boolean; - MtlsCACert?: string; - MtlsCert?: string; - MtlsKey?: string; - ECCPublicKey?: string; - ECCPrivateKey?: string; - ECCPublicKeySignature?: string; - MinisignServerPublicKey?: string; - WGImplantPrivKey?: string; - WGServerPubKey?: string; - WGPeerTunIP?: string; - WGKeyExchangePort?: number; - WGTcpCommsPort?: number; - ReconnectInterval?: number; - MaxConnectionErrors?: number; - PollTimeout?: number; - C2?: ReturnType[]; - CanaryDomains?: string[]; - ConnectionStrategy?: string; - LimitDomainJoined?: boolean; - LimitDatetime?: string; - LimitHostname?: string; - LimitUsername?: string; - LimitFileExists?: string; - Format?: OutputFormat; - IsSharedLib?: boolean; - FileName?: string; - IsService?: boolean; - IsShellcode?: boolean; - RunAtLoad?: boolean; - }) { - const message = new ImplantConfig({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.IsBeacon != null) { - message.IsBeacon = data.IsBeacon; - } - if (data.BeaconInterval != null) { - message.BeaconInterval = data.BeaconInterval; - } - if (data.BeaconJitter != null) { - message.BeaconJitter = data.BeaconJitter; - } - if (data.GOOS != null) { - message.GOOS = data.GOOS; - } - if (data.GOARCH != null) { - message.GOARCH = data.GOARCH; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Debug != null) { - message.Debug = data.Debug; - } - if (data.Evasion != null) { - message.Evasion = data.Evasion; - } - if (data.ObfuscateSymbols != null) { - message.ObfuscateSymbols = data.ObfuscateSymbols; - } - if (data.MtlsCACert != null) { - message.MtlsCACert = data.MtlsCACert; - } - if (data.MtlsCert != null) { - message.MtlsCert = data.MtlsCert; - } - if (data.MtlsKey != null) { - message.MtlsKey = data.MtlsKey; - } - if (data.ECCPublicKey != null) { - message.ECCPublicKey = data.ECCPublicKey; - } - if (data.ECCPrivateKey != null) { - message.ECCPrivateKey = data.ECCPrivateKey; - } - if (data.ECCPublicKeySignature != null) { - message.ECCPublicKeySignature = data.ECCPublicKeySignature; - } - if (data.MinisignServerPublicKey != null) { - message.MinisignServerPublicKey = data.MinisignServerPublicKey; - } - if (data.WGImplantPrivKey != null) { - message.WGImplantPrivKey = data.WGImplantPrivKey; - } - if (data.WGServerPubKey != null) { - message.WGServerPubKey = data.WGServerPubKey; - } - if (data.WGPeerTunIP != null) { - message.WGPeerTunIP = data.WGPeerTunIP; - } - if (data.WGKeyExchangePort != null) { - message.WGKeyExchangePort = data.WGKeyExchangePort; - } - if (data.WGTcpCommsPort != null) { - message.WGTcpCommsPort = data.WGTcpCommsPort; - } - if (data.ReconnectInterval != null) { - message.ReconnectInterval = data.ReconnectInterval; - } - if (data.MaxConnectionErrors != null) { - message.MaxConnectionErrors = data.MaxConnectionErrors; - } - if (data.PollTimeout != null) { - message.PollTimeout = data.PollTimeout; - } - if (data.C2 != null) { - message.C2 = data.C2.map(item => ImplantC2.fromObject(item)); - } - if (data.CanaryDomains != null) { - message.CanaryDomains = data.CanaryDomains; - } - if (data.ConnectionStrategy != null) { - message.ConnectionStrategy = data.ConnectionStrategy; - } - if (data.LimitDomainJoined != null) { - message.LimitDomainJoined = data.LimitDomainJoined; - } - if (data.LimitDatetime != null) { - message.LimitDatetime = data.LimitDatetime; - } - if (data.LimitHostname != null) { - message.LimitHostname = data.LimitHostname; - } - if (data.LimitUsername != null) { - message.LimitUsername = data.LimitUsername; - } - if (data.LimitFileExists != null) { - message.LimitFileExists = data.LimitFileExists; - } - if (data.Format != null) { - message.Format = data.Format; - } - if (data.IsSharedLib != null) { - message.IsSharedLib = data.IsSharedLib; - } - if (data.FileName != null) { - message.FileName = data.FileName; - } - if (data.IsService != null) { - message.IsService = data.IsService; - } - if (data.IsShellcode != null) { - message.IsShellcode = data.IsShellcode; - } - if (data.RunAtLoad != null) { - message.RunAtLoad = data.RunAtLoad; - } - return message; - } - toObject() { - const data: { - ID?: string; - IsBeacon?: boolean; - BeaconInterval?: number; - BeaconJitter?: number; - GOOS?: string; - GOARCH?: string; - Name?: string; - Debug?: boolean; - Evasion?: boolean; - ObfuscateSymbols?: boolean; - MtlsCACert?: string; - MtlsCert?: string; - MtlsKey?: string; - ECCPublicKey?: string; - ECCPrivateKey?: string; - ECCPublicKeySignature?: string; - MinisignServerPublicKey?: string; - WGImplantPrivKey?: string; - WGServerPubKey?: string; - WGPeerTunIP?: string; - WGKeyExchangePort?: number; - WGTcpCommsPort?: number; - ReconnectInterval?: number; - MaxConnectionErrors?: number; - PollTimeout?: number; - C2?: ReturnType[]; - CanaryDomains?: string[]; - ConnectionStrategy?: string; - LimitDomainJoined?: boolean; - LimitDatetime?: string; - LimitHostname?: string; - LimitUsername?: string; - LimitFileExists?: string; - Format?: OutputFormat; - IsSharedLib?: boolean; - FileName?: string; - IsService?: boolean; - IsShellcode?: boolean; - RunAtLoad?: boolean; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.IsBeacon != null) { - data.IsBeacon = this.IsBeacon; - } - if (this.BeaconInterval != null) { - data.BeaconInterval = this.BeaconInterval; - } - if (this.BeaconJitter != null) { - data.BeaconJitter = this.BeaconJitter; - } - if (this.GOOS != null) { - data.GOOS = this.GOOS; - } - if (this.GOARCH != null) { - data.GOARCH = this.GOARCH; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Debug != null) { - data.Debug = this.Debug; - } - if (this.Evasion != null) { - data.Evasion = this.Evasion; - } - if (this.ObfuscateSymbols != null) { - data.ObfuscateSymbols = this.ObfuscateSymbols; - } - if (this.MtlsCACert != null) { - data.MtlsCACert = this.MtlsCACert; - } - if (this.MtlsCert != null) { - data.MtlsCert = this.MtlsCert; - } - if (this.MtlsKey != null) { - data.MtlsKey = this.MtlsKey; - } - if (this.ECCPublicKey != null) { - data.ECCPublicKey = this.ECCPublicKey; - } - if (this.ECCPrivateKey != null) { - data.ECCPrivateKey = this.ECCPrivateKey; - } - if (this.ECCPublicKeySignature != null) { - data.ECCPublicKeySignature = this.ECCPublicKeySignature; - } - if (this.MinisignServerPublicKey != null) { - data.MinisignServerPublicKey = this.MinisignServerPublicKey; - } - if (this.WGImplantPrivKey != null) { - data.WGImplantPrivKey = this.WGImplantPrivKey; - } - if (this.WGServerPubKey != null) { - data.WGServerPubKey = this.WGServerPubKey; - } - if (this.WGPeerTunIP != null) { - data.WGPeerTunIP = this.WGPeerTunIP; - } - if (this.WGKeyExchangePort != null) { - data.WGKeyExchangePort = this.WGKeyExchangePort; - } - if (this.WGTcpCommsPort != null) { - data.WGTcpCommsPort = this.WGTcpCommsPort; - } - if (this.ReconnectInterval != null) { - data.ReconnectInterval = this.ReconnectInterval; - } - if (this.MaxConnectionErrors != null) { - data.MaxConnectionErrors = this.MaxConnectionErrors; - } - if (this.PollTimeout != null) { - data.PollTimeout = this.PollTimeout; - } - if (this.C2 != null) { - data.C2 = this.C2.map((item: ImplantC2) => item.toObject()); - } - if (this.CanaryDomains != null) { - data.CanaryDomains = this.CanaryDomains; - } - if (this.ConnectionStrategy != null) { - data.ConnectionStrategy = this.ConnectionStrategy; - } - if (this.LimitDomainJoined != null) { - data.LimitDomainJoined = this.LimitDomainJoined; - } - if (this.LimitDatetime != null) { - data.LimitDatetime = this.LimitDatetime; - } - if (this.LimitHostname != null) { - data.LimitHostname = this.LimitHostname; - } - if (this.LimitUsername != null) { - data.LimitUsername = this.LimitUsername; - } - if (this.LimitFileExists != null) { - data.LimitFileExists = this.LimitFileExists; - } - if (this.Format != null) { - data.Format = this.Format; - } - if (this.IsSharedLib != null) { - data.IsSharedLib = this.IsSharedLib; - } - if (this.FileName != null) { - data.FileName = this.FileName; - } - if (this.IsService != null) { - data.IsService = this.IsService; - } - if (this.IsShellcode != null) { - data.IsShellcode = this.IsShellcode; - } - if (this.RunAtLoad != null) { - data.RunAtLoad = this.RunAtLoad; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (this.IsBeacon !== undefined) - writer.writeBool(2, this.IsBeacon); - if (this.BeaconInterval !== undefined) - writer.writeInt64(3, this.BeaconInterval); - if (this.BeaconJitter !== undefined) - writer.writeInt64(4, this.BeaconJitter); - if (typeof this.GOOS === "string" && this.GOOS.length) - writer.writeString(5, this.GOOS); - if (typeof this.GOARCH === "string" && this.GOARCH.length) - writer.writeString(6, this.GOARCH); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(7, this.Name); - if (this.Debug !== undefined) - writer.writeBool(8, this.Debug); - if (this.Evasion !== undefined) - writer.writeBool(9, this.Evasion); - if (this.ObfuscateSymbols !== undefined) - writer.writeBool(10, this.ObfuscateSymbols); - if (typeof this.MtlsCACert === "string" && this.MtlsCACert.length) - writer.writeString(20, this.MtlsCACert); - if (typeof this.MtlsCert === "string" && this.MtlsCert.length) - writer.writeString(21, this.MtlsCert); - if (typeof this.MtlsKey === "string" && this.MtlsKey.length) - writer.writeString(22, this.MtlsKey); - if (typeof this.ECCPublicKey === "string" && this.ECCPublicKey.length) - writer.writeString(23, this.ECCPublicKey); - if (typeof this.ECCPrivateKey === "string" && this.ECCPrivateKey.length) - writer.writeString(24, this.ECCPrivateKey); - if (typeof this.ECCPublicKeySignature === "string" && this.ECCPublicKeySignature.length) - writer.writeString(25, this.ECCPublicKeySignature); - if (typeof this.MinisignServerPublicKey === "string" && this.MinisignServerPublicKey.length) - writer.writeString(26, this.MinisignServerPublicKey); - if (typeof this.WGImplantPrivKey === "string" && this.WGImplantPrivKey.length) - writer.writeString(30, this.WGImplantPrivKey); - if (typeof this.WGServerPubKey === "string" && this.WGServerPubKey.length) - writer.writeString(31, this.WGServerPubKey); - if (typeof this.WGPeerTunIP === "string" && this.WGPeerTunIP.length) - writer.writeString(32, this.WGPeerTunIP); - if (this.WGKeyExchangePort !== undefined) - writer.writeUint32(33, this.WGKeyExchangePort); - if (this.WGTcpCommsPort !== undefined) - writer.writeUint32(34, this.WGTcpCommsPort); - if (this.ReconnectInterval !== undefined) - writer.writeInt64(40, this.ReconnectInterval); - if (this.MaxConnectionErrors !== undefined) - writer.writeUint32(41, this.MaxConnectionErrors); - if (this.PollTimeout !== undefined) - writer.writeInt64(42, this.PollTimeout); - if (this.C2 !== undefined) - writer.writeRepeatedMessage(50, this.C2, (item: ImplantC2) => item.serialize(writer)); - if (this.CanaryDomains !== undefined) - writer.writeRepeatedString(51, this.CanaryDomains); - if (typeof this.ConnectionStrategy === "string" && this.ConnectionStrategy.length) - writer.writeString(52, this.ConnectionStrategy); - if (this.LimitDomainJoined !== undefined) - writer.writeBool(60, this.LimitDomainJoined); - if (typeof this.LimitDatetime === "string" && this.LimitDatetime.length) - writer.writeString(61, this.LimitDatetime); - if (typeof this.LimitHostname === "string" && this.LimitHostname.length) - writer.writeString(62, this.LimitHostname); - if (typeof this.LimitUsername === "string" && this.LimitUsername.length) - writer.writeString(63, this.LimitUsername); - if (typeof this.LimitFileExists === "string" && this.LimitFileExists.length) - writer.writeString(64, this.LimitFileExists); - if (this.Format !== undefined) - writer.writeEnum(100, this.Format); - if (this.IsSharedLib !== undefined) - writer.writeBool(101, this.IsSharedLib); - if (typeof this.FileName === "string" && this.FileName.length) - writer.writeString(102, this.FileName); - if (this.IsService !== undefined) - writer.writeBool(103, this.IsService); - if (this.IsShellcode !== undefined) - writer.writeBool(104, this.IsShellcode); - if (this.RunAtLoad !== undefined) - writer.writeBool(105, this.RunAtLoad); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImplantConfig { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImplantConfig(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.IsBeacon = reader.readBool(); - break; - case 3: - message.BeaconInterval = reader.readInt64(); - break; - case 4: - message.BeaconJitter = reader.readInt64(); - break; - case 5: - message.GOOS = reader.readString(); - break; - case 6: - message.GOARCH = reader.readString(); - break; - case 7: - message.Name = reader.readString(); - break; - case 8: - message.Debug = reader.readBool(); - break; - case 9: - message.Evasion = reader.readBool(); - break; - case 10: - message.ObfuscateSymbols = reader.readBool(); - break; - case 20: - message.MtlsCACert = reader.readString(); - break; - case 21: - message.MtlsCert = reader.readString(); - break; - case 22: - message.MtlsKey = reader.readString(); - break; - case 23: - message.ECCPublicKey = reader.readString(); - break; - case 24: - message.ECCPrivateKey = reader.readString(); - break; - case 25: - message.ECCPublicKeySignature = reader.readString(); - break; - case 26: - message.MinisignServerPublicKey = reader.readString(); - break; - case 30: - message.WGImplantPrivKey = reader.readString(); - break; - case 31: - message.WGServerPubKey = reader.readString(); - break; - case 32: - message.WGPeerTunIP = reader.readString(); - break; - case 33: - message.WGKeyExchangePort = reader.readUint32(); - break; - case 34: - message.WGTcpCommsPort = reader.readUint32(); - break; - case 40: - message.ReconnectInterval = reader.readInt64(); - break; - case 41: - message.MaxConnectionErrors = reader.readUint32(); - break; - case 42: - message.PollTimeout = reader.readInt64(); - break; - case 50: - reader.readMessage(message.C2, () => pb_1.Message.addToRepeatedWrapperField(message, 50, ImplantC2.deserialize(reader), ImplantC2)); - break; - case 51: - pb_1.Message.addToRepeatedField(message, 51, reader.readString()); - break; - case 52: - message.ConnectionStrategy = reader.readString(); - break; - case 60: - message.LimitDomainJoined = reader.readBool(); - break; - case 61: - message.LimitDatetime = reader.readString(); - break; - case 62: - message.LimitHostname = reader.readString(); - break; - case 63: - message.LimitUsername = reader.readString(); - break; - case 64: - message.LimitFileExists = reader.readString(); - break; - case 100: - message.Format = reader.readEnum(); - break; - case 101: - message.IsSharedLib = reader.readBool(); - break; - case 102: - message.FileName = reader.readString(); - break; - case 103: - message.IsService = reader.readBool(); - break; - case 104: - message.IsShellcode = reader.readBool(); - break; - case 105: - message.RunAtLoad = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImplantConfig { - return ImplantConfig.deserialize(bytes); - } - } - export class ImplantBuilds extends pb_1.Message { - constructor(data?: any[] | { - Configs?: Map; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Configs" in data && data.Configs != undefined) { - this.Configs = data.Configs; - } - } - if (!this.Configs) - this.Configs = new Map(); - } - get Configs() { - return pb_1.Message.getField(this, 1) as any as Map; - } - set Configs(value: Map) { - pb_1.Message.setField(this, 1, value as any); - } - static fromObject(data: { - Configs?: { - [key: string]: ReturnType; - }; - }) { - const message = new ImplantBuilds({}); - if (typeof data.Configs == "object") { - message.Configs = new Map(Object.entries(data.Configs).map(([key, value]) => [key, ImplantConfig.fromObject(value)])); - } - return message; - } - toObject() { - const data: { - Configs?: { - [key: string]: ReturnType; - }; - } = {}; - if (this.Configs.size > 0) { - data.Configs = Object.fromEntries(Array.from(this.Configs).map(([key, value]) => [key, value.toObject()])); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - for (const [key, value] of this.Configs) { - writer.writeMessage(1, this.Configs, () => { - writer.writeString(1, key); - writer.writeMessage(2, value, () => value.serialize(writer)); - }); - } - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImplantBuilds { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImplantBuilds(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.Configs as any, reader, reader.readString, () => { - let value; - reader.readMessage(message, () => value = ImplantConfig.deserialize(reader)); - return value; - })); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImplantBuilds { - return ImplantBuilds.deserialize(bytes); - } - } - export class CompilerTarget extends pb_1.Message { - constructor(data?: any[] | { - GOOS?: string; - GOARCH?: string; - Format?: OutputFormat; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("GOOS" in data && data.GOOS != undefined) { - this.GOOS = data.GOOS; - } - if ("GOARCH" in data && data.GOARCH != undefined) { - this.GOARCH = data.GOARCH; - } - if ("Format" in data && data.Format != undefined) { - this.Format = data.Format; - } - } - } - get GOOS() { - return pb_1.Message.getField(this, 1) as string; - } - set GOOS(value: string) { - pb_1.Message.setField(this, 1, value); - } - get GOARCH() { - return pb_1.Message.getField(this, 2) as string; - } - set GOARCH(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Format() { - return pb_1.Message.getField(this, 3) as OutputFormat; - } - set Format(value: OutputFormat) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - GOOS?: string; - GOARCH?: string; - Format?: OutputFormat; - }) { - const message = new CompilerTarget({}); - if (data.GOOS != null) { - message.GOOS = data.GOOS; - } - if (data.GOARCH != null) { - message.GOARCH = data.GOARCH; - } - if (data.Format != null) { - message.Format = data.Format; - } - return message; - } - toObject() { - const data: { - GOOS?: string; - GOARCH?: string; - Format?: OutputFormat; - } = {}; - if (this.GOOS != null) { - data.GOOS = this.GOOS; - } - if (this.GOARCH != null) { - data.GOARCH = this.GOARCH; - } - if (this.Format != null) { - data.Format = this.Format; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.GOOS === "string" && this.GOOS.length) - writer.writeString(1, this.GOOS); - if (typeof this.GOARCH === "string" && this.GOARCH.length) - writer.writeString(2, this.GOARCH); - if (this.Format !== undefined) - writer.writeEnum(3, this.Format); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CompilerTarget { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CompilerTarget(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.GOOS = reader.readString(); - break; - case 2: - message.GOARCH = reader.readString(); - break; - case 3: - message.Format = reader.readEnum(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CompilerTarget { - return CompilerTarget.deserialize(bytes); - } - } - export class CrossCompiler extends pb_1.Message { - constructor(data?: any[] | { - TargetGOOS?: string; - TargetGOARCH?: string; - CCPath?: string; - CXXPath?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("TargetGOOS" in data && data.TargetGOOS != undefined) { - this.TargetGOOS = data.TargetGOOS; - } - if ("TargetGOARCH" in data && data.TargetGOARCH != undefined) { - this.TargetGOARCH = data.TargetGOARCH; - } - if ("CCPath" in data && data.CCPath != undefined) { - this.CCPath = data.CCPath; - } - if ("CXXPath" in data && data.CXXPath != undefined) { - this.CXXPath = data.CXXPath; - } - } - } - get TargetGOOS() { - return pb_1.Message.getField(this, 1) as string; - } - set TargetGOOS(value: string) { - pb_1.Message.setField(this, 1, value); - } - get TargetGOARCH() { - return pb_1.Message.getField(this, 2) as string; - } - set TargetGOARCH(value: string) { - pb_1.Message.setField(this, 2, value); - } - get CCPath() { - return pb_1.Message.getField(this, 3) as string; - } - set CCPath(value: string) { - pb_1.Message.setField(this, 3, value); - } - get CXXPath() { - return pb_1.Message.getField(this, 4) as string; - } - set CXXPath(value: string) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - TargetGOOS?: string; - TargetGOARCH?: string; - CCPath?: string; - CXXPath?: string; - }) { - const message = new CrossCompiler({}); - if (data.TargetGOOS != null) { - message.TargetGOOS = data.TargetGOOS; - } - if (data.TargetGOARCH != null) { - message.TargetGOARCH = data.TargetGOARCH; - } - if (data.CCPath != null) { - message.CCPath = data.CCPath; - } - if (data.CXXPath != null) { - message.CXXPath = data.CXXPath; - } - return message; - } - toObject() { - const data: { - TargetGOOS?: string; - TargetGOARCH?: string; - CCPath?: string; - CXXPath?: string; - } = {}; - if (this.TargetGOOS != null) { - data.TargetGOOS = this.TargetGOOS; - } - if (this.TargetGOARCH != null) { - data.TargetGOARCH = this.TargetGOARCH; - } - if (this.CCPath != null) { - data.CCPath = this.CCPath; - } - if (this.CXXPath != null) { - data.CXXPath = this.CXXPath; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.TargetGOOS === "string" && this.TargetGOOS.length) - writer.writeString(1, this.TargetGOOS); - if (typeof this.TargetGOARCH === "string" && this.TargetGOARCH.length) - writer.writeString(2, this.TargetGOARCH); - if (typeof this.CCPath === "string" && this.CCPath.length) - writer.writeString(3, this.CCPath); - if (typeof this.CXXPath === "string" && this.CXXPath.length) - writer.writeString(4, this.CXXPath); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CrossCompiler { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CrossCompiler(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.TargetGOOS = reader.readString(); - break; - case 2: - message.TargetGOARCH = reader.readString(); - break; - case 3: - message.CCPath = reader.readString(); - break; - case 4: - message.CXXPath = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CrossCompiler { - return CrossCompiler.deserialize(bytes); - } - } - export class Compiler extends pb_1.Message { - constructor(data?: any[] | { - GOOS?: string; - GOARCH?: string; - Targets?: CompilerTarget[]; - CrossCompilers?: CrossCompiler[]; - UnsupportedTargets?: CompilerTarget[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3, 4, 5], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("GOOS" in data && data.GOOS != undefined) { - this.GOOS = data.GOOS; - } - if ("GOARCH" in data && data.GOARCH != undefined) { - this.GOARCH = data.GOARCH; - } - if ("Targets" in data && data.Targets != undefined) { - this.Targets = data.Targets; - } - if ("CrossCompilers" in data && data.CrossCompilers != undefined) { - this.CrossCompilers = data.CrossCompilers; - } - if ("UnsupportedTargets" in data && data.UnsupportedTargets != undefined) { - this.UnsupportedTargets = data.UnsupportedTargets; - } - } - } - get GOOS() { - return pb_1.Message.getField(this, 1) as string; - } - set GOOS(value: string) { - pb_1.Message.setField(this, 1, value); - } - get GOARCH() { - return pb_1.Message.getField(this, 2) as string; - } - set GOARCH(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Targets() { - return pb_1.Message.getRepeatedWrapperField(this, CompilerTarget, 3) as CompilerTarget[]; - } - set Targets(value: CompilerTarget[]) { - pb_1.Message.setRepeatedWrapperField(this, 3, value); - } - get CrossCompilers() { - return pb_1.Message.getRepeatedWrapperField(this, CrossCompiler, 4) as CrossCompiler[]; - } - set CrossCompilers(value: CrossCompiler[]) { - pb_1.Message.setRepeatedWrapperField(this, 4, value); - } - get UnsupportedTargets() { - return pb_1.Message.getRepeatedWrapperField(this, CompilerTarget, 5) as CompilerTarget[]; - } - set UnsupportedTargets(value: CompilerTarget[]) { - pb_1.Message.setRepeatedWrapperField(this, 5, value); - } - static fromObject(data: { - GOOS?: string; - GOARCH?: string; - Targets?: ReturnType[]; - CrossCompilers?: ReturnType[]; - UnsupportedTargets?: ReturnType[]; - }) { - const message = new Compiler({}); - if (data.GOOS != null) { - message.GOOS = data.GOOS; - } - if (data.GOARCH != null) { - message.GOARCH = data.GOARCH; - } - if (data.Targets != null) { - message.Targets = data.Targets.map(item => CompilerTarget.fromObject(item)); - } - if (data.CrossCompilers != null) { - message.CrossCompilers = data.CrossCompilers.map(item => CrossCompiler.fromObject(item)); - } - if (data.UnsupportedTargets != null) { - message.UnsupportedTargets = data.UnsupportedTargets.map(item => CompilerTarget.fromObject(item)); - } - return message; - } - toObject() { - const data: { - GOOS?: string; - GOARCH?: string; - Targets?: ReturnType[]; - CrossCompilers?: ReturnType[]; - UnsupportedTargets?: ReturnType[]; - } = {}; - if (this.GOOS != null) { - data.GOOS = this.GOOS; - } - if (this.GOARCH != null) { - data.GOARCH = this.GOARCH; - } - if (this.Targets != null) { - data.Targets = this.Targets.map((item: CompilerTarget) => item.toObject()); - } - if (this.CrossCompilers != null) { - data.CrossCompilers = this.CrossCompilers.map((item: CrossCompiler) => item.toObject()); - } - if (this.UnsupportedTargets != null) { - data.UnsupportedTargets = this.UnsupportedTargets.map((item: CompilerTarget) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.GOOS === "string" && this.GOOS.length) - writer.writeString(1, this.GOOS); - if (typeof this.GOARCH === "string" && this.GOARCH.length) - writer.writeString(2, this.GOARCH); - if (this.Targets !== undefined) - writer.writeRepeatedMessage(3, this.Targets, (item: CompilerTarget) => item.serialize(writer)); - if (this.CrossCompilers !== undefined) - writer.writeRepeatedMessage(4, this.CrossCompilers, (item: CrossCompiler) => item.serialize(writer)); - if (this.UnsupportedTargets !== undefined) - writer.writeRepeatedMessage(5, this.UnsupportedTargets, (item: CompilerTarget) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Compiler { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Compiler(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.GOOS = reader.readString(); - break; - case 2: - message.GOARCH = reader.readString(); - break; - case 3: - reader.readMessage(message.Targets, () => pb_1.Message.addToRepeatedWrapperField(message, 3, CompilerTarget.deserialize(reader), CompilerTarget)); - break; - case 4: - reader.readMessage(message.CrossCompilers, () => pb_1.Message.addToRepeatedWrapperField(message, 4, CrossCompiler.deserialize(reader), CrossCompiler)); - break; - case 5: - reader.readMessage(message.UnsupportedTargets, () => pb_1.Message.addToRepeatedWrapperField(message, 5, CompilerTarget.deserialize(reader), CompilerTarget)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Compiler { - return Compiler.deserialize(bytes); - } - } - export class DeleteReq extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Name?: string; - }) { - const message = new DeleteReq({}); - if (data.Name != null) { - message.Name = data.Name; - } - return message; - } - toObject() { - const data: { - Name?: string; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DeleteReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DeleteReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DeleteReq { - return DeleteReq.deserialize(bytes); - } - } - export class DNSCanary extends pb_1.Message { - constructor(data?: any[] | { - ImplantName?: string; - Domain?: string; - Triggered?: boolean; - FirstTriggered?: string; - LatestTrigger?: string; - Count?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ImplantName" in data && data.ImplantName != undefined) { - this.ImplantName = data.ImplantName; - } - if ("Domain" in data && data.Domain != undefined) { - this.Domain = data.Domain; - } - if ("Triggered" in data && data.Triggered != undefined) { - this.Triggered = data.Triggered; - } - if ("FirstTriggered" in data && data.FirstTriggered != undefined) { - this.FirstTriggered = data.FirstTriggered; - } - if ("LatestTrigger" in data && data.LatestTrigger != undefined) { - this.LatestTrigger = data.LatestTrigger; - } - if ("Count" in data && data.Count != undefined) { - this.Count = data.Count; - } - } - } - get ImplantName() { - return pb_1.Message.getField(this, 1) as string; - } - set ImplantName(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Domain() { - return pb_1.Message.getField(this, 2) as string; - } - set Domain(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Triggered() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Triggered(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get FirstTriggered() { - return pb_1.Message.getField(this, 4) as string; - } - set FirstTriggered(value: string) { - pb_1.Message.setField(this, 4, value); - } - get LatestTrigger() { - return pb_1.Message.getField(this, 5) as string; - } - set LatestTrigger(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Count() { - return pb_1.Message.getField(this, 6) as number; - } - set Count(value: number) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - ImplantName?: string; - Domain?: string; - Triggered?: boolean; - FirstTriggered?: string; - LatestTrigger?: string; - Count?: number; - }) { - const message = new DNSCanary({}); - if (data.ImplantName != null) { - message.ImplantName = data.ImplantName; - } - if (data.Domain != null) { - message.Domain = data.Domain; - } - if (data.Triggered != null) { - message.Triggered = data.Triggered; - } - if (data.FirstTriggered != null) { - message.FirstTriggered = data.FirstTriggered; - } - if (data.LatestTrigger != null) { - message.LatestTrigger = data.LatestTrigger; - } - if (data.Count != null) { - message.Count = data.Count; - } - return message; - } - toObject() { - const data: { - ImplantName?: string; - Domain?: string; - Triggered?: boolean; - FirstTriggered?: string; - LatestTrigger?: string; - Count?: number; - } = {}; - if (this.ImplantName != null) { - data.ImplantName = this.ImplantName; - } - if (this.Domain != null) { - data.Domain = this.Domain; - } - if (this.Triggered != null) { - data.Triggered = this.Triggered; - } - if (this.FirstTriggered != null) { - data.FirstTriggered = this.FirstTriggered; - } - if (this.LatestTrigger != null) { - data.LatestTrigger = this.LatestTrigger; - } - if (this.Count != null) { - data.Count = this.Count; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ImplantName === "string" && this.ImplantName.length) - writer.writeString(1, this.ImplantName); - if (typeof this.Domain === "string" && this.Domain.length) - writer.writeString(2, this.Domain); - if (this.Triggered !== undefined) - writer.writeBool(3, this.Triggered); - if (typeof this.FirstTriggered === "string" && this.FirstTriggered.length) - writer.writeString(4, this.FirstTriggered); - if (typeof this.LatestTrigger === "string" && this.LatestTrigger.length) - writer.writeString(5, this.LatestTrigger); - if (this.Count !== undefined) - writer.writeUint32(6, this.Count); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSCanary { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSCanary(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ImplantName = reader.readString(); - break; - case 2: - message.Domain = reader.readString(); - break; - case 3: - message.Triggered = reader.readBool(); - break; - case 4: - message.FirstTriggered = reader.readString(); - break; - case 5: - message.LatestTrigger = reader.readString(); - break; - case 6: - message.Count = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSCanary { - return DNSCanary.deserialize(bytes); - } - } - export class Canaries extends pb_1.Message { - constructor(data?: any[] | { - Canaries?: DNSCanary[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Canaries" in data && data.Canaries != undefined) { - this.Canaries = data.Canaries; - } - } - } - get Canaries() { - return pb_1.Message.getRepeatedWrapperField(this, DNSCanary, 1) as DNSCanary[]; - } - set Canaries(value: DNSCanary[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Canaries?: ReturnType[]; - }) { - const message = new Canaries({}); - if (data.Canaries != null) { - message.Canaries = data.Canaries.map(item => DNSCanary.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Canaries?: ReturnType[]; - } = {}; - if (this.Canaries != null) { - data.Canaries = this.Canaries.map((item: DNSCanary) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Canaries !== undefined) - writer.writeRepeatedMessage(1, this.Canaries, (item: DNSCanary) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Canaries { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Canaries(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Canaries, () => pb_1.Message.addToRepeatedWrapperField(message, 1, DNSCanary.deserialize(reader), DNSCanary)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Canaries { - return Canaries.deserialize(bytes); - } - } - export class UniqueWGIP extends pb_1.Message { - constructor(data?: any[] | { - IP?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("IP" in data && data.IP != undefined) { - this.IP = data.IP; - } - } - } - get IP() { - return pb_1.Message.getField(this, 1) as string; - } - set IP(value: string) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - IP?: string; - }) { - const message = new UniqueWGIP({}); - if (data.IP != null) { - message.IP = data.IP; - } - return message; - } - toObject() { - const data: { - IP?: string; - } = {}; - if (this.IP != null) { - data.IP = this.IP; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.IP === "string" && this.IP.length) - writer.writeString(1, this.IP); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UniqueWGIP { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UniqueWGIP(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.IP = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): UniqueWGIP { - return UniqueWGIP.deserialize(bytes); - } - } - export class ImplantProfile extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Config?: ImplantConfig; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Config" in data && data.Config != undefined) { - this.Config = data.Config; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Config() { - return pb_1.Message.getWrapperField(this, ImplantConfig, 2) as ImplantConfig; - } - set Config(value: ImplantConfig) { - pb_1.Message.setWrapperField(this, 2, value); - } - static fromObject(data: { - Name?: string; - Config?: ReturnType; - }) { - const message = new ImplantProfile({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Config != null) { - message.Config = ImplantConfig.fromObject(data.Config); - } - return message; - } - toObject() { - const data: { - Name?: string; - Config?: ReturnType; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Config != null) { - data.Config = this.Config.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Config !== undefined) - writer.writeMessage(2, this.Config, () => this.Config.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImplantProfile { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImplantProfile(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - reader.readMessage(message.Config, () => message.Config = ImplantConfig.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImplantProfile { - return ImplantProfile.deserialize(bytes); - } - } - export class ImplantProfiles extends pb_1.Message { - constructor(data?: any[] | { - Profiles?: ImplantProfile[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Profiles" in data && data.Profiles != undefined) { - this.Profiles = data.Profiles; - } - } - } - get Profiles() { - return pb_1.Message.getRepeatedWrapperField(this, ImplantProfile, 1) as ImplantProfile[]; - } - set Profiles(value: ImplantProfile[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Profiles?: ReturnType[]; - }) { - const message = new ImplantProfiles({}); - if (data.Profiles != null) { - message.Profiles = data.Profiles.map(item => ImplantProfile.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Profiles?: ReturnType[]; - } = {}; - if (this.Profiles != null) { - data.Profiles = this.Profiles.map((item: ImplantProfile) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Profiles !== undefined) - writer.writeRepeatedMessage(1, this.Profiles, (item: ImplantProfile) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImplantProfiles { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImplantProfiles(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Profiles, () => pb_1.Message.addToRepeatedWrapperField(message, 1, ImplantProfile.deserialize(reader), ImplantProfile)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImplantProfiles { - return ImplantProfiles.deserialize(bytes); - } - } - export class RegenerateReq extends pb_1.Message { - constructor(data?: any[] | { - ImplantName?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ImplantName" in data && data.ImplantName != undefined) { - this.ImplantName = data.ImplantName; - } - } - } - get ImplantName() { - return pb_1.Message.getField(this, 1) as string; - } - set ImplantName(value: string) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - ImplantName?: string; - }) { - const message = new RegenerateReq({}); - if (data.ImplantName != null) { - message.ImplantName = data.ImplantName; - } - return message; - } - toObject() { - const data: { - ImplantName?: string; - } = {}; - if (this.ImplantName != null) { - data.ImplantName = this.ImplantName; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ImplantName === "string" && this.ImplantName.length) - writer.writeString(1, this.ImplantName); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegenerateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegenerateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ImplantName = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegenerateReq { - return RegenerateReq.deserialize(bytes); - } - } - export class Job extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Name?: string; - Description?: string; - Protocol?: string; - Port?: number; - Domains?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Description" in data && data.Description != undefined) { - this.Description = data.Description; - } - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Domains" in data && data.Domains != undefined) { - this.Domains = data.Domains; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Description() { - return pb_1.Message.getField(this, 3) as string; - } - set Description(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Protocol() { - return pb_1.Message.getField(this, 4) as string; - } - set Protocol(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Port() { - return pb_1.Message.getField(this, 5) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 5, value); - } - get Domains() { - return pb_1.Message.getField(this, 6) as string[]; - } - set Domains(value: string[]) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - ID?: number; - Name?: string; - Description?: string; - Protocol?: string; - Port?: number; - Domains?: string[]; - }) { - const message = new Job({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Description != null) { - message.Description = data.Description; - } - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Domains != null) { - message.Domains = data.Domains; - } - return message; - } - toObject() { - const data: { - ID?: number; - Name?: string; - Description?: string; - Protocol?: string; - Port?: number; - Domains?: string[]; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Description != null) { - data.Description = this.Description; - } - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Domains != null) { - data.Domains = this.Domains; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (typeof this.Description === "string" && this.Description.length) - writer.writeString(3, this.Description); - if (typeof this.Protocol === "string" && this.Protocol.length) - writer.writeString(4, this.Protocol); - if (this.Port !== undefined) - writer.writeUint32(5, this.Port); - if (this.Domains !== undefined) - writer.writeRepeatedString(6, this.Domains); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Job { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Job(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - case 2: - message.Name = reader.readString(); - break; - case 3: - message.Description = reader.readString(); - break; - case 4: - message.Protocol = reader.readString(); - break; - case 5: - message.Port = reader.readUint32(); - break; - case 6: - pb_1.Message.addToRepeatedField(message, 6, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Job { - return Job.deserialize(bytes); - } - } - export class Jobs extends pb_1.Message { - constructor(data?: any[] | { - Active?: Job[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Active" in data && data.Active != undefined) { - this.Active = data.Active; - } - } - } - get Active() { - return pb_1.Message.getRepeatedWrapperField(this, Job, 1) as Job[]; - } - set Active(value: Job[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Active?: ReturnType[]; - }) { - const message = new Jobs({}); - if (data.Active != null) { - message.Active = data.Active.map(item => Job.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Active?: ReturnType[]; - } = {}; - if (this.Active != null) { - data.Active = this.Active.map((item: Job) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Active !== undefined) - writer.writeRepeatedMessage(1, this.Active, (item: Job) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Jobs { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Jobs(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Active, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Job.deserialize(reader), Job)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Jobs { - return Jobs.deserialize(bytes); - } - } - export class KillJobReq extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - ID?: number; - }) { - const message = new KillJobReq({}); - if (data.ID != null) { - message.ID = data.ID; - } - return message; - } - toObject() { - const data: { - ID?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KillJobReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new KillJobReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): KillJobReq { - return KillJobReq.deserialize(bytes); - } - } - export class KillJob extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Success?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Success" in data && data.Success != undefined) { - this.Success = data.Success; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Success() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Success(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - ID?: number; - Success?: boolean; - }) { - const message = new KillJob({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Success != null) { - message.Success = data.Success; - } - return message; - } - toObject() { - const data: { - ID?: number; - Success?: boolean; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Success != null) { - data.Success = this.Success; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (this.Success !== undefined) - writer.writeBool(2, this.Success); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KillJob { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new KillJob(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - case 2: - message.Success = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): KillJob { - return KillJob.deserialize(bytes); - } - } - export class MTLSListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Host?: string; - Port?: number; - Persistent?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Persistent" in data && data.Persistent != undefined) { - this.Persistent = data.Persistent; - } - } - } - get Host() { - return pb_1.Message.getField(this, 1) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Port() { - return pb_1.Message.getField(this, 2) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Persistent() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Persistent(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - Host?: string; - Port?: number; - Persistent?: boolean; - }) { - const message = new MTLSListenerReq({}); - if (data.Host != null) { - message.Host = data.Host; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Persistent != null) { - message.Persistent = data.Persistent; - } - return message; - } - toObject() { - const data: { - Host?: string; - Port?: number; - Persistent?: boolean; - } = {}; - if (this.Host != null) { - data.Host = this.Host; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Persistent != null) { - data.Persistent = this.Persistent; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(1, this.Host); - if (this.Port !== undefined) - writer.writeUint32(2, this.Port); - if (this.Persistent !== undefined) - writer.writeBool(3, this.Persistent); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MTLSListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MTLSListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Host = reader.readString(); - break; - case 2: - message.Port = reader.readUint32(); - break; - case 3: - message.Persistent = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MTLSListenerReq { - return MTLSListenerReq.deserialize(bytes); - } - } - export class MTLSListener extends pb_1.Message { - constructor(data?: any[] | { - JobID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("JobID" in data && data.JobID != undefined) { - this.JobID = data.JobID; - } - } - } - get JobID() { - return pb_1.Message.getField(this, 1) as number; - } - set JobID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - JobID?: number; - }) { - const message = new MTLSListener({}); - if (data.JobID != null) { - message.JobID = data.JobID; - } - return message; - } - toObject() { - const data: { - JobID?: number; - } = {}; - if (this.JobID != null) { - data.JobID = this.JobID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.JobID !== undefined) - writer.writeUint32(1, this.JobID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MTLSListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MTLSListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.JobID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MTLSListener { - return MTLSListener.deserialize(bytes); - } - } - export class WGListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Host?: string; - Port?: number; - TunIP?: string; - NPort?: number; - KeyPort?: number; - Persistent?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("TunIP" in data && data.TunIP != undefined) { - this.TunIP = data.TunIP; - } - if ("NPort" in data && data.NPort != undefined) { - this.NPort = data.NPort; - } - if ("KeyPort" in data && data.KeyPort != undefined) { - this.KeyPort = data.KeyPort; - } - if ("Persistent" in data && data.Persistent != undefined) { - this.Persistent = data.Persistent; - } - } - } - get Host() { - return pb_1.Message.getField(this, 6) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 6, value); - } - get Port() { - return pb_1.Message.getField(this, 1) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 1, value); - } - get TunIP() { - return pb_1.Message.getField(this, 2) as string; - } - set TunIP(value: string) { - pb_1.Message.setField(this, 2, value); - } - get NPort() { - return pb_1.Message.getField(this, 3) as number; - } - set NPort(value: number) { - pb_1.Message.setField(this, 3, value); - } - get KeyPort() { - return pb_1.Message.getField(this, 4) as number; - } - set KeyPort(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Persistent() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Persistent(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - static fromObject(data: { - Host?: string; - Port?: number; - TunIP?: string; - NPort?: number; - KeyPort?: number; - Persistent?: boolean; - }) { - const message = new WGListenerReq({}); - if (data.Host != null) { - message.Host = data.Host; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.TunIP != null) { - message.TunIP = data.TunIP; - } - if (data.NPort != null) { - message.NPort = data.NPort; - } - if (data.KeyPort != null) { - message.KeyPort = data.KeyPort; - } - if (data.Persistent != null) { - message.Persistent = data.Persistent; - } - return message; - } - toObject() { - const data: { - Host?: string; - Port?: number; - TunIP?: string; - NPort?: number; - KeyPort?: number; - Persistent?: boolean; - } = {}; - if (this.Host != null) { - data.Host = this.Host; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.TunIP != null) { - data.TunIP = this.TunIP; - } - if (this.NPort != null) { - data.NPort = this.NPort; - } - if (this.KeyPort != null) { - data.KeyPort = this.KeyPort; - } - if (this.Persistent != null) { - data.Persistent = this.Persistent; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(6, this.Host); - if (this.Port !== undefined) - writer.writeUint32(1, this.Port); - if (typeof this.TunIP === "string" && this.TunIP.length) - writer.writeString(2, this.TunIP); - if (this.NPort !== undefined) - writer.writeUint32(3, this.NPort); - if (this.KeyPort !== undefined) - writer.writeUint32(4, this.KeyPort); - if (this.Persistent !== undefined) - writer.writeBool(5, this.Persistent); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 6: - message.Host = reader.readString(); - break; - case 1: - message.Port = reader.readUint32(); - break; - case 2: - message.TunIP = reader.readString(); - break; - case 3: - message.NPort = reader.readUint32(); - break; - case 4: - message.KeyPort = reader.readUint32(); - break; - case 5: - message.Persistent = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGListenerReq { - return WGListenerReq.deserialize(bytes); - } - } - export class WGListener extends pb_1.Message { - constructor(data?: any[] | { - JobID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("JobID" in data && data.JobID != undefined) { - this.JobID = data.JobID; - } - } - } - get JobID() { - return pb_1.Message.getField(this, 1) as number; - } - set JobID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - JobID?: number; - }) { - const message = new WGListener({}); - if (data.JobID != null) { - message.JobID = data.JobID; - } - return message; - } - toObject() { - const data: { - JobID?: number; - } = {}; - if (this.JobID != null) { - data.JobID = this.JobID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.JobID !== undefined) - writer.writeUint32(1, this.JobID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.JobID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGListener { - return WGListener.deserialize(bytes); - } - } - export class DNSListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Domains?: string[]; - Canaries?: boolean; - Host?: string; - Port?: number; - Persistent?: boolean; - EnforceOTP?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Domains" in data && data.Domains != undefined) { - this.Domains = data.Domains; - } - if ("Canaries" in data && data.Canaries != undefined) { - this.Canaries = data.Canaries; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Persistent" in data && data.Persistent != undefined) { - this.Persistent = data.Persistent; - } - if ("EnforceOTP" in data && data.EnforceOTP != undefined) { - this.EnforceOTP = data.EnforceOTP; - } - } - } - get Domains() { - return pb_1.Message.getField(this, 1) as string[]; - } - set Domains(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get Canaries() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Canaries(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Host() { - return pb_1.Message.getField(this, 3) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Port() { - return pb_1.Message.getField(this, 4) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Persistent() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Persistent(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get EnforceOTP() { - return pb_1.Message.getField(this, 6) as boolean; - } - set EnforceOTP(value: boolean) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - Domains?: string[]; - Canaries?: boolean; - Host?: string; - Port?: number; - Persistent?: boolean; - EnforceOTP?: boolean; - }) { - const message = new DNSListenerReq({}); - if (data.Domains != null) { - message.Domains = data.Domains; - } - if (data.Canaries != null) { - message.Canaries = data.Canaries; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Persistent != null) { - message.Persistent = data.Persistent; - } - if (data.EnforceOTP != null) { - message.EnforceOTP = data.EnforceOTP; - } - return message; - } - toObject() { - const data: { - Domains?: string[]; - Canaries?: boolean; - Host?: string; - Port?: number; - Persistent?: boolean; - EnforceOTP?: boolean; - } = {}; - if (this.Domains != null) { - data.Domains = this.Domains; - } - if (this.Canaries != null) { - data.Canaries = this.Canaries; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Persistent != null) { - data.Persistent = this.Persistent; - } - if (this.EnforceOTP != null) { - data.EnforceOTP = this.EnforceOTP; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Domains !== undefined) - writer.writeRepeatedString(1, this.Domains); - if (this.Canaries !== undefined) - writer.writeBool(2, this.Canaries); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(3, this.Host); - if (this.Port !== undefined) - writer.writeUint32(4, this.Port); - if (this.Persistent !== undefined) - writer.writeBool(5, this.Persistent); - if (this.EnforceOTP !== undefined) - writer.writeBool(6, this.EnforceOTP); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 2: - message.Canaries = reader.readBool(); - break; - case 3: - message.Host = reader.readString(); - break; - case 4: - message.Port = reader.readUint32(); - break; - case 5: - message.Persistent = reader.readBool(); - break; - case 6: - message.EnforceOTP = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSListenerReq { - return DNSListenerReq.deserialize(bytes); - } - } - export class DNSListener extends pb_1.Message { - constructor(data?: any[] | { - JobID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("JobID" in data && data.JobID != undefined) { - this.JobID = data.JobID; - } - } - } - get JobID() { - return pb_1.Message.getField(this, 1) as number; - } - set JobID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - JobID?: number; - }) { - const message = new DNSListener({}); - if (data.JobID != null) { - message.JobID = data.JobID; - } - return message; - } - toObject() { - const data: { - JobID?: number; - } = {}; - if (this.JobID != null) { - data.JobID = this.JobID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.JobID !== undefined) - writer.writeUint32(1, this.JobID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.JobID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSListener { - return DNSListener.deserialize(bytes); - } - } - export class HTTPListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Domain?: string; - Host?: string; - Port?: number; - Secure?: boolean; - Website?: string; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - Persistent?: boolean; - EnforceOTP?: boolean; - LongPollTimeout?: number; - LongPollJitter?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Domain" in data && data.Domain != undefined) { - this.Domain = data.Domain; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Secure" in data && data.Secure != undefined) { - this.Secure = data.Secure; - } - if ("Website" in data && data.Website != undefined) { - this.Website = data.Website; - } - if ("Cert" in data && data.Cert != undefined) { - this.Cert = data.Cert; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("ACME" in data && data.ACME != undefined) { - this.ACME = data.ACME; - } - if ("Persistent" in data && data.Persistent != undefined) { - this.Persistent = data.Persistent; - } - if ("EnforceOTP" in data && data.EnforceOTP != undefined) { - this.EnforceOTP = data.EnforceOTP; - } - if ("LongPollTimeout" in data && data.LongPollTimeout != undefined) { - this.LongPollTimeout = data.LongPollTimeout; - } - if ("LongPollJitter" in data && data.LongPollJitter != undefined) { - this.LongPollJitter = data.LongPollJitter; - } - } - } - get Domain() { - return pb_1.Message.getField(this, 1) as string; - } - set Domain(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Host() { - return pb_1.Message.getField(this, 2) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Port() { - return pb_1.Message.getField(this, 3) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Secure() { - return pb_1.Message.getField(this, 4) as boolean; - } - set Secure(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get Website() { - return pb_1.Message.getField(this, 5) as string; - } - set Website(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Cert() { - return pb_1.Message.getField(this, 6) as Uint8Array; - } - set Cert(value: Uint8Array) { - pb_1.Message.setField(this, 6, value); - } - get Key() { - return pb_1.Message.getField(this, 7) as Uint8Array; - } - set Key(value: Uint8Array) { - pb_1.Message.setField(this, 7, value); - } - get ACME() { - return pb_1.Message.getField(this, 8) as boolean; - } - set ACME(value: boolean) { - pb_1.Message.setField(this, 8, value); - } - get Persistent() { - return pb_1.Message.getField(this, 9) as boolean; - } - set Persistent(value: boolean) { - pb_1.Message.setField(this, 9, value); - } - get EnforceOTP() { - return pb_1.Message.getField(this, 10) as boolean; - } - set EnforceOTP(value: boolean) { - pb_1.Message.setField(this, 10, value); - } - get LongPollTimeout() { - return pb_1.Message.getField(this, 11) as number; - } - set LongPollTimeout(value: number) { - pb_1.Message.setField(this, 11, value); - } - get LongPollJitter() { - return pb_1.Message.getField(this, 12) as number; - } - set LongPollJitter(value: number) { - pb_1.Message.setField(this, 12, value); - } - static fromObject(data: { - Domain?: string; - Host?: string; - Port?: number; - Secure?: boolean; - Website?: string; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - Persistent?: boolean; - EnforceOTP?: boolean; - LongPollTimeout?: number; - LongPollJitter?: number; - }) { - const message = new HTTPListenerReq({}); - if (data.Domain != null) { - message.Domain = data.Domain; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Secure != null) { - message.Secure = data.Secure; - } - if (data.Website != null) { - message.Website = data.Website; - } - if (data.Cert != null) { - message.Cert = data.Cert; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.ACME != null) { - message.ACME = data.ACME; - } - if (data.Persistent != null) { - message.Persistent = data.Persistent; - } - if (data.EnforceOTP != null) { - message.EnforceOTP = data.EnforceOTP; - } - if (data.LongPollTimeout != null) { - message.LongPollTimeout = data.LongPollTimeout; - } - if (data.LongPollJitter != null) { - message.LongPollJitter = data.LongPollJitter; - } - return message; - } - toObject() { - const data: { - Domain?: string; - Host?: string; - Port?: number; - Secure?: boolean; - Website?: string; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - Persistent?: boolean; - EnforceOTP?: boolean; - LongPollTimeout?: number; - LongPollJitter?: number; - } = {}; - if (this.Domain != null) { - data.Domain = this.Domain; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Secure != null) { - data.Secure = this.Secure; - } - if (this.Website != null) { - data.Website = this.Website; - } - if (this.Cert != null) { - data.Cert = this.Cert; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.ACME != null) { - data.ACME = this.ACME; - } - if (this.Persistent != null) { - data.Persistent = this.Persistent; - } - if (this.EnforceOTP != null) { - data.EnforceOTP = this.EnforceOTP; - } - if (this.LongPollTimeout != null) { - data.LongPollTimeout = this.LongPollTimeout; - } - if (this.LongPollJitter != null) { - data.LongPollJitter = this.LongPollJitter; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Domain === "string" && this.Domain.length) - writer.writeString(1, this.Domain); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(2, this.Host); - if (this.Port !== undefined) - writer.writeUint32(3, this.Port); - if (this.Secure !== undefined) - writer.writeBool(4, this.Secure); - if (typeof this.Website === "string" && this.Website.length) - writer.writeString(5, this.Website); - if (this.Cert !== undefined) - writer.writeBytes(6, this.Cert); - if (this.Key !== undefined) - writer.writeBytes(7, this.Key); - if (this.ACME !== undefined) - writer.writeBool(8, this.ACME); - if (this.Persistent !== undefined) - writer.writeBool(9, this.Persistent); - if (this.EnforceOTP !== undefined) - writer.writeBool(10, this.EnforceOTP); - if (this.LongPollTimeout !== undefined) - writer.writeInt64(11, this.LongPollTimeout); - if (this.LongPollJitter !== undefined) - writer.writeInt64(12, this.LongPollJitter); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HTTPListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HTTPListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Domain = reader.readString(); - break; - case 2: - message.Host = reader.readString(); - break; - case 3: - message.Port = reader.readUint32(); - break; - case 4: - message.Secure = reader.readBool(); - break; - case 5: - message.Website = reader.readString(); - break; - case 6: - message.Cert = reader.readBytes(); - break; - case 7: - message.Key = reader.readBytes(); - break; - case 8: - message.ACME = reader.readBool(); - break; - case 9: - message.Persistent = reader.readBool(); - break; - case 10: - message.EnforceOTP = reader.readBool(); - break; - case 11: - message.LongPollTimeout = reader.readInt64(); - break; - case 12: - message.LongPollJitter = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): HTTPListenerReq { - return HTTPListenerReq.deserialize(bytes); - } - } - export class NamedPipesReq extends pb_1.Message { - constructor(data?: any[] | { - PipeName?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PipeName" in data && data.PipeName != undefined) { - this.PipeName = data.PipeName; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get PipeName() { - return pb_1.Message.getField(this, 16) as string; - } - set PipeName(value: string) { - pb_1.Message.setField(this, 16, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - PipeName?: string; - Request?: ReturnType; - }) { - const message = new NamedPipesReq({}); - if (data.PipeName != null) { - message.PipeName = data.PipeName; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - PipeName?: string; - Request?: ReturnType; - } = {}; - if (this.PipeName != null) { - data.PipeName = this.PipeName; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.PipeName === "string" && this.PipeName.length) - writer.writeString(16, this.PipeName); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NamedPipesReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NamedPipesReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 16: - message.PipeName = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): NamedPipesReq { - return NamedPipesReq.deserialize(bytes); - } - } - export class NamedPipes extends pb_1.Message { - constructor(data?: any[] | { - Success?: boolean; - Err?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Success" in data && data.Success != undefined) { - this.Success = data.Success; - } - if ("Err" in data && data.Err != undefined) { - this.Err = data.Err; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Success() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Success(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Err() { - return pb_1.Message.getField(this, 2) as string; - } - set Err(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Success?: boolean; - Err?: string; - Response?: ReturnType; - }) { - const message = new NamedPipes({}); - if (data.Success != null) { - message.Success = data.Success; - } - if (data.Err != null) { - message.Err = data.Err; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Success?: boolean; - Err?: string; - Response?: ReturnType; - } = {}; - if (this.Success != null) { - data.Success = this.Success; - } - if (this.Err != null) { - data.Err = this.Err; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Success !== undefined) - writer.writeBool(1, this.Success); - if (typeof this.Err === "string" && this.Err.length) - writer.writeString(2, this.Err); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NamedPipes { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NamedPipes(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Success = reader.readBool(); - break; - case 2: - message.Err = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): NamedPipes { - return NamedPipes.deserialize(bytes); - } - } - export class TCPPivotReq extends pb_1.Message { - constructor(data?: any[] | { - Address?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Address" in data && data.Address != undefined) { - this.Address = data.Address; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Address() { - return pb_1.Message.getField(this, 16) as string; - } - set Address(value: string) { - pb_1.Message.setField(this, 16, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Address?: string; - Request?: ReturnType; - }) { - const message = new TCPPivotReq({}); - if (data.Address != null) { - message.Address = data.Address; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Address?: string; - Request?: ReturnType; - } = {}; - if (this.Address != null) { - data.Address = this.Address; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Address === "string" && this.Address.length) - writer.writeString(16, this.Address); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TCPPivotReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TCPPivotReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 16: - message.Address = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): TCPPivotReq { - return TCPPivotReq.deserialize(bytes); - } - } - export class TCPPivot extends pb_1.Message { - constructor(data?: any[] | { - Success?: boolean; - Err?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Success" in data && data.Success != undefined) { - this.Success = data.Success; - } - if ("Err" in data && data.Err != undefined) { - this.Err = data.Err; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Success() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Success(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Err() { - return pb_1.Message.getField(this, 2) as string; - } - set Err(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Success?: boolean; - Err?: string; - Response?: ReturnType; - }) { - const message = new TCPPivot({}); - if (data.Success != null) { - message.Success = data.Success; - } - if (data.Err != null) { - message.Err = data.Err; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Success?: boolean; - Err?: string; - Response?: ReturnType; - } = {}; - if (this.Success != null) { - data.Success = this.Success; - } - if (this.Err != null) { - data.Err = this.Err; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Success !== undefined) - writer.writeBool(1, this.Success); - if (typeof this.Err === "string" && this.Err.length) - writer.writeString(2, this.Err); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TCPPivot { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TCPPivot(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Success = reader.readBool(); - break; - case 2: - message.Err = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): TCPPivot { - return TCPPivot.deserialize(bytes); - } - } - export class HTTPListener extends pb_1.Message { - constructor(data?: any[] | { - JobID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("JobID" in data && data.JobID != undefined) { - this.JobID = data.JobID; - } - } - } - get JobID() { - return pb_1.Message.getField(this, 1) as number; - } - set JobID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - JobID?: number; - }) { - const message = new HTTPListener({}); - if (data.JobID != null) { - message.JobID = data.JobID; - } - return message; - } - toObject() { - const data: { - JobID?: number; - } = {}; - if (this.JobID != null) { - data.JobID = this.JobID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.JobID !== undefined) - writer.writeUint32(1, this.JobID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HTTPListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HTTPListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.JobID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): HTTPListener { - return HTTPListener.deserialize(bytes); - } - } - export class Sessions extends pb_1.Message { - constructor(data?: any[] | { - Sessions?: Session[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Sessions" in data && data.Sessions != undefined) { - this.Sessions = data.Sessions; - } - } - } - get Sessions() { - return pb_1.Message.getRepeatedWrapperField(this, Session, 1) as Session[]; - } - set Sessions(value: Session[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Sessions?: ReturnType[]; - }) { - const message = new Sessions({}); - if (data.Sessions != null) { - message.Sessions = data.Sessions.map(item => Session.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Sessions?: ReturnType[]; - } = {}; - if (this.Sessions != null) { - data.Sessions = this.Sessions.map((item: Session) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Sessions !== undefined) - writer.writeRepeatedMessage(1, this.Sessions, (item: Session) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Sessions { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Sessions(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Sessions, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Session.deserialize(reader), Session)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Sessions { - return Sessions.deserialize(bytes); - } - } - export class RenameReq extends pb_1.Message { - constructor(data?: any[] | { - SessionID?: string; - BeaconID?: string; - Name?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - if ("BeaconID" in data && data.BeaconID != undefined) { - this.BeaconID = data.BeaconID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - } - } - get SessionID() { - return pb_1.Message.getField(this, 1) as string; - } - set SessionID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get BeaconID() { - return pb_1.Message.getField(this, 2) as string; - } - set BeaconID(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Name() { - return pb_1.Message.getField(this, 3) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - SessionID?: string; - BeaconID?: string; - Name?: string; - }) { - const message = new RenameReq({}); - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - if (data.BeaconID != null) { - message.BeaconID = data.BeaconID; - } - if (data.Name != null) { - message.Name = data.Name; - } - return message; - } - toObject() { - const data: { - SessionID?: string; - BeaconID?: string; - Name?: string; - } = {}; - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - if (this.BeaconID != null) { - data.BeaconID = this.BeaconID; - } - if (this.Name != null) { - data.Name = this.Name; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.SessionID === "string" && this.SessionID.length) - writer.writeString(1, this.SessionID); - if (typeof this.BeaconID === "string" && this.BeaconID.length) - writer.writeString(2, this.BeaconID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(3, this.Name); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RenameReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RenameReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.SessionID = reader.readString(); - break; - case 2: - message.BeaconID = reader.readString(); - break; - case 3: - message.Name = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RenameReq { - return RenameReq.deserialize(bytes); - } - } - export class GenerateReq extends pb_1.Message { - constructor(data?: any[] | { - Config?: ImplantConfig; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Config" in data && data.Config != undefined) { - this.Config = data.Config; - } - } - } - get Config() { - return pb_1.Message.getWrapperField(this, ImplantConfig, 1) as ImplantConfig; - } - set Config(value: ImplantConfig) { - pb_1.Message.setWrapperField(this, 1, value); - } - static fromObject(data: { - Config?: ReturnType; - }) { - const message = new GenerateReq({}); - if (data.Config != null) { - message.Config = ImplantConfig.fromObject(data.Config); - } - return message; - } - toObject() { - const data: { - Config?: ReturnType; - } = {}; - if (this.Config != null) { - data.Config = this.Config.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Config !== undefined) - writer.writeMessage(1, this.Config, () => this.Config.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GenerateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GenerateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Config, () => message.Config = ImplantConfig.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GenerateReq { - return GenerateReq.deserialize(bytes); - } - } - export class Generate extends pb_1.Message { - constructor(data?: any[] | { - File?: dependency_1.commonpb.File; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("File" in data && data.File != undefined) { - this.File = data.File; - } - } - } - get File() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.File, 1) as dependency_1.commonpb.File; - } - set File(value: dependency_1.commonpb.File) { - pb_1.Message.setWrapperField(this, 1, value); - } - static fromObject(data: { - File?: ReturnType; - }) { - const message = new Generate({}); - if (data.File != null) { - message.File = dependency_1.commonpb.File.fromObject(data.File); - } - return message; - } - toObject() { - const data: { - File?: ReturnType; - } = {}; - if (this.File != null) { - data.File = this.File.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.File !== undefined) - writer.writeMessage(1, this.File, () => this.File.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Generate { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Generate(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.File, () => message.File = dependency_1.commonpb.File.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Generate { - return Generate.deserialize(bytes); - } - } - export class MSFReq extends pb_1.Message { - constructor(data?: any[] | { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Payload" in data && data.Payload != undefined) { - this.Payload = data.Payload; - } - if ("LHost" in data && data.LHost != undefined) { - this.LHost = data.LHost; - } - if ("LPort" in data && data.LPort != undefined) { - this.LPort = data.LPort; - } - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("Iterations" in data && data.Iterations != undefined) { - this.Iterations = data.Iterations; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Payload() { - return pb_1.Message.getField(this, 1) as string; - } - set Payload(value: string) { - pb_1.Message.setField(this, 1, value); - } - get LHost() { - return pb_1.Message.getField(this, 2) as string; - } - set LHost(value: string) { - pb_1.Message.setField(this, 2, value); - } - get LPort() { - return pb_1.Message.getField(this, 3) as number; - } - set LPort(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Encoder() { - return pb_1.Message.getField(this, 4) as string; - } - set Encoder(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Iterations() { - return pb_1.Message.getField(this, 5) as number; - } - set Iterations(value: number) { - pb_1.Message.setField(this, 5, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - Request?: ReturnType; - }) { - const message = new MSFReq({}); - if (data.Payload != null) { - message.Payload = data.Payload; - } - if (data.LHost != null) { - message.LHost = data.LHost; - } - if (data.LPort != null) { - message.LPort = data.LPort; - } - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.Iterations != null) { - message.Iterations = data.Iterations; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - Request?: ReturnType; - } = {}; - if (this.Payload != null) { - data.Payload = this.Payload; - } - if (this.LHost != null) { - data.LHost = this.LHost; - } - if (this.LPort != null) { - data.LPort = this.LPort; - } - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.Iterations != null) { - data.Iterations = this.Iterations; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Payload === "string" && this.Payload.length) - writer.writeString(1, this.Payload); - if (typeof this.LHost === "string" && this.LHost.length) - writer.writeString(2, this.LHost); - if (this.LPort !== undefined) - writer.writeUint32(3, this.LPort); - if (typeof this.Encoder === "string" && this.Encoder.length) - writer.writeString(4, this.Encoder); - if (this.Iterations !== undefined) - writer.writeInt32(5, this.Iterations); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MSFReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MSFReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Payload = reader.readString(); - break; - case 2: - message.LHost = reader.readString(); - break; - case 3: - message.LPort = reader.readUint32(); - break; - case 4: - message.Encoder = reader.readString(); - break; - case 5: - message.Iterations = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MSFReq { - return MSFReq.deserialize(bytes); - } - } - export class MSFRemoteReq extends pb_1.Message { - constructor(data?: any[] | { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - PID?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Payload" in data && data.Payload != undefined) { - this.Payload = data.Payload; - } - if ("LHost" in data && data.LHost != undefined) { - this.LHost = data.LHost; - } - if ("LPort" in data && data.LPort != undefined) { - this.LPort = data.LPort; - } - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("Iterations" in data && data.Iterations != undefined) { - this.Iterations = data.Iterations; - } - if ("PID" in data && data.PID != undefined) { - this.PID = data.PID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Payload() { - return pb_1.Message.getField(this, 1) as string; - } - set Payload(value: string) { - pb_1.Message.setField(this, 1, value); - } - get LHost() { - return pb_1.Message.getField(this, 2) as string; - } - set LHost(value: string) { - pb_1.Message.setField(this, 2, value); - } - get LPort() { - return pb_1.Message.getField(this, 3) as number; - } - set LPort(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Encoder() { - return pb_1.Message.getField(this, 4) as string; - } - set Encoder(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Iterations() { - return pb_1.Message.getField(this, 5) as number; - } - set Iterations(value: number) { - pb_1.Message.setField(this, 5, value); - } - get PID() { - return pb_1.Message.getField(this, 8) as number; - } - set PID(value: number) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - PID?: number; - Request?: ReturnType; - }) { - const message = new MSFRemoteReq({}); - if (data.Payload != null) { - message.Payload = data.Payload; - } - if (data.LHost != null) { - message.LHost = data.LHost; - } - if (data.LPort != null) { - message.LPort = data.LPort; - } - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.Iterations != null) { - message.Iterations = data.Iterations; - } - if (data.PID != null) { - message.PID = data.PID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Payload?: string; - LHost?: string; - LPort?: number; - Encoder?: string; - Iterations?: number; - PID?: number; - Request?: ReturnType; - } = {}; - if (this.Payload != null) { - data.Payload = this.Payload; - } - if (this.LHost != null) { - data.LHost = this.LHost; - } - if (this.LPort != null) { - data.LPort = this.LPort; - } - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.Iterations != null) { - data.Iterations = this.Iterations; - } - if (this.PID != null) { - data.PID = this.PID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Payload === "string" && this.Payload.length) - writer.writeString(1, this.Payload); - if (typeof this.LHost === "string" && this.LHost.length) - writer.writeString(2, this.LHost); - if (this.LPort !== undefined) - writer.writeUint32(3, this.LPort); - if (typeof this.Encoder === "string" && this.Encoder.length) - writer.writeString(4, this.Encoder); - if (this.Iterations !== undefined) - writer.writeInt32(5, this.Iterations); - if (this.PID !== undefined) - writer.writeUint32(8, this.PID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MSFRemoteReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MSFRemoteReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Payload = reader.readString(); - break; - case 2: - message.LHost = reader.readString(); - break; - case 3: - message.LPort = reader.readUint32(); - break; - case 4: - message.Encoder = reader.readString(); - break; - case 5: - message.Iterations = reader.readInt32(); - break; - case 8: - message.PID = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MSFRemoteReq { - return MSFRemoteReq.deserialize(bytes); - } - } - export class StagerListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Protocol?: StageProtocol; - Host?: string; - Port?: number; - Data?: Uint8Array; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Cert" in data && data.Cert != undefined) { - this.Cert = data.Cert; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("ACME" in data && data.ACME != undefined) { - this.ACME = data.ACME; - } - } - } - get Protocol() { - return pb_1.Message.getField(this, 1) as StageProtocol; - } - set Protocol(value: StageProtocol) { - pb_1.Message.setField(this, 1, value); - } - get Host() { - return pb_1.Message.getField(this, 2) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Port() { - return pb_1.Message.getField(this, 3) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Data() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - get Cert() { - return pb_1.Message.getField(this, 5) as Uint8Array; - } - set Cert(value: Uint8Array) { - pb_1.Message.setField(this, 5, value); - } - get Key() { - return pb_1.Message.getField(this, 6) as Uint8Array; - } - set Key(value: Uint8Array) { - pb_1.Message.setField(this, 6, value); - } - get ACME() { - return pb_1.Message.getField(this, 7) as boolean; - } - set ACME(value: boolean) { - pb_1.Message.setField(this, 7, value); - } - static fromObject(data: { - Protocol?: StageProtocol; - Host?: string; - Port?: number; - Data?: Uint8Array; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - }) { - const message = new StagerListenerReq({}); - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Cert != null) { - message.Cert = data.Cert; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.ACME != null) { - message.ACME = data.ACME; - } - return message; - } - toObject() { - const data: { - Protocol?: StageProtocol; - Host?: string; - Port?: number; - Data?: Uint8Array; - Cert?: Uint8Array; - Key?: Uint8Array; - ACME?: boolean; - } = {}; - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Cert != null) { - data.Cert = this.Cert; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.ACME != null) { - data.ACME = this.ACME; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Protocol !== undefined) - writer.writeEnum(1, this.Protocol); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(2, this.Host); - if (this.Port !== undefined) - writer.writeUint32(3, this.Port); - if (this.Data !== undefined) - writer.writeBytes(4, this.Data); - if (this.Cert !== undefined) - writer.writeBytes(5, this.Cert); - if (this.Key !== undefined) - writer.writeBytes(6, this.Key); - if (this.ACME !== undefined) - writer.writeBool(7, this.ACME); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StagerListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StagerListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Protocol = reader.readEnum(); - break; - case 2: - message.Host = reader.readString(); - break; - case 3: - message.Port = reader.readUint32(); - break; - case 4: - message.Data = reader.readBytes(); - break; - case 5: - message.Cert = reader.readBytes(); - break; - case 6: - message.Key = reader.readBytes(); - break; - case 7: - message.ACME = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): StagerListenerReq { - return StagerListenerReq.deserialize(bytes); - } - } - export class StagerListener extends pb_1.Message { - constructor(data?: any[] | { - JobID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("JobID" in data && data.JobID != undefined) { - this.JobID = data.JobID; - } - } - } - get JobID() { - return pb_1.Message.getField(this, 1) as number; - } - set JobID(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - JobID?: number; - }) { - const message = new StagerListener({}); - if (data.JobID != null) { - message.JobID = data.JobID; - } - return message; - } - toObject() { - const data: { - JobID?: number; - } = {}; - if (this.JobID != null) { - data.JobID = this.JobID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.JobID !== undefined) - writer.writeUint32(1, this.JobID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StagerListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StagerListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.JobID = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): StagerListener { - return StagerListener.deserialize(bytes); - } - } - export class ShellcodeRDIReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - FunctionName?: string; - Arguments?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("FunctionName" in data && data.FunctionName != undefined) { - this.FunctionName = data.FunctionName; - } - if ("Arguments" in data && data.Arguments != undefined) { - this.Arguments = data.Arguments; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get FunctionName() { - return pb_1.Message.getField(this, 2) as string; - } - set FunctionName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Arguments() { - return pb_1.Message.getField(this, 3) as string; - } - set Arguments(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - Data?: Uint8Array; - FunctionName?: string; - Arguments?: string; - }) { - const message = new ShellcodeRDIReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.FunctionName != null) { - message.FunctionName = data.FunctionName; - } - if (data.Arguments != null) { - message.Arguments = data.Arguments; - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - FunctionName?: string; - Arguments?: string; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.FunctionName != null) { - data.FunctionName = this.FunctionName; - } - if (this.Arguments != null) { - data.Arguments = this.Arguments; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.FunctionName === "string" && this.FunctionName.length) - writer.writeString(2, this.FunctionName); - if (typeof this.Arguments === "string" && this.Arguments.length) - writer.writeString(3, this.Arguments); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellcodeRDIReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellcodeRDIReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.FunctionName = reader.readString(); - break; - case 3: - message.Arguments = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellcodeRDIReq { - return ShellcodeRDIReq.deserialize(bytes); - } - } - export class ShellcodeRDI extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Data?: Uint8Array; - }) { - const message = new ShellcodeRDI({}); - if (data.Data != null) { - message.Data = data.Data; - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellcodeRDI { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellcodeRDI(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellcodeRDI { - return ShellcodeRDI.deserialize(bytes); - } - } - export class MsfStagerReq extends pb_1.Message { - constructor(data?: any[] | { - Arch?: string; - Format?: string; - Port?: number; - Host?: string; - OS?: string; - Protocol?: StageProtocol; - BadChars?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - if ("Format" in data && data.Format != undefined) { - this.Format = data.Format; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("OS" in data && data.OS != undefined) { - this.OS = data.OS; - } - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - if ("BadChars" in data && data.BadChars != undefined) { - this.BadChars = data.BadChars; - } - } - } - get Arch() { - return pb_1.Message.getField(this, 1) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Format() { - return pb_1.Message.getField(this, 2) as string; - } - set Format(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Port() { - return pb_1.Message.getField(this, 3) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Host() { - return pb_1.Message.getField(this, 4) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 4, value); - } - get OS() { - return pb_1.Message.getField(this, 5) as string; - } - set OS(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Protocol() { - return pb_1.Message.getField(this, 6) as StageProtocol; - } - set Protocol(value: StageProtocol) { - pb_1.Message.setField(this, 6, value); - } - get BadChars() { - return pb_1.Message.getField(this, 7) as string[]; - } - set BadChars(value: string[]) { - pb_1.Message.setField(this, 7, value); - } - static fromObject(data: { - Arch?: string; - Format?: string; - Port?: number; - Host?: string; - OS?: string; - Protocol?: StageProtocol; - BadChars?: string[]; - }) { - const message = new MsfStagerReq({}); - if (data.Arch != null) { - message.Arch = data.Arch; - } - if (data.Format != null) { - message.Format = data.Format; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.OS != null) { - message.OS = data.OS; - } - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - if (data.BadChars != null) { - message.BadChars = data.BadChars; - } - return message; - } - toObject() { - const data: { - Arch?: string; - Format?: string; - Port?: number; - Host?: string; - OS?: string; - Protocol?: StageProtocol; - BadChars?: string[]; - } = {}; - if (this.Arch != null) { - data.Arch = this.Arch; - } - if (this.Format != null) { - data.Format = this.Format; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.OS != null) { - data.OS = this.OS; - } - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - if (this.BadChars != null) { - data.BadChars = this.BadChars; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(1, this.Arch); - if (typeof this.Format === "string" && this.Format.length) - writer.writeString(2, this.Format); - if (this.Port !== undefined) - writer.writeUint32(3, this.Port); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(4, this.Host); - if (typeof this.OS === "string" && this.OS.length) - writer.writeString(5, this.OS); - if (this.Protocol !== undefined) - writer.writeEnum(6, this.Protocol); - if (this.BadChars !== undefined) - writer.writeRepeatedString(7, this.BadChars); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsfStagerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsfStagerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Arch = reader.readString(); - break; - case 2: - message.Format = reader.readString(); - break; - case 3: - message.Port = reader.readUint32(); - break; - case 4: - message.Host = reader.readString(); - break; - case 5: - message.OS = reader.readString(); - break; - case 6: - message.Protocol = reader.readEnum(); - break; - case 7: - pb_1.Message.addToRepeatedField(message, 7, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MsfStagerReq { - return MsfStagerReq.deserialize(bytes); - } - } - export class MsfStager extends pb_1.Message { - constructor(data?: any[] | { - File?: dependency_1.commonpb.File; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("File" in data && data.File != undefined) { - this.File = data.File; - } - } - } - get File() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.File, 1) as dependency_1.commonpb.File; - } - set File(value: dependency_1.commonpb.File) { - pb_1.Message.setWrapperField(this, 1, value); - } - static fromObject(data: { - File?: ReturnType; - }) { - const message = new MsfStager({}); - if (data.File != null) { - message.File = dependency_1.commonpb.File.fromObject(data.File); - } - return message; - } - toObject() { - const data: { - File?: ReturnType; - } = {}; - if (this.File != null) { - data.File = this.File.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.File !== undefined) - writer.writeMessage(1, this.File, () => this.File.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MsfStager { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MsfStager(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.File, () => message.File = dependency_1.commonpb.File.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MsfStager { - return MsfStager.deserialize(bytes); - } - } - export class GetSystemReq extends pb_1.Message { - constructor(data?: any[] | { - HostingProcess?: string; - Config?: ImplantConfig; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("HostingProcess" in data && data.HostingProcess != undefined) { - this.HostingProcess = data.HostingProcess; - } - if ("Config" in data && data.Config != undefined) { - this.Config = data.Config; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get HostingProcess() { - return pb_1.Message.getField(this, 1) as string; - } - set HostingProcess(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Config() { - return pb_1.Message.getWrapperField(this, ImplantConfig, 2) as ImplantConfig; - } - set Config(value: ImplantConfig) { - pb_1.Message.setWrapperField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - HostingProcess?: string; - Config?: ReturnType; - Request?: ReturnType; - }) { - const message = new GetSystemReq({}); - if (data.HostingProcess != null) { - message.HostingProcess = data.HostingProcess; - } - if (data.Config != null) { - message.Config = ImplantConfig.fromObject(data.Config); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - HostingProcess?: string; - Config?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.HostingProcess != null) { - data.HostingProcess = this.HostingProcess; - } - if (this.Config != null) { - data.Config = this.Config.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.HostingProcess === "string" && this.HostingProcess.length) - writer.writeString(1, this.HostingProcess); - if (this.Config !== undefined) - writer.writeMessage(2, this.Config, () => this.Config.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetSystemReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetSystemReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.HostingProcess = reader.readString(); - break; - case 2: - reader.readMessage(message.Config, () => message.Config = ImplantConfig.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GetSystemReq { - return GetSystemReq.deserialize(bytes); - } - } - export class MigrateReq extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Config?: ImplantConfig; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Config" in data && data.Config != undefined) { - this.Config = data.Config; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Config() { - return pb_1.Message.getWrapperField(this, ImplantConfig, 2) as ImplantConfig; - } - set Config(value: ImplantConfig) { - pb_1.Message.setWrapperField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Pid?: number; - Config?: ReturnType; - Request?: ReturnType; - }) { - const message = new MigrateReq({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Config != null) { - message.Config = ImplantConfig.fromObject(data.Config); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Pid?: number; - Config?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Config != null) { - data.Config = this.Config.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeUint32(1, this.Pid); - if (this.Config !== undefined) - writer.writeMessage(2, this.Config, () => this.Config.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MigrateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MigrateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readUint32(); - break; - case 2: - reader.readMessage(message.Config, () => message.Config = ImplantConfig.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MigrateReq { - return MigrateReq.deserialize(bytes); - } - } - export class CreateTunnelReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new CreateTunnelReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateTunnelReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateTunnelReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CreateTunnelReq { - return CreateTunnelReq.deserialize(bytes); - } - } - export class CreateTunnel extends pb_1.Message { - constructor(data?: any[] | { - SessionID?: number; - TunnelID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - } - } - get SessionID() { - return pb_1.Message.getField(this, 1) as number; - } - set SessionID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - static fromObject(data: { - SessionID?: number; - TunnelID?: string; - }) { - const message = new CreateTunnel({}); - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - return message; - } - toObject() { - const data: { - SessionID?: number; - TunnelID?: string; - } = {}; - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.SessionID !== undefined) - writer.writeUint32(1, this.SessionID); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CreateTunnel { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CreateTunnel(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.SessionID = reader.readUint32(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CreateTunnel { - return CreateTunnel.deserialize(bytes); - } - } - export class CloseTunnelReq extends pb_1.Message { - constructor(data?: any[] | { - TunnelID?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - TunnelID?: string; - Request?: ReturnType; - }) { - const message = new CloseTunnelReq({}); - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - TunnelID?: string; - Request?: ReturnType; - } = {}; - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CloseTunnelReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CloseTunnelReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CloseTunnelReq { - return CloseTunnelReq.deserialize(bytes); - } - } - export class PivotGraphEntry extends pb_1.Message { - constructor(data?: any[] | { - PeerID?: number; - Session?: Session; - Name?: string; - Children?: PivotGraphEntry[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - if ("Session" in data && data.Session != undefined) { - this.Session = data.Session; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Children" in data && data.Children != undefined) { - this.Children = data.Children; - } - } - } - get PeerID() { - return pb_1.Message.getField(this, 1) as number; - } - set PeerID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Session() { - return pb_1.Message.getWrapperField(this, Session, 2) as Session; - } - set Session(value: Session) { - pb_1.Message.setWrapperField(this, 2, value); - } - get Name() { - return pb_1.Message.getField(this, 3) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Children() { - return pb_1.Message.getRepeatedWrapperField(this, PivotGraphEntry, 4) as PivotGraphEntry[]; - } - set Children(value: PivotGraphEntry[]) { - pb_1.Message.setRepeatedWrapperField(this, 4, value); - } - static fromObject(data: { - PeerID?: number; - Session?: ReturnType; - Name?: string; - Children?: ReturnType[]; - }) { - const message = new PivotGraphEntry({}); - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - if (data.Session != null) { - message.Session = Session.fromObject(data.Session); - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Children != null) { - message.Children = data.Children.map(item => PivotGraphEntry.fromObject(item)); - } - return message; - } - toObject() { - const data: { - PeerID?: number; - Session?: ReturnType; - Name?: string; - Children?: ReturnType[]; - } = {}; - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - if (this.Session != null) { - data.Session = this.Session.toObject(); - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Children != null) { - data.Children = this.Children.map((item: PivotGraphEntry) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PeerID !== undefined) - writer.writeInt64(1, this.PeerID); - if (this.Session !== undefined) - writer.writeMessage(2, this.Session, () => this.Session.serialize(writer)); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(3, this.Name); - if (this.Children !== undefined) - writer.writeRepeatedMessage(4, this.Children, (item: PivotGraphEntry) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotGraphEntry { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotGraphEntry(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PeerID = reader.readInt64(); - break; - case 2: - reader.readMessage(message.Session, () => message.Session = Session.deserialize(reader)); - break; - case 3: - message.Name = reader.readString(); - break; - case 4: - reader.readMessage(message.Children, () => pb_1.Message.addToRepeatedWrapperField(message, 4, PivotGraphEntry.deserialize(reader), PivotGraphEntry)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotGraphEntry { - return PivotGraphEntry.deserialize(bytes); - } - } - export class PivotGraph extends pb_1.Message { - constructor(data?: any[] | { - Children?: PivotGraphEntry[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Children" in data && data.Children != undefined) { - this.Children = data.Children; - } - } - } - get Children() { - return pb_1.Message.getRepeatedWrapperField(this, PivotGraphEntry, 1) as PivotGraphEntry[]; - } - set Children(value: PivotGraphEntry[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Children?: ReturnType[]; - }) { - const message = new PivotGraph({}); - if (data.Children != null) { - message.Children = data.Children.map(item => PivotGraphEntry.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Children?: ReturnType[]; - } = {}; - if (this.Children != null) { - data.Children = this.Children.map((item: PivotGraphEntry) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Children !== undefined) - writer.writeRepeatedMessage(1, this.Children, (item: PivotGraphEntry) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotGraph { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotGraph(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Children, () => pb_1.Message.addToRepeatedWrapperField(message, 1, PivotGraphEntry.deserialize(reader), PivotGraphEntry)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotGraph { - return PivotGraph.deserialize(bytes); - } - } - export class Client extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Name?: string; - Operator?: Operator; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Operator" in data && data.Operator != undefined) { - this.Operator = data.Operator; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Operator() { - return pb_1.Message.getWrapperField(this, Operator, 3) as Operator; - } - set Operator(value: Operator) { - pb_1.Message.setWrapperField(this, 3, value); - } - static fromObject(data: { - ID?: number; - Name?: string; - Operator?: ReturnType; - }) { - const message = new Client({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Operator != null) { - message.Operator = Operator.fromObject(data.Operator); - } - return message; - } - toObject() { - const data: { - ID?: number; - Name?: string; - Operator?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Operator != null) { - data.Operator = this.Operator.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (this.Operator !== undefined) - writer.writeMessage(3, this.Operator, () => this.Operator.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Client { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Client(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - case 2: - message.Name = reader.readString(); - break; - case 3: - reader.readMessage(message.Operator, () => message.Operator = Operator.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Client { - return Client.deserialize(bytes); - } - } - export class Event extends pb_1.Message { - constructor(data?: any[] | { - EventType?: string; - Session?: Session; - Job?: Job; - Client?: Client; - Data?: Uint8Array; - Err?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("EventType" in data && data.EventType != undefined) { - this.EventType = data.EventType; - } - if ("Session" in data && data.Session != undefined) { - this.Session = data.Session; - } - if ("Job" in data && data.Job != undefined) { - this.Job = data.Job; - } - if ("Client" in data && data.Client != undefined) { - this.Client = data.Client; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Err" in data && data.Err != undefined) { - this.Err = data.Err; - } - } - } - get EventType() { - return pb_1.Message.getField(this, 1) as string; - } - set EventType(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Session() { - return pb_1.Message.getWrapperField(this, Session, 2) as Session; - } - set Session(value: Session) { - pb_1.Message.setWrapperField(this, 2, value); - } - get Job() { - return pb_1.Message.getWrapperField(this, Job, 3) as Job; - } - set Job(value: Job) { - pb_1.Message.setWrapperField(this, 3, value); - } - get Client() { - return pb_1.Message.getWrapperField(this, Client, 4) as Client; - } - set Client(value: Client) { - pb_1.Message.setWrapperField(this, 4, value); - } - get Data() { - return pb_1.Message.getField(this, 5) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 5, value); - } - get Err() { - return pb_1.Message.getField(this, 6) as string; - } - set Err(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - EventType?: string; - Session?: ReturnType; - Job?: ReturnType; - Client?: ReturnType; - Data?: Uint8Array; - Err?: string; - }) { - const message = new Event({}); - if (data.EventType != null) { - message.EventType = data.EventType; - } - if (data.Session != null) { - message.Session = Session.fromObject(data.Session); - } - if (data.Job != null) { - message.Job = Job.fromObject(data.Job); - } - if (data.Client != null) { - message.Client = Client.fromObject(data.Client); - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Err != null) { - message.Err = data.Err; - } - return message; - } - toObject() { - const data: { - EventType?: string; - Session?: ReturnType; - Job?: ReturnType; - Client?: ReturnType; - Data?: Uint8Array; - Err?: string; - } = {}; - if (this.EventType != null) { - data.EventType = this.EventType; - } - if (this.Session != null) { - data.Session = this.Session.toObject(); - } - if (this.Job != null) { - data.Job = this.Job.toObject(); - } - if (this.Client != null) { - data.Client = this.Client.toObject(); - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Err != null) { - data.Err = this.Err; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.EventType === "string" && this.EventType.length) - writer.writeString(1, this.EventType); - if (this.Session !== undefined) - writer.writeMessage(2, this.Session, () => this.Session.serialize(writer)); - if (this.Job !== undefined) - writer.writeMessage(3, this.Job, () => this.Job.serialize(writer)); - if (this.Client !== undefined) - writer.writeMessage(4, this.Client, () => this.Client.serialize(writer)); - if (this.Data !== undefined) - writer.writeBytes(5, this.Data); - if (typeof this.Err === "string" && this.Err.length) - writer.writeString(6, this.Err); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Event { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Event(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.EventType = reader.readString(); - break; - case 2: - reader.readMessage(message.Session, () => message.Session = Session.deserialize(reader)); - break; - case 3: - reader.readMessage(message.Job, () => message.Job = Job.deserialize(reader)); - break; - case 4: - reader.readMessage(message.Client, () => message.Client = Client.deserialize(reader)); - break; - case 5: - message.Data = reader.readBytes(); - break; - case 6: - message.Err = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Event { - return Event.deserialize(bytes); - } - } - export class Operators extends pb_1.Message { - constructor(data?: any[] | { - Operators?: Operator[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Operators" in data && data.Operators != undefined) { - this.Operators = data.Operators; - } - } - } - get Operators() { - return pb_1.Message.getRepeatedWrapperField(this, Operator, 1) as Operator[]; - } - set Operators(value: Operator[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Operators?: ReturnType[]; - }) { - const message = new Operators({}); - if (data.Operators != null) { - message.Operators = data.Operators.map(item => Operator.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Operators?: ReturnType[]; - } = {}; - if (this.Operators != null) { - data.Operators = this.Operators.map((item: Operator) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Operators !== undefined) - writer.writeRepeatedMessage(1, this.Operators, (item: Operator) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Operators { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Operators(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Operators, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Operator.deserialize(reader), Operator)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Operators { - return Operators.deserialize(bytes); - } - } - export class Operator extends pb_1.Message { - constructor(data?: any[] | { - Online?: boolean; - Name?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Online" in data && data.Online != undefined) { - this.Online = data.Online; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - } - } - get Online() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Online(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - Online?: boolean; - Name?: string; - }) { - const message = new Operator({}); - if (data.Online != null) { - message.Online = data.Online; - } - if (data.Name != null) { - message.Name = data.Name; - } - return message; - } - toObject() { - const data: { - Online?: boolean; - Name?: string; - } = {}; - if (this.Online != null) { - data.Online = this.Online; - } - if (this.Name != null) { - data.Name = this.Name; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Online !== undefined) - writer.writeBool(1, this.Online); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Operator { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Operator(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Online = reader.readBool(); - break; - case 2: - message.Name = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Operator { - return Operator.deserialize(bytes); - } - } - export class WebContent extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - ContentType?: string; - Size?: string; - Content?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("ContentType" in data && data.ContentType != undefined) { - this.ContentType = data.ContentType; - } - if ("Size" in data && data.Size != undefined) { - this.Size = data.Size; - } - if ("Content" in data && data.Content != undefined) { - this.Content = data.Content; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ContentType() { - return pb_1.Message.getField(this, 2) as string; - } - set ContentType(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Size() { - return pb_1.Message.getField(this, 3) as string; - } - set Size(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Content() { - return pb_1.Message.getField(this, 9) as Uint8Array; - } - set Content(value: Uint8Array) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - Path?: string; - ContentType?: string; - Size?: string; - Content?: Uint8Array; - }) { - const message = new WebContent({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.ContentType != null) { - message.ContentType = data.ContentType; - } - if (data.Size != null) { - message.Size = data.Size; - } - if (data.Content != null) { - message.Content = data.Content; - } - return message; - } - toObject() { - const data: { - Path?: string; - ContentType?: string; - Size?: string; - Content?: Uint8Array; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.ContentType != null) { - data.ContentType = this.ContentType; - } - if (this.Size != null) { - data.Size = this.Size; - } - if (this.Content != null) { - data.Content = this.Content; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (typeof this.ContentType === "string" && this.ContentType.length) - writer.writeString(2, this.ContentType); - if (this.Size !== undefined) - writer.writeUint64String(3, this.Size); - if (this.Content !== undefined) - writer.writeBytes(9, this.Content); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WebContent { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WebContent(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.ContentType = reader.readString(); - break; - case 3: - message.Size = reader.readUint64String(); - break; - case 9: - message.Content = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WebContent { - return WebContent.deserialize(bytes); - } - } - export class WebsiteAddContent extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Contents?: Map; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Contents" in data && data.Contents != undefined) { - this.Contents = data.Contents; - } - } - if (!this.Contents) - this.Contents = new Map(); - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Contents() { - return pb_1.Message.getField(this, 2) as any as Map; - } - set Contents(value: Map) { - pb_1.Message.setField(this, 2, value as any); - } - static fromObject(data: { - Name?: string; - Contents?: { - [key: string]: ReturnType; - }; - }) { - const message = new WebsiteAddContent({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (typeof data.Contents == "object") { - message.Contents = new Map(Object.entries(data.Contents).map(([key, value]) => [key, WebContent.fromObject(value)])); - } - return message; - } - toObject() { - const data: { - Name?: string; - Contents?: { - [key: string]: ReturnType; - }; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Contents.size > 0) { - data.Contents = Object.fromEntries(Array.from(this.Contents).map(([key, value]) => [key, value.toObject()])); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - for (const [key, value] of this.Contents) { - writer.writeMessage(2, this.Contents, () => { - writer.writeString(1, key); - writer.writeMessage(2, value, () => value.serialize(writer)); - }); - } - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WebsiteAddContent { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WebsiteAddContent(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.Contents as any, reader, reader.readString, () => { - let value; - reader.readMessage(message, () => value = WebContent.deserialize(reader)); - return value; - })); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WebsiteAddContent { - return WebsiteAddContent.deserialize(bytes); - } - } - export class WebsiteRemoveContent extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Paths?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Paths" in data && data.Paths != undefined) { - this.Paths = data.Paths; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Paths() { - return pb_1.Message.getField(this, 2) as string[]; - } - set Paths(value: string[]) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - Name?: string; - Paths?: string[]; - }) { - const message = new WebsiteRemoveContent({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Paths != null) { - message.Paths = data.Paths; - } - return message; - } - toObject() { - const data: { - Name?: string; - Paths?: string[]; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Paths != null) { - data.Paths = this.Paths; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Paths !== undefined) - writer.writeRepeatedString(2, this.Paths); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WebsiteRemoveContent { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WebsiteRemoveContent(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WebsiteRemoveContent { - return WebsiteRemoveContent.deserialize(bytes); - } - } - export class Website extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Contents?: Map; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Contents" in data && data.Contents != undefined) { - this.Contents = data.Contents; - } - } - if (!this.Contents) - this.Contents = new Map(); - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Contents() { - return pb_1.Message.getField(this, 2) as any as Map; - } - set Contents(value: Map) { - pb_1.Message.setField(this, 2, value as any); - } - static fromObject(data: { - Name?: string; - Contents?: { - [key: string]: ReturnType; - }; - }) { - const message = new Website({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (typeof data.Contents == "object") { - message.Contents = new Map(Object.entries(data.Contents).map(([key, value]) => [key, WebContent.fromObject(value)])); - } - return message; - } - toObject() { - const data: { - Name?: string; - Contents?: { - [key: string]: ReturnType; - }; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Contents.size > 0) { - data.Contents = Object.fromEntries(Array.from(this.Contents).map(([key, value]) => [key, value.toObject()])); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - for (const [key, value] of this.Contents) { - writer.writeMessage(2, this.Contents, () => { - writer.writeString(1, key); - writer.writeMessage(2, value, () => value.serialize(writer)); - }); - } - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Website { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Website(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.Contents as any, reader, reader.readString, () => { - let value; - reader.readMessage(message, () => value = WebContent.deserialize(reader)); - return value; - })); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Website { - return Website.deserialize(bytes); - } - } - export class Websites extends pb_1.Message { - constructor(data?: any[] | { - Websites?: Website[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Websites" in data && data.Websites != undefined) { - this.Websites = data.Websites; - } - } - } - get Websites() { - return pb_1.Message.getRepeatedWrapperField(this, Website, 1) as Website[]; - } - set Websites(value: Website[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Websites?: ReturnType[]; - }) { - const message = new Websites({}); - if (data.Websites != null) { - message.Websites = data.Websites.map(item => Website.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Websites?: ReturnType[]; - } = {}; - if (this.Websites != null) { - data.Websites = this.Websites.map((item: Website) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Websites !== undefined) - writer.writeRepeatedMessage(1, this.Websites, (item: Website) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Websites { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Websites(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Websites, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Website.deserialize(reader), Website)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Websites { - return Websites.deserialize(bytes); - } - } - export class WGClientConfig extends pb_1.Message { - constructor(data?: any[] | { - ServerPubKey?: string; - ClientPrivateKey?: string; - ClientPubKey?: string; - ClientIP?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ServerPubKey" in data && data.ServerPubKey != undefined) { - this.ServerPubKey = data.ServerPubKey; - } - if ("ClientPrivateKey" in data && data.ClientPrivateKey != undefined) { - this.ClientPrivateKey = data.ClientPrivateKey; - } - if ("ClientPubKey" in data && data.ClientPubKey != undefined) { - this.ClientPubKey = data.ClientPubKey; - } - if ("ClientIP" in data && data.ClientIP != undefined) { - this.ClientIP = data.ClientIP; - } - } - } - get ServerPubKey() { - return pb_1.Message.getField(this, 1) as string; - } - set ServerPubKey(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ClientPrivateKey() { - return pb_1.Message.getField(this, 2) as string; - } - set ClientPrivateKey(value: string) { - pb_1.Message.setField(this, 2, value); - } - get ClientPubKey() { - return pb_1.Message.getField(this, 3) as string; - } - set ClientPubKey(value: string) { - pb_1.Message.setField(this, 3, value); - } - get ClientIP() { - return pb_1.Message.getField(this, 4) as string; - } - set ClientIP(value: string) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - ServerPubKey?: string; - ClientPrivateKey?: string; - ClientPubKey?: string; - ClientIP?: string; - }) { - const message = new WGClientConfig({}); - if (data.ServerPubKey != null) { - message.ServerPubKey = data.ServerPubKey; - } - if (data.ClientPrivateKey != null) { - message.ClientPrivateKey = data.ClientPrivateKey; - } - if (data.ClientPubKey != null) { - message.ClientPubKey = data.ClientPubKey; - } - if (data.ClientIP != null) { - message.ClientIP = data.ClientIP; - } - return message; - } - toObject() { - const data: { - ServerPubKey?: string; - ClientPrivateKey?: string; - ClientPubKey?: string; - ClientIP?: string; - } = {}; - if (this.ServerPubKey != null) { - data.ServerPubKey = this.ServerPubKey; - } - if (this.ClientPrivateKey != null) { - data.ClientPrivateKey = this.ClientPrivateKey; - } - if (this.ClientPubKey != null) { - data.ClientPubKey = this.ClientPubKey; - } - if (this.ClientIP != null) { - data.ClientIP = this.ClientIP; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ServerPubKey === "string" && this.ServerPubKey.length) - writer.writeString(1, this.ServerPubKey); - if (typeof this.ClientPrivateKey === "string" && this.ClientPrivateKey.length) - writer.writeString(2, this.ClientPrivateKey); - if (typeof this.ClientPubKey === "string" && this.ClientPubKey.length) - writer.writeString(3, this.ClientPubKey); - if (typeof this.ClientIP === "string" && this.ClientIP.length) - writer.writeString(4, this.ClientIP); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGClientConfig { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGClientConfig(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ServerPubKey = reader.readString(); - break; - case 2: - message.ClientPrivateKey = reader.readString(); - break; - case 3: - message.ClientPubKey = reader.readString(); - break; - case 4: - message.ClientIP = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGClientConfig { - return WGClientConfig.deserialize(bytes); - } - } - export class Credential extends pb_1.Message { - constructor(data?: any[] | { - User?: string; - Password?: string; - APIKey?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("User" in data && data.User != undefined) { - this.User = data.User; - } - if ("Password" in data && data.Password != undefined) { - this.Password = data.Password; - } - if ("APIKey" in data && data.APIKey != undefined) { - this.APIKey = data.APIKey; - } - } - } - get User() { - return pb_1.Message.getField(this, 2) as string; - } - set User(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Password() { - return pb_1.Message.getField(this, 3) as string; - } - set Password(value: string) { - pb_1.Message.setField(this, 3, value); - } - get APIKey() { - return pb_1.Message.getField(this, 4) as string; - } - set APIKey(value: string) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - User?: string; - Password?: string; - APIKey?: string; - }) { - const message = new Credential({}); - if (data.User != null) { - message.User = data.User; - } - if (data.Password != null) { - message.Password = data.Password; - } - if (data.APIKey != null) { - message.APIKey = data.APIKey; - } - return message; - } - toObject() { - const data: { - User?: string; - Password?: string; - APIKey?: string; - } = {}; - if (this.User != null) { - data.User = this.User; - } - if (this.Password != null) { - data.Password = this.Password; - } - if (this.APIKey != null) { - data.APIKey = this.APIKey; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.User === "string" && this.User.length) - writer.writeString(2, this.User); - if (typeof this.Password === "string" && this.Password.length) - writer.writeString(3, this.Password); - if (typeof this.APIKey === "string" && this.APIKey.length) - writer.writeString(4, this.APIKey); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Credential { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Credential(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 2: - message.User = reader.readString(); - break; - case 3: - message.Password = reader.readString(); - break; - case 4: - message.APIKey = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Credential { - return Credential.deserialize(bytes); - } - } - export class Loot extends pb_1.Message { - constructor(data?: any[] | { - Type?: LootType; - LootID?: string; - Name?: string; - CredentialType?: CredentialType; - Credential?: Credential; - FileType?: FileType; - File?: dependency_1.commonpb.File; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("LootID" in data && data.LootID != undefined) { - this.LootID = data.LootID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("CredentialType" in data && data.CredentialType != undefined) { - this.CredentialType = data.CredentialType; - } - if ("Credential" in data && data.Credential != undefined) { - this.Credential = data.Credential; - } - if ("FileType" in data && data.FileType != undefined) { - this.FileType = data.FileType; - } - if ("File" in data && data.File != undefined) { - this.File = data.File; - } - } - } - get Type() { - return pb_1.Message.getField(this, 1) as LootType; - } - set Type(value: LootType) { - pb_1.Message.setField(this, 1, value); - } - get LootID() { - return pb_1.Message.getField(this, 2) as string; - } - set LootID(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Name() { - return pb_1.Message.getField(this, 3) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 3, value); - } - get CredentialType() { - return pb_1.Message.getField(this, 4) as CredentialType; - } - set CredentialType(value: CredentialType) { - pb_1.Message.setField(this, 4, value); - } - get Credential() { - return pb_1.Message.getWrapperField(this, Credential, 5) as Credential; - } - set Credential(value: Credential) { - pb_1.Message.setWrapperField(this, 5, value); - } - get FileType() { - return pb_1.Message.getField(this, 6) as FileType; - } - set FileType(value: FileType) { - pb_1.Message.setField(this, 6, value); - } - get File() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.File, 9) as dependency_1.commonpb.File; - } - set File(value: dependency_1.commonpb.File) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Type?: LootType; - LootID?: string; - Name?: string; - CredentialType?: CredentialType; - Credential?: ReturnType; - FileType?: FileType; - File?: ReturnType; - }) { - const message = new Loot({}); - if (data.Type != null) { - message.Type = data.Type; - } - if (data.LootID != null) { - message.LootID = data.LootID; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.CredentialType != null) { - message.CredentialType = data.CredentialType; - } - if (data.Credential != null) { - message.Credential = Credential.fromObject(data.Credential); - } - if (data.FileType != null) { - message.FileType = data.FileType; - } - if (data.File != null) { - message.File = dependency_1.commonpb.File.fromObject(data.File); - } - return message; - } - toObject() { - const data: { - Type?: LootType; - LootID?: string; - Name?: string; - CredentialType?: CredentialType; - Credential?: ReturnType; - FileType?: FileType; - File?: ReturnType; - } = {}; - if (this.Type != null) { - data.Type = this.Type; - } - if (this.LootID != null) { - data.LootID = this.LootID; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.CredentialType != null) { - data.CredentialType = this.CredentialType; - } - if (this.Credential != null) { - data.Credential = this.Credential.toObject(); - } - if (this.FileType != null) { - data.FileType = this.FileType; - } - if (this.File != null) { - data.File = this.File.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Type !== undefined) - writer.writeEnum(1, this.Type); - if (typeof this.LootID === "string" && this.LootID.length) - writer.writeString(2, this.LootID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(3, this.Name); - if (this.CredentialType !== undefined) - writer.writeEnum(4, this.CredentialType); - if (this.Credential !== undefined) - writer.writeMessage(5, this.Credential, () => this.Credential.serialize(writer)); - if (this.FileType !== undefined) - writer.writeEnum(6, this.FileType); - if (this.File !== undefined) - writer.writeMessage(9, this.File, () => this.File.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Loot { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Loot(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Type = reader.readEnum(); - break; - case 2: - message.LootID = reader.readString(); - break; - case 3: - message.Name = reader.readString(); - break; - case 4: - message.CredentialType = reader.readEnum(); - break; - case 5: - reader.readMessage(message.Credential, () => message.Credential = Credential.deserialize(reader)); - break; - case 6: - message.FileType = reader.readEnum(); - break; - case 9: - reader.readMessage(message.File, () => message.File = dependency_1.commonpb.File.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Loot { - return Loot.deserialize(bytes); - } - } - export class AllLoot extends pb_1.Message { - constructor(data?: any[] | { - Loot?: Loot[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Loot" in data && data.Loot != undefined) { - this.Loot = data.Loot; - } - } - } - get Loot() { - return pb_1.Message.getRepeatedWrapperField(this, Loot, 1) as Loot[]; - } - set Loot(value: Loot[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Loot?: ReturnType[]; - }) { - const message = new AllLoot({}); - if (data.Loot != null) { - message.Loot = data.Loot.map(item => Loot.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Loot?: ReturnType[]; - } = {}; - if (this.Loot != null) { - data.Loot = this.Loot.map((item: Loot) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Loot !== undefined) - writer.writeRepeatedMessage(1, this.Loot, (item: Loot) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AllLoot { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AllLoot(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Loot, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Loot.deserialize(reader), Loot)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): AllLoot { - return AllLoot.deserialize(bytes); - } - } - export class IOC extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - FileHash?: string; - ID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("FileHash" in data && data.FileHash != undefined) { - this.FileHash = data.FileHash; - } - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get FileHash() { - return pb_1.Message.getField(this, 2) as string; - } - set FileHash(value: string) { - pb_1.Message.setField(this, 2, value); - } - get ID() { - return pb_1.Message.getField(this, 3) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - Path?: string; - FileHash?: string; - ID?: string; - }) { - const message = new IOC({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.FileHash != null) { - message.FileHash = data.FileHash; - } - if (data.ID != null) { - message.ID = data.ID; - } - return message; - } - toObject() { - const data: { - Path?: string; - FileHash?: string; - ID?: string; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.FileHash != null) { - data.FileHash = this.FileHash; - } - if (this.ID != null) { - data.ID = this.ID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (typeof this.FileHash === "string" && this.FileHash.length) - writer.writeString(2, this.FileHash); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(3, this.ID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): IOC { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new IOC(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.FileHash = reader.readString(); - break; - case 3: - message.ID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): IOC { - return IOC.deserialize(bytes); - } - } - export class ExtensionData extends pb_1.Message { - constructor(data?: any[] | { - Output?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - } - } - get Output() { - return pb_1.Message.getField(this, 1) as string; - } - set Output(value: string) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Output?: string; - }) { - const message = new ExtensionData({}); - if (data.Output != null) { - message.Output = data.Output; - } - return message; - } - toObject() { - const data: { - Output?: string; - } = {}; - if (this.Output != null) { - data.Output = this.Output; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Output === "string" && this.Output.length) - writer.writeString(1, this.Output); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExtensionData { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ExtensionData(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Output = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ExtensionData { - return ExtensionData.deserialize(bytes); - } - } - export class Host extends pb_1.Message { - constructor(data?: any[] | { - Hostname?: string; - HostUUID?: string; - OSVersion?: string; - IOCs?: IOC[]; - ExtensionData?: Map; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("HostUUID" in data && data.HostUUID != undefined) { - this.HostUUID = data.HostUUID; - } - if ("OSVersion" in data && data.OSVersion != undefined) { - this.OSVersion = data.OSVersion; - } - if ("IOCs" in data && data.IOCs != undefined) { - this.IOCs = data.IOCs; - } - if ("ExtensionData" in data && data.ExtensionData != undefined) { - this.ExtensionData = data.ExtensionData; - } - } - if (!this.ExtensionData) - this.ExtensionData = new Map(); - } - get Hostname() { - return pb_1.Message.getField(this, 1) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 1, value); - } - get HostUUID() { - return pb_1.Message.getField(this, 2) as string; - } - set HostUUID(value: string) { - pb_1.Message.setField(this, 2, value); - } - get OSVersion() { - return pb_1.Message.getField(this, 3) as string; - } - set OSVersion(value: string) { - pb_1.Message.setField(this, 3, value); - } - get IOCs() { - return pb_1.Message.getRepeatedWrapperField(this, IOC, 4) as IOC[]; - } - set IOCs(value: IOC[]) { - pb_1.Message.setRepeatedWrapperField(this, 4, value); - } - get ExtensionData() { - return pb_1.Message.getField(this, 5) as any as Map; - } - set ExtensionData(value: Map) { - pb_1.Message.setField(this, 5, value as any); - } - static fromObject(data: { - Hostname?: string; - HostUUID?: string; - OSVersion?: string; - IOCs?: ReturnType[]; - ExtensionData?: { - [key: string]: ReturnType; - }; - }) { - const message = new Host({}); - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.HostUUID != null) { - message.HostUUID = data.HostUUID; - } - if (data.OSVersion != null) { - message.OSVersion = data.OSVersion; - } - if (data.IOCs != null) { - message.IOCs = data.IOCs.map(item => IOC.fromObject(item)); - } - if (typeof data.ExtensionData == "object") { - message.ExtensionData = new Map(Object.entries(data.ExtensionData).map(([key, value]) => [key, ExtensionData.fromObject(value)])); - } - return message; - } - toObject() { - const data: { - Hostname?: string; - HostUUID?: string; - OSVersion?: string; - IOCs?: ReturnType[]; - ExtensionData?: { - [key: string]: ReturnType; - }; - } = {}; - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.HostUUID != null) { - data.HostUUID = this.HostUUID; - } - if (this.OSVersion != null) { - data.OSVersion = this.OSVersion; - } - if (this.IOCs != null) { - data.IOCs = this.IOCs.map((item: IOC) => item.toObject()); - } - if (this.ExtensionData.size > 0) { - data.ExtensionData = Object.fromEntries(Array.from(this.ExtensionData).map(([key, value]) => [key, value.toObject()])); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(1, this.Hostname); - if (typeof this.HostUUID === "string" && this.HostUUID.length) - writer.writeString(2, this.HostUUID); - if (typeof this.OSVersion === "string" && this.OSVersion.length) - writer.writeString(3, this.OSVersion); - if (this.IOCs !== undefined) - writer.writeRepeatedMessage(4, this.IOCs, (item: IOC) => item.serialize(writer)); - for (const [key, value] of this.ExtensionData) { - writer.writeMessage(5, this.ExtensionData, () => { - writer.writeString(1, key); - writer.writeMessage(2, value, () => value.serialize(writer)); - }); - } - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Host { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Host(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hostname = reader.readString(); - break; - case 2: - message.HostUUID = reader.readString(); - break; - case 3: - message.OSVersion = reader.readString(); - break; - case 4: - reader.readMessage(message.IOCs, () => pb_1.Message.addToRepeatedWrapperField(message, 4, IOC.deserialize(reader), IOC)); - break; - case 5: - reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.ExtensionData as any, reader, reader.readString, () => { - let value; - reader.readMessage(message, () => value = ExtensionData.deserialize(reader)); - return value; - })); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Host { - return Host.deserialize(bytes); - } - } - export class AllHosts extends pb_1.Message { - constructor(data?: any[] | { - Hosts?: Host[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hosts" in data && data.Hosts != undefined) { - this.Hosts = data.Hosts; - } - } - } - get Hosts() { - return pb_1.Message.getRepeatedWrapperField(this, Host, 1) as Host[]; - } - set Hosts(value: Host[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - Hosts?: ReturnType[]; - }) { - const message = new AllHosts({}); - if (data.Hosts != null) { - message.Hosts = data.Hosts.map(item => Host.fromObject(item)); - } - return message; - } - toObject() { - const data: { - Hosts?: ReturnType[]; - } = {}; - if (this.Hosts != null) { - data.Hosts = this.Hosts.map((item: Host) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Hosts !== undefined) - writer.writeRepeatedMessage(1, this.Hosts, (item: Host) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): AllHosts { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new AllHosts(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Hosts, () => pb_1.Message.addToRepeatedWrapperField(message, 1, Host.deserialize(reader), Host)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): AllHosts { - return AllHosts.deserialize(bytes); - } - } - export class DllHijackReq extends pb_1.Message { - constructor(data?: any[] | { - ReferenceDLLPath?: string; - TargetLocation?: string; - ReferenceDLL?: Uint8Array; - TargetDLL?: Uint8Array; - ProfileName?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ReferenceDLLPath" in data && data.ReferenceDLLPath != undefined) { - this.ReferenceDLLPath = data.ReferenceDLLPath; - } - if ("TargetLocation" in data && data.TargetLocation != undefined) { - this.TargetLocation = data.TargetLocation; - } - if ("ReferenceDLL" in data && data.ReferenceDLL != undefined) { - this.ReferenceDLL = data.ReferenceDLL; - } - if ("TargetDLL" in data && data.TargetDLL != undefined) { - this.TargetDLL = data.TargetDLL; - } - if ("ProfileName" in data && data.ProfileName != undefined) { - this.ProfileName = data.ProfileName; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ReferenceDLLPath() { - return pb_1.Message.getField(this, 1) as string; - } - set ReferenceDLLPath(value: string) { - pb_1.Message.setField(this, 1, value); - } - get TargetLocation() { - return pb_1.Message.getField(this, 2) as string; - } - set TargetLocation(value: string) { - pb_1.Message.setField(this, 2, value); - } - get ReferenceDLL() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set ReferenceDLL(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get TargetDLL() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set TargetDLL(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - get ProfileName() { - return pb_1.Message.getField(this, 5) as string; - } - set ProfileName(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ReferenceDLLPath?: string; - TargetLocation?: string; - ReferenceDLL?: Uint8Array; - TargetDLL?: Uint8Array; - ProfileName?: string; - Request?: ReturnType; - }) { - const message = new DllHijackReq({}); - if (data.ReferenceDLLPath != null) { - message.ReferenceDLLPath = data.ReferenceDLLPath; - } - if (data.TargetLocation != null) { - message.TargetLocation = data.TargetLocation; - } - if (data.ReferenceDLL != null) { - message.ReferenceDLL = data.ReferenceDLL; - } - if (data.TargetDLL != null) { - message.TargetDLL = data.TargetDLL; - } - if (data.ProfileName != null) { - message.ProfileName = data.ProfileName; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ReferenceDLLPath?: string; - TargetLocation?: string; - ReferenceDLL?: Uint8Array; - TargetDLL?: Uint8Array; - ProfileName?: string; - Request?: ReturnType; - } = {}; - if (this.ReferenceDLLPath != null) { - data.ReferenceDLLPath = this.ReferenceDLLPath; - } - if (this.TargetLocation != null) { - data.TargetLocation = this.TargetLocation; - } - if (this.ReferenceDLL != null) { - data.ReferenceDLL = this.ReferenceDLL; - } - if (this.TargetDLL != null) { - data.TargetDLL = this.TargetDLL; - } - if (this.ProfileName != null) { - data.ProfileName = this.ProfileName; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ReferenceDLLPath === "string" && this.ReferenceDLLPath.length) - writer.writeString(1, this.ReferenceDLLPath); - if (typeof this.TargetLocation === "string" && this.TargetLocation.length) - writer.writeString(2, this.TargetLocation); - if (this.ReferenceDLL !== undefined) - writer.writeBytes(3, this.ReferenceDLL); - if (this.TargetDLL !== undefined) - writer.writeBytes(4, this.TargetDLL); - if (typeof this.ProfileName === "string" && this.ProfileName.length) - writer.writeString(5, this.ProfileName); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DllHijackReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DllHijackReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ReferenceDLLPath = reader.readString(); - break; - case 2: - message.TargetLocation = reader.readString(); - break; - case 3: - message.ReferenceDLL = reader.readBytes(); - break; - case 4: - message.TargetDLL = reader.readBytes(); - break; - case 5: - message.ProfileName = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DllHijackReq { - return DllHijackReq.deserialize(bytes); - } - } - export class DllHijack extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new DllHijack({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DllHijack { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DllHijack(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DllHijack { - return DllHijack.deserialize(bytes); - } - } - export class ShellcodeEncodeReq extends pb_1.Message { - constructor(data?: any[] | { - Encoder?: ShellcodeEncoder; - Architecture?: string; - Iterations?: number; - BadChars?: Uint8Array; - Data?: Uint8Array; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("Architecture" in data && data.Architecture != undefined) { - this.Architecture = data.Architecture; - } - if ("Iterations" in data && data.Iterations != undefined) { - this.Iterations = data.Iterations; - } - if ("BadChars" in data && data.BadChars != undefined) { - this.BadChars = data.BadChars; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Encoder() { - return pb_1.Message.getField(this, 1) as ShellcodeEncoder; - } - set Encoder(value: ShellcodeEncoder) { - pb_1.Message.setField(this, 1, value); - } - get Architecture() { - return pb_1.Message.getField(this, 2) as string; - } - set Architecture(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Iterations() { - return pb_1.Message.getField(this, 3) as number; - } - set Iterations(value: number) { - pb_1.Message.setField(this, 3, value); - } - get BadChars() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set BadChars(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - get Data() { - return pb_1.Message.getField(this, 8) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Encoder?: ShellcodeEncoder; - Architecture?: string; - Iterations?: number; - BadChars?: Uint8Array; - Data?: Uint8Array; - Request?: ReturnType; - }) { - const message = new ShellcodeEncodeReq({}); - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.Architecture != null) { - message.Architecture = data.Architecture; - } - if (data.Iterations != null) { - message.Iterations = data.Iterations; - } - if (data.BadChars != null) { - message.BadChars = data.BadChars; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Encoder?: ShellcodeEncoder; - Architecture?: string; - Iterations?: number; - BadChars?: Uint8Array; - Data?: Uint8Array; - Request?: ReturnType; - } = {}; - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.Architecture != null) { - data.Architecture = this.Architecture; - } - if (this.Iterations != null) { - data.Iterations = this.Iterations; - } - if (this.BadChars != null) { - data.BadChars = this.BadChars; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Encoder !== undefined) - writer.writeEnum(1, this.Encoder); - if (typeof this.Architecture === "string" && this.Architecture.length) - writer.writeString(2, this.Architecture); - if (this.Iterations !== undefined) - writer.writeUint32(3, this.Iterations); - if (this.BadChars !== undefined) - writer.writeBytes(4, this.BadChars); - if (this.Data !== undefined) - writer.writeBytes(8, this.Data); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellcodeEncodeReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellcodeEncodeReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Encoder = reader.readEnum(); - break; - case 2: - message.Architecture = reader.readString(); - break; - case 3: - message.Iterations = reader.readUint32(); - break; - case 4: - message.BadChars = reader.readBytes(); - break; - case 8: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellcodeEncodeReq { - return ShellcodeEncodeReq.deserialize(bytes); - } - } - export class ShellcodeEncode extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Data() { - return pb_1.Message.getField(this, 8) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 8, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - Response?: ReturnType; - }) { - const message = new ShellcodeEncode({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - Response?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(8, this.Data); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellcodeEncode { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellcodeEncode(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 8: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellcodeEncode { - return ShellcodeEncode.deserialize(bytes); - } - } - export class ShellcodeEncoderMap extends pb_1.Message { - constructor(data?: any[] | { - Encoders?: Map; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Encoders" in data && data.Encoders != undefined) { - this.Encoders = data.Encoders; - } - } - if (!this.Encoders) - this.Encoders = new Map(); - } - get Encoders() { - return pb_1.Message.getField(this, 1) as any as Map; - } - set Encoders(value: Map) { - pb_1.Message.setField(this, 1, value as any); - } - static fromObject(data: { - Encoders?: { - [key: string]: ShellcodeEncoder; - }; - }) { - const message = new ShellcodeEncoderMap({}); - if (typeof data.Encoders == "object") { - message.Encoders = new Map(Object.entries(data.Encoders)); - } - return message; - } - toObject() { - const data: { - Encoders?: { - [key: string]: ShellcodeEncoder; - }; - } = {}; - if (this.Encoders.size > 0) { - data.Encoders = Object.fromEntries(this.Encoders); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - for (const [key, value] of this.Encoders) { - writer.writeMessage(1, this.Encoders, () => { - writer.writeString(1, key); - writer.writeEnum(2, value); - }); - } - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellcodeEncoderMap { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellcodeEncoderMap(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message, () => pb_1.Map.deserializeBinary(message.Encoders as any, reader, reader.readString, reader.readEnum)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellcodeEncoderMap { - return ShellcodeEncoderMap.deserialize(bytes); - } - } +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.11.2 +// protoc v3.15.8 +// source: clientpb/client.proto + +/* eslint-disable */ +import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; +import { File, Request, Response } from "../commonpb/common"; + +export const protobufPackage = "clientpb"; + +export enum OutputFormat { + SHARED_LIB = 0, + SHELLCODE = 1, + EXECUTABLE = 2, + SERVICE = 3, + THIRD_PARTY = 4, + UNRECOGNIZED = -1, +} + +export function outputFormatFromJSON(object: any): OutputFormat { + switch (object) { + case 0: + case "SHARED_LIB": + return OutputFormat.SHARED_LIB; + case 1: + case "SHELLCODE": + return OutputFormat.SHELLCODE; + case 2: + case "EXECUTABLE": + return OutputFormat.EXECUTABLE; + case 3: + case "SERVICE": + return OutputFormat.SERVICE; + case 4: + case "THIRD_PARTY": + return OutputFormat.THIRD_PARTY; + case -1: + case "UNRECOGNIZED": + default: + return OutputFormat.UNRECOGNIZED; + } +} + +export function outputFormatToJSON(object: OutputFormat): string { + switch (object) { + case OutputFormat.SHARED_LIB: + return "SHARED_LIB"; + case OutputFormat.SHELLCODE: + return "SHELLCODE"; + case OutputFormat.EXECUTABLE: + return "EXECUTABLE"; + case OutputFormat.SERVICE: + return "SERVICE"; + case OutputFormat.THIRD_PARTY: + return "THIRD_PARTY"; + case OutputFormat.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum StageProtocol { + TCP = 0, + HTTP = 1, + HTTPS = 2, + UNRECOGNIZED = -1, +} + +export function stageProtocolFromJSON(object: any): StageProtocol { + switch (object) { + case 0: + case "TCP": + return StageProtocol.TCP; + case 1: + case "HTTP": + return StageProtocol.HTTP; + case 2: + case "HTTPS": + return StageProtocol.HTTPS; + case -1: + case "UNRECOGNIZED": + default: + return StageProtocol.UNRECOGNIZED; + } +} + +export function stageProtocolToJSON(object: StageProtocol): string { + switch (object) { + case StageProtocol.TCP: + return "TCP"; + case StageProtocol.HTTP: + return "HTTP"; + case StageProtocol.HTTPS: + return "HTTPS"; + case StageProtocol.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +/** [ Loot ] ---------------------------------------- */ +export enum FileType { + NO_FILE = 0, + BINARY = 1, + TEXT = 2, + UNRECOGNIZED = -1, +} + +export function fileTypeFromJSON(object: any): FileType { + switch (object) { + case 0: + case "NO_FILE": + return FileType.NO_FILE; + case 1: + case "BINARY": + return FileType.BINARY; + case 2: + case "TEXT": + return FileType.TEXT; + case -1: + case "UNRECOGNIZED": + default: + return FileType.UNRECOGNIZED; + } +} + +export function fileTypeToJSON(object: FileType): string { + switch (object) { + case FileType.NO_FILE: + return "NO_FILE"; + case FileType.BINARY: + return "BINARY"; + case FileType.TEXT: + return "TEXT"; + case FileType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +/** [ Shellcode ] ---------------------------------------- */ +export enum ShellcodeEncoder { + NONE = 0, + SHIKATA_GA_NAI = 1, + XOR = 2, + XOR_DYNAMIC = 3, + UNRECOGNIZED = -1, +} + +export function shellcodeEncoderFromJSON(object: any): ShellcodeEncoder { + switch (object) { + case 0: + case "NONE": + return ShellcodeEncoder.NONE; + case 1: + case "SHIKATA_GA_NAI": + return ShellcodeEncoder.SHIKATA_GA_NAI; + case 2: + case "XOR": + return ShellcodeEncoder.XOR; + case 3: + case "XOR_DYNAMIC": + return ShellcodeEncoder.XOR_DYNAMIC; + case -1: + case "UNRECOGNIZED": + default: + return ShellcodeEncoder.UNRECOGNIZED; + } +} + +export function shellcodeEncoderToJSON(object: ShellcodeEncoder): string { + switch (object) { + case ShellcodeEncoder.NONE: + return "NONE"; + case ShellcodeEncoder.SHIKATA_GA_NAI: + return "SHIKATA_GA_NAI"; + case ShellcodeEncoder.XOR: + return "XOR"; + case ShellcodeEncoder.XOR_DYNAMIC: + return "XOR_DYNAMIC"; + case ShellcodeEncoder.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum HTTPC2SegmentType { + POLL = 0, + SESSION = 1, + CLOSE = 2, + UNRECOGNIZED = -1, +} + +export function hTTPC2SegmentTypeFromJSON(object: any): HTTPC2SegmentType { + switch (object) { + case 0: + case "POLL": + return HTTPC2SegmentType.POLL; + case 1: + case "SESSION": + return HTTPC2SegmentType.SESSION; + case 2: + case "CLOSE": + return HTTPC2SegmentType.CLOSE; + case -1: + case "UNRECOGNIZED": + default: + return HTTPC2SegmentType.UNRECOGNIZED; + } +} + +export function hTTPC2SegmentTypeToJSON(object: HTTPC2SegmentType): string { + switch (object) { + case HTTPC2SegmentType.POLL: + return "POLL"; + case HTTPC2SegmentType.SESSION: + return "SESSION"; + case HTTPC2SegmentType.CLOSE: + return "CLOSE"; + case HTTPC2SegmentType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum HashType { + /** MD5 - MD5 - zero must come first in an enum */ + MD5 = 0, + /** MD4 - MD4 */ + MD4 = 900, + /** SHA1 - MD5 */ + SHA1 = 100, + /** SHA2_224 - SHA2-224 */ + SHA2_224 = 1300, + /** SHA2_256 - SHA2-256 */ + SHA2_256 = 1400, + /** SHA2_384 - SHA2-384 */ + SHA2_384 = 10800, + /** SHA2_512 - SHA2-512 */ + SHA2_512 = 1700, + /** SHA3_224 - SHA3-224 */ + SHA3_224 = 17300, + /** SHA3_256 - SHA3-256 */ + SHA3_256 = 17400, + /** SHA3_384 - SHA3-384 */ + SHA3_384 = 17500, + /** SHA3_512 - SHA3-512 */ + SHA3_512 = 17600, + /** RIPEMD_160 - RIPEMD-160 */ + RIPEMD_160 = 6000, + /** BLAKE2B_256 - BLAKE2b-512 */ + BLAKE2B_256 = 600, + /** GOST_R_32_11_2012_256 - GOST R 34.11-2012 (Streebog) 256-bit, big-endian */ + GOST_R_32_11_2012_256 = 11700, + /** GOST_R_32_11_2012_512 - GOST R 34.11-2012 (Streebog) 512-bit, big-endian */ + GOST_R_32_11_2012_512 = 11800, + /** GOST_R_34_11_94 - GOST R 34.11-94 */ + GOST_R_34_11_94 = 6900, + /** GPG - GPG (AES-128/AES-256 (SHA-1($pass))) */ + GPG = 17010, + /** HALF_MD5 - Half MD5 */ + HALF_MD5 = 5100, + /** KECCAK_224 - Keccak-224 */ + KECCAK_224 = 17700, + /** KECCAK_256 - Keccak-256 */ + KECCAK_256 = 17800, + /** KECCAK_384 - Keccak-384 */ + KECCAK_384 = 17900, + /** KECCAK_512 - Keccak-512 */ + KECCAK_512 = 18000, + /** WHIRLPOOL - Whirlpool */ + WHIRLPOOL = 6100, + /** SIPHASH - SipHash */ + SIPHASH = 10100, + /** MD5_UTF16LE - md5(utf16le($pass)) */ + MD5_UTF16LE = 70, + /** SHA1_UTF16LE - sha1(utf16le($pass)) */ + SHA1_UTF16LE = 170, + /** SHA256_UTF16LE - sha256(utf16le($pass)) */ + SHA256_UTF16LE = 1470, + /** SHA384_UTF16LE - sha384(utf16le($pass)) */ + SHA384_UTF16LE = 10870, + /** SHA512_UTF16LE - sha512(utf16le($pass)) */ + SHA512_UTF16LE = 1770, + /** BLAKE2B_512_PW_SALT - BLAKE2b-512($pass.$salt) */ + BLAKE2B_512_PW_SALT = 610, + /** BLAKE2B_512_SALT_PW - BLAKE2b-512($salt.$pass) */ + BLAKE2B_512_SALT_PW = 620, + /** MD5_PW_SALT - md5($pass.$salt) */ + MD5_PW_SALT = 10, + /** MD5_SALT_PW - md5($salt.$pass) */ + MD5_SALT_PW = 20, + /** MD5_SALT_PW_SALT - md5($salt.$pass.$salt) */ + MD5_SALT_PW_SALT = 3800, + /** MD5_SALT_MD5_PW - md5($salt.md5($pass)) */ + MD5_SALT_MD5_PW = 3710, + /** CRC32 - CRC32 */ + CRC32 = 11500, + /** CRC32C - CRC32B */ + CRC32C = 27900, + /** CRC64Jones - CRC64-Jones */ + CRC64Jones = 28000, + JAVA_OBJECT = 18700, + /** MURMUR - MurmurHash */ + MURMUR = 25700, + /** MURMUR3 - MurmurHash3 */ + MURMUR3 = 27800, + /** THREE_DES - 3DES (PT = $salt, key = $pass) */ + THREE_DES = 14100, + /** DES - DES (PT = $salt, key = $pass) */ + DES = 14000, + /** AES_128_ECB - AES-128-ECB NOKDF (PT = $salt, key = $pass) */ + AES_128_ECB = 26401, + /** AES_192_ECB - AES-192-ECB NOKDF (PT = $salt, key = $pass) */ + AES_192_ECB = 26402, + /** AES_256_ECB - AES-256-ECB NOKDF (PT = $salt, key = $pass) */ + AES_256_ECB = 26403, + /** CHA_CHA_20 - ChaCha20 */ + CHA_CHA_20 = 15400, + /** LINUX_KERNEL_CRYPTO_API_24 - Linux Kernel Crypto API (2.4) */ + LINUX_KERNEL_CRYPTO_API_24 = 14500, + /** SKIP_32 - Skip32 (PT = $salt, key = $pass) */ + SKIP_32 = 14900, + /** PBKDF2_HMAC_MD5 - PBKDF2-HMAC-MD5 */ + PBKDF2_HMAC_MD5 = 11900, + /** PBKDF2_HMAC_SHA1 - PBKDF2-HMAC-SHA1 */ + PBKDF2_HMAC_SHA1 = 12000, + /** PBKDF2_HMAC_SHA256 - PBKDF2-HMAC-SHA256 */ + PBKDF2_HMAC_SHA256 = 10900, + /** PBKDF2_HMAC_SHA512 - PBKDF2-HMAC-SHA512 */ + PBKDF2_HMAC_SHA512 = 12100, + /** SCRYPT - scrypt */ + SCRYPT = 8900, + /** PHPASS - phpass */ + PHPASS = 400, + /** TACACS_PLUS - TACACS+ */ + TACACS_PLUS = 16100, + /** SIP_DIGEST - SIP digest authentication (MD5) */ + SIP_DIGEST = 11400, + /** IKE_MD5 - IKE-PSK MD5 */ + IKE_MD5 = 5300, + /** IKE_SHA1 - IKE-PSK SHA1 */ + IKE_SHA1 = 5400, + /** SNMP_V3_HMAC_MD5_96 - SNMPv3 HMAC-MD5-96 */ + SNMP_V3_HMAC_MD5_96 = 25100, + /** SNMP_V3_HMAC_MD5_96__SHA1_96 - SNMPv3 HMAC-MD5-96 / HMAC-SHA1-96 */ + SNMP_V3_HMAC_MD5_96__SHA1_96 = 25000, + /** SNMP_V3_HMAC_SHA1_96 - SNMPv3 HMAC-SHA1-96 */ + SNMP_V3_HMAC_SHA1_96 = 25200, + /** SNMP_V3_HMAC_SHA224_128 - SNMPv3 HMAC-SHA224-128 */ + SNMP_V3_HMAC_SHA224_128 = 26700, + /** SNMP_V3_HMAC_SHA256_192 - SNMPv3 HMAC-SHA256-192 */ + SNMP_V3_HMAC_SHA256_192 = 26800, + /** SNMP_V3_HMAC_SHA384_256 - SNMPv3 HMAC-SHA384-256 */ + SNMP_V3_HMAC_SHA384_256 = 26900, + /** SNMP_V3_HMAC_SHA512_384 - SNMPv3 HMAC-SHA512-384 */ + SNMP_V3_HMAC_SHA512_384 = 27300, + /** WPA_EAPOL_PBKDF2 - WPA-EAPOL-PBKDF2 */ + WPA_EAPOL_PBKDF2 = 2500, + /** WPA_EAPOL_PMK - WPA-EAPOL-PMK */ + WPA_EAPOL_PMK = 2501, + /** WPA_PBKDF2_PMKID_EAPOL - WPA-PBKDF2-PMKID+EAPOL */ + WPA_PBKDF2_PMKID_EAPOL = 22000, + /** WPA_PMK_PMKID_EAPOL - WPA-PMK-PMKID+EAPOL */ + WPA_PMK_PMKID_EAPOL = 22001, + /** WPA_PMKID_PBKDF2 - WPA-PMKID-PBKDF2 */ + WPA_PMKID_PBKDF2 = 16800, + /** WPA_PMKID_PMK - WPA-PMKID-PMK */ + WPA_PMKID_PMK = 16801, + /** IPMI2_PAKP_HMAC_SHA1 - IPMI2 RAKP HMAC-SHA1 */ + IPMI2_PAKP_HMAC_SHA1 = 7300, + /** CRAM_MD5 - CRAM-MD5 */ + CRAM_MD5 = 10200, + /** JWT - JWT (JSON Web Token) */ + JWT = 16500, + /** RADMIN_3 - Radmin3 */ + RADMIN_3 = 29200, + /** KERBEROS_17_TGS_REP - Kerberos 5, etype 17, TGS-REP */ + KERBEROS_17_TGS_REP = 19600, + /** KERBEROS_17_PREAUTH - Kerberos 5, etype 17, Pre-Auth */ + KERBEROS_17_PREAUTH = 19800, + /** KERBEROS_17_DB - Kerberos 5, etype 17, DB */ + KERBEROS_17_DB = 28800, + /** KERBEROS_18_TGS_REP - Kerberos 5, etype 18, TGS-REP */ + KERBEROS_18_TGS_REP = 19700, + /** KERBEROS_18_PREAUTH - Kerberos 5, etype 18, Pre-Auth */ + KERBEROS_18_PREAUTH = 19900, + /** KERBEROS_18_DB - Kerberos 5, etype 18, DB */ + KERBEROS_18_DB = 28900, + /** KERBEROS_23_SA_REQ_PREAUTH - Kerberos 5, etype 23, AS-REQ Pre-Auth */ + KERBEROS_23_SA_REQ_PREAUTH = 7500, + /** KERBEROS_23_TGS_REP - Kerberos 5, etype 23, TGS-REP */ + KERBEROS_23_TGS_REP = 13100, + /** KERBEROS_23_AS_REP - Kerberos 5, etype 23, AS-REP */ + KERBEROS_23_AS_REP = 18200, + /** NET_NTLM_V1 - NetNTLMv1 / NetNTLMv1+ESS */ + NET_NTLM_V1 = 5500, + /** NET_NTLM_V1_NT - NetNTLMv1 / NetNTLMv1+ESS (NT) */ + NET_NTLM_V1_NT = 27000, + /** NET_NTLM_V2 - NetNTLMv2 */ + NET_NTLM_V2 = 5600, + /** NET_NTLM_V2_NT - NetNTLMv2 (NT) */ + NET_NTLM_V2_NT = 27100, + /** FLASK - Flask Session Cookie ($salt.$salt.$pass) */ + FLASK = 29100, + /** ISCSI_CHAP - iSCSI CHAP authentication, MD5(CHAP) */ + ISCSI_CHAP = 4800, + RACF = 8500, + AIX_SMD5 = 6300, + AIX_SSHA1 = 6700, + AIX_SSHA256 = 6400, + AIX_SSHA512 = 6500, + /** LM - LM */ + LM = 3000, + /** QNX_MD5 - QNX /etc/shadow (MD5) */ + QNX_MD5 = 19000, + /** QNX_SHA256 - QNX /etc/shadow (SHA256) */ + QNX_SHA256 = 19100, + /** QNX_SHA512 - QNX /etc/shadow (SHA512) */ + QNX_SHA512 = 19200, + /** DPAPI_V1_CTX_1_AND_2 - DPAPI masterkey file v1 (context 1 and 2) */ + DPAPI_V1_CTX_1_AND_2 = 15300, + /** DPAPI_V1_CTX_3 - DPAPI masterkey file v1 (context 3) */ + DPAPI_V1_CTX_3 = 15310, + /** DPAPI_V2_CTX_1_AND_2 - DPAPI masterkey file v2 (context 1) */ + DPAPI_V2_CTX_1_AND_2 = 15900, + /** DPAPI_V2_CTX_3 - DPAPI masterkey file v2 (context 3) */ + DPAPI_V2_CTX_3 = 15910, + /** GRUB_2 - GRUB 2 */ + GRUB_2 = 7200, + /** MS_AZURE_SYNC - MS-AzureSync PBKDF2-HMAC-SHA256 */ + MS_AZURE_SYNC = 12800, + /** BSDI_CRYPT - BSDi Crypt, Extended DES */ + BSDI_CRYPT = 12400, + /** NTLM - NTLM */ + NTLM = 1000, + /** RADMIN2 - Radmin2 */ + RADMIN2 = 9900, + /** SAMSUNG_ANDROID - Samsung Android Password/PIN */ + SAMSUNG_ANDROID = 5800, + /** WINDOWS_HELLO_PIN - Windows Hello PIN/Password */ + WINDOWS_HELLO_PIN = 28100, + /** WINDOWS_PHONE - Windows Phone 8+ PIN/Password */ + WINDOWS_PHONE = 13800, + /** CISCO_ASA_MD5 - Cisco-ASA MD5 */ + CISCO_ASA_MD5 = 2410, + /** CISCO_IOS_PBKDF2_SHA256 - Cisco-IOS $8$ (PBKDF2-SHA256) */ + CISCO_IOS_PBKDF2_SHA256 = 9200, + /** CISCO_IOS_SCRYPT - Cisco-IOS $9$ (scrypt) */ + CISCO_IOS_SCRYPT = 9300, + /** CISCO_PIX_MD5 - Cisco-Pix MD5 */ + CISCO_PIX_MD5 = 2400, + /** CITRIX_NETSCALER_SHA1 - Citrix NetScaler (SHA1) */ + CITRIX_NETSCALER_SHA1 = 8100, + /** CITRIX_NETSCALER_SHA512 - Citrix NetScaler (SHA512) */ + CITRIX_NETSCALER_SHA512 = 22200, + /** DCC - Domain Cached Credentials (DCC), MS Cache */ + DCC = 1100, + /** DCC2 - Domain Cached Credentials 2 (DCC2), MS Cache 2 */ + DCC2 = 2100, + /** MACOS_10_8 - macOS v10.8+ (PBKDF2-SHA512) */ + MACOS_10_8 = 7100, + /** INVALID - Invalid hash type */ + INVALID = 9999, + /** BCRYPT_UNIX - Out of order */ + BCRYPT_UNIX = 3200, + /** SHA512_CRYPT_UNIX - sha512crypt $6$, SHA512 (Unix) */ + SHA512_CRYPT_UNIX = 1800, + UNRECOGNIZED = -1, +} + +export function hashTypeFromJSON(object: any): HashType { + switch (object) { + case 0: + case "MD5": + return HashType.MD5; + case 900: + case "MD4": + return HashType.MD4; + case 100: + case "SHA1": + return HashType.SHA1; + case 1300: + case "SHA2_224": + return HashType.SHA2_224; + case 1400: + case "SHA2_256": + return HashType.SHA2_256; + case 10800: + case "SHA2_384": + return HashType.SHA2_384; + case 1700: + case "SHA2_512": + return HashType.SHA2_512; + case 17300: + case "SHA3_224": + return HashType.SHA3_224; + case 17400: + case "SHA3_256": + return HashType.SHA3_256; + case 17500: + case "SHA3_384": + return HashType.SHA3_384; + case 17600: + case "SHA3_512": + return HashType.SHA3_512; + case 6000: + case "RIPEMD_160": + return HashType.RIPEMD_160; + case 600: + case "BLAKE2B_256": + return HashType.BLAKE2B_256; + case 11700: + case "GOST_R_32_11_2012_256": + return HashType.GOST_R_32_11_2012_256; + case 11800: + case "GOST_R_32_11_2012_512": + return HashType.GOST_R_32_11_2012_512; + case 6900: + case "GOST_R_34_11_94": + return HashType.GOST_R_34_11_94; + case 17010: + case "GPG": + return HashType.GPG; + case 5100: + case "HALF_MD5": + return HashType.HALF_MD5; + case 17700: + case "KECCAK_224": + return HashType.KECCAK_224; + case 17800: + case "KECCAK_256": + return HashType.KECCAK_256; + case 17900: + case "KECCAK_384": + return HashType.KECCAK_384; + case 18000: + case "KECCAK_512": + return HashType.KECCAK_512; + case 6100: + case "WHIRLPOOL": + return HashType.WHIRLPOOL; + case 10100: + case "SIPHASH": + return HashType.SIPHASH; + case 70: + case "MD5_UTF16LE": + return HashType.MD5_UTF16LE; + case 170: + case "SHA1_UTF16LE": + return HashType.SHA1_UTF16LE; + case 1470: + case "SHA256_UTF16LE": + return HashType.SHA256_UTF16LE; + case 10870: + case "SHA384_UTF16LE": + return HashType.SHA384_UTF16LE; + case 1770: + case "SHA512_UTF16LE": + return HashType.SHA512_UTF16LE; + case 610: + case "BLAKE2B_512_PW_SALT": + return HashType.BLAKE2B_512_PW_SALT; + case 620: + case "BLAKE2B_512_SALT_PW": + return HashType.BLAKE2B_512_SALT_PW; + case 10: + case "MD5_PW_SALT": + return HashType.MD5_PW_SALT; + case 20: + case "MD5_SALT_PW": + return HashType.MD5_SALT_PW; + case 3800: + case "MD5_SALT_PW_SALT": + return HashType.MD5_SALT_PW_SALT; + case 3710: + case "MD5_SALT_MD5_PW": + return HashType.MD5_SALT_MD5_PW; + case 11500: + case "CRC32": + return HashType.CRC32; + case 27900: + case "CRC32C": + return HashType.CRC32C; + case 28000: + case "CRC64Jones": + return HashType.CRC64Jones; + case 18700: + case "JAVA_OBJECT": + return HashType.JAVA_OBJECT; + case 25700: + case "MURMUR": + return HashType.MURMUR; + case 27800: + case "MURMUR3": + return HashType.MURMUR3; + case 14100: + case "THREE_DES": + return HashType.THREE_DES; + case 14000: + case "DES": + return HashType.DES; + case 26401: + case "AES_128_ECB": + return HashType.AES_128_ECB; + case 26402: + case "AES_192_ECB": + return HashType.AES_192_ECB; + case 26403: + case "AES_256_ECB": + return HashType.AES_256_ECB; + case 15400: + case "CHA_CHA_20": + return HashType.CHA_CHA_20; + case 14500: + case "LINUX_KERNEL_CRYPTO_API_24": + return HashType.LINUX_KERNEL_CRYPTO_API_24; + case 14900: + case "SKIP_32": + return HashType.SKIP_32; + case 11900: + case "PBKDF2_HMAC_MD5": + return HashType.PBKDF2_HMAC_MD5; + case 12000: + case "PBKDF2_HMAC_SHA1": + return HashType.PBKDF2_HMAC_SHA1; + case 10900: + case "PBKDF2_HMAC_SHA256": + return HashType.PBKDF2_HMAC_SHA256; + case 12100: + case "PBKDF2_HMAC_SHA512": + return HashType.PBKDF2_HMAC_SHA512; + case 8900: + case "SCRYPT": + return HashType.SCRYPT; + case 400: + case "PHPASS": + return HashType.PHPASS; + case 16100: + case "TACACS_PLUS": + return HashType.TACACS_PLUS; + case 11400: + case "SIP_DIGEST": + return HashType.SIP_DIGEST; + case 5300: + case "IKE_MD5": + return HashType.IKE_MD5; + case 5400: + case "IKE_SHA1": + return HashType.IKE_SHA1; + case 25100: + case "SNMP_V3_HMAC_MD5_96": + return HashType.SNMP_V3_HMAC_MD5_96; + case 25000: + case "SNMP_V3_HMAC_MD5_96__SHA1_96": + return HashType.SNMP_V3_HMAC_MD5_96__SHA1_96; + case 25200: + case "SNMP_V3_HMAC_SHA1_96": + return HashType.SNMP_V3_HMAC_SHA1_96; + case 26700: + case "SNMP_V3_HMAC_SHA224_128": + return HashType.SNMP_V3_HMAC_SHA224_128; + case 26800: + case "SNMP_V3_HMAC_SHA256_192": + return HashType.SNMP_V3_HMAC_SHA256_192; + case 26900: + case "SNMP_V3_HMAC_SHA384_256": + return HashType.SNMP_V3_HMAC_SHA384_256; + case 27300: + case "SNMP_V3_HMAC_SHA512_384": + return HashType.SNMP_V3_HMAC_SHA512_384; + case 2500: + case "WPA_EAPOL_PBKDF2": + return HashType.WPA_EAPOL_PBKDF2; + case 2501: + case "WPA_EAPOL_PMK": + return HashType.WPA_EAPOL_PMK; + case 22000: + case "WPA_PBKDF2_PMKID_EAPOL": + return HashType.WPA_PBKDF2_PMKID_EAPOL; + case 22001: + case "WPA_PMK_PMKID_EAPOL": + return HashType.WPA_PMK_PMKID_EAPOL; + case 16800: + case "WPA_PMKID_PBKDF2": + return HashType.WPA_PMKID_PBKDF2; + case 16801: + case "WPA_PMKID_PMK": + return HashType.WPA_PMKID_PMK; + case 7300: + case "IPMI2_PAKP_HMAC_SHA1": + return HashType.IPMI2_PAKP_HMAC_SHA1; + case 10200: + case "CRAM_MD5": + return HashType.CRAM_MD5; + case 16500: + case "JWT": + return HashType.JWT; + case 29200: + case "RADMIN_3": + return HashType.RADMIN_3; + case 19600: + case "KERBEROS_17_TGS_REP": + return HashType.KERBEROS_17_TGS_REP; + case 19800: + case "KERBEROS_17_PREAUTH": + return HashType.KERBEROS_17_PREAUTH; + case 28800: + case "KERBEROS_17_DB": + return HashType.KERBEROS_17_DB; + case 19700: + case "KERBEROS_18_TGS_REP": + return HashType.KERBEROS_18_TGS_REP; + case 19900: + case "KERBEROS_18_PREAUTH": + return HashType.KERBEROS_18_PREAUTH; + case 28900: + case "KERBEROS_18_DB": + return HashType.KERBEROS_18_DB; + case 7500: + case "KERBEROS_23_SA_REQ_PREAUTH": + return HashType.KERBEROS_23_SA_REQ_PREAUTH; + case 13100: + case "KERBEROS_23_TGS_REP": + return HashType.KERBEROS_23_TGS_REP; + case 18200: + case "KERBEROS_23_AS_REP": + return HashType.KERBEROS_23_AS_REP; + case 5500: + case "NET_NTLM_V1": + return HashType.NET_NTLM_V1; + case 27000: + case "NET_NTLM_V1_NT": + return HashType.NET_NTLM_V1_NT; + case 5600: + case "NET_NTLM_V2": + return HashType.NET_NTLM_V2; + case 27100: + case "NET_NTLM_V2_NT": + return HashType.NET_NTLM_V2_NT; + case 29100: + case "FLASK": + return HashType.FLASK; + case 4800: + case "ISCSI_CHAP": + return HashType.ISCSI_CHAP; + case 8500: + case "RACF": + return HashType.RACF; + case 6300: + case "AIX_SMD5": + return HashType.AIX_SMD5; + case 6700: + case "AIX_SSHA1": + return HashType.AIX_SSHA1; + case 6400: + case "AIX_SSHA256": + return HashType.AIX_SSHA256; + case 6500: + case "AIX_SSHA512": + return HashType.AIX_SSHA512; + case 3000: + case "LM": + return HashType.LM; + case 19000: + case "QNX_MD5": + return HashType.QNX_MD5; + case 19100: + case "QNX_SHA256": + return HashType.QNX_SHA256; + case 19200: + case "QNX_SHA512": + return HashType.QNX_SHA512; + case 15300: + case "DPAPI_V1_CTX_1_AND_2": + return HashType.DPAPI_V1_CTX_1_AND_2; + case 15310: + case "DPAPI_V1_CTX_3": + return HashType.DPAPI_V1_CTX_3; + case 15900: + case "DPAPI_V2_CTX_1_AND_2": + return HashType.DPAPI_V2_CTX_1_AND_2; + case 15910: + case "DPAPI_V2_CTX_3": + return HashType.DPAPI_V2_CTX_3; + case 7200: + case "GRUB_2": + return HashType.GRUB_2; + case 12800: + case "MS_AZURE_SYNC": + return HashType.MS_AZURE_SYNC; + case 12400: + case "BSDI_CRYPT": + return HashType.BSDI_CRYPT; + case 1000: + case "NTLM": + return HashType.NTLM; + case 9900: + case "RADMIN2": + return HashType.RADMIN2; + case 5800: + case "SAMSUNG_ANDROID": + return HashType.SAMSUNG_ANDROID; + case 28100: + case "WINDOWS_HELLO_PIN": + return HashType.WINDOWS_HELLO_PIN; + case 13800: + case "WINDOWS_PHONE": + return HashType.WINDOWS_PHONE; + case 2410: + case "CISCO_ASA_MD5": + return HashType.CISCO_ASA_MD5; + case 9200: + case "CISCO_IOS_PBKDF2_SHA256": + return HashType.CISCO_IOS_PBKDF2_SHA256; + case 9300: + case "CISCO_IOS_SCRYPT": + return HashType.CISCO_IOS_SCRYPT; + case 2400: + case "CISCO_PIX_MD5": + return HashType.CISCO_PIX_MD5; + case 8100: + case "CITRIX_NETSCALER_SHA1": + return HashType.CITRIX_NETSCALER_SHA1; + case 22200: + case "CITRIX_NETSCALER_SHA512": + return HashType.CITRIX_NETSCALER_SHA512; + case 1100: + case "DCC": + return HashType.DCC; + case 2100: + case "DCC2": + return HashType.DCC2; + case 7100: + case "MACOS_10_8": + return HashType.MACOS_10_8; + case 9999: + case "INVALID": + return HashType.INVALID; + case 3200: + case "BCRYPT_UNIX": + return HashType.BCRYPT_UNIX; + case 1800: + case "SHA512_CRYPT_UNIX": + return HashType.SHA512_CRYPT_UNIX; + case -1: + case "UNRECOGNIZED": + default: + return HashType.UNRECOGNIZED; + } +} + +export function hashTypeToJSON(object: HashType): string { + switch (object) { + case HashType.MD5: + return "MD5"; + case HashType.MD4: + return "MD4"; + case HashType.SHA1: + return "SHA1"; + case HashType.SHA2_224: + return "SHA2_224"; + case HashType.SHA2_256: + return "SHA2_256"; + case HashType.SHA2_384: + return "SHA2_384"; + case HashType.SHA2_512: + return "SHA2_512"; + case HashType.SHA3_224: + return "SHA3_224"; + case HashType.SHA3_256: + return "SHA3_256"; + case HashType.SHA3_384: + return "SHA3_384"; + case HashType.SHA3_512: + return "SHA3_512"; + case HashType.RIPEMD_160: + return "RIPEMD_160"; + case HashType.BLAKE2B_256: + return "BLAKE2B_256"; + case HashType.GOST_R_32_11_2012_256: + return "GOST_R_32_11_2012_256"; + case HashType.GOST_R_32_11_2012_512: + return "GOST_R_32_11_2012_512"; + case HashType.GOST_R_34_11_94: + return "GOST_R_34_11_94"; + case HashType.GPG: + return "GPG"; + case HashType.HALF_MD5: + return "HALF_MD5"; + case HashType.KECCAK_224: + return "KECCAK_224"; + case HashType.KECCAK_256: + return "KECCAK_256"; + case HashType.KECCAK_384: + return "KECCAK_384"; + case HashType.KECCAK_512: + return "KECCAK_512"; + case HashType.WHIRLPOOL: + return "WHIRLPOOL"; + case HashType.SIPHASH: + return "SIPHASH"; + case HashType.MD5_UTF16LE: + return "MD5_UTF16LE"; + case HashType.SHA1_UTF16LE: + return "SHA1_UTF16LE"; + case HashType.SHA256_UTF16LE: + return "SHA256_UTF16LE"; + case HashType.SHA384_UTF16LE: + return "SHA384_UTF16LE"; + case HashType.SHA512_UTF16LE: + return "SHA512_UTF16LE"; + case HashType.BLAKE2B_512_PW_SALT: + return "BLAKE2B_512_PW_SALT"; + case HashType.BLAKE2B_512_SALT_PW: + return "BLAKE2B_512_SALT_PW"; + case HashType.MD5_PW_SALT: + return "MD5_PW_SALT"; + case HashType.MD5_SALT_PW: + return "MD5_SALT_PW"; + case HashType.MD5_SALT_PW_SALT: + return "MD5_SALT_PW_SALT"; + case HashType.MD5_SALT_MD5_PW: + return "MD5_SALT_MD5_PW"; + case HashType.CRC32: + return "CRC32"; + case HashType.CRC32C: + return "CRC32C"; + case HashType.CRC64Jones: + return "CRC64Jones"; + case HashType.JAVA_OBJECT: + return "JAVA_OBJECT"; + case HashType.MURMUR: + return "MURMUR"; + case HashType.MURMUR3: + return "MURMUR3"; + case HashType.THREE_DES: + return "THREE_DES"; + case HashType.DES: + return "DES"; + case HashType.AES_128_ECB: + return "AES_128_ECB"; + case HashType.AES_192_ECB: + return "AES_192_ECB"; + case HashType.AES_256_ECB: + return "AES_256_ECB"; + case HashType.CHA_CHA_20: + return "CHA_CHA_20"; + case HashType.LINUX_KERNEL_CRYPTO_API_24: + return "LINUX_KERNEL_CRYPTO_API_24"; + case HashType.SKIP_32: + return "SKIP_32"; + case HashType.PBKDF2_HMAC_MD5: + return "PBKDF2_HMAC_MD5"; + case HashType.PBKDF2_HMAC_SHA1: + return "PBKDF2_HMAC_SHA1"; + case HashType.PBKDF2_HMAC_SHA256: + return "PBKDF2_HMAC_SHA256"; + case HashType.PBKDF2_HMAC_SHA512: + return "PBKDF2_HMAC_SHA512"; + case HashType.SCRYPT: + return "SCRYPT"; + case HashType.PHPASS: + return "PHPASS"; + case HashType.TACACS_PLUS: + return "TACACS_PLUS"; + case HashType.SIP_DIGEST: + return "SIP_DIGEST"; + case HashType.IKE_MD5: + return "IKE_MD5"; + case HashType.IKE_SHA1: + return "IKE_SHA1"; + case HashType.SNMP_V3_HMAC_MD5_96: + return "SNMP_V3_HMAC_MD5_96"; + case HashType.SNMP_V3_HMAC_MD5_96__SHA1_96: + return "SNMP_V3_HMAC_MD5_96__SHA1_96"; + case HashType.SNMP_V3_HMAC_SHA1_96: + return "SNMP_V3_HMAC_SHA1_96"; + case HashType.SNMP_V3_HMAC_SHA224_128: + return "SNMP_V3_HMAC_SHA224_128"; + case HashType.SNMP_V3_HMAC_SHA256_192: + return "SNMP_V3_HMAC_SHA256_192"; + case HashType.SNMP_V3_HMAC_SHA384_256: + return "SNMP_V3_HMAC_SHA384_256"; + case HashType.SNMP_V3_HMAC_SHA512_384: + return "SNMP_V3_HMAC_SHA512_384"; + case HashType.WPA_EAPOL_PBKDF2: + return "WPA_EAPOL_PBKDF2"; + case HashType.WPA_EAPOL_PMK: + return "WPA_EAPOL_PMK"; + case HashType.WPA_PBKDF2_PMKID_EAPOL: + return "WPA_PBKDF2_PMKID_EAPOL"; + case HashType.WPA_PMK_PMKID_EAPOL: + return "WPA_PMK_PMKID_EAPOL"; + case HashType.WPA_PMKID_PBKDF2: + return "WPA_PMKID_PBKDF2"; + case HashType.WPA_PMKID_PMK: + return "WPA_PMKID_PMK"; + case HashType.IPMI2_PAKP_HMAC_SHA1: + return "IPMI2_PAKP_HMAC_SHA1"; + case HashType.CRAM_MD5: + return "CRAM_MD5"; + case HashType.JWT: + return "JWT"; + case HashType.RADMIN_3: + return "RADMIN_3"; + case HashType.KERBEROS_17_TGS_REP: + return "KERBEROS_17_TGS_REP"; + case HashType.KERBEROS_17_PREAUTH: + return "KERBEROS_17_PREAUTH"; + case HashType.KERBEROS_17_DB: + return "KERBEROS_17_DB"; + case HashType.KERBEROS_18_TGS_REP: + return "KERBEROS_18_TGS_REP"; + case HashType.KERBEROS_18_PREAUTH: + return "KERBEROS_18_PREAUTH"; + case HashType.KERBEROS_18_DB: + return "KERBEROS_18_DB"; + case HashType.KERBEROS_23_SA_REQ_PREAUTH: + return "KERBEROS_23_SA_REQ_PREAUTH"; + case HashType.KERBEROS_23_TGS_REP: + return "KERBEROS_23_TGS_REP"; + case HashType.KERBEROS_23_AS_REP: + return "KERBEROS_23_AS_REP"; + case HashType.NET_NTLM_V1: + return "NET_NTLM_V1"; + case HashType.NET_NTLM_V1_NT: + return "NET_NTLM_V1_NT"; + case HashType.NET_NTLM_V2: + return "NET_NTLM_V2"; + case HashType.NET_NTLM_V2_NT: + return "NET_NTLM_V2_NT"; + case HashType.FLASK: + return "FLASK"; + case HashType.ISCSI_CHAP: + return "ISCSI_CHAP"; + case HashType.RACF: + return "RACF"; + case HashType.AIX_SMD5: + return "AIX_SMD5"; + case HashType.AIX_SSHA1: + return "AIX_SSHA1"; + case HashType.AIX_SSHA256: + return "AIX_SSHA256"; + case HashType.AIX_SSHA512: + return "AIX_SSHA512"; + case HashType.LM: + return "LM"; + case HashType.QNX_MD5: + return "QNX_MD5"; + case HashType.QNX_SHA256: + return "QNX_SHA256"; + case HashType.QNX_SHA512: + return "QNX_SHA512"; + case HashType.DPAPI_V1_CTX_1_AND_2: + return "DPAPI_V1_CTX_1_AND_2"; + case HashType.DPAPI_V1_CTX_3: + return "DPAPI_V1_CTX_3"; + case HashType.DPAPI_V2_CTX_1_AND_2: + return "DPAPI_V2_CTX_1_AND_2"; + case HashType.DPAPI_V2_CTX_3: + return "DPAPI_V2_CTX_3"; + case HashType.GRUB_2: + return "GRUB_2"; + case HashType.MS_AZURE_SYNC: + return "MS_AZURE_SYNC"; + case HashType.BSDI_CRYPT: + return "BSDI_CRYPT"; + case HashType.NTLM: + return "NTLM"; + case HashType.RADMIN2: + return "RADMIN2"; + case HashType.SAMSUNG_ANDROID: + return "SAMSUNG_ANDROID"; + case HashType.WINDOWS_HELLO_PIN: + return "WINDOWS_HELLO_PIN"; + case HashType.WINDOWS_PHONE: + return "WINDOWS_PHONE"; + case HashType.CISCO_ASA_MD5: + return "CISCO_ASA_MD5"; + case HashType.CISCO_IOS_PBKDF2_SHA256: + return "CISCO_IOS_PBKDF2_SHA256"; + case HashType.CISCO_IOS_SCRYPT: + return "CISCO_IOS_SCRYPT"; + case HashType.CISCO_PIX_MD5: + return "CISCO_PIX_MD5"; + case HashType.CITRIX_NETSCALER_SHA1: + return "CITRIX_NETSCALER_SHA1"; + case HashType.CITRIX_NETSCALER_SHA512: + return "CITRIX_NETSCALER_SHA512"; + case HashType.DCC: + return "DCC"; + case HashType.DCC2: + return "DCC2"; + case HashType.MACOS_10_8: + return "MACOS_10_8"; + case HashType.INVALID: + return "INVALID"; + case HashType.BCRYPT_UNIX: + return "BCRYPT_UNIX"; + case HashType.SHA512_CRYPT_UNIX: + return "SHA512_CRYPT_UNIX"; + case HashType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum States { + IDLE = 0, + CRACKING = 1, + INITIALIZING = 2, + UNRECOGNIZED = -1, +} + +export function statesFromJSON(object: any): States { + switch (object) { + case 0: + case "IDLE": + return States.IDLE; + case 1: + case "CRACKING": + return States.CRACKING; + case 2: + case "INITIALIZING": + return States.INITIALIZING; + case -1: + case "UNRECOGNIZED": + default: + return States.UNRECOGNIZED; + } +} + +export function statesToJSON(object: States): string { + switch (object) { + case States.IDLE: + return "IDLE"; + case States.CRACKING: + return "CRACKING"; + case States.INITIALIZING: + return "INITIALIZING"; + case States.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackJobStatus { + IN_PROGRESS = 0, + COMPLETED = 1, + FAILED = 2, + UNRECOGNIZED = -1, +} + +export function crackJobStatusFromJSON(object: any): CrackJobStatus { + switch (object) { + case 0: + case "IN_PROGRESS": + return CrackJobStatus.IN_PROGRESS; + case 1: + case "COMPLETED": + return CrackJobStatus.COMPLETED; + case 2: + case "FAILED": + return CrackJobStatus.FAILED; + case -1: + case "UNRECOGNIZED": + default: + return CrackJobStatus.UNRECOGNIZED; + } +} + +export function crackJobStatusToJSON(object: CrackJobStatus): string { + switch (object) { + case CrackJobStatus.IN_PROGRESS: + return "IN_PROGRESS"; + case CrackJobStatus.COMPLETED: + return "COMPLETED"; + case CrackJobStatus.FAILED: + return "FAILED"; + case CrackJobStatus.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackAttackMode { + STRAIGHT = 0, + COMBINATION = 1, + BRUTEFORCE = 3, + HYBRID_WORDLIST_MASK = 6, + HYBRID_MASK_WORDLIST = 7, + ASSOCIATION = 9, + NO_ATTACK = 10, + UNRECOGNIZED = -1, +} + +export function crackAttackModeFromJSON(object: any): CrackAttackMode { + switch (object) { + case 0: + case "STRAIGHT": + return CrackAttackMode.STRAIGHT; + case 1: + case "COMBINATION": + return CrackAttackMode.COMBINATION; + case 3: + case "BRUTEFORCE": + return CrackAttackMode.BRUTEFORCE; + case 6: + case "HYBRID_WORDLIST_MASK": + return CrackAttackMode.HYBRID_WORDLIST_MASK; + case 7: + case "HYBRID_MASK_WORDLIST": + return CrackAttackMode.HYBRID_MASK_WORDLIST; + case 9: + case "ASSOCIATION": + return CrackAttackMode.ASSOCIATION; + case 10: + case "NO_ATTACK": + return CrackAttackMode.NO_ATTACK; + case -1: + case "UNRECOGNIZED": + default: + return CrackAttackMode.UNRECOGNIZED; + } +} + +export function crackAttackModeToJSON(object: CrackAttackMode): string { + switch (object) { + case CrackAttackMode.STRAIGHT: + return "STRAIGHT"; + case CrackAttackMode.COMBINATION: + return "COMBINATION"; + case CrackAttackMode.BRUTEFORCE: + return "BRUTEFORCE"; + case CrackAttackMode.HYBRID_WORDLIST_MASK: + return "HYBRID_WORDLIST_MASK"; + case CrackAttackMode.HYBRID_MASK_WORDLIST: + return "HYBRID_MASK_WORDLIST"; + case CrackAttackMode.ASSOCIATION: + return "ASSOCIATION"; + case CrackAttackMode.NO_ATTACK: + return "NO_ATTACK"; + case CrackAttackMode.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackEncoding { + INVALID_ENCODING = 0, + ISO_8859_15 = 1, + UTF_32LE = 2, + UNRECOGNIZED = -1, +} + +export function crackEncodingFromJSON(object: any): CrackEncoding { + switch (object) { + case 0: + case "INVALID_ENCODING": + return CrackEncoding.INVALID_ENCODING; + case 1: + case "ISO_8859_15": + return CrackEncoding.ISO_8859_15; + case 2: + case "UTF_32LE": + return CrackEncoding.UTF_32LE; + case -1: + case "UNRECOGNIZED": + default: + return CrackEncoding.UNRECOGNIZED; + } +} + +export function crackEncodingToJSON(object: CrackEncoding): string { + switch (object) { + case CrackEncoding.INVALID_ENCODING: + return "INVALID_ENCODING"; + case CrackEncoding.ISO_8859_15: + return "ISO_8859_15"; + case CrackEncoding.UTF_32LE: + return "UTF_32LE"; + case CrackEncoding.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackOutfileFormat { + INVALID_FORMAT = 0, + /** HASH_SALT - 1 | hash[:salt] */ + HASH_SALT = 1, + /** PLAIN - 2 | plain */ + PLAIN = 2, + /** HEX_PLAIN - 3 | hex_plain */ + HEX_PLAIN = 3, + /** CRACK_POS - 4 | crack_pos */ + CRACK_POS = 4, + /** TIMESTAMP_ABSOLUTE - 5 | timestamp absolute */ + TIMESTAMP_ABSOLUTE = 5, + /** TIMESTAMP_RELATIVE - 6 | timestamp relative */ + TIMESTAMP_RELATIVE = 6, + UNRECOGNIZED = -1, +} + +export function crackOutfileFormatFromJSON(object: any): CrackOutfileFormat { + switch (object) { + case 0: + case "INVALID_FORMAT": + return CrackOutfileFormat.INVALID_FORMAT; + case 1: + case "HASH_SALT": + return CrackOutfileFormat.HASH_SALT; + case 2: + case "PLAIN": + return CrackOutfileFormat.PLAIN; + case 3: + case "HEX_PLAIN": + return CrackOutfileFormat.HEX_PLAIN; + case 4: + case "CRACK_POS": + return CrackOutfileFormat.CRACK_POS; + case 5: + case "TIMESTAMP_ABSOLUTE": + return CrackOutfileFormat.TIMESTAMP_ABSOLUTE; + case 6: + case "TIMESTAMP_RELATIVE": + return CrackOutfileFormat.TIMESTAMP_RELATIVE; + case -1: + case "UNRECOGNIZED": + default: + return CrackOutfileFormat.UNRECOGNIZED; + } +} + +export function crackOutfileFormatToJSON(object: CrackOutfileFormat): string { + switch (object) { + case CrackOutfileFormat.INVALID_FORMAT: + return "INVALID_FORMAT"; + case CrackOutfileFormat.HASH_SALT: + return "HASH_SALT"; + case CrackOutfileFormat.PLAIN: + return "PLAIN"; + case CrackOutfileFormat.HEX_PLAIN: + return "HEX_PLAIN"; + case CrackOutfileFormat.CRACK_POS: + return "CRACK_POS"; + case CrackOutfileFormat.TIMESTAMP_ABSOLUTE: + return "TIMESTAMP_ABSOLUTE"; + case CrackOutfileFormat.TIMESTAMP_RELATIVE: + return "TIMESTAMP_RELATIVE"; + case CrackOutfileFormat.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackWorkloadProfile { + INVALID_WORKLOAD_PROFILE = 0, + LOW = 1, + DEFAULT = 2, + HIGH = 3, + NIGHTMARE = 4, + UNRECOGNIZED = -1, +} + +export function crackWorkloadProfileFromJSON(object: any): CrackWorkloadProfile { + switch (object) { + case 0: + case "INVALID_WORKLOAD_PROFILE": + return CrackWorkloadProfile.INVALID_WORKLOAD_PROFILE; + case 1: + case "LOW": + return CrackWorkloadProfile.LOW; + case 2: + case "DEFAULT": + return CrackWorkloadProfile.DEFAULT; + case 3: + case "HIGH": + return CrackWorkloadProfile.HIGH; + case 4: + case "NIGHTMARE": + return CrackWorkloadProfile.NIGHTMARE; + case -1: + case "UNRECOGNIZED": + default: + return CrackWorkloadProfile.UNRECOGNIZED; + } +} + +export function crackWorkloadProfileToJSON(object: CrackWorkloadProfile): string { + switch (object) { + case CrackWorkloadProfile.INVALID_WORKLOAD_PROFILE: + return "INVALID_WORKLOAD_PROFILE"; + case CrackWorkloadProfile.LOW: + return "LOW"; + case CrackWorkloadProfile.DEFAULT: + return "DEFAULT"; + case CrackWorkloadProfile.HIGH: + return "HIGH"; + case CrackWorkloadProfile.NIGHTMARE: + return "NIGHTMARE"; + case CrackWorkloadProfile.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum CrackFileType { + INVALID_TYPE = 0, + WORDLIST = 1, + RULES = 2, + MARKOV_HCSTAT2 = 3, + UNRECOGNIZED = -1, +} + +export function crackFileTypeFromJSON(object: any): CrackFileType { + switch (object) { + case 0: + case "INVALID_TYPE": + return CrackFileType.INVALID_TYPE; + case 1: + case "WORDLIST": + return CrackFileType.WORDLIST; + case 2: + case "RULES": + return CrackFileType.RULES; + case 3: + case "MARKOV_HCSTAT2": + return CrackFileType.MARKOV_HCSTAT2; + case -1: + case "UNRECOGNIZED": + default: + return CrackFileType.UNRECOGNIZED; + } +} + +export function crackFileTypeToJSON(object: CrackFileType): string { + switch (object) { + case CrackFileType.INVALID_TYPE: + return "INVALID_TYPE"; + case CrackFileType.WORDLIST: + return "WORDLIST"; + case CrackFileType.RULES: + return "RULES"; + case CrackFileType.MARKOV_HCSTAT2: + return "MARKOV_HCSTAT2"; + case CrackFileType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export interface Version { + Major: number; + Minor: number; + Patch: number; + Commit: string; + Dirty: boolean; + CompiledAt: string; + OS: string; + Arch: string; +} + +/** [ Client Logs ] ---------------------------------------- */ +export interface ClientLogData { + Stream: string; + Data: Buffer; +} + +export interface Session { + ID: string; + Name: string; + Hostname: string; + UUID: string; + Username: string; + UID: string; + GID: string; + OS: string; + Arch: string; + Transport: string; + RemoteAddress: string; + PID: number; + /** Argv[0] */ + Filename: string; + LastCheckin: string; + ActiveC2: string; + Version: string; + Evasion: boolean; + IsDead: boolean; + ReconnectInterval: string; + ProxyURL: string; + Burned: boolean; + Extensions: string[]; + /** string ConfigID = 24; */ + PeerID: string; + Locale: string; + FirstContact: string; + Integrity: string; +} + +export interface Beacon { + ID: string; + Name: string; + Hostname: string; + UUID: string; + Username: string; + UID: string; + GID: string; + OS: string; + Arch: string; + Transport: string; + RemoteAddress: string; + PID: number; + /** Argv[0] */ + Filename: string; + LastCheckin: string; + ActiveC2: string; + Version: string; + Evasion: boolean; + IsDead: boolean; + ProxyURL: string; + ReconnectInterval: string; + Interval: string; + Jitter: string; + Burned: boolean; + NextCheckin: string; + TasksCount: string; + TasksCountCompleted: string; + Locale: string; + FirstContact: string; + Integrity: string; +} + +export interface Beacons { + Beacons: Beacon[]; +} + +export interface BeaconTask { + ID: string; + BeaconID: string; + CreatedAt: string; + State: string; + SentAt: string; + CompletedAt: string; + Request: Buffer; + Response: Buffer; + Description: string; +} + +export interface BeaconTasks { + BeaconID: string; + Tasks: BeaconTask[]; +} + +export interface BeaconIntegrity { + BeaconID: string; + Integrity: string; +} + +export interface ImplantC2 { + ID: string; + Priority: number; + URL: string; + /** Protocol specific options */ + Options: string; +} + +/** + * ShellcodeConfig - options used when generating shellcode output. + * + * Note: Most fields map to Donut options for Windows shellcode generation. + * On macOS (darwin/arm64), only `Compress` is currently used (beignet aPLib). + */ +export interface ShellcodeConfig { + /** 1=none, 2=random names, 3=random names + symmetric encryption (Windows/Donut only) */ + Entropy: number; + /** 1=none, 2=aplib (Windows/Donut + macOS/beignet) */ + Compress: number; + /** 1=exit thread, 2=exit process, 3=block (Windows/Donut only) */ + ExitOpt: number; + /** 1=none, 2=abort on failure, 3=continue on failure (Windows/Donut only) */ + Bypass: number; + /** 1=overwrite headers, 2=keep headers (Windows/Donut only) */ + Headers: number; + /** Run unmanaged EXE entrypoint as a new thread (Windows/Donut only) */ + Thread: boolean; + /** Convert command line to Unicode for unmanaged DLL entrypoints (Windows/Donut only) */ + Unicode: boolean; + /** Override original entry point (0 = default) (Windows/Donut only) */ + OEP: number; +} + +export interface ImplantConfig { + ID: string; + ImplantBuilds: ImplantBuild[]; + ImplantProfileID: string; + IsBeacon: boolean; + BeaconInterval: string; + BeaconJitter: string; + GOOS: string; + GOARCH: string; + Debug: boolean; + Evasion: boolean; + ObfuscateSymbols: boolean; + TemplateName: string; + SGNEnabled: boolean; + GoPackage: string; + IncludeMTLS: boolean; + IncludeHTTP: boolean; + IncludeWG: boolean; + IncludeDNS: boolean; + IncludeNamePipe: boolean; + IncludeTCP: boolean; + WGPeerTunIP: string; + WGKeyExchangePort: number; + WGTcpCommsPort: number; + ReconnectInterval: string; + MaxConnectionErrors: number; + PollTimeout: string; + /** c2 */ + C2: ImplantC2[]; + CanaryDomains: string[]; + ConnectionStrategy: string; + LimitDomainJoined: boolean; + LimitDatetime: string; + LimitHostname: string; + LimitUsername: string; + LimitFileExists: string; + LimitLocale: string; + Format: OutputFormat; + IsSharedLib: boolean; + IsService: boolean; + IsShellcode: boolean; + RunAtLoad: boolean; + DebugFile: string; + exports: string[]; + ShellcodeConfig?: ShellcodeConfig | undefined; + ShellcodeEncoder: ShellcodeEncoder; + HTTPC2ConfigName: string; + NetGoEnabled: boolean; + TrafficEncodersEnabled: boolean; + TrafficEncoders: string[]; + Extension: string; + Assets: File[]; +} + +export interface TrafficEncoder { + ID: string; + Wasm?: File | undefined; + SkipTests: boolean; + TestID: string; +} + +export interface TrafficEncoderMap { + /** File Name -> TrafficEncoder */ + Encoders: { [key: string]: TrafficEncoder }; +} + +export interface TrafficEncoderMap_EncodersEntry { + key: string; + value?: TrafficEncoder | undefined; +} + +export interface TrafficEncoderTest { + Name: string; + Completed: boolean; + Success: boolean; + Duration: string; + Err: string; + /** Only used on failed tests */ + Sample: Buffer; +} + +export interface TrafficEncoderTests { + Encoder?: TrafficEncoder | undefined; + Tests: TrafficEncoderTest[]; + TotalDuration: string; + TotalTests: number; +} + +export interface ExternalImplantConfig { + Config?: ImplantConfig | undefined; + Build?: ImplantBuild | undefined; + HTTPC2?: HTTPC2Config | undefined; + encoders: { [key: string]: string }; +} + +export interface ExternalImplantConfig_EncodersEntry { + key: string; + value: string; +} + +export interface ExternalImplantBinary { + Name: string; + ImplantBuildID: string; + File?: File | undefined; +} + +/** Configs of previously built implants */ +export interface ImplantBuilds { + Configs: { [key: string]: ImplantConfig }; + ResourceIDs: { [key: string]: ResourceID }; + staged: { [key: string]: boolean }; +} + +export interface ImplantBuilds_ConfigsEntry { + key: string; + value?: ImplantConfig | undefined; +} + +export interface ImplantBuilds_ResourceIDsEntry { + key: string; + value?: ResourceID | undefined; +} + +export interface ImplantBuilds_StagedEntry { + key: string; + value: boolean; +} + +export interface ImplantStageReq { + Build: string[]; +} + +export interface ImplantBuild { + ID: string; + Name: string; + MD5: string; + SHA1: string; + SHA256: string; + Burned: boolean; + ImplantID: string; + ImplantConfigID: string; + AgeServerPublicKey: string; + PeerPublicKey: string; + PeerPrivateKey: string; + PeerPublicKeySignature: string; + MinisignServerPublicKey: string; + PeerPublicKeyDigest: string; + WGImplantPrivKey: string; + WGServerPubKey: string; + MtlsCACert: string; + MtlsCert: string; + MtlsKey: string; + Stage: boolean; +} + +export interface CompilerTarget { + /** The server's OS */ + GOOS: string; + /** The server's Arch */ + GOARCH: string; + Format: OutputFormat; +} + +export interface CrossCompiler { + /** The server's OS */ + TargetGOOS: string; + /** The server's Arch */ + TargetGOARCH: string; + CCPath: string; + CXXPath: string; +} + +export interface Compiler { + /** The server's OS */ + GOOS: string; + /** The server's Arch */ + GOARCH: string; + Targets: CompilerTarget[]; + CrossCompilers: CrossCompiler[]; + UnsupportedTargets: CompilerTarget[]; +} + +export interface DeleteReq { + Name: string; +} + +/** DNSCanary - Single canary and metadata */ +export interface DNSCanary { + ID: string; + ImplantName: string; + Domain: string; + Triggered: boolean; + FirstTriggered: string; + LatestTrigger: string; + Count: number; +} + +export interface Canaries { + Canaries: DNSCanary[]; +} + +/** UniqueWGIP - Unique wireguard IP */ +export interface UniqueWGIP { + IP: string; +} + +export interface ImplantProfile { + ID: string; + Name: string; + Config?: ImplantConfig | undefined; +} + +export interface ImplantProfiles { + Profiles: ImplantProfile[]; +} + +export interface RegenerateReq { + ImplantName: string; +} + +export interface Job { + ID: number; + Name: string; + Description: string; + Protocol: string; + Port: number; + Domains: string[]; + ProfileName: string; +} + +export interface Jobs { + Active: Job[]; +} + +export interface KillJobReq { + ID: number; +} + +export interface RestartJobReq { + JobIDs: number[]; +} + +export interface KillJob { + ID: number; + Success: boolean; +} + +/** [ Listeners ] ---------------------------------------- */ +export interface ListenerJob { + ID: string; + Type: string; + JobID: number; + MTLSConf?: MTLSListenerReq | undefined; + WGConf?: WGListenerReq | undefined; + DNSConf?: DNSListenerReq | undefined; + HTTPConf?: HTTPListenerReq | undefined; + MultiConf?: MultiplayerListenerReq | undefined; + TCPConf?: StagerListenerReq | undefined; +} + +export interface MultiplayerListenerReq { + Host: string; + Port: number; +} + +export interface MTLSListenerReq { + Host: string; + Port: number; +} + +export interface WGListenerReq { + Host: string; + Port: number; + TunIP: string; + NPort: number; + KeyPort: number; +} + +export interface DNSListenerReq { + Domains: string[]; + Canaries: boolean; + Host: string; + Port: number; + EnforceOTP: boolean; +} + +export interface HTTPListenerReq { + Domain: string; + Host: string; + Port: number; + /** Enable HTTPS */ + Secure: boolean; + Website: string; + Cert: Buffer; + Key: Buffer; + ACME: boolean; + EnforceOTP: boolean; + LongPollTimeout: string; + LongPollJitter: string; + /** Only valid with Secure = true */ + RandomizeJARM: boolean; +} + +/** Named Pipes Messages for pivoting */ +export interface NamedPipesReq { + PipeName: string; + Request?: Request | undefined; +} + +export interface NamedPipes { + Success: boolean; + Err: string; + Response?: Response | undefined; +} + +/** TCP Messages for pivoting */ +export interface TCPPivotReq { + Address: string; + Request?: Request | undefined; +} + +export interface TCPPivot { + Success: boolean; + Err: string; + Response?: Response | undefined; +} + +/** [ commands ] ---------------------------------------- */ +export interface Sessions { + Sessions: Session[]; +} + +export interface RenameReq { + SessionID: string; + BeaconID: string; + Name: string; +} + +export interface GenerateReq { + Config?: ImplantConfig | undefined; + Name: string; +} + +export interface GenerateStageReq { + Profile: string; + Name: string; + AESEncryptKey: string; + AESEncryptIv: string; + RC4EncryptKey: string; + PrependSize: boolean; + CompressF: string; + Compress: string; +} + +export interface Generate { + File?: File | undefined; +} + +export interface MSFReq { + Payload: string; + LHost: string; + LPort: number; + Encoder: string; + Iterations: number; + Request?: Request | undefined; +} + +export interface MSFRemoteReq { + Payload: string; + LHost: string; + LPort: number; + Encoder: string; + Iterations: number; + PID: number; + Request?: Request | undefined; +} + +export interface StagerListenerReq { + Protocol: StageProtocol; + Host: string; + Port: number; + Data: Buffer; + ProfileName: string; +} + +export interface StagerListener { + JobID: number; +} + +export interface ShellcodeRDIReq { + Data: Buffer; + FunctionName: string; + Arguments: string; +} + +export interface ShellcodeRDI { + Data: Buffer; +} + +/** + * GetSystemReq - Client request to the server which is translated into + * InvokeSystemReq when sending to the implant. + */ +export interface GetSystemReq { + HostingProcess: string; + Config?: ImplantConfig | undefined; + Name: string; + Request?: Request | undefined; +} + +/** + * MigrateReq - Client request to the server which is translated into + * InvokeMigrateReq when sending to the implant. + */ +export interface MigrateReq { + Pid: number; + Config?: ImplantConfig | undefined; + Encoder: ShellcodeEncoder; + Name: string; + ProcName: string; + Request?: Request | undefined; +} + +/** [ Tunnels ] ---------------------------------------- */ +export interface CreateTunnelReq { + Request?: Request | undefined; +} + +export interface CreateTunnel { + SessionID: number; + TunnelID: string; +} + +export interface CloseTunnelReq { + TunnelID: string; + Request?: Request | undefined; +} + +/** [ Pivots ] ---------------------------------------- */ +export interface PivotGraphEntry { + PeerID: string; + Session?: Session | undefined; + Name: string; + Children: PivotGraphEntry[]; +} + +export interface PivotGraph { + Children: PivotGraphEntry[]; +} + +/** [ Events ] ---------------------------------------- */ +export interface Client { + ID: number; + Name: string; + Operator?: Operator | undefined; +} + +export interface Event { + EventType: string; + Session?: Session | undefined; + Job?: Job | undefined; + Client?: Client | undefined; + Data: Buffer; + /** Can't trigger normal gRPC error */ + Err: string; +} + +export interface Operators { + Operators: Operator[]; +} + +export interface Operator { + Online: boolean; + Name: string; +} + +/** [ Websites ] ---------------------------------------- */ +export interface WebContent { + ID: string; + WebsiteID: string; + Path: string; + ContentType: string; + Size: string; + OriginalFile: string; + Sha256: string; + Content: Buffer; +} + +export interface WebsiteAddContent { + Name: string; + Contents: { [key: string]: WebContent }; +} + +export interface WebsiteAddContent_ContentsEntry { + key: string; + value?: WebContent | undefined; +} + +export interface WebsiteRemoveContent { + Name: string; + Paths: string[]; +} + +export interface Website { + ID: string; + Name: string; + Contents: { [key: string]: WebContent }; +} + +export interface Website_ContentsEntry { + key: string; + value?: WebContent | undefined; +} + +export interface Websites { + Websites: Website[]; +} + +export interface WGClientConfig { + ServerPubKey: string; + ClientPrivateKey: string; + ClientPubKey: string; + ClientIP: string; +} + +export interface Loot { + ID: string; + Name: string; + FileType: FileType; + OriginHostUUID: string; + Size: string; + File?: File | undefined; +} + +export interface AllLoot { + Loot: Loot[]; +} + +/** [ Hosts ] ---------------------------------------- */ +export interface IOC { + Path: string; + FileHash: string; + ID: string; +} + +export interface ExtensionData { + Output: string; +} + +export interface Host { + ID: string; + Hostname: string; + HostUUID: string; + OSVersion: string; + IOCs: IOC[]; + ExtensionData: { [key: string]: ExtensionData }; + Locale: string; + FirstContact: string; +} + +export interface Host_ExtensionDataEntry { + key: string; + value?: ExtensionData | undefined; +} + +export interface AllHosts { + Hosts: Host[]; +} + +/** [ Dll Hijack ] ---------------------------------------- */ +export interface DllHijackReq { + ReferenceDLLPath: string; + TargetLocation: string; + ReferenceDLL: Buffer; + TargetDLL: Buffer; + ProfileName: string; + Name: string; + Request?: Request | undefined; +} + +export interface DllHijack { + Response?: Response | undefined; +} + +export interface BackdoorReq { + FilePath: string; + ProfileName: string; + Name: string; + Request?: Request | undefined; +} + +export interface Backdoor { + Response?: Response | undefined; +} + +export interface ShellcodeEncodeReq { + Encoder: ShellcodeEncoder; + Architecture: string; + Iterations: number; + BadChars: Buffer; + Data: Buffer; + Request?: Request | undefined; +} + +export interface ShellcodeEncode { + Data: Buffer; + Response?: Response | undefined; +} + +export interface ShellcodeEncoderArchMap { + Encoders: { [key: string]: ShellcodeEncoder }; + Descriptions: { [key: string]: string }; +} + +export interface ShellcodeEncoderArchMap_EncodersEntry { + key: string; + value: ShellcodeEncoder; +} + +export interface ShellcodeEncoderArchMap_DescriptionsEntry { + key: string; + value: string; +} + +export interface ShellcodeEncoderMap { + Encoders: { [key: string]: ShellcodeEncoderArchMap }; +} + +export interface ShellcodeEncoderMap_EncodersEntry { + key: string; + value?: ShellcodeEncoderArchMap | undefined; +} + +export interface ExternalGenerateReq { + Config?: ImplantConfig | undefined; + BuilderName: string; + Name: string; +} + +export interface Builders { + Builders: Builder[]; +} + +export interface Builder { + Name: string; + OperatorName: string; + /** The builder's OS */ + GOOS: string; + /** The builder's Arch */ + GOARCH: string; + Templates: string[]; + Targets: CompilerTarget[]; + CrossCompilers: CrossCompiler[]; +} + +/** [ HTTP C2 ] ---------------------------------------- */ +export interface HTTPC2Configs { + configs: HTTPC2Config[]; +} + +export interface C2ProfileReq { + Name: string; +} + +export interface HTTPC2ConfigReq { + overwrite: boolean; + C2Config?: HTTPC2Config | undefined; +} + +export interface HTTPC2Config { + ID: string; + Created: string; + Name: string; + ServerConfig?: HTTPC2ServerConfig | undefined; + ImplantConfig?: HTTPC2ImplantConfig | undefined; +} + +export interface HTTPC2ServerConfig { + ID: string; + RandomVersionHeaders: boolean; + Headers: HTTPC2Header[]; + Cookies: HTTPC2Cookie[]; +} + +export interface HTTPC2ImplantConfig { + ID: string; + UserAgent: string; + ChromeBaseVersion: number; + MacOSVersion: string; + NonceQueryArgChars: string; + ExtraURLParameters: HTTPC2URLParameter[]; + Headers: HTTPC2Header[]; + MaxFileGen: number; + MinFileGen: number; + MaxPathGen: number; + MinPathGen: number; + MaxPathLength: number; + MinPathLength: number; + extensions: string[]; + PathSegments: HTTPC2PathSegment[]; + NonceQueryLength: number; + NonceMode: string; +} + +export interface HTTPC2Cookie { + ID: string; + Name: string; +} + +export interface HTTPC2Header { + ID: string; + Method: string; + Name: string; + Value: string; + Probability: number; +} + +export interface HTTPC2URLParameter { + ID: string; + Method: string; + Name: string; + Value: string; + Probability: number; +} + +export interface HTTPC2PathSegment { + ID: string; + IsFile: boolean; + Value: string; +} + +export interface Credential { + ID: string; + Username: string; + Plaintext: string; + Hash: string; + HashType: HashType; + IsCracked: boolean; + OriginHostUUID: string; + Collection: string; +} + +export interface Credentials { + Credentials: Credential[]; +} + +/** [ Crackstation ] ---------------------------------------- */ +export interface Crackstations { + Crackstations: Crackstation[]; +} + +export interface CrackstationStatus { + Name: string; + HostUUID: string; + State: States; + CurrentCrackJobID: string; + IsSyncing: boolean; + Syncing?: CrackSyncStatus | undefined; +} + +export interface CrackSyncStatus { + Speed: number; + Progress: { [key: string]: number }; +} + +export interface CrackSyncStatus_ProgressEntry { + key: string; + value: number; +} + +export interface CrackBenchmark { + Name: string; + HostUUID: string; + Benchmarks: { [key: number]: string }; +} + +export interface CrackBenchmark_BenchmarksEntry { + key: number; + value: string; +} + +export interface CrackTask { + ID: string; + /** CrackstationID */ + HostUUID: string; + CreatedAt: string; + StartedAt: string; + CompletedAt: string; + Err: string; + Command?: CrackCommand | undefined; +} + +export interface Crackstation { + ID: string; + Name: string; + OperatorName: string; + /** The cracker's OS */ + GOOS: string; + /** The cracker's Arch */ + GOARCH: string; + HashcatVersion: string; + HostUUID: string; + Version: string; + Benchmarks: { [key: number]: string }; + CUDA: CUDABackendInfo[]; + Metal: MetalBackendInfo[]; + OpenCL: OpenCLBackendInfo[]; +} + +export interface Crackstation_BenchmarksEntry { + key: number; + value: string; +} + +export interface CUDABackendInfo { + Type: string; + VendorID: number; + Vendor: string; + Name: string; + Version: string; + Processors: number; + Clock: number; + MemoryTotal: string; + MemoryFree: string; + CUDAVersion: string; +} + +export interface OpenCLBackendInfo { + Type: string; + VendorID: number; + Vendor: string; + Name: string; + Version: string; + Processors: number; + Clock: number; + MemoryTotal: string; + MemoryFree: string; + OpenCLVersion: string; + OpenCLDriverVersion: string; +} + +export interface MetalBackendInfo { + Type: string; + VendorID: number; + Vendor: string; + Name: string; + Version: string; + Processors: number; + Clock: number; + MemoryTotal: string; + MemoryFree: string; + MetalVersion: string; +} + +export interface CrackCommand { + AttackMode: CrackAttackMode; + HashType: HashType; + Hashes: string[]; + /** + * --version + * --help + */ + Quiet: boolean; + HexCharset: boolean; + HexSalt: boolean; + HexWordlist: boolean; + Force: boolean; + DeprecatedCheckDisable: boolean; + Status: boolean; + StatusJSON: boolean; + StatusTimer: number; + StdinTimeoutAbort: number; + MachineReadable: boolean; + KeepGuessing: boolean; + SelfTestDisable: boolean; + Loopback: boolean; + /** --markov-hcstat2 FILE */ + MarkovHcstat2: Buffer; + MarkovDisable: boolean; + MarkovClassic: boolean; + MarkovInverse: boolean; + MarkovThreshold: number; + Runtime: number; + /** [a-zA-Z0-9_-] */ + Session: string; + Restore: boolean; + RestoreDisable: boolean; + /** --restore-file-path FILE */ + RestoreFile: Buffer; + /** --outfile FILE (28) */ + OutfileFormat: CrackOutfileFormat[]; + OutfileAutohexDisable: boolean; + OutfileCheckTimer: number; + WordlistAutohexDisable: boolean; + /** single char */ + Separator: string; + Stdout: boolean; + Show: boolean; + Left: boolean; + Username: boolean; + Remove: boolean; + RemoveTimer: number; + PotfileDisable: boolean; + /** --potfile-path FILE */ + Potfile: Buffer; + EncodingFrom: CrackEncoding; + EncodingTo: CrackEncoding; + DebugMode: number; + /** + * --debug-file FILE (45) + * --induction-dir DIR (46) + * --outfile-check-dir DIR (47) + */ + LogfileDisable: boolean; + HccapxMessagePair: number; + NonceErrorCorrections: number; + /** --keyboard-layout-mapping FILE */ + KeyboardLayoutMapping: Buffer; + /** + * --truecrypt-keyfiles FILE (52) + * --veracrypt-keyfiles FILE (53) + * --veracrypt-pim-start PIM (54) + * --veracrypt-pim-stop PIM (55) + */ + Benchmark: boolean; + BenchmarkAll: boolean; + SpeedOnly: boolean; + ProgressOnly: boolean; + SegmentSize: number; + BitmapMin: number; + BitmapMax: number; + CPUAffinity: number[]; + HookThreads: number; + HashInfo: boolean; + /** --example-hashes (66) */ + BackendIgnoreCUDA: boolean; + BackendIgnoreHip: boolean; + BackendIgnoreMetal: boolean; + BackendIgnoreOpenCL: boolean; + BackendInfo: boolean; + BackendDevices: number[]; + OpenCLDeviceTypes: number[]; + OptimizedKernelEnable: boolean; + MultiplyAccelDisabled: boolean; + WorkloadProfile: CrackWorkloadProfile; + KernelAccel: number; + KernelLoops: number; + KernelThreads: number; + BackendVectorWidth: number; + SpinDamp: number; + HwmonDisable: boolean; + HwmonTempAbort: number; + ScryptTMTO: number; + Skip: string; + Limit: string; + Keyspace: boolean; + /** + * --rule-left (88) + * --rule-right (89) + */ + RulesFile: Buffer; + GenerateRules: number; + GenerateRulesFunMin: number; + GenerateRulesFunMax: number; + GenerateRulesFuncSel: string; + GenerateRulesSeed: number; + CustomCharset1: string; + CustomCharset2: string; + CustomCharset3: string; + CustomCharset4: string; + Identify: string; + Increment: boolean; + IncrementMin: number; + IncrementMax: number; + SlowCandidates: boolean; + BrainServer: boolean; + BrainServerTimer: number; + BrainClient: boolean; + BrainClientFeatures: string; + BrainHost: string; + BrainPort: number; + BrainPassword: string; + BrainSession: string; + BrainSessionWhitelist: string; +} + +export interface CrackJob { + ID: string; + CreatedAt: string; + CompletedAt: string; + Status: CrackJobStatus; + Err: string; + Command?: CrackCommand | undefined; + ResultFileID: string; +} + +export interface CrackResponse { + Job?: CrackJob | undefined; +} + +export interface CrackConfig { + AutoFire: boolean; + MaxFileSize: string; + ChunkSize: string; + MaxDiskUsage: string; +} + +export interface CrackFiles { + Files: CrackFile[]; + CurrentDiskUsage: string; + MaxDiskUsage: string; +} + +export interface CrackFile { + ID: string; + CreatedAt: string; + LastModified: string; + Name: string; + UncompressedSize: string; + Sha2256: string; + Type: CrackFileType; + IsCompressed: boolean; + MaxFileSize: string; + ChunkSize: string; + Chunks: CrackFileChunk[]; +} + +export interface CrackFileChunk { + ID: string; + CrackFileID: string; + N: number; + Data: Buffer; +} + +/** watchtower */ +export interface MonitoringProviders { + providers: MonitoringProvider[]; +} + +export interface MonitoringProvider { + ID: string; + Type: string; + APIKey: string; + APIPassword: string; +} + +/** resource IDs */ +export interface ResourceID { + ID: string; + Type: string; + Name: string; + Value: string; +} + +export interface CertificatesReq { + CategoryFilters: number; + CN: string; +} + +export interface CertificateData { + CN: string; + CreationTime: string; + ValidityStart: string; + ValidityExpiry: string; + Type: string; + KeyAlgorithm: string; + ID: string; +} + +export interface CertificateInfo { + info: CertificateData[]; +} + +export interface CertificateAuthorityData { + CN: string; + CreationTime: string; + ValidityStart: string; + ValidityExpiry: string; + Type: string; + KeyAlgorithm: string; + ID: string; +} + +export interface CertificateAuthorityInfo { + info: CertificateAuthorityData[]; +} + +function createBaseVersion(): Version { + return { Major: 0, Minor: 0, Patch: 0, Commit: "", Dirty: false, CompiledAt: "0", OS: "", Arch: "" }; +} + +export const Version: MessageFns = { + encode(message: Version, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Major !== 0) { + writer.uint32(8).int32(message.Major); + } + if (message.Minor !== 0) { + writer.uint32(16).int32(message.Minor); + } + if (message.Patch !== 0) { + writer.uint32(24).int32(message.Patch); + } + if (message.Commit !== "") { + writer.uint32(34).string(message.Commit); + } + if (message.Dirty !== false) { + writer.uint32(40).bool(message.Dirty); + } + if (message.CompiledAt !== "0") { + writer.uint32(48).int64(message.CompiledAt); + } + if (message.OS !== "") { + writer.uint32(58).string(message.OS); + } + if (message.Arch !== "") { + writer.uint32(66).string(message.Arch); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Version { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseVersion(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Major = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Minor = reader.int32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Patch = reader.int32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Commit = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Dirty = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.CompiledAt = reader.int64().toString(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.OS = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Arch = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Version { + return { + Major: isSet(object.Major) ? globalThis.Number(object.Major) : 0, + Minor: isSet(object.Minor) ? globalThis.Number(object.Minor) : 0, + Patch: isSet(object.Patch) ? globalThis.Number(object.Patch) : 0, + Commit: isSet(object.Commit) ? globalThis.String(object.Commit) : "", + Dirty: isSet(object.Dirty) ? globalThis.Boolean(object.Dirty) : false, + CompiledAt: isSet(object.CompiledAt) ? globalThis.String(object.CompiledAt) : "0", + OS: isSet(object.OS) ? globalThis.String(object.OS) : "", + Arch: isSet(object.Arch) ? globalThis.String(object.Arch) : "", + }; + }, + + toJSON(message: Version): unknown { + const obj: any = {}; + if (message.Major !== 0) { + obj.Major = Math.round(message.Major); + } + if (message.Minor !== 0) { + obj.Minor = Math.round(message.Minor); + } + if (message.Patch !== 0) { + obj.Patch = Math.round(message.Patch); + } + if (message.Commit !== "") { + obj.Commit = message.Commit; + } + if (message.Dirty !== false) { + obj.Dirty = message.Dirty; + } + if (message.CompiledAt !== "0") { + obj.CompiledAt = message.CompiledAt; + } + if (message.OS !== "") { + obj.OS = message.OS; + } + if (message.Arch !== "") { + obj.Arch = message.Arch; + } + return obj; + }, + + create(base?: DeepPartial): Version { + return Version.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Version { + const message = createBaseVersion(); + message.Major = object.Major ?? 0; + message.Minor = object.Minor ?? 0; + message.Patch = object.Patch ?? 0; + message.Commit = object.Commit ?? ""; + message.Dirty = object.Dirty ?? false; + message.CompiledAt = object.CompiledAt ?? "0"; + message.OS = object.OS ?? ""; + message.Arch = object.Arch ?? ""; + return message; + }, +}; + +function createBaseClientLogData(): ClientLogData { + return { Stream: "", Data: Buffer.alloc(0) }; +} + +export const ClientLogData: MessageFns = { + encode(message: ClientLogData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Stream !== "") { + writer.uint32(10).string(message.Stream); + } + if (message.Data.length !== 0) { + writer.uint32(18).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ClientLogData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClientLogData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Stream = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ClientLogData { + return { + Stream: isSet(object.Stream) ? globalThis.String(object.Stream) : "", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + }; + }, + + toJSON(message: ClientLogData): unknown { + const obj: any = {}; + if (message.Stream !== "") { + obj.Stream = message.Stream; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): ClientLogData { + return ClientLogData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ClientLogData { + const message = createBaseClientLogData(); + message.Stream = object.Stream ?? ""; + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseSession(): Session { + return { + ID: "", + Name: "", + Hostname: "", + UUID: "", + Username: "", + UID: "", + GID: "", + OS: "", + Arch: "", + Transport: "", + RemoteAddress: "", + PID: 0, + Filename: "", + LastCheckin: "0", + ActiveC2: "", + Version: "", + Evasion: false, + IsDead: false, + ReconnectInterval: "0", + ProxyURL: "", + Burned: false, + Extensions: [], + PeerID: "0", + Locale: "", + FirstContact: "0", + Integrity: "", + }; +} + +export const Session: MessageFns = { + encode(message: Session, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.Hostname !== "") { + writer.uint32(26).string(message.Hostname); + } + if (message.UUID !== "") { + writer.uint32(34).string(message.UUID); + } + if (message.Username !== "") { + writer.uint32(42).string(message.Username); + } + if (message.UID !== "") { + writer.uint32(50).string(message.UID); + } + if (message.GID !== "") { + writer.uint32(58).string(message.GID); + } + if (message.OS !== "") { + writer.uint32(66).string(message.OS); + } + if (message.Arch !== "") { + writer.uint32(74).string(message.Arch); + } + if (message.Transport !== "") { + writer.uint32(82).string(message.Transport); + } + if (message.RemoteAddress !== "") { + writer.uint32(90).string(message.RemoteAddress); + } + if (message.PID !== 0) { + writer.uint32(96).int32(message.PID); + } + if (message.Filename !== "") { + writer.uint32(106).string(message.Filename); + } + if (message.LastCheckin !== "0") { + writer.uint32(112).int64(message.LastCheckin); + } + if (message.ActiveC2 !== "") { + writer.uint32(122).string(message.ActiveC2); + } + if (message.Version !== "") { + writer.uint32(130).string(message.Version); + } + if (message.Evasion !== false) { + writer.uint32(136).bool(message.Evasion); + } + if (message.IsDead !== false) { + writer.uint32(144).bool(message.IsDead); + } + if (message.ReconnectInterval !== "0") { + writer.uint32(152).int64(message.ReconnectInterval); + } + if (message.ProxyURL !== "") { + writer.uint32(162).string(message.ProxyURL); + } + if (message.Burned !== false) { + writer.uint32(176).bool(message.Burned); + } + for (const v of message.Extensions) { + writer.uint32(186).string(v!); + } + if (message.PeerID !== "0") { + writer.uint32(200).int64(message.PeerID); + } + if (message.Locale !== "") { + writer.uint32(210).string(message.Locale); + } + if (message.FirstContact !== "0") { + writer.uint32(216).int64(message.FirstContact); + } + if (message.Integrity !== "") { + writer.uint32(226).string(message.Integrity); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Session { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSession(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.UUID = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Username = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.UID = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.GID = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.OS = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Arch = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.Transport = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.RemoteAddress = reader.string(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.PID = reader.int32(); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.Filename = reader.string(); + continue; + } + case 14: { + if (tag !== 112) { + break; + } + + message.LastCheckin = reader.int64().toString(); + continue; + } + case 15: { + if (tag !== 122) { + break; + } + + message.ActiveC2 = reader.string(); + continue; + } + case 16: { + if (tag !== 130) { + break; + } + + message.Version = reader.string(); + continue; + } + case 17: { + if (tag !== 136) { + break; + } + + message.Evasion = reader.bool(); + continue; + } + case 18: { + if (tag !== 144) { + break; + } + + message.IsDead = reader.bool(); + continue; + } + case 19: { + if (tag !== 152) { + break; + } + + message.ReconnectInterval = reader.int64().toString(); + continue; + } + case 20: { + if (tag !== 162) { + break; + } + + message.ProxyURL = reader.string(); + continue; + } + case 22: { + if (tag !== 176) { + break; + } + + message.Burned = reader.bool(); + continue; + } + case 23: { + if (tag !== 186) { + break; + } + + message.Extensions.push(reader.string()); + continue; + } + case 25: { + if (tag !== 200) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 26: { + if (tag !== 210) { + break; + } + + message.Locale = reader.string(); + continue; + } + case 27: { + if (tag !== 216) { + break; + } + + message.FirstContact = reader.int64().toString(); + continue; + } + case 28: { + if (tag !== 226) { + break; + } + + message.Integrity = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Session { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + UUID: isSet(object.UUID) ? globalThis.String(object.UUID) : "", + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + UID: isSet(object.UID) ? globalThis.String(object.UID) : "", + GID: isSet(object.GID) ? globalThis.String(object.GID) : "", + OS: isSet(object.OS) ? globalThis.String(object.OS) : "", + Arch: isSet(object.Arch) ? globalThis.String(object.Arch) : "", + Transport: isSet(object.Transport) ? globalThis.String(object.Transport) : "", + RemoteAddress: isSet(object.RemoteAddress) ? globalThis.String(object.RemoteAddress) : "", + PID: isSet(object.PID) ? globalThis.Number(object.PID) : 0, + Filename: isSet(object.Filename) ? globalThis.String(object.Filename) : "", + LastCheckin: isSet(object.LastCheckin) ? globalThis.String(object.LastCheckin) : "0", + ActiveC2: isSet(object.ActiveC2) ? globalThis.String(object.ActiveC2) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Evasion: isSet(object.Evasion) ? globalThis.Boolean(object.Evasion) : false, + IsDead: isSet(object.IsDead) ? globalThis.Boolean(object.IsDead) : false, + ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", + ProxyURL: isSet(object.ProxyURL) ? globalThis.String(object.ProxyURL) : "", + Burned: isSet(object.Burned) ? globalThis.Boolean(object.Burned) : false, + Extensions: globalThis.Array.isArray(object?.Extensions) + ? object.Extensions.map((e: any) => globalThis.String(e)) + : [], + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + Locale: isSet(object.Locale) ? globalThis.String(object.Locale) : "", + FirstContact: isSet(object.FirstContact) ? globalThis.String(object.FirstContact) : "0", + Integrity: isSet(object.Integrity) ? globalThis.String(object.Integrity) : "", + }; + }, + + toJSON(message: Session): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.UUID !== "") { + obj.UUID = message.UUID; + } + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.UID !== "") { + obj.UID = message.UID; + } + if (message.GID !== "") { + obj.GID = message.GID; + } + if (message.OS !== "") { + obj.OS = message.OS; + } + if (message.Arch !== "") { + obj.Arch = message.Arch; + } + if (message.Transport !== "") { + obj.Transport = message.Transport; + } + if (message.RemoteAddress !== "") { + obj.RemoteAddress = message.RemoteAddress; + } + if (message.PID !== 0) { + obj.PID = Math.round(message.PID); + } + if (message.Filename !== "") { + obj.Filename = message.Filename; + } + if (message.LastCheckin !== "0") { + obj.LastCheckin = message.LastCheckin; + } + if (message.ActiveC2 !== "") { + obj.ActiveC2 = message.ActiveC2; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Evasion !== false) { + obj.Evasion = message.Evasion; + } + if (message.IsDead !== false) { + obj.IsDead = message.IsDead; + } + if (message.ReconnectInterval !== "0") { + obj.ReconnectInterval = message.ReconnectInterval; + } + if (message.ProxyURL !== "") { + obj.ProxyURL = message.ProxyURL; + } + if (message.Burned !== false) { + obj.Burned = message.Burned; + } + if (message.Extensions?.length) { + obj.Extensions = message.Extensions; + } + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.Locale !== "") { + obj.Locale = message.Locale; + } + if (message.FirstContact !== "0") { + obj.FirstContact = message.FirstContact; + } + if (message.Integrity !== "") { + obj.Integrity = message.Integrity; + } + return obj; + }, + + create(base?: DeepPartial): Session { + return Session.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Session { + const message = createBaseSession(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.Hostname = object.Hostname ?? ""; + message.UUID = object.UUID ?? ""; + message.Username = object.Username ?? ""; + message.UID = object.UID ?? ""; + message.GID = object.GID ?? ""; + message.OS = object.OS ?? ""; + message.Arch = object.Arch ?? ""; + message.Transport = object.Transport ?? ""; + message.RemoteAddress = object.RemoteAddress ?? ""; + message.PID = object.PID ?? 0; + message.Filename = object.Filename ?? ""; + message.LastCheckin = object.LastCheckin ?? "0"; + message.ActiveC2 = object.ActiveC2 ?? ""; + message.Version = object.Version ?? ""; + message.Evasion = object.Evasion ?? false; + message.IsDead = object.IsDead ?? false; + message.ReconnectInterval = object.ReconnectInterval ?? "0"; + message.ProxyURL = object.ProxyURL ?? ""; + message.Burned = object.Burned ?? false; + message.Extensions = object.Extensions?.map((e) => e) || []; + message.PeerID = object.PeerID ?? "0"; + message.Locale = object.Locale ?? ""; + message.FirstContact = object.FirstContact ?? "0"; + message.Integrity = object.Integrity ?? ""; + return message; + }, +}; + +function createBaseBeacon(): Beacon { + return { + ID: "", + Name: "", + Hostname: "", + UUID: "", + Username: "", + UID: "", + GID: "", + OS: "", + Arch: "", + Transport: "", + RemoteAddress: "", + PID: 0, + Filename: "", + LastCheckin: "0", + ActiveC2: "", + Version: "", + Evasion: false, + IsDead: false, + ProxyURL: "", + ReconnectInterval: "0", + Interval: "0", + Jitter: "0", + Burned: false, + NextCheckin: "0", + TasksCount: "0", + TasksCountCompleted: "0", + Locale: "", + FirstContact: "0", + Integrity: "", + }; +} + +export const Beacon: MessageFns = { + encode(message: Beacon, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.Hostname !== "") { + writer.uint32(26).string(message.Hostname); + } + if (message.UUID !== "") { + writer.uint32(34).string(message.UUID); + } + if (message.Username !== "") { + writer.uint32(42).string(message.Username); + } + if (message.UID !== "") { + writer.uint32(50).string(message.UID); + } + if (message.GID !== "") { + writer.uint32(58).string(message.GID); + } + if (message.OS !== "") { + writer.uint32(66).string(message.OS); + } + if (message.Arch !== "") { + writer.uint32(74).string(message.Arch); + } + if (message.Transport !== "") { + writer.uint32(82).string(message.Transport); + } + if (message.RemoteAddress !== "") { + writer.uint32(90).string(message.RemoteAddress); + } + if (message.PID !== 0) { + writer.uint32(96).int32(message.PID); + } + if (message.Filename !== "") { + writer.uint32(106).string(message.Filename); + } + if (message.LastCheckin !== "0") { + writer.uint32(112).int64(message.LastCheckin); + } + if (message.ActiveC2 !== "") { + writer.uint32(122).string(message.ActiveC2); + } + if (message.Version !== "") { + writer.uint32(130).string(message.Version); + } + if (message.Evasion !== false) { + writer.uint32(136).bool(message.Evasion); + } + if (message.IsDead !== false) { + writer.uint32(144).bool(message.IsDead); + } + if (message.ProxyURL !== "") { + writer.uint32(162).string(message.ProxyURL); + } + if (message.ReconnectInterval !== "0") { + writer.uint32(168).int64(message.ReconnectInterval); + } + if (message.Interval !== "0") { + writer.uint32(176).int64(message.Interval); + } + if (message.Jitter !== "0") { + writer.uint32(184).int64(message.Jitter); + } + if (message.Burned !== false) { + writer.uint32(192).bool(message.Burned); + } + if (message.NextCheckin !== "0") { + writer.uint32(200).int64(message.NextCheckin); + } + if (message.TasksCount !== "0") { + writer.uint32(208).int64(message.TasksCount); + } + if (message.TasksCountCompleted !== "0") { + writer.uint32(216).int64(message.TasksCountCompleted); + } + if (message.Locale !== "") { + writer.uint32(226).string(message.Locale); + } + if (message.FirstContact !== "0") { + writer.uint32(232).int64(message.FirstContact); + } + if (message.Integrity !== "") { + writer.uint32(242).string(message.Integrity); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Beacon { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeacon(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.UUID = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Username = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.UID = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.GID = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.OS = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Arch = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.Transport = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.RemoteAddress = reader.string(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.PID = reader.int32(); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.Filename = reader.string(); + continue; + } + case 14: { + if (tag !== 112) { + break; + } + + message.LastCheckin = reader.int64().toString(); + continue; + } + case 15: { + if (tag !== 122) { + break; + } + + message.ActiveC2 = reader.string(); + continue; + } + case 16: { + if (tag !== 130) { + break; + } + + message.Version = reader.string(); + continue; + } + case 17: { + if (tag !== 136) { + break; + } + + message.Evasion = reader.bool(); + continue; + } + case 18: { + if (tag !== 144) { + break; + } + + message.IsDead = reader.bool(); + continue; + } + case 20: { + if (tag !== 162) { + break; + } + + message.ProxyURL = reader.string(); + continue; + } + case 21: { + if (tag !== 168) { + break; + } + + message.ReconnectInterval = reader.int64().toString(); + continue; + } + case 22: { + if (tag !== 176) { + break; + } + + message.Interval = reader.int64().toString(); + continue; + } + case 23: { + if (tag !== 184) { + break; + } + + message.Jitter = reader.int64().toString(); + continue; + } + case 24: { + if (tag !== 192) { + break; + } + + message.Burned = reader.bool(); + continue; + } + case 25: { + if (tag !== 200) { + break; + } + + message.NextCheckin = reader.int64().toString(); + continue; + } + case 26: { + if (tag !== 208) { + break; + } + + message.TasksCount = reader.int64().toString(); + continue; + } + case 27: { + if (tag !== 216) { + break; + } + + message.TasksCountCompleted = reader.int64().toString(); + continue; + } + case 28: { + if (tag !== 226) { + break; + } + + message.Locale = reader.string(); + continue; + } + case 29: { + if (tag !== 232) { + break; + } + + message.FirstContact = reader.int64().toString(); + continue; + } + case 30: { + if (tag !== 242) { + break; + } + + message.Integrity = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Beacon { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + UUID: isSet(object.UUID) ? globalThis.String(object.UUID) : "", + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + UID: isSet(object.UID) ? globalThis.String(object.UID) : "", + GID: isSet(object.GID) ? globalThis.String(object.GID) : "", + OS: isSet(object.OS) ? globalThis.String(object.OS) : "", + Arch: isSet(object.Arch) ? globalThis.String(object.Arch) : "", + Transport: isSet(object.Transport) ? globalThis.String(object.Transport) : "", + RemoteAddress: isSet(object.RemoteAddress) ? globalThis.String(object.RemoteAddress) : "", + PID: isSet(object.PID) ? globalThis.Number(object.PID) : 0, + Filename: isSet(object.Filename) ? globalThis.String(object.Filename) : "", + LastCheckin: isSet(object.LastCheckin) ? globalThis.String(object.LastCheckin) : "0", + ActiveC2: isSet(object.ActiveC2) ? globalThis.String(object.ActiveC2) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Evasion: isSet(object.Evasion) ? globalThis.Boolean(object.Evasion) : false, + IsDead: isSet(object.IsDead) ? globalThis.Boolean(object.IsDead) : false, + ProxyURL: isSet(object.ProxyURL) ? globalThis.String(object.ProxyURL) : "", + ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", + Interval: isSet(object.Interval) ? globalThis.String(object.Interval) : "0", + Jitter: isSet(object.Jitter) ? globalThis.String(object.Jitter) : "0", + Burned: isSet(object.Burned) ? globalThis.Boolean(object.Burned) : false, + NextCheckin: isSet(object.NextCheckin) ? globalThis.String(object.NextCheckin) : "0", + TasksCount: isSet(object.TasksCount) ? globalThis.String(object.TasksCount) : "0", + TasksCountCompleted: isSet(object.TasksCountCompleted) ? globalThis.String(object.TasksCountCompleted) : "0", + Locale: isSet(object.Locale) ? globalThis.String(object.Locale) : "", + FirstContact: isSet(object.FirstContact) ? globalThis.String(object.FirstContact) : "0", + Integrity: isSet(object.Integrity) ? globalThis.String(object.Integrity) : "", + }; + }, + + toJSON(message: Beacon): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.UUID !== "") { + obj.UUID = message.UUID; + } + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.UID !== "") { + obj.UID = message.UID; + } + if (message.GID !== "") { + obj.GID = message.GID; + } + if (message.OS !== "") { + obj.OS = message.OS; + } + if (message.Arch !== "") { + obj.Arch = message.Arch; + } + if (message.Transport !== "") { + obj.Transport = message.Transport; + } + if (message.RemoteAddress !== "") { + obj.RemoteAddress = message.RemoteAddress; + } + if (message.PID !== 0) { + obj.PID = Math.round(message.PID); + } + if (message.Filename !== "") { + obj.Filename = message.Filename; + } + if (message.LastCheckin !== "0") { + obj.LastCheckin = message.LastCheckin; + } + if (message.ActiveC2 !== "") { + obj.ActiveC2 = message.ActiveC2; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Evasion !== false) { + obj.Evasion = message.Evasion; + } + if (message.IsDead !== false) { + obj.IsDead = message.IsDead; + } + if (message.ProxyURL !== "") { + obj.ProxyURL = message.ProxyURL; + } + if (message.ReconnectInterval !== "0") { + obj.ReconnectInterval = message.ReconnectInterval; + } + if (message.Interval !== "0") { + obj.Interval = message.Interval; + } + if (message.Jitter !== "0") { + obj.Jitter = message.Jitter; + } + if (message.Burned !== false) { + obj.Burned = message.Burned; + } + if (message.NextCheckin !== "0") { + obj.NextCheckin = message.NextCheckin; + } + if (message.TasksCount !== "0") { + obj.TasksCount = message.TasksCount; + } + if (message.TasksCountCompleted !== "0") { + obj.TasksCountCompleted = message.TasksCountCompleted; + } + if (message.Locale !== "") { + obj.Locale = message.Locale; + } + if (message.FirstContact !== "0") { + obj.FirstContact = message.FirstContact; + } + if (message.Integrity !== "") { + obj.Integrity = message.Integrity; + } + return obj; + }, + + create(base?: DeepPartial): Beacon { + return Beacon.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Beacon { + const message = createBaseBeacon(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.Hostname = object.Hostname ?? ""; + message.UUID = object.UUID ?? ""; + message.Username = object.Username ?? ""; + message.UID = object.UID ?? ""; + message.GID = object.GID ?? ""; + message.OS = object.OS ?? ""; + message.Arch = object.Arch ?? ""; + message.Transport = object.Transport ?? ""; + message.RemoteAddress = object.RemoteAddress ?? ""; + message.PID = object.PID ?? 0; + message.Filename = object.Filename ?? ""; + message.LastCheckin = object.LastCheckin ?? "0"; + message.ActiveC2 = object.ActiveC2 ?? ""; + message.Version = object.Version ?? ""; + message.Evasion = object.Evasion ?? false; + message.IsDead = object.IsDead ?? false; + message.ProxyURL = object.ProxyURL ?? ""; + message.ReconnectInterval = object.ReconnectInterval ?? "0"; + message.Interval = object.Interval ?? "0"; + message.Jitter = object.Jitter ?? "0"; + message.Burned = object.Burned ?? false; + message.NextCheckin = object.NextCheckin ?? "0"; + message.TasksCount = object.TasksCount ?? "0"; + message.TasksCountCompleted = object.TasksCountCompleted ?? "0"; + message.Locale = object.Locale ?? ""; + message.FirstContact = object.FirstContact ?? "0"; + message.Integrity = object.Integrity ?? ""; + return message; + }, +}; + +function createBaseBeacons(): Beacons { + return { Beacons: [] }; +} + +export const Beacons: MessageFns = { + encode(message: Beacons, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Beacons) { + Beacon.encode(v!, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Beacons { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeacons(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (tag !== 18) { + break; + } + + message.Beacons.push(Beacon.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Beacons { + return { + Beacons: globalThis.Array.isArray(object?.Beacons) ? object.Beacons.map((e: any) => Beacon.fromJSON(e)) : [], + }; + }, + + toJSON(message: Beacons): unknown { + const obj: any = {}; + if (message.Beacons?.length) { + obj.Beacons = message.Beacons.map((e) => Beacon.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Beacons { + return Beacons.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Beacons { + const message = createBaseBeacons(); + message.Beacons = object.Beacons?.map((e) => Beacon.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseBeaconTask(): BeaconTask { + return { + ID: "", + BeaconID: "", + CreatedAt: "0", + State: "", + SentAt: "0", + CompletedAt: "0", + Request: Buffer.alloc(0), + Response: Buffer.alloc(0), + Description: "", + }; +} + +export const BeaconTask: MessageFns = { + encode(message: BeaconTask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.BeaconID !== "") { + writer.uint32(18).string(message.BeaconID); + } + if (message.CreatedAt !== "0") { + writer.uint32(24).int64(message.CreatedAt); + } + if (message.State !== "") { + writer.uint32(34).string(message.State); + } + if (message.SentAt !== "0") { + writer.uint32(40).int64(message.SentAt); + } + if (message.CompletedAt !== "0") { + writer.uint32(48).int64(message.CompletedAt); + } + if (message.Request.length !== 0) { + writer.uint32(58).bytes(message.Request); + } + if (message.Response.length !== 0) { + writer.uint32(66).bytes(message.Response); + } + if (message.Description !== "") { + writer.uint32(74).string(message.Description); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BeaconTask { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeaconTask(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.CreatedAt = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.State = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.SentAt = reader.int64().toString(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.CompletedAt = reader.int64().toString(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Request = Buffer.from(reader.bytes()); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Response = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Description = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BeaconTask { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + CreatedAt: isSet(object.CreatedAt) ? globalThis.String(object.CreatedAt) : "0", + State: isSet(object.State) ? globalThis.String(object.State) : "", + SentAt: isSet(object.SentAt) ? globalThis.String(object.SentAt) : "0", + CompletedAt: isSet(object.CompletedAt) ? globalThis.String(object.CompletedAt) : "0", + Request: isSet(object.Request) ? Buffer.from(bytesFromBase64(object.Request)) : Buffer.alloc(0), + Response: isSet(object.Response) ? Buffer.from(bytesFromBase64(object.Response)) : Buffer.alloc(0), + Description: isSet(object.Description) ? globalThis.String(object.Description) : "", + }; + }, + + toJSON(message: BeaconTask): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.CreatedAt !== "0") { + obj.CreatedAt = message.CreatedAt; + } + if (message.State !== "") { + obj.State = message.State; + } + if (message.SentAt !== "0") { + obj.SentAt = message.SentAt; + } + if (message.CompletedAt !== "0") { + obj.CompletedAt = message.CompletedAt; + } + if (message.Request.length !== 0) { + obj.Request = base64FromBytes(message.Request); + } + if (message.Response.length !== 0) { + obj.Response = base64FromBytes(message.Response); + } + if (message.Description !== "") { + obj.Description = message.Description; + } + return obj; + }, + + create(base?: DeepPartial): BeaconTask { + return BeaconTask.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BeaconTask { + const message = createBaseBeaconTask(); + message.ID = object.ID ?? ""; + message.BeaconID = object.BeaconID ?? ""; + message.CreatedAt = object.CreatedAt ?? "0"; + message.State = object.State ?? ""; + message.SentAt = object.SentAt ?? "0"; + message.CompletedAt = object.CompletedAt ?? "0"; + message.Request = object.Request ?? Buffer.alloc(0); + message.Response = object.Response ?? Buffer.alloc(0); + message.Description = object.Description ?? ""; + return message; + }, +}; + +function createBaseBeaconTasks(): BeaconTasks { + return { BeaconID: "", Tasks: [] }; +} + +export const BeaconTasks: MessageFns = { + encode(message: BeaconTasks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.BeaconID !== "") { + writer.uint32(10).string(message.BeaconID); + } + for (const v of message.Tasks) { + BeaconTask.encode(v!, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BeaconTasks { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeaconTasks(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Tasks.push(BeaconTask.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BeaconTasks { + return { + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + Tasks: globalThis.Array.isArray(object?.Tasks) ? object.Tasks.map((e: any) => BeaconTask.fromJSON(e)) : [], + }; + }, + + toJSON(message: BeaconTasks): unknown { + const obj: any = {}; + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.Tasks?.length) { + obj.Tasks = message.Tasks.map((e) => BeaconTask.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): BeaconTasks { + return BeaconTasks.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BeaconTasks { + const message = createBaseBeaconTasks(); + message.BeaconID = object.BeaconID ?? ""; + message.Tasks = object.Tasks?.map((e) => BeaconTask.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseBeaconIntegrity(): BeaconIntegrity { + return { BeaconID: "", Integrity: "" }; +} + +export const BeaconIntegrity: MessageFns = { + encode(message: BeaconIntegrity, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.BeaconID !== "") { + writer.uint32(10).string(message.BeaconID); + } + if (message.Integrity !== "") { + writer.uint32(18).string(message.Integrity); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BeaconIntegrity { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeaconIntegrity(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Integrity = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BeaconIntegrity { + return { + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + Integrity: isSet(object.Integrity) ? globalThis.String(object.Integrity) : "", + }; + }, + + toJSON(message: BeaconIntegrity): unknown { + const obj: any = {}; + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.Integrity !== "") { + obj.Integrity = message.Integrity; + } + return obj; + }, + + create(base?: DeepPartial): BeaconIntegrity { + return BeaconIntegrity.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BeaconIntegrity { + const message = createBaseBeaconIntegrity(); + message.BeaconID = object.BeaconID ?? ""; + message.Integrity = object.Integrity ?? ""; + return message; + }, +}; + +function createBaseImplantC2(): ImplantC2 { + return { ID: "", Priority: 0, URL: "", Options: "" }; +} + +export const ImplantC2: MessageFns = { + encode(message: ImplantC2, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Priority !== 0) { + writer.uint32(16).uint32(message.Priority); + } + if (message.URL !== "") { + writer.uint32(26).string(message.URL); + } + if (message.Options !== "") { + writer.uint32(34).string(message.Options); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantC2 { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantC2(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Priority = reader.uint32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.URL = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Options = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantC2 { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Priority: isSet(object.Priority) ? globalThis.Number(object.Priority) : 0, + URL: isSet(object.URL) ? globalThis.String(object.URL) : "", + Options: isSet(object.Options) ? globalThis.String(object.Options) : "", + }; + }, + + toJSON(message: ImplantC2): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Priority !== 0) { + obj.Priority = Math.round(message.Priority); + } + if (message.URL !== "") { + obj.URL = message.URL; + } + if (message.Options !== "") { + obj.Options = message.Options; + } + return obj; + }, + + create(base?: DeepPartial): ImplantC2 { + return ImplantC2.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantC2 { + const message = createBaseImplantC2(); + message.ID = object.ID ?? ""; + message.Priority = object.Priority ?? 0; + message.URL = object.URL ?? ""; + message.Options = object.Options ?? ""; + return message; + }, +}; + +function createBaseShellcodeConfig(): ShellcodeConfig { + return { Entropy: 0, Compress: 0, ExitOpt: 0, Bypass: 0, Headers: 0, Thread: false, Unicode: false, OEP: 0 }; +} + +export const ShellcodeConfig: MessageFns = { + encode(message: ShellcodeConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Entropy !== 0) { + writer.uint32(16).uint32(message.Entropy); + } + if (message.Compress !== 0) { + writer.uint32(24).uint32(message.Compress); + } + if (message.ExitOpt !== 0) { + writer.uint32(32).uint32(message.ExitOpt); + } + if (message.Bypass !== 0) { + writer.uint32(40).uint32(message.Bypass); + } + if (message.Headers !== 0) { + writer.uint32(48).uint32(message.Headers); + } + if (message.Thread !== false) { + writer.uint32(56).bool(message.Thread); + } + if (message.Unicode !== false) { + writer.uint32(64).bool(message.Unicode); + } + if (message.OEP !== 0) { + writer.uint32(72).uint32(message.OEP); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 2: { + if (tag !== 16) { + break; + } + + message.Entropy = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Compress = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.ExitOpt = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Bypass = reader.uint32(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Headers = reader.uint32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Thread = reader.bool(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.Unicode = reader.bool(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.OEP = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeConfig { + return { + Entropy: isSet(object.Entropy) ? globalThis.Number(object.Entropy) : 0, + Compress: isSet(object.Compress) ? globalThis.Number(object.Compress) : 0, + ExitOpt: isSet(object.ExitOpt) ? globalThis.Number(object.ExitOpt) : 0, + Bypass: isSet(object.Bypass) ? globalThis.Number(object.Bypass) : 0, + Headers: isSet(object.Headers) ? globalThis.Number(object.Headers) : 0, + Thread: isSet(object.Thread) ? globalThis.Boolean(object.Thread) : false, + Unicode: isSet(object.Unicode) ? globalThis.Boolean(object.Unicode) : false, + OEP: isSet(object.OEP) ? globalThis.Number(object.OEP) : 0, + }; + }, + + toJSON(message: ShellcodeConfig): unknown { + const obj: any = {}; + if (message.Entropy !== 0) { + obj.Entropy = Math.round(message.Entropy); + } + if (message.Compress !== 0) { + obj.Compress = Math.round(message.Compress); + } + if (message.ExitOpt !== 0) { + obj.ExitOpt = Math.round(message.ExitOpt); + } + if (message.Bypass !== 0) { + obj.Bypass = Math.round(message.Bypass); + } + if (message.Headers !== 0) { + obj.Headers = Math.round(message.Headers); + } + if (message.Thread !== false) { + obj.Thread = message.Thread; + } + if (message.Unicode !== false) { + obj.Unicode = message.Unicode; + } + if (message.OEP !== 0) { + obj.OEP = Math.round(message.OEP); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeConfig { + return ShellcodeConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeConfig { + const message = createBaseShellcodeConfig(); + message.Entropy = object.Entropy ?? 0; + message.Compress = object.Compress ?? 0; + message.ExitOpt = object.ExitOpt ?? 0; + message.Bypass = object.Bypass ?? 0; + message.Headers = object.Headers ?? 0; + message.Thread = object.Thread ?? false; + message.Unicode = object.Unicode ?? false; + message.OEP = object.OEP ?? 0; + return message; + }, +}; + +function createBaseImplantConfig(): ImplantConfig { + return { + ID: "", + ImplantBuilds: [], + ImplantProfileID: "", + IsBeacon: false, + BeaconInterval: "0", + BeaconJitter: "0", + GOOS: "", + GOARCH: "", + Debug: false, + Evasion: false, + ObfuscateSymbols: false, + TemplateName: "", + SGNEnabled: false, + GoPackage: "", + IncludeMTLS: false, + IncludeHTTP: false, + IncludeWG: false, + IncludeDNS: false, + IncludeNamePipe: false, + IncludeTCP: false, + WGPeerTunIP: "", + WGKeyExchangePort: 0, + WGTcpCommsPort: 0, + ReconnectInterval: "0", + MaxConnectionErrors: 0, + PollTimeout: "0", + C2: [], + CanaryDomains: [], + ConnectionStrategy: "", + LimitDomainJoined: false, + LimitDatetime: "", + LimitHostname: "", + LimitUsername: "", + LimitFileExists: "", + LimitLocale: "", + Format: 0, + IsSharedLib: false, + IsService: false, + IsShellcode: false, + RunAtLoad: false, + DebugFile: "", + exports: [], + ShellcodeConfig: undefined, + ShellcodeEncoder: 0, + HTTPC2ConfigName: "", + NetGoEnabled: false, + TrafficEncodersEnabled: false, + TrafficEncoders: [], + Extension: "", + Assets: [], + }; +} + +export const ImplantConfig: MessageFns = { + encode(message: ImplantConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + for (const v of message.ImplantBuilds) { + ImplantBuild.encode(v!, writer.uint32(18).fork()).join(); + } + if (message.ImplantProfileID !== "") { + writer.uint32(26).string(message.ImplantProfileID); + } + if (message.IsBeacon !== false) { + writer.uint32(32).bool(message.IsBeacon); + } + if (message.BeaconInterval !== "0") { + writer.uint32(40).int64(message.BeaconInterval); + } + if (message.BeaconJitter !== "0") { + writer.uint32(48).int64(message.BeaconJitter); + } + if (message.GOOS !== "") { + writer.uint32(58).string(message.GOOS); + } + if (message.GOARCH !== "") { + writer.uint32(66).string(message.GOARCH); + } + if (message.Debug !== false) { + writer.uint32(80).bool(message.Debug); + } + if (message.Evasion !== false) { + writer.uint32(88).bool(message.Evasion); + } + if (message.ObfuscateSymbols !== false) { + writer.uint32(96).bool(message.ObfuscateSymbols); + } + if (message.TemplateName !== "") { + writer.uint32(106).string(message.TemplateName); + } + if (message.SGNEnabled !== false) { + writer.uint32(112).bool(message.SGNEnabled); + } + if (message.GoPackage !== "") { + writer.uint32(122).string(message.GoPackage); + } + if (message.IncludeMTLS !== false) { + writer.uint32(424).bool(message.IncludeMTLS); + } + if (message.IncludeHTTP !== false) { + writer.uint32(128).bool(message.IncludeHTTP); + } + if (message.IncludeWG !== false) { + writer.uint32(136).bool(message.IncludeWG); + } + if (message.IncludeDNS !== false) { + writer.uint32(144).bool(message.IncludeDNS); + } + if (message.IncludeNamePipe !== false) { + writer.uint32(152).bool(message.IncludeNamePipe); + } + if (message.IncludeTCP !== false) { + writer.uint32(160).bool(message.IncludeTCP); + } + if (message.WGPeerTunIP !== "") { + writer.uint32(258).string(message.WGPeerTunIP); + } + if (message.WGKeyExchangePort !== 0) { + writer.uint32(264).uint32(message.WGKeyExchangePort); + } + if (message.WGTcpCommsPort !== 0) { + writer.uint32(272).uint32(message.WGTcpCommsPort); + } + if (message.ReconnectInterval !== "0") { + writer.uint32(320).int64(message.ReconnectInterval); + } + if (message.MaxConnectionErrors !== 0) { + writer.uint32(328).uint32(message.MaxConnectionErrors); + } + if (message.PollTimeout !== "0") { + writer.uint32(336).int64(message.PollTimeout); + } + for (const v of message.C2) { + ImplantC2.encode(v!, writer.uint32(402).fork()).join(); + } + for (const v of message.CanaryDomains) { + writer.uint32(410).string(v!); + } + if (message.ConnectionStrategy !== "") { + writer.uint32(418).string(message.ConnectionStrategy); + } + if (message.LimitDomainJoined !== false) { + writer.uint32(480).bool(message.LimitDomainJoined); + } + if (message.LimitDatetime !== "") { + writer.uint32(490).string(message.LimitDatetime); + } + if (message.LimitHostname !== "") { + writer.uint32(498).string(message.LimitHostname); + } + if (message.LimitUsername !== "") { + writer.uint32(506).string(message.LimitUsername); + } + if (message.LimitFileExists !== "") { + writer.uint32(514).string(message.LimitFileExists); + } + if (message.LimitLocale !== "") { + writer.uint32(522).string(message.LimitLocale); + } + if (message.Format !== 0) { + writer.uint32(800).int32(message.Format); + } + if (message.IsSharedLib !== false) { + writer.uint32(808).bool(message.IsSharedLib); + } + if (message.IsService !== false) { + writer.uint32(824).bool(message.IsService); + } + if (message.IsShellcode !== false) { + writer.uint32(832).bool(message.IsShellcode); + } + if (message.RunAtLoad !== false) { + writer.uint32(840).bool(message.RunAtLoad); + } + if (message.DebugFile !== "") { + writer.uint32(850).string(message.DebugFile); + } + for (const v of message.exports) { + writer.uint32(858).string(v!); + } + if (message.ShellcodeConfig !== undefined) { + ShellcodeConfig.encode(message.ShellcodeConfig, writer.uint32(866).fork()).join(); + } + if (message.ShellcodeEncoder !== 0) { + writer.uint32(872).int32(message.ShellcodeEncoder); + } + if (message.HTTPC2ConfigName !== "") { + writer.uint32(1202).string(message.HTTPC2ConfigName); + } + if (message.NetGoEnabled !== false) { + writer.uint32(1208).bool(message.NetGoEnabled); + } + if (message.TrafficEncodersEnabled !== false) { + writer.uint32(1216).bool(message.TrafficEncodersEnabled); + } + for (const v of message.TrafficEncoders) { + writer.uint32(1226).string(v!); + } + if (message.Extension !== "") { + writer.uint32(1234).string(message.Extension); + } + for (const v of message.Assets) { + File.encode(v!, writer.uint32(1602).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ImplantBuilds.push(ImplantBuild.decode(reader, reader.uint32())); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ImplantProfileID = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.IsBeacon = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.BeaconInterval = reader.int64().toString(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.BeaconJitter = reader.int64().toString(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.GOOS = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.GOARCH = reader.string(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.Debug = reader.bool(); + continue; + } + case 11: { + if (tag !== 88) { + break; + } + + message.Evasion = reader.bool(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.ObfuscateSymbols = reader.bool(); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.TemplateName = reader.string(); + continue; + } + case 14: { + if (tag !== 112) { + break; + } + + message.SGNEnabled = reader.bool(); + continue; + } + case 15: { + if (tag !== 122) { + break; + } + + message.GoPackage = reader.string(); + continue; + } + case 53: { + if (tag !== 424) { + break; + } + + message.IncludeMTLS = reader.bool(); + continue; + } + case 16: { + if (tag !== 128) { + break; + } + + message.IncludeHTTP = reader.bool(); + continue; + } + case 17: { + if (tag !== 136) { + break; + } + + message.IncludeWG = reader.bool(); + continue; + } + case 18: { + if (tag !== 144) { + break; + } + + message.IncludeDNS = reader.bool(); + continue; + } + case 19: { + if (tag !== 152) { + break; + } + + message.IncludeNamePipe = reader.bool(); + continue; + } + case 20: { + if (tag !== 160) { + break; + } + + message.IncludeTCP = reader.bool(); + continue; + } + case 32: { + if (tag !== 258) { + break; + } + + message.WGPeerTunIP = reader.string(); + continue; + } + case 33: { + if (tag !== 264) { + break; + } + + message.WGKeyExchangePort = reader.uint32(); + continue; + } + case 34: { + if (tag !== 272) { + break; + } + + message.WGTcpCommsPort = reader.uint32(); + continue; + } + case 40: { + if (tag !== 320) { + break; + } + + message.ReconnectInterval = reader.int64().toString(); + continue; + } + case 41: { + if (tag !== 328) { + break; + } + + message.MaxConnectionErrors = reader.uint32(); + continue; + } + case 42: { + if (tag !== 336) { + break; + } + + message.PollTimeout = reader.int64().toString(); + continue; + } + case 50: { + if (tag !== 402) { + break; + } + + message.C2.push(ImplantC2.decode(reader, reader.uint32())); + continue; + } + case 51: { + if (tag !== 410) { + break; + } + + message.CanaryDomains.push(reader.string()); + continue; + } + case 52: { + if (tag !== 418) { + break; + } + + message.ConnectionStrategy = reader.string(); + continue; + } + case 60: { + if (tag !== 480) { + break; + } + + message.LimitDomainJoined = reader.bool(); + continue; + } + case 61: { + if (tag !== 490) { + break; + } + + message.LimitDatetime = reader.string(); + continue; + } + case 62: { + if (tag !== 498) { + break; + } + + message.LimitHostname = reader.string(); + continue; + } + case 63: { + if (tag !== 506) { + break; + } + + message.LimitUsername = reader.string(); + continue; + } + case 64: { + if (tag !== 514) { + break; + } + + message.LimitFileExists = reader.string(); + continue; + } + case 65: { + if (tag !== 522) { + break; + } + + message.LimitLocale = reader.string(); + continue; + } + case 100: { + if (tag !== 800) { + break; + } + + message.Format = reader.int32() as any; + continue; + } + case 101: { + if (tag !== 808) { + break; + } + + message.IsSharedLib = reader.bool(); + continue; + } + case 103: { + if (tag !== 824) { + break; + } + + message.IsService = reader.bool(); + continue; + } + case 104: { + if (tag !== 832) { + break; + } + + message.IsShellcode = reader.bool(); + continue; + } + case 105: { + if (tag !== 840) { + break; + } + + message.RunAtLoad = reader.bool(); + continue; + } + case 106: { + if (tag !== 850) { + break; + } + + message.DebugFile = reader.string(); + continue; + } + case 107: { + if (tag !== 858) { + break; + } + + message.exports.push(reader.string()); + continue; + } + case 108: { + if (tag !== 866) { + break; + } + + message.ShellcodeConfig = ShellcodeConfig.decode(reader, reader.uint32()); + continue; + } + case 109: { + if (tag !== 872) { + break; + } + + message.ShellcodeEncoder = reader.int32() as any; + continue; + } + case 150: { + if (tag !== 1202) { + break; + } + + message.HTTPC2ConfigName = reader.string(); + continue; + } + case 151: { + if (tag !== 1208) { + break; + } + + message.NetGoEnabled = reader.bool(); + continue; + } + case 152: { + if (tag !== 1216) { + break; + } + + message.TrafficEncodersEnabled = reader.bool(); + continue; + } + case 153: { + if (tag !== 1226) { + break; + } + + message.TrafficEncoders.push(reader.string()); + continue; + } + case 154: { + if (tag !== 1234) { + break; + } + + message.Extension = reader.string(); + continue; + } + case 200: { + if (tag !== 1602) { + break; + } + + message.Assets.push(File.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantConfig { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + ImplantBuilds: globalThis.Array.isArray(object?.ImplantBuilds) + ? object.ImplantBuilds.map((e: any) => ImplantBuild.fromJSON(e)) + : [], + ImplantProfileID: isSet(object.ImplantProfileID) ? globalThis.String(object.ImplantProfileID) : "", + IsBeacon: isSet(object.IsBeacon) ? globalThis.Boolean(object.IsBeacon) : false, + BeaconInterval: isSet(object.BeaconInterval) ? globalThis.String(object.BeaconInterval) : "0", + BeaconJitter: isSet(object.BeaconJitter) ? globalThis.String(object.BeaconJitter) : "0", + GOOS: isSet(object.GOOS) ? globalThis.String(object.GOOS) : "", + GOARCH: isSet(object.GOARCH) ? globalThis.String(object.GOARCH) : "", + Debug: isSet(object.Debug) ? globalThis.Boolean(object.Debug) : false, + Evasion: isSet(object.Evasion) ? globalThis.Boolean(object.Evasion) : false, + ObfuscateSymbols: isSet(object.ObfuscateSymbols) ? globalThis.Boolean(object.ObfuscateSymbols) : false, + TemplateName: isSet(object.TemplateName) ? globalThis.String(object.TemplateName) : "", + SGNEnabled: isSet(object.SGNEnabled) ? globalThis.Boolean(object.SGNEnabled) : false, + GoPackage: isSet(object.GoPackage) ? globalThis.String(object.GoPackage) : "", + IncludeMTLS: isSet(object.IncludeMTLS) ? globalThis.Boolean(object.IncludeMTLS) : false, + IncludeHTTP: isSet(object.IncludeHTTP) ? globalThis.Boolean(object.IncludeHTTP) : false, + IncludeWG: isSet(object.IncludeWG) ? globalThis.Boolean(object.IncludeWG) : false, + IncludeDNS: isSet(object.IncludeDNS) ? globalThis.Boolean(object.IncludeDNS) : false, + IncludeNamePipe: isSet(object.IncludeNamePipe) ? globalThis.Boolean(object.IncludeNamePipe) : false, + IncludeTCP: isSet(object.IncludeTCP) ? globalThis.Boolean(object.IncludeTCP) : false, + WGPeerTunIP: isSet(object.WGPeerTunIP) ? globalThis.String(object.WGPeerTunIP) : "", + WGKeyExchangePort: isSet(object.WGKeyExchangePort) ? globalThis.Number(object.WGKeyExchangePort) : 0, + WGTcpCommsPort: isSet(object.WGTcpCommsPort) ? globalThis.Number(object.WGTcpCommsPort) : 0, + ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", + MaxConnectionErrors: isSet(object.MaxConnectionErrors) ? globalThis.Number(object.MaxConnectionErrors) : 0, + PollTimeout: isSet(object.PollTimeout) ? globalThis.String(object.PollTimeout) : "0", + C2: globalThis.Array.isArray(object?.C2) ? object.C2.map((e: any) => ImplantC2.fromJSON(e)) : [], + CanaryDomains: globalThis.Array.isArray(object?.CanaryDomains) + ? object.CanaryDomains.map((e: any) => globalThis.String(e)) + : [], + ConnectionStrategy: isSet(object.ConnectionStrategy) ? globalThis.String(object.ConnectionStrategy) : "", + LimitDomainJoined: isSet(object.LimitDomainJoined) ? globalThis.Boolean(object.LimitDomainJoined) : false, + LimitDatetime: isSet(object.LimitDatetime) ? globalThis.String(object.LimitDatetime) : "", + LimitHostname: isSet(object.LimitHostname) ? globalThis.String(object.LimitHostname) : "", + LimitUsername: isSet(object.LimitUsername) ? globalThis.String(object.LimitUsername) : "", + LimitFileExists: isSet(object.LimitFileExists) ? globalThis.String(object.LimitFileExists) : "", + LimitLocale: isSet(object.LimitLocale) ? globalThis.String(object.LimitLocale) : "", + Format: isSet(object.Format) ? outputFormatFromJSON(object.Format) : 0, + IsSharedLib: isSet(object.IsSharedLib) ? globalThis.Boolean(object.IsSharedLib) : false, + IsService: isSet(object.IsService) ? globalThis.Boolean(object.IsService) : false, + IsShellcode: isSet(object.IsShellcode) ? globalThis.Boolean(object.IsShellcode) : false, + RunAtLoad: isSet(object.RunAtLoad) ? globalThis.Boolean(object.RunAtLoad) : false, + DebugFile: isSet(object.DebugFile) ? globalThis.String(object.DebugFile) : "", + exports: globalThis.Array.isArray(object?.exports) ? object.exports.map((e: any) => globalThis.String(e)) : [], + ShellcodeConfig: isSet(object.ShellcodeConfig) ? ShellcodeConfig.fromJSON(object.ShellcodeConfig) : undefined, + ShellcodeEncoder: isSet(object.ShellcodeEncoder) ? shellcodeEncoderFromJSON(object.ShellcodeEncoder) : 0, + HTTPC2ConfigName: isSet(object.HTTPC2ConfigName) ? globalThis.String(object.HTTPC2ConfigName) : "", + NetGoEnabled: isSet(object.NetGoEnabled) ? globalThis.Boolean(object.NetGoEnabled) : false, + TrafficEncodersEnabled: isSet(object.TrafficEncodersEnabled) + ? globalThis.Boolean(object.TrafficEncodersEnabled) + : false, + TrafficEncoders: globalThis.Array.isArray(object?.TrafficEncoders) + ? object.TrafficEncoders.map((e: any) => globalThis.String(e)) + : [], + Extension: isSet(object.Extension) ? globalThis.String(object.Extension) : "", + Assets: globalThis.Array.isArray(object?.Assets) + ? object.Assets.map((e: any) => File.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ImplantConfig): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.ImplantBuilds?.length) { + obj.ImplantBuilds = message.ImplantBuilds.map((e) => ImplantBuild.toJSON(e)); + } + if (message.ImplantProfileID !== "") { + obj.ImplantProfileID = message.ImplantProfileID; + } + if (message.IsBeacon !== false) { + obj.IsBeacon = message.IsBeacon; + } + if (message.BeaconInterval !== "0") { + obj.BeaconInterval = message.BeaconInterval; + } + if (message.BeaconJitter !== "0") { + obj.BeaconJitter = message.BeaconJitter; + } + if (message.GOOS !== "") { + obj.GOOS = message.GOOS; + } + if (message.GOARCH !== "") { + obj.GOARCH = message.GOARCH; + } + if (message.Debug !== false) { + obj.Debug = message.Debug; + } + if (message.Evasion !== false) { + obj.Evasion = message.Evasion; + } + if (message.ObfuscateSymbols !== false) { + obj.ObfuscateSymbols = message.ObfuscateSymbols; + } + if (message.TemplateName !== "") { + obj.TemplateName = message.TemplateName; + } + if (message.SGNEnabled !== false) { + obj.SGNEnabled = message.SGNEnabled; + } + if (message.GoPackage !== "") { + obj.GoPackage = message.GoPackage; + } + if (message.IncludeMTLS !== false) { + obj.IncludeMTLS = message.IncludeMTLS; + } + if (message.IncludeHTTP !== false) { + obj.IncludeHTTP = message.IncludeHTTP; + } + if (message.IncludeWG !== false) { + obj.IncludeWG = message.IncludeWG; + } + if (message.IncludeDNS !== false) { + obj.IncludeDNS = message.IncludeDNS; + } + if (message.IncludeNamePipe !== false) { + obj.IncludeNamePipe = message.IncludeNamePipe; + } + if (message.IncludeTCP !== false) { + obj.IncludeTCP = message.IncludeTCP; + } + if (message.WGPeerTunIP !== "") { + obj.WGPeerTunIP = message.WGPeerTunIP; + } + if (message.WGKeyExchangePort !== 0) { + obj.WGKeyExchangePort = Math.round(message.WGKeyExchangePort); + } + if (message.WGTcpCommsPort !== 0) { + obj.WGTcpCommsPort = Math.round(message.WGTcpCommsPort); + } + if (message.ReconnectInterval !== "0") { + obj.ReconnectInterval = message.ReconnectInterval; + } + if (message.MaxConnectionErrors !== 0) { + obj.MaxConnectionErrors = Math.round(message.MaxConnectionErrors); + } + if (message.PollTimeout !== "0") { + obj.PollTimeout = message.PollTimeout; + } + if (message.C2?.length) { + obj.C2 = message.C2.map((e) => ImplantC2.toJSON(e)); + } + if (message.CanaryDomains?.length) { + obj.CanaryDomains = message.CanaryDomains; + } + if (message.ConnectionStrategy !== "") { + obj.ConnectionStrategy = message.ConnectionStrategy; + } + if (message.LimitDomainJoined !== false) { + obj.LimitDomainJoined = message.LimitDomainJoined; + } + if (message.LimitDatetime !== "") { + obj.LimitDatetime = message.LimitDatetime; + } + if (message.LimitHostname !== "") { + obj.LimitHostname = message.LimitHostname; + } + if (message.LimitUsername !== "") { + obj.LimitUsername = message.LimitUsername; + } + if (message.LimitFileExists !== "") { + obj.LimitFileExists = message.LimitFileExists; + } + if (message.LimitLocale !== "") { + obj.LimitLocale = message.LimitLocale; + } + if (message.Format !== 0) { + obj.Format = outputFormatToJSON(message.Format); + } + if (message.IsSharedLib !== false) { + obj.IsSharedLib = message.IsSharedLib; + } + if (message.IsService !== false) { + obj.IsService = message.IsService; + } + if (message.IsShellcode !== false) { + obj.IsShellcode = message.IsShellcode; + } + if (message.RunAtLoad !== false) { + obj.RunAtLoad = message.RunAtLoad; + } + if (message.DebugFile !== "") { + obj.DebugFile = message.DebugFile; + } + if (message.exports?.length) { + obj.exports = message.exports; + } + if (message.ShellcodeConfig !== undefined) { + obj.ShellcodeConfig = ShellcodeConfig.toJSON(message.ShellcodeConfig); + } + if (message.ShellcodeEncoder !== 0) { + obj.ShellcodeEncoder = shellcodeEncoderToJSON(message.ShellcodeEncoder); + } + if (message.HTTPC2ConfigName !== "") { + obj.HTTPC2ConfigName = message.HTTPC2ConfigName; + } + if (message.NetGoEnabled !== false) { + obj.NetGoEnabled = message.NetGoEnabled; + } + if (message.TrafficEncodersEnabled !== false) { + obj.TrafficEncodersEnabled = message.TrafficEncodersEnabled; + } + if (message.TrafficEncoders?.length) { + obj.TrafficEncoders = message.TrafficEncoders; + } + if (message.Extension !== "") { + obj.Extension = message.Extension; + } + if (message.Assets?.length) { + obj.Assets = message.Assets.map((e) => File.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ImplantConfig { + return ImplantConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantConfig { + const message = createBaseImplantConfig(); + message.ID = object.ID ?? ""; + message.ImplantBuilds = object.ImplantBuilds?.map((e) => ImplantBuild.fromPartial(e)) || []; + message.ImplantProfileID = object.ImplantProfileID ?? ""; + message.IsBeacon = object.IsBeacon ?? false; + message.BeaconInterval = object.BeaconInterval ?? "0"; + message.BeaconJitter = object.BeaconJitter ?? "0"; + message.GOOS = object.GOOS ?? ""; + message.GOARCH = object.GOARCH ?? ""; + message.Debug = object.Debug ?? false; + message.Evasion = object.Evasion ?? false; + message.ObfuscateSymbols = object.ObfuscateSymbols ?? false; + message.TemplateName = object.TemplateName ?? ""; + message.SGNEnabled = object.SGNEnabled ?? false; + message.GoPackage = object.GoPackage ?? ""; + message.IncludeMTLS = object.IncludeMTLS ?? false; + message.IncludeHTTP = object.IncludeHTTP ?? false; + message.IncludeWG = object.IncludeWG ?? false; + message.IncludeDNS = object.IncludeDNS ?? false; + message.IncludeNamePipe = object.IncludeNamePipe ?? false; + message.IncludeTCP = object.IncludeTCP ?? false; + message.WGPeerTunIP = object.WGPeerTunIP ?? ""; + message.WGKeyExchangePort = object.WGKeyExchangePort ?? 0; + message.WGTcpCommsPort = object.WGTcpCommsPort ?? 0; + message.ReconnectInterval = object.ReconnectInterval ?? "0"; + message.MaxConnectionErrors = object.MaxConnectionErrors ?? 0; + message.PollTimeout = object.PollTimeout ?? "0"; + message.C2 = object.C2?.map((e) => ImplantC2.fromPartial(e)) || []; + message.CanaryDomains = object.CanaryDomains?.map((e) => e) || []; + message.ConnectionStrategy = object.ConnectionStrategy ?? ""; + message.LimitDomainJoined = object.LimitDomainJoined ?? false; + message.LimitDatetime = object.LimitDatetime ?? ""; + message.LimitHostname = object.LimitHostname ?? ""; + message.LimitUsername = object.LimitUsername ?? ""; + message.LimitFileExists = object.LimitFileExists ?? ""; + message.LimitLocale = object.LimitLocale ?? ""; + message.Format = object.Format ?? 0; + message.IsSharedLib = object.IsSharedLib ?? false; + message.IsService = object.IsService ?? false; + message.IsShellcode = object.IsShellcode ?? false; + message.RunAtLoad = object.RunAtLoad ?? false; + message.DebugFile = object.DebugFile ?? ""; + message.exports = object.exports?.map((e) => e) || []; + message.ShellcodeConfig = (object.ShellcodeConfig !== undefined && object.ShellcodeConfig !== null) + ? ShellcodeConfig.fromPartial(object.ShellcodeConfig) + : undefined; + message.ShellcodeEncoder = object.ShellcodeEncoder ?? 0; + message.HTTPC2ConfigName = object.HTTPC2ConfigName ?? ""; + message.NetGoEnabled = object.NetGoEnabled ?? false; + message.TrafficEncodersEnabled = object.TrafficEncodersEnabled ?? false; + message.TrafficEncoders = object.TrafficEncoders?.map((e) => e) || []; + message.Extension = object.Extension ?? ""; + message.Assets = object.Assets?.map((e) => File.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseTrafficEncoder(): TrafficEncoder { + return { ID: "0", Wasm: undefined, SkipTests: false, TestID: "" }; +} + +export const TrafficEncoder: MessageFns = { + encode(message: TrafficEncoder, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "0") { + writer.uint32(8).uint64(message.ID); + } + if (message.Wasm !== undefined) { + File.encode(message.Wasm, writer.uint32(18).fork()).join(); + } + if (message.SkipTests !== false) { + writer.uint32(64).bool(message.SkipTests); + } + if (message.TestID !== "") { + writer.uint32(74).string(message.TestID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TrafficEncoder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTrafficEncoder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Wasm = File.decode(reader, reader.uint32()); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.SkipTests = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.TestID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TrafficEncoder { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "0", + Wasm: isSet(object.Wasm) ? File.fromJSON(object.Wasm) : undefined, + SkipTests: isSet(object.SkipTests) ? globalThis.Boolean(object.SkipTests) : false, + TestID: isSet(object.TestID) ? globalThis.String(object.TestID) : "", + }; + }, + + toJSON(message: TrafficEncoder): unknown { + const obj: any = {}; + if (message.ID !== "0") { + obj.ID = message.ID; + } + if (message.Wasm !== undefined) { + obj.Wasm = File.toJSON(message.Wasm); + } + if (message.SkipTests !== false) { + obj.SkipTests = message.SkipTests; + } + if (message.TestID !== "") { + obj.TestID = message.TestID; + } + return obj; + }, + + create(base?: DeepPartial): TrafficEncoder { + return TrafficEncoder.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TrafficEncoder { + const message = createBaseTrafficEncoder(); + message.ID = object.ID ?? "0"; + message.Wasm = (object.Wasm !== undefined && object.Wasm !== null) ? File.fromPartial(object.Wasm) : undefined; + message.SkipTests = object.SkipTests ?? false; + message.TestID = object.TestID ?? ""; + return message; + }, +}; + +function createBaseTrafficEncoderMap(): TrafficEncoderMap { + return { Encoders: {} }; +} + +export const TrafficEncoderMap: MessageFns = { + encode(message: TrafficEncoderMap, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + globalThis.Object.entries(message.Encoders).forEach(([key, value]: [string, TrafficEncoder]) => { + TrafficEncoderMap_EncodersEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TrafficEncoderMap { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTrafficEncoderMap(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + const entry1 = TrafficEncoderMap_EncodersEntry.decode(reader, reader.uint32()); + if (entry1.value !== undefined) { + message.Encoders[entry1.key] = entry1.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TrafficEncoderMap { + return { + Encoders: isObject(object.Encoders) + ? (globalThis.Object.entries(object.Encoders) as [string, any][]).reduce( + (acc: { [key: string]: TrafficEncoder }, [key, value]: [string, any]) => { + acc[key] = TrafficEncoder.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: TrafficEncoderMap): unknown { + const obj: any = {}; + if (message.Encoders) { + const entries = globalThis.Object.entries(message.Encoders) as [string, TrafficEncoder][]; + if (entries.length > 0) { + obj.Encoders = {}; + entries.forEach(([k, v]) => { + obj.Encoders[k] = TrafficEncoder.toJSON(v); + }); + } + } + return obj; + }, + + create(base?: DeepPartial): TrafficEncoderMap { + return TrafficEncoderMap.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TrafficEncoderMap { + const message = createBaseTrafficEncoderMap(); + message.Encoders = (globalThis.Object.entries(object.Encoders ?? {}) as [string, TrafficEncoder][]).reduce( + (acc: { [key: string]: TrafficEncoder }, [key, value]: [string, TrafficEncoder]) => { + if (value !== undefined) { + acc[key] = TrafficEncoder.fromPartial(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseTrafficEncoderMap_EncodersEntry(): TrafficEncoderMap_EncodersEntry { + return { key: "", value: undefined }; +} + +export const TrafficEncoderMap_EncodersEntry: MessageFns = { + encode(message: TrafficEncoderMap_EncodersEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + TrafficEncoder.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TrafficEncoderMap_EncodersEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTrafficEncoderMap_EncodersEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = TrafficEncoder.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TrafficEncoderMap_EncodersEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? TrafficEncoder.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: TrafficEncoderMap_EncodersEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = TrafficEncoder.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): TrafficEncoderMap_EncodersEntry { + return TrafficEncoderMap_EncodersEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TrafficEncoderMap_EncodersEntry { + const message = createBaseTrafficEncoderMap_EncodersEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? TrafficEncoder.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseTrafficEncoderTest(): TrafficEncoderTest { + return { Name: "", Completed: false, Success: false, Duration: "0", Err: "", Sample: Buffer.alloc(0) }; +} + +export const TrafficEncoderTest: MessageFns = { + encode(message: TrafficEncoderTest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Completed !== false) { + writer.uint32(16).bool(message.Completed); + } + if (message.Success !== false) { + writer.uint32(24).bool(message.Success); + } + if (message.Duration !== "0") { + writer.uint32(32).int64(message.Duration); + } + if (message.Err !== "") { + writer.uint32(74).string(message.Err); + } + if (message.Sample.length !== 0) { + writer.uint32(82).bytes(message.Sample); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TrafficEncoderTest { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTrafficEncoderTest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Completed = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Success = reader.bool(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Duration = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Err = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.Sample = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TrafficEncoderTest { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Completed: isSet(object.Completed) ? globalThis.Boolean(object.Completed) : false, + Success: isSet(object.Success) ? globalThis.Boolean(object.Success) : false, + Duration: isSet(object.Duration) ? globalThis.String(object.Duration) : "0", + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Sample: isSet(object.Sample) ? Buffer.from(bytesFromBase64(object.Sample)) : Buffer.alloc(0), + }; + }, + + toJSON(message: TrafficEncoderTest): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Completed !== false) { + obj.Completed = message.Completed; + } + if (message.Success !== false) { + obj.Success = message.Success; + } + if (message.Duration !== "0") { + obj.Duration = message.Duration; + } + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Sample.length !== 0) { + obj.Sample = base64FromBytes(message.Sample); + } + return obj; + }, + + create(base?: DeepPartial): TrafficEncoderTest { + return TrafficEncoderTest.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TrafficEncoderTest { + const message = createBaseTrafficEncoderTest(); + message.Name = object.Name ?? ""; + message.Completed = object.Completed ?? false; + message.Success = object.Success ?? false; + message.Duration = object.Duration ?? "0"; + message.Err = object.Err ?? ""; + message.Sample = object.Sample ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseTrafficEncoderTests(): TrafficEncoderTests { + return { Encoder: undefined, Tests: [], TotalDuration: "0", TotalTests: 0 }; +} + +export const TrafficEncoderTests: MessageFns = { + encode(message: TrafficEncoderTests, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Encoder !== undefined) { + TrafficEncoder.encode(message.Encoder, writer.uint32(10).fork()).join(); + } + for (const v of message.Tests) { + TrafficEncoderTest.encode(v!, writer.uint32(18).fork()).join(); + } + if (message.TotalDuration !== "0") { + writer.uint32(24).int64(message.TotalDuration); + } + if (message.TotalTests !== 0) { + writer.uint32(32).int32(message.TotalTests); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TrafficEncoderTests { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTrafficEncoderTests(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Encoder = TrafficEncoder.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Tests.push(TrafficEncoderTest.decode(reader, reader.uint32())); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.TotalDuration = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.TotalTests = reader.int32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TrafficEncoderTests { + return { + Encoder: isSet(object.Encoder) ? TrafficEncoder.fromJSON(object.Encoder) : undefined, + Tests: globalThis.Array.isArray(object?.Tests) + ? object.Tests.map((e: any) => TrafficEncoderTest.fromJSON(e)) + : [], + TotalDuration: isSet(object.TotalDuration) ? globalThis.String(object.TotalDuration) : "0", + TotalTests: isSet(object.TotalTests) ? globalThis.Number(object.TotalTests) : 0, + }; + }, + + toJSON(message: TrafficEncoderTests): unknown { + const obj: any = {}; + if (message.Encoder !== undefined) { + obj.Encoder = TrafficEncoder.toJSON(message.Encoder); + } + if (message.Tests?.length) { + obj.Tests = message.Tests.map((e) => TrafficEncoderTest.toJSON(e)); + } + if (message.TotalDuration !== "0") { + obj.TotalDuration = message.TotalDuration; + } + if (message.TotalTests !== 0) { + obj.TotalTests = Math.round(message.TotalTests); + } + return obj; + }, + + create(base?: DeepPartial): TrafficEncoderTests { + return TrafficEncoderTests.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TrafficEncoderTests { + const message = createBaseTrafficEncoderTests(); + message.Encoder = (object.Encoder !== undefined && object.Encoder !== null) + ? TrafficEncoder.fromPartial(object.Encoder) + : undefined; + message.Tests = object.Tests?.map((e) => TrafficEncoderTest.fromPartial(e)) || []; + message.TotalDuration = object.TotalDuration ?? "0"; + message.TotalTests = object.TotalTests ?? 0; + return message; + }, +}; + +function createBaseExternalImplantConfig(): ExternalImplantConfig { + return { Config: undefined, Build: undefined, HTTPC2: undefined, encoders: {} }; +} + +export const ExternalImplantConfig: MessageFns = { + encode(message: ExternalImplantConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(10).fork()).join(); + } + if (message.Build !== undefined) { + ImplantBuild.encode(message.Build, writer.uint32(18).fork()).join(); + } + if (message.HTTPC2 !== undefined) { + HTTPC2Config.encode(message.HTTPC2, writer.uint32(26).fork()).join(); + } + globalThis.Object.entries(message.encoders).forEach(([key, value]: [string, string]) => { + ExternalImplantConfig_EncodersEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExternalImplantConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExternalImplantConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Build = ImplantBuild.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.HTTPC2 = HTTPC2Config.decode(reader, reader.uint32()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + const entry4 = ExternalImplantConfig_EncodersEntry.decode(reader, reader.uint32()); + if (entry4.value !== undefined) { + message.encoders[entry4.key] = entry4.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExternalImplantConfig { + return { + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + Build: isSet(object.Build) ? ImplantBuild.fromJSON(object.Build) : undefined, + HTTPC2: isSet(object.HTTPC2) ? HTTPC2Config.fromJSON(object.HTTPC2) : undefined, + encoders: isObject(object.encoders) + ? (globalThis.Object.entries(object.encoders) as [string, any][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, any]) => { + acc[key] = globalThis.String(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: ExternalImplantConfig): unknown { + const obj: any = {}; + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + if (message.Build !== undefined) { + obj.Build = ImplantBuild.toJSON(message.Build); + } + if (message.HTTPC2 !== undefined) { + obj.HTTPC2 = HTTPC2Config.toJSON(message.HTTPC2); + } + if (message.encoders) { + const entries = globalThis.Object.entries(message.encoders) as [string, string][]; + if (entries.length > 0) { + obj.encoders = {}; + entries.forEach(([k, v]) => { + obj.encoders[k] = v; + }); + } + } + return obj; + }, + + create(base?: DeepPartial): ExternalImplantConfig { + return ExternalImplantConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExternalImplantConfig { + const message = createBaseExternalImplantConfig(); + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + message.Build = (object.Build !== undefined && object.Build !== null) + ? ImplantBuild.fromPartial(object.Build) + : undefined; + message.HTTPC2 = (object.HTTPC2 !== undefined && object.HTTPC2 !== null) + ? HTTPC2Config.fromPartial(object.HTTPC2) + : undefined; + message.encoders = (globalThis.Object.entries(object.encoders ?? {}) as [string, string][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, string]) => { + if (value !== undefined) { + acc[key] = globalThis.String(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseExternalImplantConfig_EncodersEntry(): ExternalImplantConfig_EncodersEntry { + return { key: "", value: "0" }; +} + +export const ExternalImplantConfig_EncodersEntry: MessageFns = { + encode(message: ExternalImplantConfig_EncodersEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "0") { + writer.uint32(16).uint64(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExternalImplantConfig_EncodersEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExternalImplantConfig_EncodersEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.value = reader.uint64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExternalImplantConfig_EncodersEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? globalThis.String(object.value) : "0", + }; + }, + + toJSON(message: ExternalImplantConfig_EncodersEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== "0") { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): ExternalImplantConfig_EncodersEntry { + return ExternalImplantConfig_EncodersEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExternalImplantConfig_EncodersEntry { + const message = createBaseExternalImplantConfig_EncodersEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? "0"; + return message; + }, +}; + +function createBaseExternalImplantBinary(): ExternalImplantBinary { + return { Name: "", ImplantBuildID: "", File: undefined }; +} + +export const ExternalImplantBinary: MessageFns = { + encode(message: ExternalImplantBinary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.ImplantBuildID !== "") { + writer.uint32(18).string(message.ImplantBuildID); + } + if (message.File !== undefined) { + File.encode(message.File, writer.uint32(26).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExternalImplantBinary { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExternalImplantBinary(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ImplantBuildID = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.File = File.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExternalImplantBinary { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + ImplantBuildID: isSet(object.ImplantBuildID) ? globalThis.String(object.ImplantBuildID) : "", + File: isSet(object.File) ? File.fromJSON(object.File) : undefined, + }; + }, + + toJSON(message: ExternalImplantBinary): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.ImplantBuildID !== "") { + obj.ImplantBuildID = message.ImplantBuildID; + } + if (message.File !== undefined) { + obj.File = File.toJSON(message.File); + } + return obj; + }, + + create(base?: DeepPartial): ExternalImplantBinary { + return ExternalImplantBinary.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExternalImplantBinary { + const message = createBaseExternalImplantBinary(); + message.Name = object.Name ?? ""; + message.ImplantBuildID = object.ImplantBuildID ?? ""; + message.File = (object.File !== undefined && object.File !== null) ? File.fromPartial(object.File) : undefined; + return message; + }, +}; + +function createBaseImplantBuilds(): ImplantBuilds { + return { Configs: {}, ResourceIDs: {}, staged: {} }; +} + +export const ImplantBuilds: MessageFns = { + encode(message: ImplantBuilds, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + globalThis.Object.entries(message.Configs).forEach(([key, value]: [string, ImplantConfig]) => { + ImplantBuilds_ConfigsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); + }); + globalThis.Object.entries(message.ResourceIDs).forEach(([key, value]: [string, ResourceID]) => { + ImplantBuilds_ResourceIDsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join(); + }); + globalThis.Object.entries(message.staged).forEach(([key, value]: [string, boolean]) => { + ImplantBuilds_StagedEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantBuilds { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantBuilds(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + const entry1 = ImplantBuilds_ConfigsEntry.decode(reader, reader.uint32()); + if (entry1.value !== undefined) { + message.Configs[entry1.key] = entry1.value; + } + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + const entry2 = ImplantBuilds_ResourceIDsEntry.decode(reader, reader.uint32()); + if (entry2.value !== undefined) { + message.ResourceIDs[entry2.key] = entry2.value; + } + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + const entry3 = ImplantBuilds_StagedEntry.decode(reader, reader.uint32()); + if (entry3.value !== undefined) { + message.staged[entry3.key] = entry3.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantBuilds { + return { + Configs: isObject(object.Configs) + ? (globalThis.Object.entries(object.Configs) as [string, any][]).reduce( + (acc: { [key: string]: ImplantConfig }, [key, value]: [string, any]) => { + acc[key] = ImplantConfig.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + ResourceIDs: isObject(object.ResourceIDs) + ? (globalThis.Object.entries(object.ResourceIDs) as [string, any][]).reduce( + (acc: { [key: string]: ResourceID }, [key, value]: [string, any]) => { + acc[key] = ResourceID.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + staged: isObject(object.staged) + ? (globalThis.Object.entries(object.staged) as [string, any][]).reduce( + (acc: { [key: string]: boolean }, [key, value]: [string, any]) => { + acc[key] = globalThis.Boolean(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: ImplantBuilds): unknown { + const obj: any = {}; + if (message.Configs) { + const entries = globalThis.Object.entries(message.Configs) as [string, ImplantConfig][]; + if (entries.length > 0) { + obj.Configs = {}; + entries.forEach(([k, v]) => { + obj.Configs[k] = ImplantConfig.toJSON(v); + }); + } + } + if (message.ResourceIDs) { + const entries = globalThis.Object.entries(message.ResourceIDs) as [string, ResourceID][]; + if (entries.length > 0) { + obj.ResourceIDs = {}; + entries.forEach(([k, v]) => { + obj.ResourceIDs[k] = ResourceID.toJSON(v); + }); + } + } + if (message.staged) { + const entries = globalThis.Object.entries(message.staged) as [string, boolean][]; + if (entries.length > 0) { + obj.staged = {}; + entries.forEach(([k, v]) => { + obj.staged[k] = v; + }); + } + } + return obj; + }, + + create(base?: DeepPartial): ImplantBuilds { + return ImplantBuilds.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantBuilds { + const message = createBaseImplantBuilds(); + message.Configs = (globalThis.Object.entries(object.Configs ?? {}) as [string, ImplantConfig][]).reduce( + (acc: { [key: string]: ImplantConfig }, [key, value]: [string, ImplantConfig]) => { + if (value !== undefined) { + acc[key] = ImplantConfig.fromPartial(value); + } + return acc; + }, + {}, + ); + message.ResourceIDs = (globalThis.Object.entries(object.ResourceIDs ?? {}) as [string, ResourceID][]).reduce( + (acc: { [key: string]: ResourceID }, [key, value]: [string, ResourceID]) => { + if (value !== undefined) { + acc[key] = ResourceID.fromPartial(value); + } + return acc; + }, + {}, + ); + message.staged = (globalThis.Object.entries(object.staged ?? {}) as [string, boolean][]).reduce( + (acc: { [key: string]: boolean }, [key, value]: [string, boolean]) => { + if (value !== undefined) { + acc[key] = globalThis.Boolean(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseImplantBuilds_ConfigsEntry(): ImplantBuilds_ConfigsEntry { + return { key: "", value: undefined }; +} + +export const ImplantBuilds_ConfigsEntry: MessageFns = { + encode(message: ImplantBuilds_ConfigsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + ImplantConfig.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantBuilds_ConfigsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantBuilds_ConfigsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantBuilds_ConfigsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? ImplantConfig.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: ImplantBuilds_ConfigsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = ImplantConfig.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): ImplantBuilds_ConfigsEntry { + return ImplantBuilds_ConfigsEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantBuilds_ConfigsEntry { + const message = createBaseImplantBuilds_ConfigsEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? ImplantConfig.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseImplantBuilds_ResourceIDsEntry(): ImplantBuilds_ResourceIDsEntry { + return { key: "", value: undefined }; +} + +export const ImplantBuilds_ResourceIDsEntry: MessageFns = { + encode(message: ImplantBuilds_ResourceIDsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + ResourceID.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantBuilds_ResourceIDsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantBuilds_ResourceIDsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = ResourceID.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantBuilds_ResourceIDsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? ResourceID.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: ImplantBuilds_ResourceIDsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = ResourceID.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): ImplantBuilds_ResourceIDsEntry { + return ImplantBuilds_ResourceIDsEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantBuilds_ResourceIDsEntry { + const message = createBaseImplantBuilds_ResourceIDsEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? ResourceID.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseImplantBuilds_StagedEntry(): ImplantBuilds_StagedEntry { + return { key: "", value: false }; +} + +export const ImplantBuilds_StagedEntry: MessageFns = { + encode(message: ImplantBuilds_StagedEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== false) { + writer.uint32(16).bool(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantBuilds_StagedEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantBuilds_StagedEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.value = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantBuilds_StagedEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? globalThis.Boolean(object.value) : false, + }; + }, + + toJSON(message: ImplantBuilds_StagedEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== false) { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): ImplantBuilds_StagedEntry { + return ImplantBuilds_StagedEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantBuilds_StagedEntry { + const message = createBaseImplantBuilds_StagedEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? false; + return message; + }, +}; + +function createBaseImplantStageReq(): ImplantStageReq { + return { Build: [] }; +} + +export const ImplantStageReq: MessageFns = { + encode(message: ImplantStageReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Build) { + writer.uint32(10).string(v!); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantStageReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantStageReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Build.push(reader.string()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantStageReq { + return { Build: globalThis.Array.isArray(object?.Build) ? object.Build.map((e: any) => globalThis.String(e)) : [] }; + }, + + toJSON(message: ImplantStageReq): unknown { + const obj: any = {}; + if (message.Build?.length) { + obj.Build = message.Build; + } + return obj; + }, + + create(base?: DeepPartial): ImplantStageReq { + return ImplantStageReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantStageReq { + const message = createBaseImplantStageReq(); + message.Build = object.Build?.map((e) => e) || []; + return message; + }, +}; + +function createBaseImplantBuild(): ImplantBuild { + return { + ID: "", + Name: "", + MD5: "", + SHA1: "", + SHA256: "", + Burned: false, + ImplantID: "0", + ImplantConfigID: "", + AgeServerPublicKey: "", + PeerPublicKey: "", + PeerPrivateKey: "", + PeerPublicKeySignature: "", + MinisignServerPublicKey: "", + PeerPublicKeyDigest: "", + WGImplantPrivKey: "", + WGServerPubKey: "", + MtlsCACert: "", + MtlsCert: "", + MtlsKey: "", + Stage: false, + }; +} + +export const ImplantBuild: MessageFns = { + encode(message: ImplantBuild, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.MD5 !== "") { + writer.uint32(26).string(message.MD5); + } + if (message.SHA1 !== "") { + writer.uint32(34).string(message.SHA1); + } + if (message.SHA256 !== "") { + writer.uint32(42).string(message.SHA256); + } + if (message.Burned !== false) { + writer.uint32(48).bool(message.Burned); + } + if (message.ImplantID !== "0") { + writer.uint32(56).uint64(message.ImplantID); + } + if (message.ImplantConfigID !== "") { + writer.uint32(66).string(message.ImplantConfigID); + } + if (message.AgeServerPublicKey !== "") { + writer.uint32(74).string(message.AgeServerPublicKey); + } + if (message.PeerPublicKey !== "") { + writer.uint32(82).string(message.PeerPublicKey); + } + if (message.PeerPrivateKey !== "") { + writer.uint32(90).string(message.PeerPrivateKey); + } + if (message.PeerPublicKeySignature !== "") { + writer.uint32(98).string(message.PeerPublicKeySignature); + } + if (message.MinisignServerPublicKey !== "") { + writer.uint32(106).string(message.MinisignServerPublicKey); + } + if (message.PeerPublicKeyDigest !== "") { + writer.uint32(114).string(message.PeerPublicKeyDigest); + } + if (message.WGImplantPrivKey !== "") { + writer.uint32(122).string(message.WGImplantPrivKey); + } + if (message.WGServerPubKey !== "") { + writer.uint32(130).string(message.WGServerPubKey); + } + if (message.MtlsCACert !== "") { + writer.uint32(138).string(message.MtlsCACert); + } + if (message.MtlsCert !== "") { + writer.uint32(146).string(message.MtlsCert); + } + if (message.MtlsKey !== "") { + writer.uint32(154).string(message.MtlsKey); + } + if (message.Stage !== false) { + writer.uint32(160).bool(message.Stage); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantBuild { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantBuild(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.MD5 = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.SHA1 = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.SHA256 = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Burned = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.ImplantID = reader.uint64().toString(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.ImplantConfigID = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.AgeServerPublicKey = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.PeerPublicKey = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.PeerPrivateKey = reader.string(); + continue; + } + case 12: { + if (tag !== 98) { + break; + } + + message.PeerPublicKeySignature = reader.string(); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.MinisignServerPublicKey = reader.string(); + continue; + } + case 14: { + if (tag !== 114) { + break; + } + + message.PeerPublicKeyDigest = reader.string(); + continue; + } + case 15: { + if (tag !== 122) { + break; + } + + message.WGImplantPrivKey = reader.string(); + continue; + } + case 16: { + if (tag !== 130) { + break; + } + + message.WGServerPubKey = reader.string(); + continue; + } + case 17: { + if (tag !== 138) { + break; + } + + message.MtlsCACert = reader.string(); + continue; + } + case 18: { + if (tag !== 146) { + break; + } + + message.MtlsCert = reader.string(); + continue; + } + case 19: { + if (tag !== 154) { + break; + } + + message.MtlsKey = reader.string(); + continue; + } + case 20: { + if (tag !== 160) { + break; + } + + message.Stage = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantBuild { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + MD5: isSet(object.MD5) ? globalThis.String(object.MD5) : "", + SHA1: isSet(object.SHA1) ? globalThis.String(object.SHA1) : "", + SHA256: isSet(object.SHA256) ? globalThis.String(object.SHA256) : "", + Burned: isSet(object.Burned) ? globalThis.Boolean(object.Burned) : false, + ImplantID: isSet(object.ImplantID) ? globalThis.String(object.ImplantID) : "0", + ImplantConfigID: isSet(object.ImplantConfigID) ? globalThis.String(object.ImplantConfigID) : "", + AgeServerPublicKey: isSet(object.AgeServerPublicKey) ? globalThis.String(object.AgeServerPublicKey) : "", + PeerPublicKey: isSet(object.PeerPublicKey) ? globalThis.String(object.PeerPublicKey) : "", + PeerPrivateKey: isSet(object.PeerPrivateKey) ? globalThis.String(object.PeerPrivateKey) : "", + PeerPublicKeySignature: isSet(object.PeerPublicKeySignature) + ? globalThis.String(object.PeerPublicKeySignature) + : "", + MinisignServerPublicKey: isSet(object.MinisignServerPublicKey) + ? globalThis.String(object.MinisignServerPublicKey) + : "", + PeerPublicKeyDigest: isSet(object.PeerPublicKeyDigest) ? globalThis.String(object.PeerPublicKeyDigest) : "", + WGImplantPrivKey: isSet(object.WGImplantPrivKey) ? globalThis.String(object.WGImplantPrivKey) : "", + WGServerPubKey: isSet(object.WGServerPubKey) ? globalThis.String(object.WGServerPubKey) : "", + MtlsCACert: isSet(object.MtlsCACert) ? globalThis.String(object.MtlsCACert) : "", + MtlsCert: isSet(object.MtlsCert) ? globalThis.String(object.MtlsCert) : "", + MtlsKey: isSet(object.MtlsKey) ? globalThis.String(object.MtlsKey) : "", + Stage: isSet(object.Stage) ? globalThis.Boolean(object.Stage) : false, + }; + }, + + toJSON(message: ImplantBuild): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.MD5 !== "") { + obj.MD5 = message.MD5; + } + if (message.SHA1 !== "") { + obj.SHA1 = message.SHA1; + } + if (message.SHA256 !== "") { + obj.SHA256 = message.SHA256; + } + if (message.Burned !== false) { + obj.Burned = message.Burned; + } + if (message.ImplantID !== "0") { + obj.ImplantID = message.ImplantID; + } + if (message.ImplantConfigID !== "") { + obj.ImplantConfigID = message.ImplantConfigID; + } + if (message.AgeServerPublicKey !== "") { + obj.AgeServerPublicKey = message.AgeServerPublicKey; + } + if (message.PeerPublicKey !== "") { + obj.PeerPublicKey = message.PeerPublicKey; + } + if (message.PeerPrivateKey !== "") { + obj.PeerPrivateKey = message.PeerPrivateKey; + } + if (message.PeerPublicKeySignature !== "") { + obj.PeerPublicKeySignature = message.PeerPublicKeySignature; + } + if (message.MinisignServerPublicKey !== "") { + obj.MinisignServerPublicKey = message.MinisignServerPublicKey; + } + if (message.PeerPublicKeyDigest !== "") { + obj.PeerPublicKeyDigest = message.PeerPublicKeyDigest; + } + if (message.WGImplantPrivKey !== "") { + obj.WGImplantPrivKey = message.WGImplantPrivKey; + } + if (message.WGServerPubKey !== "") { + obj.WGServerPubKey = message.WGServerPubKey; + } + if (message.MtlsCACert !== "") { + obj.MtlsCACert = message.MtlsCACert; + } + if (message.MtlsCert !== "") { + obj.MtlsCert = message.MtlsCert; + } + if (message.MtlsKey !== "") { + obj.MtlsKey = message.MtlsKey; + } + if (message.Stage !== false) { + obj.Stage = message.Stage; + } + return obj; + }, + + create(base?: DeepPartial): ImplantBuild { + return ImplantBuild.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantBuild { + const message = createBaseImplantBuild(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.MD5 = object.MD5 ?? ""; + message.SHA1 = object.SHA1 ?? ""; + message.SHA256 = object.SHA256 ?? ""; + message.Burned = object.Burned ?? false; + message.ImplantID = object.ImplantID ?? "0"; + message.ImplantConfigID = object.ImplantConfigID ?? ""; + message.AgeServerPublicKey = object.AgeServerPublicKey ?? ""; + message.PeerPublicKey = object.PeerPublicKey ?? ""; + message.PeerPrivateKey = object.PeerPrivateKey ?? ""; + message.PeerPublicKeySignature = object.PeerPublicKeySignature ?? ""; + message.MinisignServerPublicKey = object.MinisignServerPublicKey ?? ""; + message.PeerPublicKeyDigest = object.PeerPublicKeyDigest ?? ""; + message.WGImplantPrivKey = object.WGImplantPrivKey ?? ""; + message.WGServerPubKey = object.WGServerPubKey ?? ""; + message.MtlsCACert = object.MtlsCACert ?? ""; + message.MtlsCert = object.MtlsCert ?? ""; + message.MtlsKey = object.MtlsKey ?? ""; + message.Stage = object.Stage ?? false; + return message; + }, +}; + +function createBaseCompilerTarget(): CompilerTarget { + return { GOOS: "", GOARCH: "", Format: 0 }; +} + +export const CompilerTarget: MessageFns = { + encode(message: CompilerTarget, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.GOOS !== "") { + writer.uint32(10).string(message.GOOS); + } + if (message.GOARCH !== "") { + writer.uint32(18).string(message.GOARCH); + } + if (message.Format !== 0) { + writer.uint32(24).int32(message.Format); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CompilerTarget { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCompilerTarget(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.GOOS = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.GOARCH = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Format = reader.int32() as any; + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CompilerTarget { + return { + GOOS: isSet(object.GOOS) ? globalThis.String(object.GOOS) : "", + GOARCH: isSet(object.GOARCH) ? globalThis.String(object.GOARCH) : "", + Format: isSet(object.Format) ? outputFormatFromJSON(object.Format) : 0, + }; + }, + + toJSON(message: CompilerTarget): unknown { + const obj: any = {}; + if (message.GOOS !== "") { + obj.GOOS = message.GOOS; + } + if (message.GOARCH !== "") { + obj.GOARCH = message.GOARCH; + } + if (message.Format !== 0) { + obj.Format = outputFormatToJSON(message.Format); + } + return obj; + }, + + create(base?: DeepPartial): CompilerTarget { + return CompilerTarget.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CompilerTarget { + const message = createBaseCompilerTarget(); + message.GOOS = object.GOOS ?? ""; + message.GOARCH = object.GOARCH ?? ""; + message.Format = object.Format ?? 0; + return message; + }, +}; + +function createBaseCrossCompiler(): CrossCompiler { + return { TargetGOOS: "", TargetGOARCH: "", CCPath: "", CXXPath: "" }; +} + +export const CrossCompiler: MessageFns = { + encode(message: CrossCompiler, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.TargetGOOS !== "") { + writer.uint32(10).string(message.TargetGOOS); + } + if (message.TargetGOARCH !== "") { + writer.uint32(18).string(message.TargetGOARCH); + } + if (message.CCPath !== "") { + writer.uint32(26).string(message.CCPath); + } + if (message.CXXPath !== "") { + writer.uint32(34).string(message.CXXPath); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrossCompiler { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrossCompiler(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.TargetGOOS = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.TargetGOARCH = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.CCPath = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.CXXPath = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrossCompiler { + return { + TargetGOOS: isSet(object.TargetGOOS) ? globalThis.String(object.TargetGOOS) : "", + TargetGOARCH: isSet(object.TargetGOARCH) ? globalThis.String(object.TargetGOARCH) : "", + CCPath: isSet(object.CCPath) ? globalThis.String(object.CCPath) : "", + CXXPath: isSet(object.CXXPath) ? globalThis.String(object.CXXPath) : "", + }; + }, + + toJSON(message: CrossCompiler): unknown { + const obj: any = {}; + if (message.TargetGOOS !== "") { + obj.TargetGOOS = message.TargetGOOS; + } + if (message.TargetGOARCH !== "") { + obj.TargetGOARCH = message.TargetGOARCH; + } + if (message.CCPath !== "") { + obj.CCPath = message.CCPath; + } + if (message.CXXPath !== "") { + obj.CXXPath = message.CXXPath; + } + return obj; + }, + + create(base?: DeepPartial): CrossCompiler { + return CrossCompiler.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrossCompiler { + const message = createBaseCrossCompiler(); + message.TargetGOOS = object.TargetGOOS ?? ""; + message.TargetGOARCH = object.TargetGOARCH ?? ""; + message.CCPath = object.CCPath ?? ""; + message.CXXPath = object.CXXPath ?? ""; + return message; + }, +}; + +function createBaseCompiler(): Compiler { + return { GOOS: "", GOARCH: "", Targets: [], CrossCompilers: [], UnsupportedTargets: [] }; +} + +export const Compiler: MessageFns = { + encode(message: Compiler, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.GOOS !== "") { + writer.uint32(10).string(message.GOOS); + } + if (message.GOARCH !== "") { + writer.uint32(18).string(message.GOARCH); + } + for (const v of message.Targets) { + CompilerTarget.encode(v!, writer.uint32(26).fork()).join(); + } + for (const v of message.CrossCompilers) { + CrossCompiler.encode(v!, writer.uint32(34).fork()).join(); + } + for (const v of message.UnsupportedTargets) { + CompilerTarget.encode(v!, writer.uint32(42).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Compiler { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCompiler(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.GOOS = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.GOARCH = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Targets.push(CompilerTarget.decode(reader, reader.uint32())); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.CrossCompilers.push(CrossCompiler.decode(reader, reader.uint32())); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.UnsupportedTargets.push(CompilerTarget.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Compiler { + return { + GOOS: isSet(object.GOOS) ? globalThis.String(object.GOOS) : "", + GOARCH: isSet(object.GOARCH) ? globalThis.String(object.GOARCH) : "", + Targets: globalThis.Array.isArray(object?.Targets) + ? object.Targets.map((e: any) => CompilerTarget.fromJSON(e)) + : [], + CrossCompilers: globalThis.Array.isArray(object?.CrossCompilers) + ? object.CrossCompilers.map((e: any) => CrossCompiler.fromJSON(e)) + : [], + UnsupportedTargets: globalThis.Array.isArray(object?.UnsupportedTargets) + ? object.UnsupportedTargets.map((e: any) => CompilerTarget.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Compiler): unknown { + const obj: any = {}; + if (message.GOOS !== "") { + obj.GOOS = message.GOOS; + } + if (message.GOARCH !== "") { + obj.GOARCH = message.GOARCH; + } + if (message.Targets?.length) { + obj.Targets = message.Targets.map((e) => CompilerTarget.toJSON(e)); + } + if (message.CrossCompilers?.length) { + obj.CrossCompilers = message.CrossCompilers.map((e) => CrossCompiler.toJSON(e)); + } + if (message.UnsupportedTargets?.length) { + obj.UnsupportedTargets = message.UnsupportedTargets.map((e) => CompilerTarget.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Compiler { + return Compiler.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Compiler { + const message = createBaseCompiler(); + message.GOOS = object.GOOS ?? ""; + message.GOARCH = object.GOARCH ?? ""; + message.Targets = object.Targets?.map((e) => CompilerTarget.fromPartial(e)) || []; + message.CrossCompilers = object.CrossCompilers?.map((e) => CrossCompiler.fromPartial(e)) || []; + message.UnsupportedTargets = object.UnsupportedTargets?.map((e) => CompilerTarget.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseDeleteReq(): DeleteReq { + return { Name: "" }; +} + +export const DeleteReq: MessageFns = { + encode(message: DeleteReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DeleteReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeleteReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DeleteReq { + return { Name: isSet(object.Name) ? globalThis.String(object.Name) : "" }; + }, + + toJSON(message: DeleteReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): DeleteReq { + return DeleteReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DeleteReq { + const message = createBaseDeleteReq(); + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseDNSCanary(): DNSCanary { + return { ID: "", ImplantName: "", Domain: "", Triggered: false, FirstTriggered: "", LatestTrigger: "", Count: 0 }; +} + +export const DNSCanary: MessageFns = { + encode(message: DNSCanary, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.ImplantName !== "") { + writer.uint32(18).string(message.ImplantName); + } + if (message.Domain !== "") { + writer.uint32(26).string(message.Domain); + } + if (message.Triggered !== false) { + writer.uint32(32).bool(message.Triggered); + } + if (message.FirstTriggered !== "") { + writer.uint32(42).string(message.FirstTriggered); + } + if (message.LatestTrigger !== "") { + writer.uint32(50).string(message.LatestTrigger); + } + if (message.Count !== 0) { + writer.uint32(56).uint32(message.Count); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DNSCanary { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDNSCanary(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ImplantName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Domain = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Triggered = reader.bool(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.FirstTriggered = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.LatestTrigger = reader.string(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Count = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DNSCanary { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + ImplantName: isSet(object.ImplantName) ? globalThis.String(object.ImplantName) : "", + Domain: isSet(object.Domain) ? globalThis.String(object.Domain) : "", + Triggered: isSet(object.Triggered) ? globalThis.Boolean(object.Triggered) : false, + FirstTriggered: isSet(object.FirstTriggered) ? globalThis.String(object.FirstTriggered) : "", + LatestTrigger: isSet(object.LatestTrigger) ? globalThis.String(object.LatestTrigger) : "", + Count: isSet(object.Count) ? globalThis.Number(object.Count) : 0, + }; + }, + + toJSON(message: DNSCanary): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.ImplantName !== "") { + obj.ImplantName = message.ImplantName; + } + if (message.Domain !== "") { + obj.Domain = message.Domain; + } + if (message.Triggered !== false) { + obj.Triggered = message.Triggered; + } + if (message.FirstTriggered !== "") { + obj.FirstTriggered = message.FirstTriggered; + } + if (message.LatestTrigger !== "") { + obj.LatestTrigger = message.LatestTrigger; + } + if (message.Count !== 0) { + obj.Count = Math.round(message.Count); + } + return obj; + }, + + create(base?: DeepPartial): DNSCanary { + return DNSCanary.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DNSCanary { + const message = createBaseDNSCanary(); + message.ID = object.ID ?? ""; + message.ImplantName = object.ImplantName ?? ""; + message.Domain = object.Domain ?? ""; + message.Triggered = object.Triggered ?? false; + message.FirstTriggered = object.FirstTriggered ?? ""; + message.LatestTrigger = object.LatestTrigger ?? ""; + message.Count = object.Count ?? 0; + return message; + }, +}; + +function createBaseCanaries(): Canaries { + return { Canaries: [] }; +} + +export const Canaries: MessageFns = { + encode(message: Canaries, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Canaries) { + DNSCanary.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Canaries { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCanaries(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Canaries.push(DNSCanary.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Canaries { + return { + Canaries: globalThis.Array.isArray(object?.Canaries) + ? object.Canaries.map((e: any) => DNSCanary.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Canaries): unknown { + const obj: any = {}; + if (message.Canaries?.length) { + obj.Canaries = message.Canaries.map((e) => DNSCanary.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Canaries { + return Canaries.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Canaries { + const message = createBaseCanaries(); + message.Canaries = object.Canaries?.map((e) => DNSCanary.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseUniqueWGIP(): UniqueWGIP { + return { IP: "" }; +} + +export const UniqueWGIP: MessageFns = { + encode(message: UniqueWGIP, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.IP !== "") { + writer.uint32(10).string(message.IP); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): UniqueWGIP { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUniqueWGIP(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.IP = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): UniqueWGIP { + return { IP: isSet(object.IP) ? globalThis.String(object.IP) : "" }; + }, + + toJSON(message: UniqueWGIP): unknown { + const obj: any = {}; + if (message.IP !== "") { + obj.IP = message.IP; + } + return obj; + }, + + create(base?: DeepPartial): UniqueWGIP { + return UniqueWGIP.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): UniqueWGIP { + const message = createBaseUniqueWGIP(); + message.IP = object.IP ?? ""; + return message; + }, +}; + +function createBaseImplantProfile(): ImplantProfile { + return { ID: "", Name: "", Config: undefined }; +} + +export const ImplantProfile: MessageFns = { + encode(message: ImplantProfile, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(26).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantProfile { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantProfile(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantProfile { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + }; + }, + + toJSON(message: ImplantProfile): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + return obj; + }, + + create(base?: DeepPartial): ImplantProfile { + return ImplantProfile.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantProfile { + const message = createBaseImplantProfile(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + return message; + }, +}; + +function createBaseImplantProfiles(): ImplantProfiles { + return { Profiles: [] }; +} + +export const ImplantProfiles: MessageFns = { + encode(message: ImplantProfiles, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Profiles) { + ImplantProfile.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImplantProfiles { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImplantProfiles(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Profiles.push(ImplantProfile.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImplantProfiles { + return { + Profiles: globalThis.Array.isArray(object?.Profiles) + ? object.Profiles.map((e: any) => ImplantProfile.fromJSON(e)) + : [], + }; + }, + + toJSON(message: ImplantProfiles): unknown { + const obj: any = {}; + if (message.Profiles?.length) { + obj.Profiles = message.Profiles.map((e) => ImplantProfile.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): ImplantProfiles { + return ImplantProfiles.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImplantProfiles { + const message = createBaseImplantProfiles(); + message.Profiles = object.Profiles?.map((e) => ImplantProfile.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseRegenerateReq(): RegenerateReq { + return { ImplantName: "" }; +} + +export const RegenerateReq: MessageFns = { + encode(message: RegenerateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ImplantName !== "") { + writer.uint32(10).string(message.ImplantName); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegenerateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegenerateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ImplantName = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegenerateReq { + return { ImplantName: isSet(object.ImplantName) ? globalThis.String(object.ImplantName) : "" }; + }, + + toJSON(message: RegenerateReq): unknown { + const obj: any = {}; + if (message.ImplantName !== "") { + obj.ImplantName = message.ImplantName; + } + return obj; + }, + + create(base?: DeepPartial): RegenerateReq { + return RegenerateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegenerateReq { + const message = createBaseRegenerateReq(); + message.ImplantName = object.ImplantName ?? ""; + return message; + }, +}; + +function createBaseJob(): Job { + return { ID: 0, Name: "", Description: "", Protocol: "", Port: 0, Domains: [], ProfileName: "" }; +} + +export const Job: MessageFns = { + encode(message: Job, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.Description !== "") { + writer.uint32(26).string(message.Description); + } + if (message.Protocol !== "") { + writer.uint32(34).string(message.Protocol); + } + if (message.Port !== 0) { + writer.uint32(40).uint32(message.Port); + } + for (const v of message.Domains) { + writer.uint32(50).string(v!); + } + if (message.ProfileName !== "") { + writer.uint32(58).string(message.ProfileName); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Job { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseJob(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Description = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Protocol = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Domains.push(reader.string()); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.ProfileName = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Job { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Description: isSet(object.Description) ? globalThis.String(object.Description) : "", + Protocol: isSet(object.Protocol) ? globalThis.String(object.Protocol) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Domains: globalThis.Array.isArray(object?.Domains) ? object.Domains.map((e: any) => globalThis.String(e)) : [], + ProfileName: isSet(object.ProfileName) ? globalThis.String(object.ProfileName) : "", + }; + }, + + toJSON(message: Job): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Description !== "") { + obj.Description = message.Description; + } + if (message.Protocol !== "") { + obj.Protocol = message.Protocol; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Domains?.length) { + obj.Domains = message.Domains; + } + if (message.ProfileName !== "") { + obj.ProfileName = message.ProfileName; + } + return obj; + }, + + create(base?: DeepPartial): Job { + return Job.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Job { + const message = createBaseJob(); + message.ID = object.ID ?? 0; + message.Name = object.Name ?? ""; + message.Description = object.Description ?? ""; + message.Protocol = object.Protocol ?? ""; + message.Port = object.Port ?? 0; + message.Domains = object.Domains?.map((e) => e) || []; + message.ProfileName = object.ProfileName ?? ""; + return message; + }, +}; + +function createBaseJobs(): Jobs { + return { Active: [] }; +} + +export const Jobs: MessageFns = { + encode(message: Jobs, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Active) { + Job.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Jobs { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseJobs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Active.push(Job.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Jobs { + return { Active: globalThis.Array.isArray(object?.Active) ? object.Active.map((e: any) => Job.fromJSON(e)) : [] }; + }, + + toJSON(message: Jobs): unknown { + const obj: any = {}; + if (message.Active?.length) { + obj.Active = message.Active.map((e) => Job.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Jobs { + return Jobs.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Jobs { + const message = createBaseJobs(); + message.Active = object.Active?.map((e) => Job.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseKillJobReq(): KillJobReq { + return { ID: 0 }; +} + +export const KillJobReq: MessageFns = { + encode(message: KillJobReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): KillJobReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseKillJobReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): KillJobReq { + return { ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0 }; + }, + + toJSON(message: KillJobReq): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + return obj; + }, + + create(base?: DeepPartial): KillJobReq { + return KillJobReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): KillJobReq { + const message = createBaseKillJobReq(); + message.ID = object.ID ?? 0; + return message; + }, +}; + +function createBaseRestartJobReq(): RestartJobReq { + return { JobIDs: [] }; +} + +export const RestartJobReq: MessageFns = { + encode(message: RestartJobReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + writer.uint32(10).fork(); + for (const v of message.JobIDs) { + writer.uint32(v); + } + writer.join(); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RestartJobReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRestartJobReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag === 8) { + message.JobIDs.push(reader.uint32()); + + continue; + } + + if (tag === 10) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.JobIDs.push(reader.uint32()); + } + + continue; + } + + break; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RestartJobReq { + return { + JobIDs: globalThis.Array.isArray(object?.JobIDs) ? object.JobIDs.map((e: any) => globalThis.Number(e)) : [], + }; + }, + + toJSON(message: RestartJobReq): unknown { + const obj: any = {}; + if (message.JobIDs?.length) { + obj.JobIDs = message.JobIDs.map((e) => Math.round(e)); + } + return obj; + }, + + create(base?: DeepPartial): RestartJobReq { + return RestartJobReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RestartJobReq { + const message = createBaseRestartJobReq(); + message.JobIDs = object.JobIDs?.map((e) => e) || []; + return message; + }, +}; + +function createBaseKillJob(): KillJob { + return { ID: 0, Success: false }; +} + +export const KillJob: MessageFns = { + encode(message: KillJob, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Success !== false) { + writer.uint32(16).bool(message.Success); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): KillJob { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseKillJob(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Success = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): KillJob { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Success: isSet(object.Success) ? globalThis.Boolean(object.Success) : false, + }; + }, + + toJSON(message: KillJob): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Success !== false) { + obj.Success = message.Success; + } + return obj; + }, + + create(base?: DeepPartial): KillJob { + return KillJob.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): KillJob { + const message = createBaseKillJob(); + message.ID = object.ID ?? 0; + message.Success = object.Success ?? false; + return message; + }, +}; + +function createBaseListenerJob(): ListenerJob { + return { + ID: "", + Type: "", + JobID: 0, + MTLSConf: undefined, + WGConf: undefined, + DNSConf: undefined, + HTTPConf: undefined, + MultiConf: undefined, + TCPConf: undefined, + }; +} + +export const ListenerJob: MessageFns = { + encode(message: ListenerJob, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Type !== "") { + writer.uint32(18).string(message.Type); + } + if (message.JobID !== 0) { + writer.uint32(24).uint32(message.JobID); + } + if (message.MTLSConf !== undefined) { + MTLSListenerReq.encode(message.MTLSConf, writer.uint32(34).fork()).join(); + } + if (message.WGConf !== undefined) { + WGListenerReq.encode(message.WGConf, writer.uint32(42).fork()).join(); + } + if (message.DNSConf !== undefined) { + DNSListenerReq.encode(message.DNSConf, writer.uint32(50).fork()).join(); + } + if (message.HTTPConf !== undefined) { + HTTPListenerReq.encode(message.HTTPConf, writer.uint32(58).fork()).join(); + } + if (message.MultiConf !== undefined) { + MultiplayerListenerReq.encode(message.MultiConf, writer.uint32(66).fork()).join(); + } + if (message.TCPConf !== undefined) { + StagerListenerReq.encode(message.TCPConf, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ListenerJob { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListenerJob(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Type = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.JobID = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.MTLSConf = MTLSListenerReq.decode(reader, reader.uint32()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.WGConf = WGListenerReq.decode(reader, reader.uint32()); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.DNSConf = DNSListenerReq.decode(reader, reader.uint32()); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.HTTPConf = HTTPListenerReq.decode(reader, reader.uint32()); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.MultiConf = MultiplayerListenerReq.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.TCPConf = StagerListenerReq.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListenerJob { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + JobID: isSet(object.JobID) ? globalThis.Number(object.JobID) : 0, + MTLSConf: isSet(object.MTLSConf) ? MTLSListenerReq.fromJSON(object.MTLSConf) : undefined, + WGConf: isSet(object.WGConf) ? WGListenerReq.fromJSON(object.WGConf) : undefined, + DNSConf: isSet(object.DNSConf) ? DNSListenerReq.fromJSON(object.DNSConf) : undefined, + HTTPConf: isSet(object.HTTPConf) ? HTTPListenerReq.fromJSON(object.HTTPConf) : undefined, + MultiConf: isSet(object.MultiConf) ? MultiplayerListenerReq.fromJSON(object.MultiConf) : undefined, + TCPConf: isSet(object.TCPConf) ? StagerListenerReq.fromJSON(object.TCPConf) : undefined, + }; + }, + + toJSON(message: ListenerJob): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.JobID !== 0) { + obj.JobID = Math.round(message.JobID); + } + if (message.MTLSConf !== undefined) { + obj.MTLSConf = MTLSListenerReq.toJSON(message.MTLSConf); + } + if (message.WGConf !== undefined) { + obj.WGConf = WGListenerReq.toJSON(message.WGConf); + } + if (message.DNSConf !== undefined) { + obj.DNSConf = DNSListenerReq.toJSON(message.DNSConf); + } + if (message.HTTPConf !== undefined) { + obj.HTTPConf = HTTPListenerReq.toJSON(message.HTTPConf); + } + if (message.MultiConf !== undefined) { + obj.MultiConf = MultiplayerListenerReq.toJSON(message.MultiConf); + } + if (message.TCPConf !== undefined) { + obj.TCPConf = StagerListenerReq.toJSON(message.TCPConf); + } + return obj; + }, + + create(base?: DeepPartial): ListenerJob { + return ListenerJob.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ListenerJob { + const message = createBaseListenerJob(); + message.ID = object.ID ?? ""; + message.Type = object.Type ?? ""; + message.JobID = object.JobID ?? 0; + message.MTLSConf = (object.MTLSConf !== undefined && object.MTLSConf !== null) + ? MTLSListenerReq.fromPartial(object.MTLSConf) + : undefined; + message.WGConf = (object.WGConf !== undefined && object.WGConf !== null) + ? WGListenerReq.fromPartial(object.WGConf) + : undefined; + message.DNSConf = (object.DNSConf !== undefined && object.DNSConf !== null) + ? DNSListenerReq.fromPartial(object.DNSConf) + : undefined; + message.HTTPConf = (object.HTTPConf !== undefined && object.HTTPConf !== null) + ? HTTPListenerReq.fromPartial(object.HTTPConf) + : undefined; + message.MultiConf = (object.MultiConf !== undefined && object.MultiConf !== null) + ? MultiplayerListenerReq.fromPartial(object.MultiConf) + : undefined; + message.TCPConf = (object.TCPConf !== undefined && object.TCPConf !== null) + ? StagerListenerReq.fromPartial(object.TCPConf) + : undefined; + return message; + }, +}; + +function createBaseMultiplayerListenerReq(): MultiplayerListenerReq { + return { Host: "", Port: 0 }; +} + +export const MultiplayerListenerReq: MessageFns = { + encode(message: MultiplayerListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Host !== "") { + writer.uint32(10).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(16).uint32(message.Port); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MultiplayerListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMultiplayerListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Host = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Port = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MultiplayerListenerReq { + return { + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + }; + }, + + toJSON(message: MultiplayerListenerReq): unknown { + const obj: any = {}; + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + return obj; + }, + + create(base?: DeepPartial): MultiplayerListenerReq { + return MultiplayerListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MultiplayerListenerReq { + const message = createBaseMultiplayerListenerReq(); + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + return message; + }, +}; + +function createBaseMTLSListenerReq(): MTLSListenerReq { + return { Host: "", Port: 0 }; +} + +export const MTLSListenerReq: MessageFns = { + encode(message: MTLSListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Host !== "") { + writer.uint32(10).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(16).uint32(message.Port); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MTLSListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMTLSListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Host = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Port = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MTLSListenerReq { + return { + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + }; + }, + + toJSON(message: MTLSListenerReq): unknown { + const obj: any = {}; + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + return obj; + }, + + create(base?: DeepPartial): MTLSListenerReq { + return MTLSListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MTLSListenerReq { + const message = createBaseMTLSListenerReq(); + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + return message; + }, +}; + +function createBaseWGListenerReq(): WGListenerReq { + return { Host: "", Port: 0, TunIP: "", NPort: 0, KeyPort: 0 }; +} + +export const WGListenerReq: MessageFns = { + encode(message: WGListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Host !== "") { + writer.uint32(50).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(8).uint32(message.Port); + } + if (message.TunIP !== "") { + writer.uint32(18).string(message.TunIP); + } + if (message.NPort !== 0) { + writer.uint32(24).uint32(message.NPort); + } + if (message.KeyPort !== 0) { + writer.uint32(32).uint32(message.KeyPort); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 6: { + if (tag !== 50) { + break; + } + + message.Host = reader.string(); + continue; + } + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.TunIP = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.NPort = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.KeyPort = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGListenerReq { + return { + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + TunIP: isSet(object.TunIP) ? globalThis.String(object.TunIP) : "", + NPort: isSet(object.NPort) ? globalThis.Number(object.NPort) : 0, + KeyPort: isSet(object.KeyPort) ? globalThis.Number(object.KeyPort) : 0, + }; + }, + + toJSON(message: WGListenerReq): unknown { + const obj: any = {}; + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.TunIP !== "") { + obj.TunIP = message.TunIP; + } + if (message.NPort !== 0) { + obj.NPort = Math.round(message.NPort); + } + if (message.KeyPort !== 0) { + obj.KeyPort = Math.round(message.KeyPort); + } + return obj; + }, + + create(base?: DeepPartial): WGListenerReq { + return WGListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGListenerReq { + const message = createBaseWGListenerReq(); + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + message.TunIP = object.TunIP ?? ""; + message.NPort = object.NPort ?? 0; + message.KeyPort = object.KeyPort ?? 0; + return message; + }, +}; + +function createBaseDNSListenerReq(): DNSListenerReq { + return { Domains: [], Canaries: false, Host: "", Port: 0, EnforceOTP: false }; +} + +export const DNSListenerReq: MessageFns = { + encode(message: DNSListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Domains) { + writer.uint32(10).string(v!); + } + if (message.Canaries !== false) { + writer.uint32(16).bool(message.Canaries); + } + if (message.Host !== "") { + writer.uint32(26).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(32).uint32(message.Port); + } + if (message.EnforceOTP !== false) { + writer.uint32(48).bool(message.EnforceOTP); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DNSListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDNSListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Domains.push(reader.string()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Canaries = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Host = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.EnforceOTP = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DNSListenerReq { + return { + Domains: globalThis.Array.isArray(object?.Domains) ? object.Domains.map((e: any) => globalThis.String(e)) : [], + Canaries: isSet(object.Canaries) ? globalThis.Boolean(object.Canaries) : false, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + EnforceOTP: isSet(object.EnforceOTP) ? globalThis.Boolean(object.EnforceOTP) : false, + }; + }, + + toJSON(message: DNSListenerReq): unknown { + const obj: any = {}; + if (message.Domains?.length) { + obj.Domains = message.Domains; + } + if (message.Canaries !== false) { + obj.Canaries = message.Canaries; + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.EnforceOTP !== false) { + obj.EnforceOTP = message.EnforceOTP; + } + return obj; + }, + + create(base?: DeepPartial): DNSListenerReq { + return DNSListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DNSListenerReq { + const message = createBaseDNSListenerReq(); + message.Domains = object.Domains?.map((e) => e) || []; + message.Canaries = object.Canaries ?? false; + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + message.EnforceOTP = object.EnforceOTP ?? false; + return message; + }, +}; + +function createBaseHTTPListenerReq(): HTTPListenerReq { + return { + Domain: "", + Host: "", + Port: 0, + Secure: false, + Website: "", + Cert: Buffer.alloc(0), + Key: Buffer.alloc(0), + ACME: false, + EnforceOTP: false, + LongPollTimeout: "0", + LongPollJitter: "0", + RandomizeJARM: false, + }; +} + +export const HTTPListenerReq: MessageFns = { + encode(message: HTTPListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Domain !== "") { + writer.uint32(10).string(message.Domain); + } + if (message.Host !== "") { + writer.uint32(18).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(24).uint32(message.Port); + } + if (message.Secure !== false) { + writer.uint32(32).bool(message.Secure); + } + if (message.Website !== "") { + writer.uint32(42).string(message.Website); + } + if (message.Cert.length !== 0) { + writer.uint32(50).bytes(message.Cert); + } + if (message.Key.length !== 0) { + writer.uint32(58).bytes(message.Key); + } + if (message.ACME !== false) { + writer.uint32(64).bool(message.ACME); + } + if (message.EnforceOTP !== false) { + writer.uint32(80).bool(message.EnforceOTP); + } + if (message.LongPollTimeout !== "0") { + writer.uint32(88).int64(message.LongPollTimeout); + } + if (message.LongPollJitter !== "0") { + writer.uint32(96).int64(message.LongPollJitter); + } + if (message.RandomizeJARM !== false) { + writer.uint32(104).bool(message.RandomizeJARM); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Domain = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Host = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Secure = reader.bool(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Website = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Cert = Buffer.from(reader.bytes()); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Key = Buffer.from(reader.bytes()); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.ACME = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.EnforceOTP = reader.bool(); + continue; + } + case 11: { + if (tag !== 88) { + break; + } + + message.LongPollTimeout = reader.int64().toString(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.LongPollJitter = reader.int64().toString(); + continue; + } + case 13: { + if (tag !== 104) { + break; + } + + message.RandomizeJARM = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPListenerReq { + return { + Domain: isSet(object.Domain) ? globalThis.String(object.Domain) : "", + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Secure: isSet(object.Secure) ? globalThis.Boolean(object.Secure) : false, + Website: isSet(object.Website) ? globalThis.String(object.Website) : "", + Cert: isSet(object.Cert) ? Buffer.from(bytesFromBase64(object.Cert)) : Buffer.alloc(0), + Key: isSet(object.Key) ? Buffer.from(bytesFromBase64(object.Key)) : Buffer.alloc(0), + ACME: isSet(object.ACME) ? globalThis.Boolean(object.ACME) : false, + EnforceOTP: isSet(object.EnforceOTP) ? globalThis.Boolean(object.EnforceOTP) : false, + LongPollTimeout: isSet(object.LongPollTimeout) ? globalThis.String(object.LongPollTimeout) : "0", + LongPollJitter: isSet(object.LongPollJitter) ? globalThis.String(object.LongPollJitter) : "0", + RandomizeJARM: isSet(object.RandomizeJARM) ? globalThis.Boolean(object.RandomizeJARM) : false, + }; + }, + + toJSON(message: HTTPListenerReq): unknown { + const obj: any = {}; + if (message.Domain !== "") { + obj.Domain = message.Domain; + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Secure !== false) { + obj.Secure = message.Secure; + } + if (message.Website !== "") { + obj.Website = message.Website; + } + if (message.Cert.length !== 0) { + obj.Cert = base64FromBytes(message.Cert); + } + if (message.Key.length !== 0) { + obj.Key = base64FromBytes(message.Key); + } + if (message.ACME !== false) { + obj.ACME = message.ACME; + } + if (message.EnforceOTP !== false) { + obj.EnforceOTP = message.EnforceOTP; + } + if (message.LongPollTimeout !== "0") { + obj.LongPollTimeout = message.LongPollTimeout; + } + if (message.LongPollJitter !== "0") { + obj.LongPollJitter = message.LongPollJitter; + } + if (message.RandomizeJARM !== false) { + obj.RandomizeJARM = message.RandomizeJARM; + } + return obj; + }, + + create(base?: DeepPartial): HTTPListenerReq { + return HTTPListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPListenerReq { + const message = createBaseHTTPListenerReq(); + message.Domain = object.Domain ?? ""; + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + message.Secure = object.Secure ?? false; + message.Website = object.Website ?? ""; + message.Cert = object.Cert ?? Buffer.alloc(0); + message.Key = object.Key ?? Buffer.alloc(0); + message.ACME = object.ACME ?? false; + message.EnforceOTP = object.EnforceOTP ?? false; + message.LongPollTimeout = object.LongPollTimeout ?? "0"; + message.LongPollJitter = object.LongPollJitter ?? "0"; + message.RandomizeJARM = object.RandomizeJARM ?? false; + return message; + }, +}; + +function createBaseNamedPipesReq(): NamedPipesReq { + return { PipeName: "", Request: undefined }; +} + +export const NamedPipesReq: MessageFns = { + encode(message: NamedPipesReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PipeName !== "") { + writer.uint32(130).string(message.PipeName); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): NamedPipesReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNamedPipesReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 16: { + if (tag !== 130) { + break; + } + + message.PipeName = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): NamedPipesReq { + return { + PipeName: isSet(object.PipeName) ? globalThis.String(object.PipeName) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: NamedPipesReq): unknown { + const obj: any = {}; + if (message.PipeName !== "") { + obj.PipeName = message.PipeName; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): NamedPipesReq { + return NamedPipesReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): NamedPipesReq { + const message = createBaseNamedPipesReq(); + message.PipeName = object.PipeName ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseNamedPipes(): NamedPipes { + return { Success: false, Err: "", Response: undefined }; +} + +export const NamedPipes: MessageFns = { + encode(message: NamedPipes, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Success !== false) { + writer.uint32(8).bool(message.Success); + } + if (message.Err !== "") { + writer.uint32(18).string(message.Err); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): NamedPipes { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNamedPipes(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Success = reader.bool(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Err = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): NamedPipes { + return { + Success: isSet(object.Success) ? globalThis.Boolean(object.Success) : false, + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: NamedPipes): unknown { + const obj: any = {}; + if (message.Success !== false) { + obj.Success = message.Success; + } + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): NamedPipes { + return NamedPipes.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): NamedPipes { + const message = createBaseNamedPipes(); + message.Success = object.Success ?? false; + message.Err = object.Err ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseTCPPivotReq(): TCPPivotReq { + return { Address: "", Request: undefined }; +} + +export const TCPPivotReq: MessageFns = { + encode(message: TCPPivotReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Address !== "") { + writer.uint32(130).string(message.Address); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TCPPivotReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTCPPivotReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 16: { + if (tag !== 130) { + break; + } + + message.Address = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TCPPivotReq { + return { + Address: isSet(object.Address) ? globalThis.String(object.Address) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: TCPPivotReq): unknown { + const obj: any = {}; + if (message.Address !== "") { + obj.Address = message.Address; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): TCPPivotReq { + return TCPPivotReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TCPPivotReq { + const message = createBaseTCPPivotReq(); + message.Address = object.Address ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseTCPPivot(): TCPPivot { + return { Success: false, Err: "", Response: undefined }; +} + +export const TCPPivot: MessageFns = { + encode(message: TCPPivot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Success !== false) { + writer.uint32(8).bool(message.Success); + } + if (message.Err !== "") { + writer.uint32(18).string(message.Err); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TCPPivot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTCPPivot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Success = reader.bool(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Err = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TCPPivot { + return { + Success: isSet(object.Success) ? globalThis.Boolean(object.Success) : false, + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: TCPPivot): unknown { + const obj: any = {}; + if (message.Success !== false) { + obj.Success = message.Success; + } + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): TCPPivot { + return TCPPivot.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TCPPivot { + const message = createBaseTCPPivot(); + message.Success = object.Success ?? false; + message.Err = object.Err ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseSessions(): Sessions { + return { Sessions: [] }; +} + +export const Sessions: MessageFns = { + encode(message: Sessions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Sessions) { + Session.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Sessions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSessions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Sessions.push(Session.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Sessions { + return { + Sessions: globalThis.Array.isArray(object?.Sessions) ? object.Sessions.map((e: any) => Session.fromJSON(e)) : [], + }; + }, + + toJSON(message: Sessions): unknown { + const obj: any = {}; + if (message.Sessions?.length) { + obj.Sessions = message.Sessions.map((e) => Session.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Sessions { + return Sessions.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Sessions { + const message = createBaseSessions(); + message.Sessions = object.Sessions?.map((e) => Session.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseRenameReq(): RenameReq { + return { SessionID: "", BeaconID: "", Name: "" }; +} + +export const RenameReq: MessageFns = { + encode(message: RenameReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.SessionID !== "") { + writer.uint32(10).string(message.SessionID); + } + if (message.BeaconID !== "") { + writer.uint32(18).string(message.BeaconID); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RenameReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRenameReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.SessionID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RenameReq { + return { + SessionID: isSet(object.SessionID) ? globalThis.String(object.SessionID) : "", + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: RenameReq): unknown { + const obj: any = {}; + if (message.SessionID !== "") { + obj.SessionID = message.SessionID; + } + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): RenameReq { + return RenameReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RenameReq { + const message = createBaseRenameReq(); + message.SessionID = object.SessionID ?? ""; + message.BeaconID = object.BeaconID ?? ""; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseGenerateReq(): GenerateReq { + return { Config: undefined, Name: "" }; +} + +export const GenerateReq: MessageFns = { + encode(message: GenerateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(10).fork()).join(); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GenerateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenerateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GenerateReq { + return { + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: GenerateReq): unknown { + const obj: any = {}; + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): GenerateReq { + return GenerateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GenerateReq { + const message = createBaseGenerateReq(); + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseGenerateStageReq(): GenerateStageReq { + return { + Profile: "", + Name: "", + AESEncryptKey: "", + AESEncryptIv: "", + RC4EncryptKey: "", + PrependSize: false, + CompressF: "", + Compress: "", + }; +} + +export const GenerateStageReq: MessageFns = { + encode(message: GenerateStageReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Profile !== "") { + writer.uint32(10).string(message.Profile); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.AESEncryptKey !== "") { + writer.uint32(26).string(message.AESEncryptKey); + } + if (message.AESEncryptIv !== "") { + writer.uint32(34).string(message.AESEncryptIv); + } + if (message.RC4EncryptKey !== "") { + writer.uint32(42).string(message.RC4EncryptKey); + } + if (message.PrependSize !== false) { + writer.uint32(48).bool(message.PrependSize); + } + if (message.CompressF !== "") { + writer.uint32(58).string(message.CompressF); + } + if (message.Compress !== "") { + writer.uint32(66).string(message.Compress); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GenerateStageReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenerateStageReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Profile = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.AESEncryptKey = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.AESEncryptIv = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.RC4EncryptKey = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.PrependSize = reader.bool(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.CompressF = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Compress = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GenerateStageReq { + return { + Profile: isSet(object.Profile) ? globalThis.String(object.Profile) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + AESEncryptKey: isSet(object.AESEncryptKey) ? globalThis.String(object.AESEncryptKey) : "", + AESEncryptIv: isSet(object.AESEncryptIv) ? globalThis.String(object.AESEncryptIv) : "", + RC4EncryptKey: isSet(object.RC4EncryptKey) ? globalThis.String(object.RC4EncryptKey) : "", + PrependSize: isSet(object.PrependSize) ? globalThis.Boolean(object.PrependSize) : false, + CompressF: isSet(object.CompressF) ? globalThis.String(object.CompressF) : "", + Compress: isSet(object.Compress) ? globalThis.String(object.Compress) : "", + }; + }, + + toJSON(message: GenerateStageReq): unknown { + const obj: any = {}; + if (message.Profile !== "") { + obj.Profile = message.Profile; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.AESEncryptKey !== "") { + obj.AESEncryptKey = message.AESEncryptKey; + } + if (message.AESEncryptIv !== "") { + obj.AESEncryptIv = message.AESEncryptIv; + } + if (message.RC4EncryptKey !== "") { + obj.RC4EncryptKey = message.RC4EncryptKey; + } + if (message.PrependSize !== false) { + obj.PrependSize = message.PrependSize; + } + if (message.CompressF !== "") { + obj.CompressF = message.CompressF; + } + if (message.Compress !== "") { + obj.Compress = message.Compress; + } + return obj; + }, + + create(base?: DeepPartial): GenerateStageReq { + return GenerateStageReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GenerateStageReq { + const message = createBaseGenerateStageReq(); + message.Profile = object.Profile ?? ""; + message.Name = object.Name ?? ""; + message.AESEncryptKey = object.AESEncryptKey ?? ""; + message.AESEncryptIv = object.AESEncryptIv ?? ""; + message.RC4EncryptKey = object.RC4EncryptKey ?? ""; + message.PrependSize = object.PrependSize ?? false; + message.CompressF = object.CompressF ?? ""; + message.Compress = object.Compress ?? ""; + return message; + }, +}; + +function createBaseGenerate(): Generate { + return { File: undefined }; +} + +export const Generate: MessageFns = { + encode(message: Generate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.File !== undefined) { + File.encode(message.File, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Generate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenerate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.File = File.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Generate { + return { File: isSet(object.File) ? File.fromJSON(object.File) : undefined }; + }, + + toJSON(message: Generate): unknown { + const obj: any = {}; + if (message.File !== undefined) { + obj.File = File.toJSON(message.File); + } + return obj; + }, + + create(base?: DeepPartial): Generate { + return Generate.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Generate { + const message = createBaseGenerate(); + message.File = (object.File !== undefined && object.File !== null) ? File.fromPartial(object.File) : undefined; + return message; + }, +}; + +function createBaseMSFReq(): MSFReq { + return { Payload: "", LHost: "", LPort: 0, Encoder: "", Iterations: 0, Request: undefined }; +} + +export const MSFReq: MessageFns = { + encode(message: MSFReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Payload !== "") { + writer.uint32(10).string(message.Payload); + } + if (message.LHost !== "") { + writer.uint32(18).string(message.LHost); + } + if (message.LPort !== 0) { + writer.uint32(24).uint32(message.LPort); + } + if (message.Encoder !== "") { + writer.uint32(34).string(message.Encoder); + } + if (message.Iterations !== 0) { + writer.uint32(40).int32(message.Iterations); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MSFReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMSFReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Payload = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.LHost = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.LPort = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Iterations = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MSFReq { + return { + Payload: isSet(object.Payload) ? globalThis.String(object.Payload) : "", + LHost: isSet(object.LHost) ? globalThis.String(object.LHost) : "", + LPort: isSet(object.LPort) ? globalThis.Number(object.LPort) : 0, + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + Iterations: isSet(object.Iterations) ? globalThis.Number(object.Iterations) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MSFReq): unknown { + const obj: any = {}; + if (message.Payload !== "") { + obj.Payload = message.Payload; + } + if (message.LHost !== "") { + obj.LHost = message.LHost; + } + if (message.LPort !== 0) { + obj.LPort = Math.round(message.LPort); + } + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.Iterations !== 0) { + obj.Iterations = Math.round(message.Iterations); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MSFReq { + return MSFReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MSFReq { + const message = createBaseMSFReq(); + message.Payload = object.Payload ?? ""; + message.LHost = object.LHost ?? ""; + message.LPort = object.LPort ?? 0; + message.Encoder = object.Encoder ?? ""; + message.Iterations = object.Iterations ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMSFRemoteReq(): MSFRemoteReq { + return { Payload: "", LHost: "", LPort: 0, Encoder: "", Iterations: 0, PID: 0, Request: undefined }; +} + +export const MSFRemoteReq: MessageFns = { + encode(message: MSFRemoteReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Payload !== "") { + writer.uint32(10).string(message.Payload); + } + if (message.LHost !== "") { + writer.uint32(18).string(message.LHost); + } + if (message.LPort !== 0) { + writer.uint32(24).uint32(message.LPort); + } + if (message.Encoder !== "") { + writer.uint32(34).string(message.Encoder); + } + if (message.Iterations !== 0) { + writer.uint32(40).int32(message.Iterations); + } + if (message.PID !== 0) { + writer.uint32(64).uint32(message.PID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MSFRemoteReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMSFRemoteReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Payload = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.LHost = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.LPort = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Iterations = reader.int32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.PID = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MSFRemoteReq { + return { + Payload: isSet(object.Payload) ? globalThis.String(object.Payload) : "", + LHost: isSet(object.LHost) ? globalThis.String(object.LHost) : "", + LPort: isSet(object.LPort) ? globalThis.Number(object.LPort) : 0, + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + Iterations: isSet(object.Iterations) ? globalThis.Number(object.Iterations) : 0, + PID: isSet(object.PID) ? globalThis.Number(object.PID) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MSFRemoteReq): unknown { + const obj: any = {}; + if (message.Payload !== "") { + obj.Payload = message.Payload; + } + if (message.LHost !== "") { + obj.LHost = message.LHost; + } + if (message.LPort !== 0) { + obj.LPort = Math.round(message.LPort); + } + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.Iterations !== 0) { + obj.Iterations = Math.round(message.Iterations); + } + if (message.PID !== 0) { + obj.PID = Math.round(message.PID); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MSFRemoteReq { + return MSFRemoteReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MSFRemoteReq { + const message = createBaseMSFRemoteReq(); + message.Payload = object.Payload ?? ""; + message.LHost = object.LHost ?? ""; + message.LPort = object.LPort ?? 0; + message.Encoder = object.Encoder ?? ""; + message.Iterations = object.Iterations ?? 0; + message.PID = object.PID ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseStagerListenerReq(): StagerListenerReq { + return { Protocol: 0, Host: "", Port: 0, Data: Buffer.alloc(0), ProfileName: "" }; +} + +export const StagerListenerReq: MessageFns = { + encode(message: StagerListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Protocol !== 0) { + writer.uint32(8).int32(message.Protocol); + } + if (message.Host !== "") { + writer.uint32(18).string(message.Host); + } + if (message.Port !== 0) { + writer.uint32(24).uint32(message.Port); + } + if (message.Data.length !== 0) { + writer.uint32(34).bytes(message.Data); + } + if (message.ProfileName !== "") { + writer.uint32(42).string(message.ProfileName); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): StagerListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStagerListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Protocol = reader.int32() as any; + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Host = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.ProfileName = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): StagerListenerReq { + return { + Protocol: isSet(object.Protocol) ? stageProtocolFromJSON(object.Protocol) : 0, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + ProfileName: isSet(object.ProfileName) ? globalThis.String(object.ProfileName) : "", + }; + }, + + toJSON(message: StagerListenerReq): unknown { + const obj: any = {}; + if (message.Protocol !== 0) { + obj.Protocol = stageProtocolToJSON(message.Protocol); + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.ProfileName !== "") { + obj.ProfileName = message.ProfileName; + } + return obj; + }, + + create(base?: DeepPartial): StagerListenerReq { + return StagerListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StagerListenerReq { + const message = createBaseStagerListenerReq(); + message.Protocol = object.Protocol ?? 0; + message.Host = object.Host ?? ""; + message.Port = object.Port ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + message.ProfileName = object.ProfileName ?? ""; + return message; + }, +}; + +function createBaseStagerListener(): StagerListener { + return { JobID: 0 }; +} + +export const StagerListener: MessageFns = { + encode(message: StagerListener, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.JobID !== 0) { + writer.uint32(8).uint32(message.JobID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): StagerListener { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStagerListener(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.JobID = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): StagerListener { + return { JobID: isSet(object.JobID) ? globalThis.Number(object.JobID) : 0 }; + }, + + toJSON(message: StagerListener): unknown { + const obj: any = {}; + if (message.JobID !== 0) { + obj.JobID = Math.round(message.JobID); + } + return obj; + }, + + create(base?: DeepPartial): StagerListener { + return StagerListener.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StagerListener { + const message = createBaseStagerListener(); + message.JobID = object.JobID ?? 0; + return message; + }, +}; + +function createBaseShellcodeRDIReq(): ShellcodeRDIReq { + return { Data: Buffer.alloc(0), FunctionName: "", Arguments: "" }; +} + +export const ShellcodeRDIReq: MessageFns = { + encode(message: ShellcodeRDIReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.FunctionName !== "") { + writer.uint32(18).string(message.FunctionName); + } + if (message.Arguments !== "") { + writer.uint32(26).string(message.Arguments); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeRDIReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeRDIReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.FunctionName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Arguments = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeRDIReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + FunctionName: isSet(object.FunctionName) ? globalThis.String(object.FunctionName) : "", + Arguments: isSet(object.Arguments) ? globalThis.String(object.Arguments) : "", + }; + }, + + toJSON(message: ShellcodeRDIReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.FunctionName !== "") { + obj.FunctionName = message.FunctionName; + } + if (message.Arguments !== "") { + obj.Arguments = message.Arguments; + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeRDIReq { + return ShellcodeRDIReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeRDIReq { + const message = createBaseShellcodeRDIReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.FunctionName = object.FunctionName ?? ""; + message.Arguments = object.Arguments ?? ""; + return message; + }, +}; + +function createBaseShellcodeRDI(): ShellcodeRDI { + return { Data: Buffer.alloc(0) }; +} + +export const ShellcodeRDI: MessageFns = { + encode(message: ShellcodeRDI, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeRDI { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeRDI(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeRDI { + return { Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0) }; + }, + + toJSON(message: ShellcodeRDI): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeRDI { + return ShellcodeRDI.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeRDI { + const message = createBaseShellcodeRDI(); + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseGetSystemReq(): GetSystemReq { + return { HostingProcess: "", Config: undefined, Name: "", Request: undefined }; +} + +export const GetSystemReq: MessageFns = { + encode(message: GetSystemReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.HostingProcess !== "") { + writer.uint32(10).string(message.HostingProcess); + } + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(18).fork()).join(); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GetSystemReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetSystemReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.HostingProcess = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetSystemReq { + return { + HostingProcess: isSet(object.HostingProcess) ? globalThis.String(object.HostingProcess) : "", + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: GetSystemReq): unknown { + const obj: any = {}; + if (message.HostingProcess !== "") { + obj.HostingProcess = message.HostingProcess; + } + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): GetSystemReq { + return GetSystemReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetSystemReq { + const message = createBaseGetSystemReq(); + message.HostingProcess = object.HostingProcess ?? ""; + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMigrateReq(): MigrateReq { + return { Pid: 0, Config: undefined, Encoder: 0, Name: "", ProcName: "", Request: undefined }; +} + +export const MigrateReq: MessageFns = { + encode(message: MigrateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).uint32(message.Pid); + } + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(18).fork()).join(); + } + if (message.Encoder !== 0) { + writer.uint32(24).int32(message.Encoder); + } + if (message.Name !== "") { + writer.uint32(34).string(message.Name); + } + if (message.ProcName !== "") { + writer.uint32(42).string(message.ProcName); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MigrateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMigrateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Encoder = reader.int32() as any; + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Name = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.ProcName = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MigrateReq { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + Encoder: isSet(object.Encoder) ? shellcodeEncoderFromJSON(object.Encoder) : 0, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + ProcName: isSet(object.ProcName) ? globalThis.String(object.ProcName) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MigrateReq): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + if (message.Encoder !== 0) { + obj.Encoder = shellcodeEncoderToJSON(message.Encoder); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.ProcName !== "") { + obj.ProcName = message.ProcName; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MigrateReq { + return MigrateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MigrateReq { + const message = createBaseMigrateReq(); + message.Pid = object.Pid ?? 0; + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + message.Encoder = object.Encoder ?? 0; + message.Name = object.Name ?? ""; + message.ProcName = object.ProcName ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCreateTunnelReq(): CreateTunnelReq { + return { Request: undefined }; +} + +export const CreateTunnelReq: MessageFns = { + encode(message: CreateTunnelReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CreateTunnelReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreateTunnelReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CreateTunnelReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: CreateTunnelReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CreateTunnelReq { + return CreateTunnelReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CreateTunnelReq { + const message = createBaseCreateTunnelReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCreateTunnel(): CreateTunnel { + return { SessionID: 0, TunnelID: "0" }; +} + +export const CreateTunnel: MessageFns = { + encode(message: CreateTunnel, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.SessionID !== 0) { + writer.uint32(8).uint32(message.SessionID); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CreateTunnel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCreateTunnel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.SessionID = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CreateTunnel { + return { + SessionID: isSet(object.SessionID) ? globalThis.Number(object.SessionID) : 0, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + }; + }, + + toJSON(message: CreateTunnel): unknown { + const obj: any = {}; + if (message.SessionID !== 0) { + obj.SessionID = Math.round(message.SessionID); + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + return obj; + }, + + create(base?: DeepPartial): CreateTunnel { + return CreateTunnel.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CreateTunnel { + const message = createBaseCreateTunnel(); + message.SessionID = object.SessionID ?? 0; + message.TunnelID = object.TunnelID ?? "0"; + return message; + }, +}; + +function createBaseCloseTunnelReq(): CloseTunnelReq { + return { TunnelID: "0", Request: undefined }; +} + +export const CloseTunnelReq: MessageFns = { + encode(message: CloseTunnelReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CloseTunnelReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCloseTunnelReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CloseTunnelReq { + return { + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: CloseTunnelReq): unknown { + const obj: any = {}; + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CloseTunnelReq { + return CloseTunnelReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CloseTunnelReq { + const message = createBaseCloseTunnelReq(); + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePivotGraphEntry(): PivotGraphEntry { + return { PeerID: "0", Session: undefined, Name: "", Children: [] }; +} + +export const PivotGraphEntry: MessageFns = { + encode(message: PivotGraphEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PeerID !== "0") { + writer.uint32(8).int64(message.PeerID); + } + if (message.Session !== undefined) { + Session.encode(message.Session, writer.uint32(18).fork()).join(); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + for (const v of message.Children) { + PivotGraphEntry.encode(v!, writer.uint32(34).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotGraphEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotGraphEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Session = Session.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Children.push(PivotGraphEntry.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotGraphEntry { + return { + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + Session: isSet(object.Session) ? Session.fromJSON(object.Session) : undefined, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Children: globalThis.Array.isArray(object?.Children) + ? object.Children.map((e: any) => PivotGraphEntry.fromJSON(e)) + : [], + }; + }, + + toJSON(message: PivotGraphEntry): unknown { + const obj: any = {}; + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.Session !== undefined) { + obj.Session = Session.toJSON(message.Session); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Children?.length) { + obj.Children = message.Children.map((e) => PivotGraphEntry.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): PivotGraphEntry { + return PivotGraphEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotGraphEntry { + const message = createBasePivotGraphEntry(); + message.PeerID = object.PeerID ?? "0"; + message.Session = (object.Session !== undefined && object.Session !== null) + ? Session.fromPartial(object.Session) + : undefined; + message.Name = object.Name ?? ""; + message.Children = object.Children?.map((e) => PivotGraphEntry.fromPartial(e)) || []; + return message; + }, +}; + +function createBasePivotGraph(): PivotGraph { + return { Children: [] }; +} + +export const PivotGraph: MessageFns = { + encode(message: PivotGraph, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Children) { + PivotGraphEntry.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotGraph { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotGraph(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Children.push(PivotGraphEntry.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotGraph { + return { + Children: globalThis.Array.isArray(object?.Children) + ? object.Children.map((e: any) => PivotGraphEntry.fromJSON(e)) + : [], + }; + }, + + toJSON(message: PivotGraph): unknown { + const obj: any = {}; + if (message.Children?.length) { + obj.Children = message.Children.map((e) => PivotGraphEntry.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): PivotGraph { + return PivotGraph.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotGraph { + const message = createBasePivotGraph(); + message.Children = object.Children?.map((e) => PivotGraphEntry.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseClient(): Client { + return { ID: 0, Name: "", Operator: undefined }; +} + +export const Client: MessageFns = { + encode(message: Client, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.Operator !== undefined) { + Operator.encode(message.Operator, writer.uint32(26).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Client { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseClient(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Operator = Operator.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Client { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Operator: isSet(object.Operator) ? Operator.fromJSON(object.Operator) : undefined, + }; + }, + + toJSON(message: Client): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Operator !== undefined) { + obj.Operator = Operator.toJSON(message.Operator); + } + return obj; + }, + + create(base?: DeepPartial): Client { + return Client.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Client { + const message = createBaseClient(); + message.ID = object.ID ?? 0; + message.Name = object.Name ?? ""; + message.Operator = (object.Operator !== undefined && object.Operator !== null) + ? Operator.fromPartial(object.Operator) + : undefined; + return message; + }, +}; + +function createBaseEvent(): Event { + return { EventType: "", Session: undefined, Job: undefined, Client: undefined, Data: Buffer.alloc(0), Err: "" }; +} + +export const Event: MessageFns = { + encode(message: Event, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.EventType !== "") { + writer.uint32(10).string(message.EventType); + } + if (message.Session !== undefined) { + Session.encode(message.Session, writer.uint32(18).fork()).join(); + } + if (message.Job !== undefined) { + Job.encode(message.Job, writer.uint32(26).fork()).join(); + } + if (message.Client !== undefined) { + Client.encode(message.Client, writer.uint32(34).fork()).join(); + } + if (message.Data.length !== 0) { + writer.uint32(42).bytes(message.Data); + } + if (message.Err !== "") { + writer.uint32(50).string(message.Err); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Event { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEvent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.EventType = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Session = Session.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Job = Job.decode(reader, reader.uint32()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Client = Client.decode(reader, reader.uint32()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Err = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Event { + return { + EventType: isSet(object.EventType) ? globalThis.String(object.EventType) : "", + Session: isSet(object.Session) ? Session.fromJSON(object.Session) : undefined, + Job: isSet(object.Job) ? Job.fromJSON(object.Job) : undefined, + Client: isSet(object.Client) ? Client.fromJSON(object.Client) : undefined, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + }; + }, + + toJSON(message: Event): unknown { + const obj: any = {}; + if (message.EventType !== "") { + obj.EventType = message.EventType; + } + if (message.Session !== undefined) { + obj.Session = Session.toJSON(message.Session); + } + if (message.Job !== undefined) { + obj.Job = Job.toJSON(message.Job); + } + if (message.Client !== undefined) { + obj.Client = Client.toJSON(message.Client); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Err !== "") { + obj.Err = message.Err; + } + return obj; + }, + + create(base?: DeepPartial): Event { + return Event.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Event { + const message = createBaseEvent(); + message.EventType = object.EventType ?? ""; + message.Session = (object.Session !== undefined && object.Session !== null) + ? Session.fromPartial(object.Session) + : undefined; + message.Job = (object.Job !== undefined && object.Job !== null) ? Job.fromPartial(object.Job) : undefined; + message.Client = (object.Client !== undefined && object.Client !== null) + ? Client.fromPartial(object.Client) + : undefined; + message.Data = object.Data ?? Buffer.alloc(0); + message.Err = object.Err ?? ""; + return message; + }, +}; + +function createBaseOperators(): Operators { + return { Operators: [] }; +} + +export const Operators: MessageFns = { + encode(message: Operators, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Operators) { + Operator.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Operators { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOperators(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Operators.push(Operator.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Operators { + return { + Operators: globalThis.Array.isArray(object?.Operators) + ? object.Operators.map((e: any) => Operator.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Operators): unknown { + const obj: any = {}; + if (message.Operators?.length) { + obj.Operators = message.Operators.map((e) => Operator.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Operators { + return Operators.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Operators { + const message = createBaseOperators(); + message.Operators = object.Operators?.map((e) => Operator.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseOperator(): Operator { + return { Online: false, Name: "" }; +} + +export const Operator: MessageFns = { + encode(message: Operator, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Online !== false) { + writer.uint32(8).bool(message.Online); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Operator { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOperator(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Online = reader.bool(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Operator { + return { + Online: isSet(object.Online) ? globalThis.Boolean(object.Online) : false, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: Operator): unknown { + const obj: any = {}; + if (message.Online !== false) { + obj.Online = message.Online; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): Operator { + return Operator.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Operator { + const message = createBaseOperator(); + message.Online = object.Online ?? false; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseWebContent(): WebContent { + return { + ID: "", + WebsiteID: "", + Path: "", + ContentType: "", + Size: "0", + OriginalFile: "", + Sha256: "", + Content: Buffer.alloc(0), + }; +} + +export const WebContent: MessageFns = { + encode(message: WebContent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.WebsiteID !== "") { + writer.uint32(18).string(message.WebsiteID); + } + if (message.Path !== "") { + writer.uint32(26).string(message.Path); + } + if (message.ContentType !== "") { + writer.uint32(34).string(message.ContentType); + } + if (message.Size !== "0") { + writer.uint32(40).uint64(message.Size); + } + if (message.OriginalFile !== "") { + writer.uint32(50).string(message.OriginalFile); + } + if (message.Sha256 !== "") { + writer.uint32(58).string(message.Sha256); + } + if (message.Content.length !== 0) { + writer.uint32(74).bytes(message.Content); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WebContent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.WebsiteID = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Path = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ContentType = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Size = reader.uint64().toString(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.OriginalFile = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Sha256 = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Content = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WebContent { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + WebsiteID: isSet(object.WebsiteID) ? globalThis.String(object.WebsiteID) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + ContentType: isSet(object.ContentType) ? globalThis.String(object.ContentType) : "", + Size: isSet(object.Size) ? globalThis.String(object.Size) : "0", + OriginalFile: isSet(object.OriginalFile) ? globalThis.String(object.OriginalFile) : "", + Sha256: isSet(object.Sha256) ? globalThis.String(object.Sha256) : "", + Content: isSet(object.Content) ? Buffer.from(bytesFromBase64(object.Content)) : Buffer.alloc(0), + }; + }, + + toJSON(message: WebContent): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.WebsiteID !== "") { + obj.WebsiteID = message.WebsiteID; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.ContentType !== "") { + obj.ContentType = message.ContentType; + } + if (message.Size !== "0") { + obj.Size = message.Size; + } + if (message.OriginalFile !== "") { + obj.OriginalFile = message.OriginalFile; + } + if (message.Sha256 !== "") { + obj.Sha256 = message.Sha256; + } + if (message.Content.length !== 0) { + obj.Content = base64FromBytes(message.Content); + } + return obj; + }, + + create(base?: DeepPartial): WebContent { + return WebContent.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WebContent { + const message = createBaseWebContent(); + message.ID = object.ID ?? ""; + message.WebsiteID = object.WebsiteID ?? ""; + message.Path = object.Path ?? ""; + message.ContentType = object.ContentType ?? ""; + message.Size = object.Size ?? "0"; + message.OriginalFile = object.OriginalFile ?? ""; + message.Sha256 = object.Sha256 ?? ""; + message.Content = object.Content ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseWebsiteAddContent(): WebsiteAddContent { + return { Name: "", Contents: {} }; +} + +export const WebsiteAddContent: MessageFns = { + encode(message: WebsiteAddContent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + globalThis.Object.entries(message.Contents).forEach(([key, value]: [string, WebContent]) => { + WebsiteAddContent_ContentsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WebsiteAddContent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsiteAddContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + const entry2 = WebsiteAddContent_ContentsEntry.decode(reader, reader.uint32()); + if (entry2.value !== undefined) { + message.Contents[entry2.key] = entry2.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WebsiteAddContent { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Contents: isObject(object.Contents) + ? (globalThis.Object.entries(object.Contents) as [string, any][]).reduce( + (acc: { [key: string]: WebContent }, [key, value]: [string, any]) => { + acc[key] = WebContent.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: WebsiteAddContent): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Contents) { + const entries = globalThis.Object.entries(message.Contents) as [string, WebContent][]; + if (entries.length > 0) { + obj.Contents = {}; + entries.forEach(([k, v]) => { + obj.Contents[k] = WebContent.toJSON(v); + }); + } + } + return obj; + }, + + create(base?: DeepPartial): WebsiteAddContent { + return WebsiteAddContent.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WebsiteAddContent { + const message = createBaseWebsiteAddContent(); + message.Name = object.Name ?? ""; + message.Contents = (globalThis.Object.entries(object.Contents ?? {}) as [string, WebContent][]).reduce( + (acc: { [key: string]: WebContent }, [key, value]: [string, WebContent]) => { + if (value !== undefined) { + acc[key] = WebContent.fromPartial(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseWebsiteAddContent_ContentsEntry(): WebsiteAddContent_ContentsEntry { + return { key: "", value: undefined }; +} + +export const WebsiteAddContent_ContentsEntry: MessageFns = { + encode(message: WebsiteAddContent_ContentsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + WebContent.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WebsiteAddContent_ContentsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsiteAddContent_ContentsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = WebContent.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WebsiteAddContent_ContentsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? WebContent.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: WebsiteAddContent_ContentsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = WebContent.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): WebsiteAddContent_ContentsEntry { + return WebsiteAddContent_ContentsEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WebsiteAddContent_ContentsEntry { + const message = createBaseWebsiteAddContent_ContentsEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? WebContent.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseWebsiteRemoveContent(): WebsiteRemoveContent { + return { Name: "", Paths: [] }; +} + +export const WebsiteRemoveContent: MessageFns = { + encode(message: WebsiteRemoveContent, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + for (const v of message.Paths) { + writer.uint32(18).string(v!); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WebsiteRemoveContent { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsiteRemoveContent(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Paths.push(reader.string()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WebsiteRemoveContent { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Paths: globalThis.Array.isArray(object?.Paths) ? object.Paths.map((e: any) => globalThis.String(e)) : [], + }; + }, + + toJSON(message: WebsiteRemoveContent): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Paths?.length) { + obj.Paths = message.Paths; + } + return obj; + }, + + create(base?: DeepPartial): WebsiteRemoveContent { + return WebsiteRemoveContent.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WebsiteRemoveContent { + const message = createBaseWebsiteRemoveContent(); + message.Name = object.Name ?? ""; + message.Paths = object.Paths?.map((e) => e) || []; + return message; + }, +}; + +function createBaseWebsite(): Website { + return { ID: "", Name: "", Contents: {} }; +} + +export const Website: MessageFns = { + encode(message: Website, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + globalThis.Object.entries(message.Contents).forEach(([key, value]: [string, WebContent]) => { + Website_ContentsEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Website { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsite(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + const entry3 = Website_ContentsEntry.decode(reader, reader.uint32()); + if (entry3.value !== undefined) { + message.Contents[entry3.key] = entry3.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Website { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Contents: isObject(object.Contents) + ? (globalThis.Object.entries(object.Contents) as [string, any][]).reduce( + (acc: { [key: string]: WebContent }, [key, value]: [string, any]) => { + acc[key] = WebContent.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: Website): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Contents) { + const entries = globalThis.Object.entries(message.Contents) as [string, WebContent][]; + if (entries.length > 0) { + obj.Contents = {}; + entries.forEach(([k, v]) => { + obj.Contents[k] = WebContent.toJSON(v); + }); + } + } + return obj; + }, + + create(base?: DeepPartial): Website { + return Website.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Website { + const message = createBaseWebsite(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.Contents = (globalThis.Object.entries(object.Contents ?? {}) as [string, WebContent][]).reduce( + (acc: { [key: string]: WebContent }, [key, value]: [string, WebContent]) => { + if (value !== undefined) { + acc[key] = WebContent.fromPartial(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseWebsite_ContentsEntry(): Website_ContentsEntry { + return { key: "", value: undefined }; +} + +export const Website_ContentsEntry: MessageFns = { + encode(message: Website_ContentsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + WebContent.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Website_ContentsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsite_ContentsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = WebContent.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Website_ContentsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? WebContent.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: Website_ContentsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = WebContent.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): Website_ContentsEntry { + return Website_ContentsEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Website_ContentsEntry { + const message = createBaseWebsite_ContentsEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? WebContent.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseWebsites(): Websites { + return { Websites: [] }; +} + +export const Websites: MessageFns = { + encode(message: Websites, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Websites) { + Website.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Websites { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWebsites(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Websites.push(Website.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Websites { + return { + Websites: globalThis.Array.isArray(object?.Websites) ? object.Websites.map((e: any) => Website.fromJSON(e)) : [], + }; + }, + + toJSON(message: Websites): unknown { + const obj: any = {}; + if (message.Websites?.length) { + obj.Websites = message.Websites.map((e) => Website.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Websites { + return Websites.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Websites { + const message = createBaseWebsites(); + message.Websites = object.Websites?.map((e) => Website.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseWGClientConfig(): WGClientConfig { + return { ServerPubKey: "", ClientPrivateKey: "", ClientPubKey: "", ClientIP: "" }; +} + +export const WGClientConfig: MessageFns = { + encode(message: WGClientConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServerPubKey !== "") { + writer.uint32(10).string(message.ServerPubKey); + } + if (message.ClientPrivateKey !== "") { + writer.uint32(18).string(message.ClientPrivateKey); + } + if (message.ClientPubKey !== "") { + writer.uint32(26).string(message.ClientPubKey); + } + if (message.ClientIP !== "") { + writer.uint32(34).string(message.ClientIP); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGClientConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGClientConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServerPubKey = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ClientPrivateKey = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ClientPubKey = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ClientIP = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGClientConfig { + return { + ServerPubKey: isSet(object.ServerPubKey) ? globalThis.String(object.ServerPubKey) : "", + ClientPrivateKey: isSet(object.ClientPrivateKey) ? globalThis.String(object.ClientPrivateKey) : "", + ClientPubKey: isSet(object.ClientPubKey) ? globalThis.String(object.ClientPubKey) : "", + ClientIP: isSet(object.ClientIP) ? globalThis.String(object.ClientIP) : "", + }; + }, + + toJSON(message: WGClientConfig): unknown { + const obj: any = {}; + if (message.ServerPubKey !== "") { + obj.ServerPubKey = message.ServerPubKey; + } + if (message.ClientPrivateKey !== "") { + obj.ClientPrivateKey = message.ClientPrivateKey; + } + if (message.ClientPubKey !== "") { + obj.ClientPubKey = message.ClientPubKey; + } + if (message.ClientIP !== "") { + obj.ClientIP = message.ClientIP; + } + return obj; + }, + + create(base?: DeepPartial): WGClientConfig { + return WGClientConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGClientConfig { + const message = createBaseWGClientConfig(); + message.ServerPubKey = object.ServerPubKey ?? ""; + message.ClientPrivateKey = object.ClientPrivateKey ?? ""; + message.ClientPubKey = object.ClientPubKey ?? ""; + message.ClientIP = object.ClientIP ?? ""; + return message; + }, +}; + +function createBaseLoot(): Loot { + return { ID: "", Name: "", FileType: 0, OriginHostUUID: "", Size: "0", File: undefined }; +} + +export const Loot: MessageFns = { + encode(message: Loot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.FileType !== 0) { + writer.uint32(24).int32(message.FileType); + } + if (message.OriginHostUUID !== "") { + writer.uint32(34).string(message.OriginHostUUID); + } + if (message.Size !== "0") { + writer.uint32(40).int64(message.Size); + } + if (message.File !== undefined) { + File.encode(message.File, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Loot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLoot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.FileType = reader.int32() as any; + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.OriginHostUUID = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Size = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.File = File.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Loot { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + FileType: isSet(object.FileType) ? fileTypeFromJSON(object.FileType) : 0, + OriginHostUUID: isSet(object.OriginHostUUID) ? globalThis.String(object.OriginHostUUID) : "", + Size: isSet(object.Size) ? globalThis.String(object.Size) : "0", + File: isSet(object.File) ? File.fromJSON(object.File) : undefined, + }; + }, + + toJSON(message: Loot): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.FileType !== 0) { + obj.FileType = fileTypeToJSON(message.FileType); + } + if (message.OriginHostUUID !== "") { + obj.OriginHostUUID = message.OriginHostUUID; + } + if (message.Size !== "0") { + obj.Size = message.Size; + } + if (message.File !== undefined) { + obj.File = File.toJSON(message.File); + } + return obj; + }, + + create(base?: DeepPartial): Loot { + return Loot.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Loot { + const message = createBaseLoot(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.FileType = object.FileType ?? 0; + message.OriginHostUUID = object.OriginHostUUID ?? ""; + message.Size = object.Size ?? "0"; + message.File = (object.File !== undefined && object.File !== null) ? File.fromPartial(object.File) : undefined; + return message; + }, +}; + +function createBaseAllLoot(): AllLoot { + return { Loot: [] }; +} + +export const AllLoot: MessageFns = { + encode(message: AllLoot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Loot) { + Loot.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): AllLoot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllLoot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Loot.push(Loot.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): AllLoot { + return { Loot: globalThis.Array.isArray(object?.Loot) ? object.Loot.map((e: any) => Loot.fromJSON(e)) : [] }; + }, + + toJSON(message: AllLoot): unknown { + const obj: any = {}; + if (message.Loot?.length) { + obj.Loot = message.Loot.map((e) => Loot.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): AllLoot { + return AllLoot.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): AllLoot { + const message = createBaseAllLoot(); + message.Loot = object.Loot?.map((e) => Loot.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseIOC(): IOC { + return { Path: "", FileHash: "", ID: "" }; +} + +export const IOC: MessageFns = { + encode(message: IOC, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.FileHash !== "") { + writer.uint32(18).string(message.FileHash); + } + if (message.ID !== "") { + writer.uint32(26).string(message.ID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): IOC { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIOC(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.FileHash = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): IOC { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + FileHash: isSet(object.FileHash) ? globalThis.String(object.FileHash) : "", + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + }; + }, + + toJSON(message: IOC): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.FileHash !== "") { + obj.FileHash = message.FileHash; + } + if (message.ID !== "") { + obj.ID = message.ID; + } + return obj; + }, + + create(base?: DeepPartial): IOC { + return IOC.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): IOC { + const message = createBaseIOC(); + message.Path = object.Path ?? ""; + message.FileHash = object.FileHash ?? ""; + message.ID = object.ID ?? ""; + return message; + }, +}; + +function createBaseExtensionData(): ExtensionData { + return { Output: "" }; +} + +export const ExtensionData: MessageFns = { + encode(message: ExtensionData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Output !== "") { + writer.uint32(10).string(message.Output); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExtensionData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExtensionData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Output = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExtensionData { + return { Output: isSet(object.Output) ? globalThis.String(object.Output) : "" }; + }, + + toJSON(message: ExtensionData): unknown { + const obj: any = {}; + if (message.Output !== "") { + obj.Output = message.Output; + } + return obj; + }, + + create(base?: DeepPartial): ExtensionData { + return ExtensionData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExtensionData { + const message = createBaseExtensionData(); + message.Output = object.Output ?? ""; + return message; + }, +}; + +function createBaseHost(): Host { + return { + ID: "", + Hostname: "", + HostUUID: "", + OSVersion: "", + IOCs: [], + ExtensionData: {}, + Locale: "", + FirstContact: "0", + }; +} + +export const Host: MessageFns = { + encode(message: Host, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Hostname !== "") { + writer.uint32(18).string(message.Hostname); + } + if (message.HostUUID !== "") { + writer.uint32(26).string(message.HostUUID); + } + if (message.OSVersion !== "") { + writer.uint32(34).string(message.OSVersion); + } + for (const v of message.IOCs) { + IOC.encode(v!, writer.uint32(42).fork()).join(); + } + globalThis.Object.entries(message.ExtensionData).forEach(([key, value]: [string, ExtensionData]) => { + Host_ExtensionDataEntry.encode({ key: key as any, value }, writer.uint32(50).fork()).join(); + }); + if (message.Locale !== "") { + writer.uint32(58).string(message.Locale); + } + if (message.FirstContact !== "0") { + writer.uint32(64).int64(message.FirstContact); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Host { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHost(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.HostUUID = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.OSVersion = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.IOCs.push(IOC.decode(reader, reader.uint32())); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + const entry6 = Host_ExtensionDataEntry.decode(reader, reader.uint32()); + if (entry6.value !== undefined) { + message.ExtensionData[entry6.key] = entry6.value; + } + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Locale = reader.string(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.FirstContact = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Host { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + HostUUID: isSet(object.HostUUID) ? globalThis.String(object.HostUUID) : "", + OSVersion: isSet(object.OSVersion) ? globalThis.String(object.OSVersion) : "", + IOCs: globalThis.Array.isArray(object?.IOCs) ? object.IOCs.map((e: any) => IOC.fromJSON(e)) : [], + ExtensionData: isObject(object.ExtensionData) + ? (globalThis.Object.entries(object.ExtensionData) as [string, any][]).reduce( + (acc: { [key: string]: ExtensionData }, [key, value]: [string, any]) => { + acc[key] = ExtensionData.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + Locale: isSet(object.Locale) ? globalThis.String(object.Locale) : "", + FirstContact: isSet(object.FirstContact) ? globalThis.String(object.FirstContact) : "0", + }; + }, + + toJSON(message: Host): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.HostUUID !== "") { + obj.HostUUID = message.HostUUID; + } + if (message.OSVersion !== "") { + obj.OSVersion = message.OSVersion; + } + if (message.IOCs?.length) { + obj.IOCs = message.IOCs.map((e) => IOC.toJSON(e)); + } + if (message.ExtensionData) { + const entries = globalThis.Object.entries(message.ExtensionData) as [string, ExtensionData][]; + if (entries.length > 0) { + obj.ExtensionData = {}; + entries.forEach(([k, v]) => { + obj.ExtensionData[k] = ExtensionData.toJSON(v); + }); + } + } + if (message.Locale !== "") { + obj.Locale = message.Locale; + } + if (message.FirstContact !== "0") { + obj.FirstContact = message.FirstContact; + } + return obj; + }, + + create(base?: DeepPartial): Host { + return Host.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Host { + const message = createBaseHost(); + message.ID = object.ID ?? ""; + message.Hostname = object.Hostname ?? ""; + message.HostUUID = object.HostUUID ?? ""; + message.OSVersion = object.OSVersion ?? ""; + message.IOCs = object.IOCs?.map((e) => IOC.fromPartial(e)) || []; + message.ExtensionData = (globalThis.Object.entries(object.ExtensionData ?? {}) as [string, ExtensionData][]).reduce( + (acc: { [key: string]: ExtensionData }, [key, value]: [string, ExtensionData]) => { + if (value !== undefined) { + acc[key] = ExtensionData.fromPartial(value); + } + return acc; + }, + {}, + ); + message.Locale = object.Locale ?? ""; + message.FirstContact = object.FirstContact ?? "0"; + return message; + }, +}; + +function createBaseHost_ExtensionDataEntry(): Host_ExtensionDataEntry { + return { key: "", value: undefined }; +} + +export const Host_ExtensionDataEntry: MessageFns = { + encode(message: Host_ExtensionDataEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + ExtensionData.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Host_ExtensionDataEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHost_ExtensionDataEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = ExtensionData.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Host_ExtensionDataEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? ExtensionData.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: Host_ExtensionDataEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = ExtensionData.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): Host_ExtensionDataEntry { + return Host_ExtensionDataEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Host_ExtensionDataEntry { + const message = createBaseHost_ExtensionDataEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? ExtensionData.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseAllHosts(): AllHosts { + return { Hosts: [] }; +} + +export const AllHosts: MessageFns = { + encode(message: AllHosts, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Hosts) { + Host.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): AllHosts { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseAllHosts(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hosts.push(Host.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): AllHosts { + return { Hosts: globalThis.Array.isArray(object?.Hosts) ? object.Hosts.map((e: any) => Host.fromJSON(e)) : [] }; + }, + + toJSON(message: AllHosts): unknown { + const obj: any = {}; + if (message.Hosts?.length) { + obj.Hosts = message.Hosts.map((e) => Host.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): AllHosts { + return AllHosts.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): AllHosts { + const message = createBaseAllHosts(); + message.Hosts = object.Hosts?.map((e) => Host.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseDllHijackReq(): DllHijackReq { + return { + ReferenceDLLPath: "", + TargetLocation: "", + ReferenceDLL: Buffer.alloc(0), + TargetDLL: Buffer.alloc(0), + ProfileName: "", + Name: "", + Request: undefined, + }; +} + +export const DllHijackReq: MessageFns = { + encode(message: DllHijackReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ReferenceDLLPath !== "") { + writer.uint32(10).string(message.ReferenceDLLPath); + } + if (message.TargetLocation !== "") { + writer.uint32(18).string(message.TargetLocation); + } + if (message.ReferenceDLL.length !== 0) { + writer.uint32(26).bytes(message.ReferenceDLL); + } + if (message.TargetDLL.length !== 0) { + writer.uint32(34).bytes(message.TargetDLL); + } + if (message.ProfileName !== "") { + writer.uint32(42).string(message.ProfileName); + } + if (message.Name !== "") { + writer.uint32(50).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DllHijackReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDllHijackReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ReferenceDLLPath = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.TargetLocation = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ReferenceDLL = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.TargetDLL = Buffer.from(reader.bytes()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.ProfileName = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DllHijackReq { + return { + ReferenceDLLPath: isSet(object.ReferenceDLLPath) ? globalThis.String(object.ReferenceDLLPath) : "", + TargetLocation: isSet(object.TargetLocation) ? globalThis.String(object.TargetLocation) : "", + ReferenceDLL: isSet(object.ReferenceDLL) ? Buffer.from(bytesFromBase64(object.ReferenceDLL)) : Buffer.alloc(0), + TargetDLL: isSet(object.TargetDLL) ? Buffer.from(bytesFromBase64(object.TargetDLL)) : Buffer.alloc(0), + ProfileName: isSet(object.ProfileName) ? globalThis.String(object.ProfileName) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: DllHijackReq): unknown { + const obj: any = {}; + if (message.ReferenceDLLPath !== "") { + obj.ReferenceDLLPath = message.ReferenceDLLPath; + } + if (message.TargetLocation !== "") { + obj.TargetLocation = message.TargetLocation; + } + if (message.ReferenceDLL.length !== 0) { + obj.ReferenceDLL = base64FromBytes(message.ReferenceDLL); + } + if (message.TargetDLL.length !== 0) { + obj.TargetDLL = base64FromBytes(message.TargetDLL); + } + if (message.ProfileName !== "") { + obj.ProfileName = message.ProfileName; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): DllHijackReq { + return DllHijackReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DllHijackReq { + const message = createBaseDllHijackReq(); + message.ReferenceDLLPath = object.ReferenceDLLPath ?? ""; + message.TargetLocation = object.TargetLocation ?? ""; + message.ReferenceDLL = object.ReferenceDLL ?? Buffer.alloc(0); + message.TargetDLL = object.TargetDLL ?? Buffer.alloc(0); + message.ProfileName = object.ProfileName ?? ""; + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseDllHijack(): DllHijack { + return { Response: undefined }; +} + +export const DllHijack: MessageFns = { + encode(message: DllHijack, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DllHijack { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDllHijack(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DllHijack { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: DllHijack): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): DllHijack { + return DllHijack.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DllHijack { + const message = createBaseDllHijack(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseBackdoorReq(): BackdoorReq { + return { FilePath: "", ProfileName: "", Name: "", Request: undefined }; +} + +export const BackdoorReq: MessageFns = { + encode(message: BackdoorReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.FilePath !== "") { + writer.uint32(10).string(message.FilePath); + } + if (message.ProfileName !== "") { + writer.uint32(18).string(message.ProfileName); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BackdoorReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBackdoorReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.FilePath = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProfileName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BackdoorReq { + return { + FilePath: isSet(object.FilePath) ? globalThis.String(object.FilePath) : "", + ProfileName: isSet(object.ProfileName) ? globalThis.String(object.ProfileName) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: BackdoorReq): unknown { + const obj: any = {}; + if (message.FilePath !== "") { + obj.FilePath = message.FilePath; + } + if (message.ProfileName !== "") { + obj.ProfileName = message.ProfileName; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): BackdoorReq { + return BackdoorReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BackdoorReq { + const message = createBaseBackdoorReq(); + message.FilePath = object.FilePath ?? ""; + message.ProfileName = object.ProfileName ?? ""; + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseBackdoor(): Backdoor { + return { Response: undefined }; +} + +export const Backdoor: MessageFns = { + encode(message: Backdoor, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Backdoor { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBackdoor(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Backdoor { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: Backdoor): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Backdoor { + return Backdoor.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Backdoor { + const message = createBaseBackdoor(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseShellcodeEncodeReq(): ShellcodeEncodeReq { + return { + Encoder: 0, + Architecture: "", + Iterations: 0, + BadChars: Buffer.alloc(0), + Data: Buffer.alloc(0), + Request: undefined, + }; +} + +export const ShellcodeEncodeReq: MessageFns = { + encode(message: ShellcodeEncodeReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Encoder !== 0) { + writer.uint32(8).int32(message.Encoder); + } + if (message.Architecture !== "") { + writer.uint32(18).string(message.Architecture); + } + if (message.Iterations !== 0) { + writer.uint32(24).uint32(message.Iterations); + } + if (message.BadChars.length !== 0) { + writer.uint32(34).bytes(message.BadChars); + } + if (message.Data.length !== 0) { + writer.uint32(66).bytes(message.Data); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncodeReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncodeReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Encoder = reader.int32() as any; + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Architecture = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Iterations = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.BadChars = Buffer.from(reader.bytes()); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncodeReq { + return { + Encoder: isSet(object.Encoder) ? shellcodeEncoderFromJSON(object.Encoder) : 0, + Architecture: isSet(object.Architecture) ? globalThis.String(object.Architecture) : "", + Iterations: isSet(object.Iterations) ? globalThis.Number(object.Iterations) : 0, + BadChars: isSet(object.BadChars) ? Buffer.from(bytesFromBase64(object.BadChars)) : Buffer.alloc(0), + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ShellcodeEncodeReq): unknown { + const obj: any = {}; + if (message.Encoder !== 0) { + obj.Encoder = shellcodeEncoderToJSON(message.Encoder); + } + if (message.Architecture !== "") { + obj.Architecture = message.Architecture; + } + if (message.Iterations !== 0) { + obj.Iterations = Math.round(message.Iterations); + } + if (message.BadChars.length !== 0) { + obj.BadChars = base64FromBytes(message.BadChars); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncodeReq { + return ShellcodeEncodeReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncodeReq { + const message = createBaseShellcodeEncodeReq(); + message.Encoder = object.Encoder ?? 0; + message.Architecture = object.Architecture ?? ""; + message.Iterations = object.Iterations ?? 0; + message.BadChars = object.BadChars ?? Buffer.alloc(0); + message.Data = object.Data ?? Buffer.alloc(0); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseShellcodeEncode(): ShellcodeEncode { + return { Data: Buffer.alloc(0), Response: undefined }; +} + +export const ShellcodeEncode: MessageFns = { + encode(message: ShellcodeEncode, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(66).bytes(message.Data); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncode { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncode(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 8: { + if (tag !== 66) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncode { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ShellcodeEncode): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncode { + return ShellcodeEncode.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncode { + const message = createBaseShellcodeEncode(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseShellcodeEncoderArchMap(): ShellcodeEncoderArchMap { + return { Encoders: {}, Descriptions: {} }; +} + +export const ShellcodeEncoderArchMap: MessageFns = { + encode(message: ShellcodeEncoderArchMap, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + globalThis.Object.entries(message.Encoders).forEach(([key, value]: [string, ShellcodeEncoder]) => { + ShellcodeEncoderArchMap_EncodersEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); + }); + globalThis.Object.entries(message.Descriptions).forEach(([key, value]: [string, string]) => { + ShellcodeEncoderArchMap_DescriptionsEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncoderArchMap { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncoderArchMap(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + const entry1 = ShellcodeEncoderArchMap_EncodersEntry.decode(reader, reader.uint32()); + if (entry1.value !== undefined) { + message.Encoders[entry1.key] = entry1.value; + } + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + const entry2 = ShellcodeEncoderArchMap_DescriptionsEntry.decode(reader, reader.uint32()); + if (entry2.value !== undefined) { + message.Descriptions[entry2.key] = entry2.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncoderArchMap { + return { + Encoders: isObject(object.Encoders) + ? (globalThis.Object.entries(object.Encoders) as [string, any][]).reduce( + (acc: { [key: string]: ShellcodeEncoder }, [key, value]: [string, any]) => { + acc[key] = shellcodeEncoderFromJSON(value); + return acc; + }, + {}, + ) + : {}, + Descriptions: isObject(object.Descriptions) + ? (globalThis.Object.entries(object.Descriptions) as [string, any][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, any]) => { + acc[key] = globalThis.String(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: ShellcodeEncoderArchMap): unknown { + const obj: any = {}; + if (message.Encoders) { + const entries = globalThis.Object.entries(message.Encoders) as [string, ShellcodeEncoder][]; + if (entries.length > 0) { + obj.Encoders = {}; + entries.forEach(([k, v]) => { + obj.Encoders[k] = shellcodeEncoderToJSON(v); + }); + } + } + if (message.Descriptions) { + const entries = globalThis.Object.entries(message.Descriptions) as [string, string][]; + if (entries.length > 0) { + obj.Descriptions = {}; + entries.forEach(([k, v]) => { + obj.Descriptions[k] = v; + }); + } + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncoderArchMap { + return ShellcodeEncoderArchMap.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncoderArchMap { + const message = createBaseShellcodeEncoderArchMap(); + message.Encoders = (globalThis.Object.entries(object.Encoders ?? {}) as [string, ShellcodeEncoder][]).reduce( + (acc: { [key: string]: ShellcodeEncoder }, [key, value]: [string, ShellcodeEncoder]) => { + if (value !== undefined) { + acc[key] = value as ShellcodeEncoder; + } + return acc; + }, + {}, + ); + message.Descriptions = (globalThis.Object.entries(object.Descriptions ?? {}) as [string, string][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, string]) => { + if (value !== undefined) { + acc[key] = globalThis.String(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseShellcodeEncoderArchMap_EncodersEntry(): ShellcodeEncoderArchMap_EncodersEntry { + return { key: "", value: 0 }; +} + +export const ShellcodeEncoderArchMap_EncodersEntry: MessageFns = { + encode(message: ShellcodeEncoderArchMap_EncodersEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== 0) { + writer.uint32(16).int32(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncoderArchMap_EncodersEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncoderArchMap_EncodersEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.value = reader.int32() as any; + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncoderArchMap_EncodersEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? shellcodeEncoderFromJSON(object.value) : 0, + }; + }, + + toJSON(message: ShellcodeEncoderArchMap_EncodersEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== 0) { + obj.value = shellcodeEncoderToJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncoderArchMap_EncodersEntry { + return ShellcodeEncoderArchMap_EncodersEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncoderArchMap_EncodersEntry { + const message = createBaseShellcodeEncoderArchMap_EncodersEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? 0; + return message; + }, +}; + +function createBaseShellcodeEncoderArchMap_DescriptionsEntry(): ShellcodeEncoderArchMap_DescriptionsEntry { + return { key: "", value: "" }; +} + +export const ShellcodeEncoderArchMap_DescriptionsEntry: MessageFns = { + encode(message: ShellcodeEncoderArchMap_DescriptionsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncoderArchMap_DescriptionsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncoderArchMap_DescriptionsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncoderArchMap_DescriptionsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? globalThis.String(object.value) : "", + }; + }, + + toJSON(message: ShellcodeEncoderArchMap_DescriptionsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== "") { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncoderArchMap_DescriptionsEntry { + return ShellcodeEncoderArchMap_DescriptionsEntry.fromPartial(base ?? {}); + }, + fromPartial( + object: DeepPartial, + ): ShellcodeEncoderArchMap_DescriptionsEntry { + const message = createBaseShellcodeEncoderArchMap_DescriptionsEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, +}; + +function createBaseShellcodeEncoderMap(): ShellcodeEncoderMap { + return { Encoders: {} }; +} + +export const ShellcodeEncoderMap: MessageFns = { + encode(message: ShellcodeEncoderMap, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + globalThis.Object.entries(message.Encoders).forEach(([key, value]: [string, ShellcodeEncoderArchMap]) => { + ShellcodeEncoderMap_EncodersEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncoderMap { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncoderMap(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + const entry1 = ShellcodeEncoderMap_EncodersEntry.decode(reader, reader.uint32()); + if (entry1.value !== undefined) { + message.Encoders[entry1.key] = entry1.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncoderMap { + return { + Encoders: isObject(object.Encoders) + ? (globalThis.Object.entries(object.Encoders) as [string, any][]).reduce( + (acc: { [key: string]: ShellcodeEncoderArchMap }, [key, value]: [string, any]) => { + acc[key] = ShellcodeEncoderArchMap.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: ShellcodeEncoderMap): unknown { + const obj: any = {}; + if (message.Encoders) { + const entries = globalThis.Object.entries(message.Encoders) as [string, ShellcodeEncoderArchMap][]; + if (entries.length > 0) { + obj.Encoders = {}; + entries.forEach(([k, v]) => { + obj.Encoders[k] = ShellcodeEncoderArchMap.toJSON(v); + }); + } + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncoderMap { + return ShellcodeEncoderMap.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncoderMap { + const message = createBaseShellcodeEncoderMap(); + message.Encoders = (globalThis.Object.entries(object.Encoders ?? {}) as [string, ShellcodeEncoderArchMap][]).reduce( + (acc: { [key: string]: ShellcodeEncoderArchMap }, [key, value]: [string, ShellcodeEncoderArchMap]) => { + if (value !== undefined) { + acc[key] = ShellcodeEncoderArchMap.fromPartial(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseShellcodeEncoderMap_EncodersEntry(): ShellcodeEncoderMap_EncodersEntry { + return { key: "", value: undefined }; +} + +export const ShellcodeEncoderMap_EncodersEntry: MessageFns = { + encode(message: ShellcodeEncoderMap_EncodersEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + ShellcodeEncoderArchMap.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellcodeEncoderMap_EncodersEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellcodeEncoderMap_EncodersEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = ShellcodeEncoderArchMap.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellcodeEncoderMap_EncodersEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? ShellcodeEncoderArchMap.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: ShellcodeEncoderMap_EncodersEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = ShellcodeEncoderArchMap.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): ShellcodeEncoderMap_EncodersEntry { + return ShellcodeEncoderMap_EncodersEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellcodeEncoderMap_EncodersEntry { + const message = createBaseShellcodeEncoderMap_EncodersEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? ShellcodeEncoderArchMap.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseExternalGenerateReq(): ExternalGenerateReq { + return { Config: undefined, BuilderName: "", Name: "" }; +} + +export const ExternalGenerateReq: MessageFns = { + encode(message: ExternalGenerateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Config !== undefined) { + ImplantConfig.encode(message.Config, writer.uint32(10).fork()).join(); + } + if (message.BuilderName !== "") { + writer.uint32(18).string(message.BuilderName); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExternalGenerateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExternalGenerateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Config = ImplantConfig.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.BuilderName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExternalGenerateReq { + return { + Config: isSet(object.Config) ? ImplantConfig.fromJSON(object.Config) : undefined, + BuilderName: isSet(object.BuilderName) ? globalThis.String(object.BuilderName) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: ExternalGenerateReq): unknown { + const obj: any = {}; + if (message.Config !== undefined) { + obj.Config = ImplantConfig.toJSON(message.Config); + } + if (message.BuilderName !== "") { + obj.BuilderName = message.BuilderName; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): ExternalGenerateReq { + return ExternalGenerateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExternalGenerateReq { + const message = createBaseExternalGenerateReq(); + message.Config = (object.Config !== undefined && object.Config !== null) + ? ImplantConfig.fromPartial(object.Config) + : undefined; + message.BuilderName = object.BuilderName ?? ""; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseBuilders(): Builders { + return { Builders: [] }; +} + +export const Builders: MessageFns = { + encode(message: Builders, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Builders) { + Builder.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Builders { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuilders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Builders.push(Builder.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Builders { + return { + Builders: globalThis.Array.isArray(object?.Builders) ? object.Builders.map((e: any) => Builder.fromJSON(e)) : [], + }; + }, + + toJSON(message: Builders): unknown { + const obj: any = {}; + if (message.Builders?.length) { + obj.Builders = message.Builders.map((e) => Builder.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Builders { + return Builders.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Builders { + const message = createBaseBuilders(); + message.Builders = object.Builders?.map((e) => Builder.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseBuilder(): Builder { + return { Name: "", OperatorName: "", GOOS: "", GOARCH: "", Templates: [], Targets: [], CrossCompilers: [] }; +} + +export const Builder: MessageFns = { + encode(message: Builder, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.OperatorName !== "") { + writer.uint32(18).string(message.OperatorName); + } + if (message.GOOS !== "") { + writer.uint32(26).string(message.GOOS); + } + if (message.GOARCH !== "") { + writer.uint32(34).string(message.GOARCH); + } + for (const v of message.Templates) { + writer.uint32(42).string(v!); + } + for (const v of message.Targets) { + CompilerTarget.encode(v!, writer.uint32(50).fork()).join(); + } + for (const v of message.CrossCompilers) { + CrossCompiler.encode(v!, writer.uint32(58).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Builder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBuilder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.OperatorName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.GOOS = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.GOARCH = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Templates.push(reader.string()); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Targets.push(CompilerTarget.decode(reader, reader.uint32())); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.CrossCompilers.push(CrossCompiler.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Builder { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + OperatorName: isSet(object.OperatorName) ? globalThis.String(object.OperatorName) : "", + GOOS: isSet(object.GOOS) ? globalThis.String(object.GOOS) : "", + GOARCH: isSet(object.GOARCH) ? globalThis.String(object.GOARCH) : "", + Templates: globalThis.Array.isArray(object?.Templates) + ? object.Templates.map((e: any) => globalThis.String(e)) + : [], + Targets: globalThis.Array.isArray(object?.Targets) + ? object.Targets.map((e: any) => CompilerTarget.fromJSON(e)) + : [], + CrossCompilers: globalThis.Array.isArray(object?.CrossCompilers) + ? object.CrossCompilers.map((e: any) => CrossCompiler.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Builder): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.OperatorName !== "") { + obj.OperatorName = message.OperatorName; + } + if (message.GOOS !== "") { + obj.GOOS = message.GOOS; + } + if (message.GOARCH !== "") { + obj.GOARCH = message.GOARCH; + } + if (message.Templates?.length) { + obj.Templates = message.Templates; + } + if (message.Targets?.length) { + obj.Targets = message.Targets.map((e) => CompilerTarget.toJSON(e)); + } + if (message.CrossCompilers?.length) { + obj.CrossCompilers = message.CrossCompilers.map((e) => CrossCompiler.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Builder { + return Builder.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Builder { + const message = createBaseBuilder(); + message.Name = object.Name ?? ""; + message.OperatorName = object.OperatorName ?? ""; + message.GOOS = object.GOOS ?? ""; + message.GOARCH = object.GOARCH ?? ""; + message.Templates = object.Templates?.map((e) => e) || []; + message.Targets = object.Targets?.map((e) => CompilerTarget.fromPartial(e)) || []; + message.CrossCompilers = object.CrossCompilers?.map((e) => CrossCompiler.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseHTTPC2Configs(): HTTPC2Configs { + return { configs: [] }; +} + +export const HTTPC2Configs: MessageFns = { + encode(message: HTTPC2Configs, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.configs) { + HTTPC2Config.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2Configs { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2Configs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.configs.push(HTTPC2Config.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2Configs { + return { + configs: globalThis.Array.isArray(object?.configs) + ? object.configs.map((e: any) => HTTPC2Config.fromJSON(e)) + : [], + }; + }, + + toJSON(message: HTTPC2Configs): unknown { + const obj: any = {}; + if (message.configs?.length) { + obj.configs = message.configs.map((e) => HTTPC2Config.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2Configs { + return HTTPC2Configs.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2Configs { + const message = createBaseHTTPC2Configs(); + message.configs = object.configs?.map((e) => HTTPC2Config.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseC2ProfileReq(): C2ProfileReq { + return { Name: "" }; +} + +export const C2ProfileReq: MessageFns = { + encode(message: C2ProfileReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): C2ProfileReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseC2ProfileReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): C2ProfileReq { + return { Name: isSet(object.Name) ? globalThis.String(object.Name) : "" }; + }, + + toJSON(message: C2ProfileReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): C2ProfileReq { + return C2ProfileReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): C2ProfileReq { + const message = createBaseC2ProfileReq(); + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseHTTPC2ConfigReq(): HTTPC2ConfigReq { + return { overwrite: false, C2Config: undefined }; +} + +export const HTTPC2ConfigReq: MessageFns = { + encode(message: HTTPC2ConfigReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.overwrite !== false) { + writer.uint32(8).bool(message.overwrite); + } + if (message.C2Config !== undefined) { + HTTPC2Config.encode(message.C2Config, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2ConfigReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2ConfigReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.overwrite = reader.bool(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.C2Config = HTTPC2Config.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2ConfigReq { + return { + overwrite: isSet(object.overwrite) ? globalThis.Boolean(object.overwrite) : false, + C2Config: isSet(object.C2Config) ? HTTPC2Config.fromJSON(object.C2Config) : undefined, + }; + }, + + toJSON(message: HTTPC2ConfigReq): unknown { + const obj: any = {}; + if (message.overwrite !== false) { + obj.overwrite = message.overwrite; + } + if (message.C2Config !== undefined) { + obj.C2Config = HTTPC2Config.toJSON(message.C2Config); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2ConfigReq { + return HTTPC2ConfigReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2ConfigReq { + const message = createBaseHTTPC2ConfigReq(); + message.overwrite = object.overwrite ?? false; + message.C2Config = (object.C2Config !== undefined && object.C2Config !== null) + ? HTTPC2Config.fromPartial(object.C2Config) + : undefined; + return message; + }, +}; + +function createBaseHTTPC2Config(): HTTPC2Config { + return { ID: "", Created: "0", Name: "", ServerConfig: undefined, ImplantConfig: undefined }; +} + +export const HTTPC2Config: MessageFns = { + encode(message: HTTPC2Config, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Created !== "0") { + writer.uint32(16).int64(message.Created); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.ServerConfig !== undefined) { + HTTPC2ServerConfig.encode(message.ServerConfig, writer.uint32(34).fork()).join(); + } + if (message.ImplantConfig !== undefined) { + HTTPC2ImplantConfig.encode(message.ImplantConfig, writer.uint32(42).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2Config { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2Config(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Created = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ServerConfig = HTTPC2ServerConfig.decode(reader, reader.uint32()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.ImplantConfig = HTTPC2ImplantConfig.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2Config { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Created: isSet(object.Created) ? globalThis.String(object.Created) : "0", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + ServerConfig: isSet(object.ServerConfig) ? HTTPC2ServerConfig.fromJSON(object.ServerConfig) : undefined, + ImplantConfig: isSet(object.ImplantConfig) ? HTTPC2ImplantConfig.fromJSON(object.ImplantConfig) : undefined, + }; + }, + + toJSON(message: HTTPC2Config): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Created !== "0") { + obj.Created = message.Created; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.ServerConfig !== undefined) { + obj.ServerConfig = HTTPC2ServerConfig.toJSON(message.ServerConfig); + } + if (message.ImplantConfig !== undefined) { + obj.ImplantConfig = HTTPC2ImplantConfig.toJSON(message.ImplantConfig); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2Config { + return HTTPC2Config.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2Config { + const message = createBaseHTTPC2Config(); + message.ID = object.ID ?? ""; + message.Created = object.Created ?? "0"; + message.Name = object.Name ?? ""; + message.ServerConfig = (object.ServerConfig !== undefined && object.ServerConfig !== null) + ? HTTPC2ServerConfig.fromPartial(object.ServerConfig) + : undefined; + message.ImplantConfig = (object.ImplantConfig !== undefined && object.ImplantConfig !== null) + ? HTTPC2ImplantConfig.fromPartial(object.ImplantConfig) + : undefined; + return message; + }, +}; + +function createBaseHTTPC2ServerConfig(): HTTPC2ServerConfig { + return { ID: "", RandomVersionHeaders: false, Headers: [], Cookies: [] }; +} + +export const HTTPC2ServerConfig: MessageFns = { + encode(message: HTTPC2ServerConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.RandomVersionHeaders !== false) { + writer.uint32(16).bool(message.RandomVersionHeaders); + } + for (const v of message.Headers) { + HTTPC2Header.encode(v!, writer.uint32(26).fork()).join(); + } + for (const v of message.Cookies) { + HTTPC2Cookie.encode(v!, writer.uint32(34).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2ServerConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2ServerConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.RandomVersionHeaders = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Headers.push(HTTPC2Header.decode(reader, reader.uint32())); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Cookies.push(HTTPC2Cookie.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2ServerConfig { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + RandomVersionHeaders: isSet(object.RandomVersionHeaders) + ? globalThis.Boolean(object.RandomVersionHeaders) + : false, + Headers: globalThis.Array.isArray(object?.Headers) + ? object.Headers.map((e: any) => HTTPC2Header.fromJSON(e)) + : [], + Cookies: globalThis.Array.isArray(object?.Cookies) + ? object.Cookies.map((e: any) => HTTPC2Cookie.fromJSON(e)) + : [], + }; + }, + + toJSON(message: HTTPC2ServerConfig): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.RandomVersionHeaders !== false) { + obj.RandomVersionHeaders = message.RandomVersionHeaders; + } + if (message.Headers?.length) { + obj.Headers = message.Headers.map((e) => HTTPC2Header.toJSON(e)); + } + if (message.Cookies?.length) { + obj.Cookies = message.Cookies.map((e) => HTTPC2Cookie.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2ServerConfig { + return HTTPC2ServerConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2ServerConfig { + const message = createBaseHTTPC2ServerConfig(); + message.ID = object.ID ?? ""; + message.RandomVersionHeaders = object.RandomVersionHeaders ?? false; + message.Headers = object.Headers?.map((e) => HTTPC2Header.fromPartial(e)) || []; + message.Cookies = object.Cookies?.map((e) => HTTPC2Cookie.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseHTTPC2ImplantConfig(): HTTPC2ImplantConfig { + return { + ID: "", + UserAgent: "", + ChromeBaseVersion: 0, + MacOSVersion: "", + NonceQueryArgChars: "", + ExtraURLParameters: [], + Headers: [], + MaxFileGen: 0, + MinFileGen: 0, + MaxPathGen: 0, + MinPathGen: 0, + MaxPathLength: 0, + MinPathLength: 0, + extensions: [], + PathSegments: [], + NonceQueryLength: 0, + NonceMode: "", + }; +} + +export const HTTPC2ImplantConfig: MessageFns = { + encode(message: HTTPC2ImplantConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.UserAgent !== "") { + writer.uint32(18).string(message.UserAgent); + } + if (message.ChromeBaseVersion !== 0) { + writer.uint32(24).int32(message.ChromeBaseVersion); + } + if (message.MacOSVersion !== "") { + writer.uint32(34).string(message.MacOSVersion); + } + if (message.NonceQueryArgChars !== "") { + writer.uint32(42).string(message.NonceQueryArgChars); + } + for (const v of message.ExtraURLParameters) { + HTTPC2URLParameter.encode(v!, writer.uint32(50).fork()).join(); + } + for (const v of message.Headers) { + HTTPC2Header.encode(v!, writer.uint32(58).fork()).join(); + } + if (message.MaxFileGen !== 0) { + writer.uint32(64).int32(message.MaxFileGen); + } + if (message.MinFileGen !== 0) { + writer.uint32(72).int32(message.MinFileGen); + } + if (message.MaxPathGen !== 0) { + writer.uint32(80).int32(message.MaxPathGen); + } + if (message.MinPathGen !== 0) { + writer.uint32(88).int32(message.MinPathGen); + } + if (message.MaxPathLength !== 0) { + writer.uint32(96).int32(message.MaxPathLength); + } + if (message.MinPathLength !== 0) { + writer.uint32(104).int32(message.MinPathLength); + } + for (const v of message.extensions) { + writer.uint32(114).string(v!); + } + for (const v of message.PathSegments) { + HTTPC2PathSegment.encode(v!, writer.uint32(138).fork()).join(); + } + if (message.NonceQueryLength !== 0) { + writer.uint32(144).int32(message.NonceQueryLength); + } + if (message.NonceMode !== "") { + writer.uint32(154).string(message.NonceMode); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2ImplantConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2ImplantConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.UserAgent = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.ChromeBaseVersion = reader.int32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.MacOSVersion = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.NonceQueryArgChars = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.ExtraURLParameters.push(HTTPC2URLParameter.decode(reader, reader.uint32())); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Headers.push(HTTPC2Header.decode(reader, reader.uint32())); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.MaxFileGen = reader.int32(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.MinFileGen = reader.int32(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.MaxPathGen = reader.int32(); + continue; + } + case 11: { + if (tag !== 88) { + break; + } + + message.MinPathGen = reader.int32(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.MaxPathLength = reader.int32(); + continue; + } + case 13: { + if (tag !== 104) { + break; + } + + message.MinPathLength = reader.int32(); + continue; + } + case 14: { + if (tag !== 114) { + break; + } + + message.extensions.push(reader.string()); + continue; + } + case 17: { + if (tag !== 138) { + break; + } + + message.PathSegments.push(HTTPC2PathSegment.decode(reader, reader.uint32())); + continue; + } + case 18: { + if (tag !== 144) { + break; + } + + message.NonceQueryLength = reader.int32(); + continue; + } + case 19: { + if (tag !== 154) { + break; + } + + message.NonceMode = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2ImplantConfig { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + UserAgent: isSet(object.UserAgent) ? globalThis.String(object.UserAgent) : "", + ChromeBaseVersion: isSet(object.ChromeBaseVersion) ? globalThis.Number(object.ChromeBaseVersion) : 0, + MacOSVersion: isSet(object.MacOSVersion) ? globalThis.String(object.MacOSVersion) : "", + NonceQueryArgChars: isSet(object.NonceQueryArgChars) ? globalThis.String(object.NonceQueryArgChars) : "", + ExtraURLParameters: globalThis.Array.isArray(object?.ExtraURLParameters) + ? object.ExtraURLParameters.map((e: any) => HTTPC2URLParameter.fromJSON(e)) + : [], + Headers: globalThis.Array.isArray(object?.Headers) + ? object.Headers.map((e: any) => HTTPC2Header.fromJSON(e)) + : [], + MaxFileGen: isSet(object.MaxFileGen) ? globalThis.Number(object.MaxFileGen) : 0, + MinFileGen: isSet(object.MinFileGen) ? globalThis.Number(object.MinFileGen) : 0, + MaxPathGen: isSet(object.MaxPathGen) ? globalThis.Number(object.MaxPathGen) : 0, + MinPathGen: isSet(object.MinPathGen) ? globalThis.Number(object.MinPathGen) : 0, + MaxPathLength: isSet(object.MaxPathLength) ? globalThis.Number(object.MaxPathLength) : 0, + MinPathLength: isSet(object.MinPathLength) ? globalThis.Number(object.MinPathLength) : 0, + extensions: globalThis.Array.isArray(object?.extensions) + ? object.extensions.map((e: any) => globalThis.String(e)) + : [], + PathSegments: globalThis.Array.isArray(object?.PathSegments) + ? object.PathSegments.map((e: any) => HTTPC2PathSegment.fromJSON(e)) + : [], + NonceQueryLength: isSet(object.NonceQueryLength) ? globalThis.Number(object.NonceQueryLength) : 0, + NonceMode: isSet(object.NonceMode) ? globalThis.String(object.NonceMode) : "", + }; + }, + + toJSON(message: HTTPC2ImplantConfig): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.UserAgent !== "") { + obj.UserAgent = message.UserAgent; + } + if (message.ChromeBaseVersion !== 0) { + obj.ChromeBaseVersion = Math.round(message.ChromeBaseVersion); + } + if (message.MacOSVersion !== "") { + obj.MacOSVersion = message.MacOSVersion; + } + if (message.NonceQueryArgChars !== "") { + obj.NonceQueryArgChars = message.NonceQueryArgChars; + } + if (message.ExtraURLParameters?.length) { + obj.ExtraURLParameters = message.ExtraURLParameters.map((e) => HTTPC2URLParameter.toJSON(e)); + } + if (message.Headers?.length) { + obj.Headers = message.Headers.map((e) => HTTPC2Header.toJSON(e)); + } + if (message.MaxFileGen !== 0) { + obj.MaxFileGen = Math.round(message.MaxFileGen); + } + if (message.MinFileGen !== 0) { + obj.MinFileGen = Math.round(message.MinFileGen); + } + if (message.MaxPathGen !== 0) { + obj.MaxPathGen = Math.round(message.MaxPathGen); + } + if (message.MinPathGen !== 0) { + obj.MinPathGen = Math.round(message.MinPathGen); + } + if (message.MaxPathLength !== 0) { + obj.MaxPathLength = Math.round(message.MaxPathLength); + } + if (message.MinPathLength !== 0) { + obj.MinPathLength = Math.round(message.MinPathLength); + } + if (message.extensions?.length) { + obj.extensions = message.extensions; + } + if (message.PathSegments?.length) { + obj.PathSegments = message.PathSegments.map((e) => HTTPC2PathSegment.toJSON(e)); + } + if (message.NonceQueryLength !== 0) { + obj.NonceQueryLength = Math.round(message.NonceQueryLength); + } + if (message.NonceMode !== "") { + obj.NonceMode = message.NonceMode; + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2ImplantConfig { + return HTTPC2ImplantConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2ImplantConfig { + const message = createBaseHTTPC2ImplantConfig(); + message.ID = object.ID ?? ""; + message.UserAgent = object.UserAgent ?? ""; + message.ChromeBaseVersion = object.ChromeBaseVersion ?? 0; + message.MacOSVersion = object.MacOSVersion ?? ""; + message.NonceQueryArgChars = object.NonceQueryArgChars ?? ""; + message.ExtraURLParameters = object.ExtraURLParameters?.map((e) => HTTPC2URLParameter.fromPartial(e)) || []; + message.Headers = object.Headers?.map((e) => HTTPC2Header.fromPartial(e)) || []; + message.MaxFileGen = object.MaxFileGen ?? 0; + message.MinFileGen = object.MinFileGen ?? 0; + message.MaxPathGen = object.MaxPathGen ?? 0; + message.MinPathGen = object.MinPathGen ?? 0; + message.MaxPathLength = object.MaxPathLength ?? 0; + message.MinPathLength = object.MinPathLength ?? 0; + message.extensions = object.extensions?.map((e) => e) || []; + message.PathSegments = object.PathSegments?.map((e) => HTTPC2PathSegment.fromPartial(e)) || []; + message.NonceQueryLength = object.NonceQueryLength ?? 0; + message.NonceMode = object.NonceMode ?? ""; + return message; + }, +}; + +function createBaseHTTPC2Cookie(): HTTPC2Cookie { + return { ID: "", Name: "" }; +} + +export const HTTPC2Cookie: MessageFns = { + encode(message: HTTPC2Cookie, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2Cookie { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2Cookie(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2Cookie { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: HTTPC2Cookie): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2Cookie { + return HTTPC2Cookie.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2Cookie { + const message = createBaseHTTPC2Cookie(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBaseHTTPC2Header(): HTTPC2Header { + return { ID: "", Method: "", Name: "", Value: "", Probability: 0 }; +} + +export const HTTPC2Header: MessageFns = { + encode(message: HTTPC2Header, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Method !== "") { + writer.uint32(18).string(message.Method); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.Value !== "") { + writer.uint32(34).string(message.Value); + } + if (message.Probability !== 0) { + writer.uint32(40).int32(message.Probability); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2Header { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2Header(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Method = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Value = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Probability = reader.int32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2Header { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Method: isSet(object.Method) ? globalThis.String(object.Method) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Value: isSet(object.Value) ? globalThis.String(object.Value) : "", + Probability: isSet(object.Probability) ? globalThis.Number(object.Probability) : 0, + }; + }, + + toJSON(message: HTTPC2Header): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Method !== "") { + obj.Method = message.Method; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Value !== "") { + obj.Value = message.Value; + } + if (message.Probability !== 0) { + obj.Probability = Math.round(message.Probability); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2Header { + return HTTPC2Header.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2Header { + const message = createBaseHTTPC2Header(); + message.ID = object.ID ?? ""; + message.Method = object.Method ?? ""; + message.Name = object.Name ?? ""; + message.Value = object.Value ?? ""; + message.Probability = object.Probability ?? 0; + return message; + }, +}; + +function createBaseHTTPC2URLParameter(): HTTPC2URLParameter { + return { ID: "", Method: "", Name: "", Value: "", Probability: 0 }; +} + +export const HTTPC2URLParameter: MessageFns = { + encode(message: HTTPC2URLParameter, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Method !== "") { + writer.uint32(18).string(message.Method); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.Value !== "") { + writer.uint32(34).string(message.Value); + } + if (message.Probability !== 0) { + writer.uint32(40).int32(message.Probability); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2URLParameter { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2URLParameter(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Method = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Value = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Probability = reader.int32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2URLParameter { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Method: isSet(object.Method) ? globalThis.String(object.Method) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Value: isSet(object.Value) ? globalThis.String(object.Value) : "", + Probability: isSet(object.Probability) ? globalThis.Number(object.Probability) : 0, + }; + }, + + toJSON(message: HTTPC2URLParameter): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Method !== "") { + obj.Method = message.Method; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Value !== "") { + obj.Value = message.Value; + } + if (message.Probability !== 0) { + obj.Probability = Math.round(message.Probability); + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2URLParameter { + return HTTPC2URLParameter.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2URLParameter { + const message = createBaseHTTPC2URLParameter(); + message.ID = object.ID ?? ""; + message.Method = object.Method ?? ""; + message.Name = object.Name ?? ""; + message.Value = object.Value ?? ""; + message.Probability = object.Probability ?? 0; + return message; + }, +}; + +function createBaseHTTPC2PathSegment(): HTTPC2PathSegment { + return { ID: "", IsFile: false, Value: "" }; +} + +export const HTTPC2PathSegment: MessageFns = { + encode(message: HTTPC2PathSegment, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.IsFile !== false) { + writer.uint32(16).bool(message.IsFile); + } + if (message.Value !== "") { + writer.uint32(26).string(message.Value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPC2PathSegment { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPC2PathSegment(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.IsFile = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Value = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPC2PathSegment { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + IsFile: isSet(object.IsFile) ? globalThis.Boolean(object.IsFile) : false, + Value: isSet(object.Value) ? globalThis.String(object.Value) : "", + }; + }, + + toJSON(message: HTTPC2PathSegment): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.IsFile !== false) { + obj.IsFile = message.IsFile; + } + if (message.Value !== "") { + obj.Value = message.Value; + } + return obj; + }, + + create(base?: DeepPartial): HTTPC2PathSegment { + return HTTPC2PathSegment.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPC2PathSegment { + const message = createBaseHTTPC2PathSegment(); + message.ID = object.ID ?? ""; + message.IsFile = object.IsFile ?? false; + message.Value = object.Value ?? ""; + return message; + }, +}; + +function createBaseCredential(): Credential { + return { + ID: "", + Username: "", + Plaintext: "", + Hash: "", + HashType: 0, + IsCracked: false, + OriginHostUUID: "", + Collection: "", + }; +} + +export const Credential: MessageFns = { + encode(message: Credential, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Username !== "") { + writer.uint32(18).string(message.Username); + } + if (message.Plaintext !== "") { + writer.uint32(26).string(message.Plaintext); + } + if (message.Hash !== "") { + writer.uint32(34).string(message.Hash); + } + if (message.HashType !== 0) { + writer.uint32(40).int32(message.HashType); + } + if (message.IsCracked !== false) { + writer.uint32(48).bool(message.IsCracked); + } + if (message.OriginHostUUID !== "") { + writer.uint32(58).string(message.OriginHostUUID); + } + if (message.Collection !== "") { + writer.uint32(66).string(message.Collection); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Credential { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCredential(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Username = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Plaintext = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hash = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.HashType = reader.int32() as any; + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.IsCracked = reader.bool(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.OriginHostUUID = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Collection = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Credential { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Plaintext: isSet(object.Plaintext) ? globalThis.String(object.Plaintext) : "", + Hash: isSet(object.Hash) ? globalThis.String(object.Hash) : "", + HashType: isSet(object.HashType) ? hashTypeFromJSON(object.HashType) : 0, + IsCracked: isSet(object.IsCracked) ? globalThis.Boolean(object.IsCracked) : false, + OriginHostUUID: isSet(object.OriginHostUUID) ? globalThis.String(object.OriginHostUUID) : "", + Collection: isSet(object.Collection) ? globalThis.String(object.Collection) : "", + }; + }, + + toJSON(message: Credential): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Plaintext !== "") { + obj.Plaintext = message.Plaintext; + } + if (message.Hash !== "") { + obj.Hash = message.Hash; + } + if (message.HashType !== 0) { + obj.HashType = hashTypeToJSON(message.HashType); + } + if (message.IsCracked !== false) { + obj.IsCracked = message.IsCracked; + } + if (message.OriginHostUUID !== "") { + obj.OriginHostUUID = message.OriginHostUUID; + } + if (message.Collection !== "") { + obj.Collection = message.Collection; + } + return obj; + }, + + create(base?: DeepPartial): Credential { + return Credential.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Credential { + const message = createBaseCredential(); + message.ID = object.ID ?? ""; + message.Username = object.Username ?? ""; + message.Plaintext = object.Plaintext ?? ""; + message.Hash = object.Hash ?? ""; + message.HashType = object.HashType ?? 0; + message.IsCracked = object.IsCracked ?? false; + message.OriginHostUUID = object.OriginHostUUID ?? ""; + message.Collection = object.Collection ?? ""; + return message; + }, +}; + +function createBaseCredentials(): Credentials { + return { Credentials: [] }; +} + +export const Credentials: MessageFns = { + encode(message: Credentials, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Credentials) { + Credential.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Credentials { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCredentials(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Credentials.push(Credential.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Credentials { + return { + Credentials: globalThis.Array.isArray(object?.Credentials) + ? object.Credentials.map((e: any) => Credential.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Credentials): unknown { + const obj: any = {}; + if (message.Credentials?.length) { + obj.Credentials = message.Credentials.map((e) => Credential.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Credentials { + return Credentials.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Credentials { + const message = createBaseCredentials(); + message.Credentials = object.Credentials?.map((e) => Credential.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseCrackstations(): Crackstations { + return { Crackstations: [] }; +} + +export const Crackstations: MessageFns = { + encode(message: Crackstations, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Crackstations) { + Crackstation.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Crackstations { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackstations(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Crackstations.push(Crackstation.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Crackstations { + return { + Crackstations: globalThis.Array.isArray(object?.Crackstations) + ? object.Crackstations.map((e: any) => Crackstation.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Crackstations): unknown { + const obj: any = {}; + if (message.Crackstations?.length) { + obj.Crackstations = message.Crackstations.map((e) => Crackstation.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Crackstations { + return Crackstations.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Crackstations { + const message = createBaseCrackstations(); + message.Crackstations = object.Crackstations?.map((e) => Crackstation.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseCrackstationStatus(): CrackstationStatus { + return { Name: "", HostUUID: "", State: 0, CurrentCrackJobID: "", IsSyncing: false, Syncing: undefined }; +} + +export const CrackstationStatus: MessageFns = { + encode(message: CrackstationStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.HostUUID !== "") { + writer.uint32(18).string(message.HostUUID); + } + if (message.State !== 0) { + writer.uint32(24).int32(message.State); + } + if (message.CurrentCrackJobID !== "") { + writer.uint32(34).string(message.CurrentCrackJobID); + } + if (message.IsSyncing !== false) { + writer.uint32(40).bool(message.IsSyncing); + } + if (message.Syncing !== undefined) { + CrackSyncStatus.encode(message.Syncing, writer.uint32(50).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackstationStatus { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackstationStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.HostUUID = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.State = reader.int32() as any; + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.CurrentCrackJobID = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.IsSyncing = reader.bool(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Syncing = CrackSyncStatus.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackstationStatus { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + HostUUID: isSet(object.HostUUID) ? globalThis.String(object.HostUUID) : "", + State: isSet(object.State) ? statesFromJSON(object.State) : 0, + CurrentCrackJobID: isSet(object.CurrentCrackJobID) ? globalThis.String(object.CurrentCrackJobID) : "", + IsSyncing: isSet(object.IsSyncing) ? globalThis.Boolean(object.IsSyncing) : false, + Syncing: isSet(object.Syncing) ? CrackSyncStatus.fromJSON(object.Syncing) : undefined, + }; + }, + + toJSON(message: CrackstationStatus): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.HostUUID !== "") { + obj.HostUUID = message.HostUUID; + } + if (message.State !== 0) { + obj.State = statesToJSON(message.State); + } + if (message.CurrentCrackJobID !== "") { + obj.CurrentCrackJobID = message.CurrentCrackJobID; + } + if (message.IsSyncing !== false) { + obj.IsSyncing = message.IsSyncing; + } + if (message.Syncing !== undefined) { + obj.Syncing = CrackSyncStatus.toJSON(message.Syncing); + } + return obj; + }, + + create(base?: DeepPartial): CrackstationStatus { + return CrackstationStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackstationStatus { + const message = createBaseCrackstationStatus(); + message.Name = object.Name ?? ""; + message.HostUUID = object.HostUUID ?? ""; + message.State = object.State ?? 0; + message.CurrentCrackJobID = object.CurrentCrackJobID ?? ""; + message.IsSyncing = object.IsSyncing ?? false; + message.Syncing = (object.Syncing !== undefined && object.Syncing !== null) + ? CrackSyncStatus.fromPartial(object.Syncing) + : undefined; + return message; + }, +}; + +function createBaseCrackSyncStatus(): CrackSyncStatus { + return { Speed: 0, Progress: {} }; +} + +export const CrackSyncStatus: MessageFns = { + encode(message: CrackSyncStatus, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Speed !== 0) { + writer.uint32(13).float(message.Speed); + } + globalThis.Object.entries(message.Progress).forEach(([key, value]: [string, number]) => { + CrackSyncStatus_ProgressEntry.encode({ key: key as any, value }, writer.uint32(18).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackSyncStatus { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackSyncStatus(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 13) { + break; + } + + message.Speed = reader.float(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + const entry2 = CrackSyncStatus_ProgressEntry.decode(reader, reader.uint32()); + if (entry2.value !== undefined) { + message.Progress[entry2.key] = entry2.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackSyncStatus { + return { + Speed: isSet(object.Speed) ? globalThis.Number(object.Speed) : 0, + Progress: isObject(object.Progress) + ? (globalThis.Object.entries(object.Progress) as [string, any][]).reduce( + (acc: { [key: string]: number }, [key, value]: [string, any]) => { + acc[key] = globalThis.Number(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: CrackSyncStatus): unknown { + const obj: any = {}; + if (message.Speed !== 0) { + obj.Speed = message.Speed; + } + if (message.Progress) { + const entries = globalThis.Object.entries(message.Progress) as [string, number][]; + if (entries.length > 0) { + obj.Progress = {}; + entries.forEach(([k, v]) => { + obj.Progress[k] = v; + }); + } + } + return obj; + }, + + create(base?: DeepPartial): CrackSyncStatus { + return CrackSyncStatus.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackSyncStatus { + const message = createBaseCrackSyncStatus(); + message.Speed = object.Speed ?? 0; + message.Progress = (globalThis.Object.entries(object.Progress ?? {}) as [string, number][]).reduce( + (acc: { [key: string]: number }, [key, value]: [string, number]) => { + if (value !== undefined) { + acc[key] = globalThis.Number(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseCrackSyncStatus_ProgressEntry(): CrackSyncStatus_ProgressEntry { + return { key: "", value: 0 }; +} + +export const CrackSyncStatus_ProgressEntry: MessageFns = { + encode(message: CrackSyncStatus_ProgressEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== 0) { + writer.uint32(21).float(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackSyncStatus_ProgressEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackSyncStatus_ProgressEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 21) { + break; + } + + message.value = reader.float(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackSyncStatus_ProgressEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? globalThis.Number(object.value) : 0, + }; + }, + + toJSON(message: CrackSyncStatus_ProgressEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== 0) { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): CrackSyncStatus_ProgressEntry { + return CrackSyncStatus_ProgressEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackSyncStatus_ProgressEntry { + const message = createBaseCrackSyncStatus_ProgressEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? 0; + return message; + }, +}; + +function createBaseCrackBenchmark(): CrackBenchmark { + return { Name: "", HostUUID: "", Benchmarks: {} }; +} + +export const CrackBenchmark: MessageFns = { + encode(message: CrackBenchmark, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.HostUUID !== "") { + writer.uint32(18).string(message.HostUUID); + } + globalThis.Object.entries(message.Benchmarks).forEach(([key, value]: [string, string]) => { + CrackBenchmark_BenchmarksEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).join(); + }); + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackBenchmark { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackBenchmark(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.HostUUID = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + const entry3 = CrackBenchmark_BenchmarksEntry.decode(reader, reader.uint32()); + if (entry3.value !== undefined) { + message.Benchmarks[entry3.key] = entry3.value; + } + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackBenchmark { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + HostUUID: isSet(object.HostUUID) ? globalThis.String(object.HostUUID) : "", + Benchmarks: isObject(object.Benchmarks) + ? (globalThis.Object.entries(object.Benchmarks) as [string, any][]).reduce( + (acc: { [key: number]: string }, [key, value]: [string, any]) => { + acc[globalThis.Number(key)] = globalThis.String(value); + return acc; + }, + {}, + ) + : {}, + }; + }, + + toJSON(message: CrackBenchmark): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.HostUUID !== "") { + obj.HostUUID = message.HostUUID; + } + if (message.Benchmarks) { + const entries = globalThis.Object.entries(message.Benchmarks) as [string, string][]; + if (entries.length > 0) { + obj.Benchmarks = {}; + entries.forEach(([k, v]) => { + obj.Benchmarks[k] = v; + }); + } + } + return obj; + }, + + create(base?: DeepPartial): CrackBenchmark { + return CrackBenchmark.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackBenchmark { + const message = createBaseCrackBenchmark(); + message.Name = object.Name ?? ""; + message.HostUUID = object.HostUUID ?? ""; + message.Benchmarks = (globalThis.Object.entries(object.Benchmarks ?? {}) as [string, string][]).reduce( + (acc: { [key: number]: string }, [key, value]: [string, string]) => { + if (value !== undefined) { + acc[globalThis.Number(key)] = globalThis.String(value); + } + return acc; + }, + {}, + ); + return message; + }, +}; + +function createBaseCrackBenchmark_BenchmarksEntry(): CrackBenchmark_BenchmarksEntry { + return { key: 0, value: "0" }; +} + +export const CrackBenchmark_BenchmarksEntry: MessageFns = { + encode(message: CrackBenchmark_BenchmarksEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== 0) { + writer.uint32(8).int32(message.key); + } + if (message.value !== "0") { + writer.uint32(16).uint64(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackBenchmark_BenchmarksEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackBenchmark_BenchmarksEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.key = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.value = reader.uint64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackBenchmark_BenchmarksEntry { + return { + key: isSet(object.key) ? globalThis.Number(object.key) : 0, + value: isSet(object.value) ? globalThis.String(object.value) : "0", + }; + }, + + toJSON(message: CrackBenchmark_BenchmarksEntry): unknown { + const obj: any = {}; + if (message.key !== 0) { + obj.key = Math.round(message.key); + } + if (message.value !== "0") { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): CrackBenchmark_BenchmarksEntry { + return CrackBenchmark_BenchmarksEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackBenchmark_BenchmarksEntry { + const message = createBaseCrackBenchmark_BenchmarksEntry(); + message.key = object.key ?? 0; + message.value = object.value ?? "0"; + return message; + }, +}; + +function createBaseCrackTask(): CrackTask { + return { ID: "", HostUUID: "", CreatedAt: "0", StartedAt: "0", CompletedAt: "0", Err: "", Command: undefined }; +} + +export const CrackTask: MessageFns = { + encode(message: CrackTask, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.HostUUID !== "") { + writer.uint32(18).string(message.HostUUID); + } + if (message.CreatedAt !== "0") { + writer.uint32(24).int64(message.CreatedAt); + } + if (message.StartedAt !== "0") { + writer.uint32(32).int64(message.StartedAt); + } + if (message.CompletedAt !== "0") { + writer.uint32(40).int64(message.CompletedAt); + } + if (message.Err !== "") { + writer.uint32(58).string(message.Err); + } + if (message.Command !== undefined) { + CrackCommand.encode(message.Command, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackTask { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackTask(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.HostUUID = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.CreatedAt = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.StartedAt = reader.int64().toString(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.CompletedAt = reader.int64().toString(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Err = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Command = CrackCommand.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackTask { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + HostUUID: isSet(object.HostUUID) ? globalThis.String(object.HostUUID) : "", + CreatedAt: isSet(object.CreatedAt) ? globalThis.String(object.CreatedAt) : "0", + StartedAt: isSet(object.StartedAt) ? globalThis.String(object.StartedAt) : "0", + CompletedAt: isSet(object.CompletedAt) ? globalThis.String(object.CompletedAt) : "0", + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Command: isSet(object.Command) ? CrackCommand.fromJSON(object.Command) : undefined, + }; + }, + + toJSON(message: CrackTask): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.HostUUID !== "") { + obj.HostUUID = message.HostUUID; + } + if (message.CreatedAt !== "0") { + obj.CreatedAt = message.CreatedAt; + } + if (message.StartedAt !== "0") { + obj.StartedAt = message.StartedAt; + } + if (message.CompletedAt !== "0") { + obj.CompletedAt = message.CompletedAt; + } + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Command !== undefined) { + obj.Command = CrackCommand.toJSON(message.Command); + } + return obj; + }, + + create(base?: DeepPartial): CrackTask { + return CrackTask.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackTask { + const message = createBaseCrackTask(); + message.ID = object.ID ?? ""; + message.HostUUID = object.HostUUID ?? ""; + message.CreatedAt = object.CreatedAt ?? "0"; + message.StartedAt = object.StartedAt ?? "0"; + message.CompletedAt = object.CompletedAt ?? "0"; + message.Err = object.Err ?? ""; + message.Command = (object.Command !== undefined && object.Command !== null) + ? CrackCommand.fromPartial(object.Command) + : undefined; + return message; + }, +}; + +function createBaseCrackstation(): Crackstation { + return { + ID: "", + Name: "", + OperatorName: "", + GOOS: "", + GOARCH: "", + HashcatVersion: "", + HostUUID: "", + Version: "", + Benchmarks: {}, + CUDA: [], + Metal: [], + OpenCL: [], + }; +} + +export const Crackstation: MessageFns = { + encode(message: Crackstation, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.OperatorName !== "") { + writer.uint32(26).string(message.OperatorName); + } + if (message.GOOS !== "") { + writer.uint32(34).string(message.GOOS); + } + if (message.GOARCH !== "") { + writer.uint32(42).string(message.GOARCH); + } + if (message.HashcatVersion !== "") { + writer.uint32(50).string(message.HashcatVersion); + } + if (message.HostUUID !== "") { + writer.uint32(58).string(message.HostUUID); + } + if (message.Version !== "") { + writer.uint32(66).string(message.Version); + } + globalThis.Object.entries(message.Benchmarks).forEach(([key, value]: [string, string]) => { + Crackstation_BenchmarksEntry.encode({ key: key as any, value }, writer.uint32(74).fork()).join(); + }); + for (const v of message.CUDA) { + CUDABackendInfo.encode(v!, writer.uint32(802).fork()).join(); + } + for (const v of message.Metal) { + MetalBackendInfo.encode(v!, writer.uint32(810).fork()).join(); + } + for (const v of message.OpenCL) { + OpenCLBackendInfo.encode(v!, writer.uint32(818).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Crackstation { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackstation(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.OperatorName = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.GOOS = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.GOARCH = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.HashcatVersion = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.HostUUID = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Version = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + const entry9 = Crackstation_BenchmarksEntry.decode(reader, reader.uint32()); + if (entry9.value !== undefined) { + message.Benchmarks[entry9.key] = entry9.value; + } + continue; + } + case 100: { + if (tag !== 802) { + break; + } + + message.CUDA.push(CUDABackendInfo.decode(reader, reader.uint32())); + continue; + } + case 101: { + if (tag !== 810) { + break; + } + + message.Metal.push(MetalBackendInfo.decode(reader, reader.uint32())); + continue; + } + case 102: { + if (tag !== 818) { + break; + } + + message.OpenCL.push(OpenCLBackendInfo.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Crackstation { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + OperatorName: isSet(object.OperatorName) ? globalThis.String(object.OperatorName) : "", + GOOS: isSet(object.GOOS) ? globalThis.String(object.GOOS) : "", + GOARCH: isSet(object.GOARCH) ? globalThis.String(object.GOARCH) : "", + HashcatVersion: isSet(object.HashcatVersion) ? globalThis.String(object.HashcatVersion) : "", + HostUUID: isSet(object.HostUUID) ? globalThis.String(object.HostUUID) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Benchmarks: isObject(object.Benchmarks) + ? (globalThis.Object.entries(object.Benchmarks) as [string, any][]).reduce( + (acc: { [key: number]: string }, [key, value]: [string, any]) => { + acc[globalThis.Number(key)] = globalThis.String(value); + return acc; + }, + {}, + ) + : {}, + CUDA: globalThis.Array.isArray(object?.CUDA) ? object.CUDA.map((e: any) => CUDABackendInfo.fromJSON(e)) : [], + Metal: globalThis.Array.isArray(object?.Metal) ? object.Metal.map((e: any) => MetalBackendInfo.fromJSON(e)) : [], + OpenCL: globalThis.Array.isArray(object?.OpenCL) + ? object.OpenCL.map((e: any) => OpenCLBackendInfo.fromJSON(e)) + : [], + }; + }, + + toJSON(message: Crackstation): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.OperatorName !== "") { + obj.OperatorName = message.OperatorName; + } + if (message.GOOS !== "") { + obj.GOOS = message.GOOS; + } + if (message.GOARCH !== "") { + obj.GOARCH = message.GOARCH; + } + if (message.HashcatVersion !== "") { + obj.HashcatVersion = message.HashcatVersion; + } + if (message.HostUUID !== "") { + obj.HostUUID = message.HostUUID; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Benchmarks) { + const entries = globalThis.Object.entries(message.Benchmarks) as [string, string][]; + if (entries.length > 0) { + obj.Benchmarks = {}; + entries.forEach(([k, v]) => { + obj.Benchmarks[k] = v; + }); + } + } + if (message.CUDA?.length) { + obj.CUDA = message.CUDA.map((e) => CUDABackendInfo.toJSON(e)); + } + if (message.Metal?.length) { + obj.Metal = message.Metal.map((e) => MetalBackendInfo.toJSON(e)); + } + if (message.OpenCL?.length) { + obj.OpenCL = message.OpenCL.map((e) => OpenCLBackendInfo.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): Crackstation { + return Crackstation.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Crackstation { + const message = createBaseCrackstation(); + message.ID = object.ID ?? ""; + message.Name = object.Name ?? ""; + message.OperatorName = object.OperatorName ?? ""; + message.GOOS = object.GOOS ?? ""; + message.GOARCH = object.GOARCH ?? ""; + message.HashcatVersion = object.HashcatVersion ?? ""; + message.HostUUID = object.HostUUID ?? ""; + message.Version = object.Version ?? ""; + message.Benchmarks = (globalThis.Object.entries(object.Benchmarks ?? {}) as [string, string][]).reduce( + (acc: { [key: number]: string }, [key, value]: [string, string]) => { + if (value !== undefined) { + acc[globalThis.Number(key)] = globalThis.String(value); + } + return acc; + }, + {}, + ); + message.CUDA = object.CUDA?.map((e) => CUDABackendInfo.fromPartial(e)) || []; + message.Metal = object.Metal?.map((e) => MetalBackendInfo.fromPartial(e)) || []; + message.OpenCL = object.OpenCL?.map((e) => OpenCLBackendInfo.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseCrackstation_BenchmarksEntry(): Crackstation_BenchmarksEntry { + return { key: 0, value: "0" }; +} + +export const Crackstation_BenchmarksEntry: MessageFns = { + encode(message: Crackstation_BenchmarksEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== 0) { + writer.uint32(8).int32(message.key); + } + if (message.value !== "0") { + writer.uint32(16).uint64(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Crackstation_BenchmarksEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackstation_BenchmarksEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.key = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.value = reader.uint64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Crackstation_BenchmarksEntry { + return { + key: isSet(object.key) ? globalThis.Number(object.key) : 0, + value: isSet(object.value) ? globalThis.String(object.value) : "0", + }; + }, + + toJSON(message: Crackstation_BenchmarksEntry): unknown { + const obj: any = {}; + if (message.key !== 0) { + obj.key = Math.round(message.key); + } + if (message.value !== "0") { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): Crackstation_BenchmarksEntry { + return Crackstation_BenchmarksEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Crackstation_BenchmarksEntry { + const message = createBaseCrackstation_BenchmarksEntry(); + message.key = object.key ?? 0; + message.value = object.value ?? "0"; + return message; + }, +}; + +function createBaseCUDABackendInfo(): CUDABackendInfo { + return { + Type: "", + VendorID: 0, + Vendor: "", + Name: "", + Version: "", + Processors: 0, + Clock: 0, + MemoryTotal: "", + MemoryFree: "", + CUDAVersion: "", + }; +} + +export const CUDABackendInfo: MessageFns = { + encode(message: CUDABackendInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Type !== "") { + writer.uint32(10).string(message.Type); + } + if (message.VendorID !== 0) { + writer.uint32(16).int32(message.VendorID); + } + if (message.Vendor !== "") { + writer.uint32(26).string(message.Vendor); + } + if (message.Name !== "") { + writer.uint32(34).string(message.Name); + } + if (message.Version !== "") { + writer.uint32(42).string(message.Version); + } + if (message.Processors !== 0) { + writer.uint32(48).int32(message.Processors); + } + if (message.Clock !== 0) { + writer.uint32(56).int32(message.Clock); + } + if (message.MemoryTotal !== "") { + writer.uint32(66).string(message.MemoryTotal); + } + if (message.MemoryFree !== "") { + writer.uint32(74).string(message.MemoryFree); + } + if (message.CUDAVersion !== "") { + writer.uint32(82).string(message.CUDAVersion); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CUDABackendInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCUDABackendInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Type = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.VendorID = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Vendor = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Name = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Version = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Processors = reader.int32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Clock = reader.int32(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.MemoryTotal = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.MemoryFree = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.CUDAVersion = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CUDABackendInfo { + return { + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + VendorID: isSet(object.VendorID) ? globalThis.Number(object.VendorID) : 0, + Vendor: isSet(object.Vendor) ? globalThis.String(object.Vendor) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Processors: isSet(object.Processors) ? globalThis.Number(object.Processors) : 0, + Clock: isSet(object.Clock) ? globalThis.Number(object.Clock) : 0, + MemoryTotal: isSet(object.MemoryTotal) ? globalThis.String(object.MemoryTotal) : "", + MemoryFree: isSet(object.MemoryFree) ? globalThis.String(object.MemoryFree) : "", + CUDAVersion: isSet(object.CUDAVersion) ? globalThis.String(object.CUDAVersion) : "", + }; + }, + + toJSON(message: CUDABackendInfo): unknown { + const obj: any = {}; + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.VendorID !== 0) { + obj.VendorID = Math.round(message.VendorID); + } + if (message.Vendor !== "") { + obj.Vendor = message.Vendor; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Processors !== 0) { + obj.Processors = Math.round(message.Processors); + } + if (message.Clock !== 0) { + obj.Clock = Math.round(message.Clock); + } + if (message.MemoryTotal !== "") { + obj.MemoryTotal = message.MemoryTotal; + } + if (message.MemoryFree !== "") { + obj.MemoryFree = message.MemoryFree; + } + if (message.CUDAVersion !== "") { + obj.CUDAVersion = message.CUDAVersion; + } + return obj; + }, + + create(base?: DeepPartial): CUDABackendInfo { + return CUDABackendInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CUDABackendInfo { + const message = createBaseCUDABackendInfo(); + message.Type = object.Type ?? ""; + message.VendorID = object.VendorID ?? 0; + message.Vendor = object.Vendor ?? ""; + message.Name = object.Name ?? ""; + message.Version = object.Version ?? ""; + message.Processors = object.Processors ?? 0; + message.Clock = object.Clock ?? 0; + message.MemoryTotal = object.MemoryTotal ?? ""; + message.MemoryFree = object.MemoryFree ?? ""; + message.CUDAVersion = object.CUDAVersion ?? ""; + return message; + }, +}; + +function createBaseOpenCLBackendInfo(): OpenCLBackendInfo { + return { + Type: "", + VendorID: 0, + Vendor: "", + Name: "", + Version: "", + Processors: 0, + Clock: 0, + MemoryTotal: "", + MemoryFree: "", + OpenCLVersion: "", + OpenCLDriverVersion: "", + }; +} + +export const OpenCLBackendInfo: MessageFns = { + encode(message: OpenCLBackendInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Type !== "") { + writer.uint32(10).string(message.Type); + } + if (message.VendorID !== 0) { + writer.uint32(16).int32(message.VendorID); + } + if (message.Vendor !== "") { + writer.uint32(26).string(message.Vendor); + } + if (message.Name !== "") { + writer.uint32(34).string(message.Name); + } + if (message.Version !== "") { + writer.uint32(42).string(message.Version); + } + if (message.Processors !== 0) { + writer.uint32(48).int32(message.Processors); + } + if (message.Clock !== 0) { + writer.uint32(56).int32(message.Clock); + } + if (message.MemoryTotal !== "") { + writer.uint32(66).string(message.MemoryTotal); + } + if (message.MemoryFree !== "") { + writer.uint32(74).string(message.MemoryFree); + } + if (message.OpenCLVersion !== "") { + writer.uint32(82).string(message.OpenCLVersion); + } + if (message.OpenCLDriverVersion !== "") { + writer.uint32(90).string(message.OpenCLDriverVersion); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): OpenCLBackendInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOpenCLBackendInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Type = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.VendorID = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Vendor = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Name = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Version = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Processors = reader.int32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Clock = reader.int32(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.MemoryTotal = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.MemoryFree = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.OpenCLVersion = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.OpenCLDriverVersion = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): OpenCLBackendInfo { + return { + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + VendorID: isSet(object.VendorID) ? globalThis.Number(object.VendorID) : 0, + Vendor: isSet(object.Vendor) ? globalThis.String(object.Vendor) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Processors: isSet(object.Processors) ? globalThis.Number(object.Processors) : 0, + Clock: isSet(object.Clock) ? globalThis.Number(object.Clock) : 0, + MemoryTotal: isSet(object.MemoryTotal) ? globalThis.String(object.MemoryTotal) : "", + MemoryFree: isSet(object.MemoryFree) ? globalThis.String(object.MemoryFree) : "", + OpenCLVersion: isSet(object.OpenCLVersion) ? globalThis.String(object.OpenCLVersion) : "", + OpenCLDriverVersion: isSet(object.OpenCLDriverVersion) ? globalThis.String(object.OpenCLDriverVersion) : "", + }; + }, + + toJSON(message: OpenCLBackendInfo): unknown { + const obj: any = {}; + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.VendorID !== 0) { + obj.VendorID = Math.round(message.VendorID); + } + if (message.Vendor !== "") { + obj.Vendor = message.Vendor; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Processors !== 0) { + obj.Processors = Math.round(message.Processors); + } + if (message.Clock !== 0) { + obj.Clock = Math.round(message.Clock); + } + if (message.MemoryTotal !== "") { + obj.MemoryTotal = message.MemoryTotal; + } + if (message.MemoryFree !== "") { + obj.MemoryFree = message.MemoryFree; + } + if (message.OpenCLVersion !== "") { + obj.OpenCLVersion = message.OpenCLVersion; + } + if (message.OpenCLDriverVersion !== "") { + obj.OpenCLDriverVersion = message.OpenCLDriverVersion; + } + return obj; + }, + + create(base?: DeepPartial): OpenCLBackendInfo { + return OpenCLBackendInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): OpenCLBackendInfo { + const message = createBaseOpenCLBackendInfo(); + message.Type = object.Type ?? ""; + message.VendorID = object.VendorID ?? 0; + message.Vendor = object.Vendor ?? ""; + message.Name = object.Name ?? ""; + message.Version = object.Version ?? ""; + message.Processors = object.Processors ?? 0; + message.Clock = object.Clock ?? 0; + message.MemoryTotal = object.MemoryTotal ?? ""; + message.MemoryFree = object.MemoryFree ?? ""; + message.OpenCLVersion = object.OpenCLVersion ?? ""; + message.OpenCLDriverVersion = object.OpenCLDriverVersion ?? ""; + return message; + }, +}; + +function createBaseMetalBackendInfo(): MetalBackendInfo { + return { + Type: "", + VendorID: 0, + Vendor: "", + Name: "", + Version: "", + Processors: 0, + Clock: 0, + MemoryTotal: "", + MemoryFree: "", + MetalVersion: "", + }; +} + +export const MetalBackendInfo: MessageFns = { + encode(message: MetalBackendInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Type !== "") { + writer.uint32(10).string(message.Type); + } + if (message.VendorID !== 0) { + writer.uint32(16).int32(message.VendorID); + } + if (message.Vendor !== "") { + writer.uint32(26).string(message.Vendor); + } + if (message.Name !== "") { + writer.uint32(34).string(message.Name); + } + if (message.Version !== "") { + writer.uint32(42).string(message.Version); + } + if (message.Processors !== 0) { + writer.uint32(48).int32(message.Processors); + } + if (message.Clock !== 0) { + writer.uint32(56).int32(message.Clock); + } + if (message.MemoryTotal !== "") { + writer.uint32(66).string(message.MemoryTotal); + } + if (message.MemoryFree !== "") { + writer.uint32(74).string(message.MemoryFree); + } + if (message.MetalVersion !== "") { + writer.uint32(82).string(message.MetalVersion); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MetalBackendInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMetalBackendInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Type = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.VendorID = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Vendor = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Name = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Version = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Processors = reader.int32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Clock = reader.int32(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.MemoryTotal = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.MemoryFree = reader.string(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.MetalVersion = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MetalBackendInfo { + return { + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + VendorID: isSet(object.VendorID) ? globalThis.Number(object.VendorID) : 0, + Vendor: isSet(object.Vendor) ? globalThis.String(object.Vendor) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + Processors: isSet(object.Processors) ? globalThis.Number(object.Processors) : 0, + Clock: isSet(object.Clock) ? globalThis.Number(object.Clock) : 0, + MemoryTotal: isSet(object.MemoryTotal) ? globalThis.String(object.MemoryTotal) : "", + MemoryFree: isSet(object.MemoryFree) ? globalThis.String(object.MemoryFree) : "", + MetalVersion: isSet(object.MetalVersion) ? globalThis.String(object.MetalVersion) : "", + }; + }, + + toJSON(message: MetalBackendInfo): unknown { + const obj: any = {}; + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.VendorID !== 0) { + obj.VendorID = Math.round(message.VendorID); + } + if (message.Vendor !== "") { + obj.Vendor = message.Vendor; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.Processors !== 0) { + obj.Processors = Math.round(message.Processors); + } + if (message.Clock !== 0) { + obj.Clock = Math.round(message.Clock); + } + if (message.MemoryTotal !== "") { + obj.MemoryTotal = message.MemoryTotal; + } + if (message.MemoryFree !== "") { + obj.MemoryFree = message.MemoryFree; + } + if (message.MetalVersion !== "") { + obj.MetalVersion = message.MetalVersion; + } + return obj; + }, + + create(base?: DeepPartial): MetalBackendInfo { + return MetalBackendInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MetalBackendInfo { + const message = createBaseMetalBackendInfo(); + message.Type = object.Type ?? ""; + message.VendorID = object.VendorID ?? 0; + message.Vendor = object.Vendor ?? ""; + message.Name = object.Name ?? ""; + message.Version = object.Version ?? ""; + message.Processors = object.Processors ?? 0; + message.Clock = object.Clock ?? 0; + message.MemoryTotal = object.MemoryTotal ?? ""; + message.MemoryFree = object.MemoryFree ?? ""; + message.MetalVersion = object.MetalVersion ?? ""; + return message; + }, +}; + +function createBaseCrackCommand(): CrackCommand { + return { + AttackMode: 0, + HashType: 0, + Hashes: [], + Quiet: false, + HexCharset: false, + HexSalt: false, + HexWordlist: false, + Force: false, + DeprecatedCheckDisable: false, + Status: false, + StatusJSON: false, + StatusTimer: 0, + StdinTimeoutAbort: 0, + MachineReadable: false, + KeepGuessing: false, + SelfTestDisable: false, + Loopback: false, + MarkovHcstat2: Buffer.alloc(0), + MarkovDisable: false, + MarkovClassic: false, + MarkovInverse: false, + MarkovThreshold: 0, + Runtime: 0, + Session: "", + Restore: false, + RestoreDisable: false, + RestoreFile: Buffer.alloc(0), + OutfileFormat: [], + OutfileAutohexDisable: false, + OutfileCheckTimer: 0, + WordlistAutohexDisable: false, + Separator: "", + Stdout: false, + Show: false, + Left: false, + Username: false, + Remove: false, + RemoveTimer: 0, + PotfileDisable: false, + Potfile: Buffer.alloc(0), + EncodingFrom: 0, + EncodingTo: 0, + DebugMode: 0, + LogfileDisable: false, + HccapxMessagePair: 0, + NonceErrorCorrections: 0, + KeyboardLayoutMapping: Buffer.alloc(0), + Benchmark: false, + BenchmarkAll: false, + SpeedOnly: false, + ProgressOnly: false, + SegmentSize: 0, + BitmapMin: 0, + BitmapMax: 0, + CPUAffinity: [], + HookThreads: 0, + HashInfo: false, + BackendIgnoreCUDA: false, + BackendIgnoreHip: false, + BackendIgnoreMetal: false, + BackendIgnoreOpenCL: false, + BackendInfo: false, + BackendDevices: [], + OpenCLDeviceTypes: [], + OptimizedKernelEnable: false, + MultiplyAccelDisabled: false, + WorkloadProfile: 0, + KernelAccel: 0, + KernelLoops: 0, + KernelThreads: 0, + BackendVectorWidth: 0, + SpinDamp: 0, + HwmonDisable: false, + HwmonTempAbort: 0, + ScryptTMTO: 0, + Skip: "0", + Limit: "0", + Keyspace: false, + RulesFile: Buffer.alloc(0), + GenerateRules: 0, + GenerateRulesFunMin: 0, + GenerateRulesFunMax: 0, + GenerateRulesFuncSel: "", + GenerateRulesSeed: 0, + CustomCharset1: "", + CustomCharset2: "", + CustomCharset3: "", + CustomCharset4: "", + Identify: "", + Increment: false, + IncrementMin: 0, + IncrementMax: 0, + SlowCandidates: false, + BrainServer: false, + BrainServerTimer: 0, + BrainClient: false, + BrainClientFeatures: "", + BrainHost: "", + BrainPort: 0, + BrainPassword: "", + BrainSession: "", + BrainSessionWhitelist: "", + }; +} + +export const CrackCommand: MessageFns = { + encode(message: CrackCommand, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.AttackMode !== 0) { + writer.uint32(8).int32(message.AttackMode); + } + if (message.HashType !== 0) { + writer.uint32(16).int32(message.HashType); + } + for (const v of message.Hashes) { + writer.uint32(26).string(v!); + } + if (message.Quiet !== false) { + writer.uint32(32).bool(message.Quiet); + } + if (message.HexCharset !== false) { + writer.uint32(40).bool(message.HexCharset); + } + if (message.HexSalt !== false) { + writer.uint32(48).bool(message.HexSalt); + } + if (message.HexWordlist !== false) { + writer.uint32(56).bool(message.HexWordlist); + } + if (message.Force !== false) { + writer.uint32(64).bool(message.Force); + } + if (message.DeprecatedCheckDisable !== false) { + writer.uint32(72).bool(message.DeprecatedCheckDisable); + } + if (message.Status !== false) { + writer.uint32(80).bool(message.Status); + } + if (message.StatusJSON !== false) { + writer.uint32(88).bool(message.StatusJSON); + } + if (message.StatusTimer !== 0) { + writer.uint32(96).uint32(message.StatusTimer); + } + if (message.StdinTimeoutAbort !== 0) { + writer.uint32(104).uint32(message.StdinTimeoutAbort); + } + if (message.MachineReadable !== false) { + writer.uint32(112).bool(message.MachineReadable); + } + if (message.KeepGuessing !== false) { + writer.uint32(120).bool(message.KeepGuessing); + } + if (message.SelfTestDisable !== false) { + writer.uint32(128).bool(message.SelfTestDisable); + } + if (message.Loopback !== false) { + writer.uint32(136).bool(message.Loopback); + } + if (message.MarkovHcstat2.length !== 0) { + writer.uint32(146).bytes(message.MarkovHcstat2); + } + if (message.MarkovDisable !== false) { + writer.uint32(152).bool(message.MarkovDisable); + } + if (message.MarkovClassic !== false) { + writer.uint32(160).bool(message.MarkovClassic); + } + if (message.MarkovInverse !== false) { + writer.uint32(168).bool(message.MarkovInverse); + } + if (message.MarkovThreshold !== 0) { + writer.uint32(176).uint32(message.MarkovThreshold); + } + if (message.Runtime !== 0) { + writer.uint32(184).uint32(message.Runtime); + } + if (message.Session !== "") { + writer.uint32(194).string(message.Session); + } + if (message.Restore !== false) { + writer.uint32(200).bool(message.Restore); + } + if (message.RestoreDisable !== false) { + writer.uint32(208).bool(message.RestoreDisable); + } + if (message.RestoreFile.length !== 0) { + writer.uint32(218).bytes(message.RestoreFile); + } + writer.uint32(234).fork(); + for (const v of message.OutfileFormat) { + writer.int32(v); + } + writer.join(); + if (message.OutfileAutohexDisable !== false) { + writer.uint32(240).bool(message.OutfileAutohexDisable); + } + if (message.OutfileCheckTimer !== 0) { + writer.uint32(248).uint32(message.OutfileCheckTimer); + } + if (message.WordlistAutohexDisable !== false) { + writer.uint32(256).bool(message.WordlistAutohexDisable); + } + if (message.Separator !== "") { + writer.uint32(266).string(message.Separator); + } + if (message.Stdout !== false) { + writer.uint32(272).bool(message.Stdout); + } + if (message.Show !== false) { + writer.uint32(280).bool(message.Show); + } + if (message.Left !== false) { + writer.uint32(288).bool(message.Left); + } + if (message.Username !== false) { + writer.uint32(296).bool(message.Username); + } + if (message.Remove !== false) { + writer.uint32(304).bool(message.Remove); + } + if (message.RemoveTimer !== 0) { + writer.uint32(312).uint32(message.RemoveTimer); + } + if (message.PotfileDisable !== false) { + writer.uint32(320).bool(message.PotfileDisable); + } + if (message.Potfile.length !== 0) { + writer.uint32(330).bytes(message.Potfile); + } + if (message.EncodingFrom !== 0) { + writer.uint32(336).int32(message.EncodingFrom); + } + if (message.EncodingTo !== 0) { + writer.uint32(344).int32(message.EncodingTo); + } + if (message.DebugMode !== 0) { + writer.uint32(352).uint32(message.DebugMode); + } + if (message.LogfileDisable !== false) { + writer.uint32(384).bool(message.LogfileDisable); + } + if (message.HccapxMessagePair !== 0) { + writer.uint32(392).uint32(message.HccapxMessagePair); + } + if (message.NonceErrorCorrections !== 0) { + writer.uint32(400).uint32(message.NonceErrorCorrections); + } + if (message.KeyboardLayoutMapping.length !== 0) { + writer.uint32(410).bytes(message.KeyboardLayoutMapping); + } + if (message.Benchmark !== false) { + writer.uint32(448).bool(message.Benchmark); + } + if (message.BenchmarkAll !== false) { + writer.uint32(456).bool(message.BenchmarkAll); + } + if (message.SpeedOnly !== false) { + writer.uint32(464).bool(message.SpeedOnly); + } + if (message.ProgressOnly !== false) { + writer.uint32(472).bool(message.ProgressOnly); + } + if (message.SegmentSize !== 0) { + writer.uint32(480).uint32(message.SegmentSize); + } + if (message.BitmapMin !== 0) { + writer.uint32(488).uint32(message.BitmapMin); + } + if (message.BitmapMax !== 0) { + writer.uint32(496).uint32(message.BitmapMax); + } + writer.uint32(506).fork(); + for (const v of message.CPUAffinity) { + writer.uint32(v); + } + writer.join(); + if (message.HookThreads !== 0) { + writer.uint32(512).uint32(message.HookThreads); + } + if (message.HashInfo !== false) { + writer.uint32(520).bool(message.HashInfo); + } + if (message.BackendIgnoreCUDA !== false) { + writer.uint32(536).bool(message.BackendIgnoreCUDA); + } + if (message.BackendIgnoreHip !== false) { + writer.uint32(544).bool(message.BackendIgnoreHip); + } + if (message.BackendIgnoreMetal !== false) { + writer.uint32(552).bool(message.BackendIgnoreMetal); + } + if (message.BackendIgnoreOpenCL !== false) { + writer.uint32(560).bool(message.BackendIgnoreOpenCL); + } + if (message.BackendInfo !== false) { + writer.uint32(568).bool(message.BackendInfo); + } + writer.uint32(578).fork(); + for (const v of message.BackendDevices) { + writer.uint32(v); + } + writer.join(); + writer.uint32(586).fork(); + for (const v of message.OpenCLDeviceTypes) { + writer.uint32(v); + } + writer.join(); + if (message.OptimizedKernelEnable !== false) { + writer.uint32(592).bool(message.OptimizedKernelEnable); + } + if (message.MultiplyAccelDisabled !== false) { + writer.uint32(600).bool(message.MultiplyAccelDisabled); + } + if (message.WorkloadProfile !== 0) { + writer.uint32(608).int32(message.WorkloadProfile); + } + if (message.KernelAccel !== 0) { + writer.uint32(616).uint32(message.KernelAccel); + } + if (message.KernelLoops !== 0) { + writer.uint32(624).uint32(message.KernelLoops); + } + if (message.KernelThreads !== 0) { + writer.uint32(632).uint32(message.KernelThreads); + } + if (message.BackendVectorWidth !== 0) { + writer.uint32(640).uint32(message.BackendVectorWidth); + } + if (message.SpinDamp !== 0) { + writer.uint32(648).uint32(message.SpinDamp); + } + if (message.HwmonDisable !== false) { + writer.uint32(656).bool(message.HwmonDisable); + } + if (message.HwmonTempAbort !== 0) { + writer.uint32(664).uint32(message.HwmonTempAbort); + } + if (message.ScryptTMTO !== 0) { + writer.uint32(672).uint32(message.ScryptTMTO); + } + if (message.Skip !== "0") { + writer.uint32(680).uint64(message.Skip); + } + if (message.Limit !== "0") { + writer.uint32(688).uint64(message.Limit); + } + if (message.Keyspace !== false) { + writer.uint32(696).bool(message.Keyspace); + } + if (message.RulesFile.length !== 0) { + writer.uint32(722).bytes(message.RulesFile); + } + if (message.GenerateRules !== 0) { + writer.uint32(728).uint32(message.GenerateRules); + } + if (message.GenerateRulesFunMin !== 0) { + writer.uint32(736).uint32(message.GenerateRulesFunMin); + } + if (message.GenerateRulesFunMax !== 0) { + writer.uint32(744).uint32(message.GenerateRulesFunMax); + } + if (message.GenerateRulesFuncSel !== "") { + writer.uint32(754).string(message.GenerateRulesFuncSel); + } + if (message.GenerateRulesSeed !== 0) { + writer.uint32(760).int32(message.GenerateRulesSeed); + } + if (message.CustomCharset1 !== "") { + writer.uint32(770).string(message.CustomCharset1); + } + if (message.CustomCharset2 !== "") { + writer.uint32(778).string(message.CustomCharset2); + } + if (message.CustomCharset3 !== "") { + writer.uint32(786).string(message.CustomCharset3); + } + if (message.CustomCharset4 !== "") { + writer.uint32(794).string(message.CustomCharset4); + } + if (message.Identify !== "") { + writer.uint32(802).string(message.Identify); + } + if (message.Increment !== false) { + writer.uint32(808).bool(message.Increment); + } + if (message.IncrementMin !== 0) { + writer.uint32(816).uint32(message.IncrementMin); + } + if (message.IncrementMax !== 0) { + writer.uint32(824).uint32(message.IncrementMax); + } + if (message.SlowCandidates !== false) { + writer.uint32(832).bool(message.SlowCandidates); + } + if (message.BrainServer !== false) { + writer.uint32(840).bool(message.BrainServer); + } + if (message.BrainServerTimer !== 0) { + writer.uint32(848).uint32(message.BrainServerTimer); + } + if (message.BrainClient !== false) { + writer.uint32(856).bool(message.BrainClient); + } + if (message.BrainClientFeatures !== "") { + writer.uint32(866).string(message.BrainClientFeatures); + } + if (message.BrainHost !== "") { + writer.uint32(874).string(message.BrainHost); + } + if (message.BrainPort !== 0) { + writer.uint32(880).uint32(message.BrainPort); + } + if (message.BrainPassword !== "") { + writer.uint32(890).string(message.BrainPassword); + } + if (message.BrainSession !== "") { + writer.uint32(898).string(message.BrainSession); + } + if (message.BrainSessionWhitelist !== "") { + writer.uint32(906).string(message.BrainSessionWhitelist); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackCommand { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackCommand(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.AttackMode = reader.int32() as any; + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.HashType = reader.int32() as any; + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Hashes.push(reader.string()); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Quiet = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.HexCharset = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.HexSalt = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.HexWordlist = reader.bool(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.Force = reader.bool(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.DeprecatedCheckDisable = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.Status = reader.bool(); + continue; + } + case 11: { + if (tag !== 88) { + break; + } + + message.StatusJSON = reader.bool(); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.StatusTimer = reader.uint32(); + continue; + } + case 13: { + if (tag !== 104) { + break; + } + + message.StdinTimeoutAbort = reader.uint32(); + continue; + } + case 14: { + if (tag !== 112) { + break; + } + + message.MachineReadable = reader.bool(); + continue; + } + case 15: { + if (tag !== 120) { + break; + } + + message.KeepGuessing = reader.bool(); + continue; + } + case 16: { + if (tag !== 128) { + break; + } + + message.SelfTestDisable = reader.bool(); + continue; + } + case 17: { + if (tag !== 136) { + break; + } + + message.Loopback = reader.bool(); + continue; + } + case 18: { + if (tag !== 146) { + break; + } + + message.MarkovHcstat2 = Buffer.from(reader.bytes()); + continue; + } + case 19: { + if (tag !== 152) { + break; + } + + message.MarkovDisable = reader.bool(); + continue; + } + case 20: { + if (tag !== 160) { + break; + } + + message.MarkovClassic = reader.bool(); + continue; + } + case 21: { + if (tag !== 168) { + break; + } + + message.MarkovInverse = reader.bool(); + continue; + } + case 22: { + if (tag !== 176) { + break; + } + + message.MarkovThreshold = reader.uint32(); + continue; + } + case 23: { + if (tag !== 184) { + break; + } + + message.Runtime = reader.uint32(); + continue; + } + case 24: { + if (tag !== 194) { + break; + } + + message.Session = reader.string(); + continue; + } + case 25: { + if (tag !== 200) { + break; + } + + message.Restore = reader.bool(); + continue; + } + case 26: { + if (tag !== 208) { + break; + } + + message.RestoreDisable = reader.bool(); + continue; + } + case 27: { + if (tag !== 218) { + break; + } + + message.RestoreFile = Buffer.from(reader.bytes()); + continue; + } + case 29: { + if (tag === 232) { + message.OutfileFormat.push(reader.int32() as any); + + continue; + } + + if (tag === 234) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.OutfileFormat.push(reader.int32() as any); + } + + continue; + } + + break; + } + case 30: { + if (tag !== 240) { + break; + } + + message.OutfileAutohexDisable = reader.bool(); + continue; + } + case 31: { + if (tag !== 248) { + break; + } + + message.OutfileCheckTimer = reader.uint32(); + continue; + } + case 32: { + if (tag !== 256) { + break; + } + + message.WordlistAutohexDisable = reader.bool(); + continue; + } + case 33: { + if (tag !== 266) { + break; + } + + message.Separator = reader.string(); + continue; + } + case 34: { + if (tag !== 272) { + break; + } + + message.Stdout = reader.bool(); + continue; + } + case 35: { + if (tag !== 280) { + break; + } + + message.Show = reader.bool(); + continue; + } + case 36: { + if (tag !== 288) { + break; + } + + message.Left = reader.bool(); + continue; + } + case 37: { + if (tag !== 296) { + break; + } + + message.Username = reader.bool(); + continue; + } + case 38: { + if (tag !== 304) { + break; + } + + message.Remove = reader.bool(); + continue; + } + case 39: { + if (tag !== 312) { + break; + } + + message.RemoveTimer = reader.uint32(); + continue; + } + case 40: { + if (tag !== 320) { + break; + } + + message.PotfileDisable = reader.bool(); + continue; + } + case 41: { + if (tag !== 330) { + break; + } + + message.Potfile = Buffer.from(reader.bytes()); + continue; + } + case 42: { + if (tag !== 336) { + break; + } + + message.EncodingFrom = reader.int32() as any; + continue; + } + case 43: { + if (tag !== 344) { + break; + } + + message.EncodingTo = reader.int32() as any; + continue; + } + case 44: { + if (tag !== 352) { + break; + } + + message.DebugMode = reader.uint32(); + continue; + } + case 48: { + if (tag !== 384) { + break; + } + + message.LogfileDisable = reader.bool(); + continue; + } + case 49: { + if (tag !== 392) { + break; + } + + message.HccapxMessagePair = reader.uint32(); + continue; + } + case 50: { + if (tag !== 400) { + break; + } + + message.NonceErrorCorrections = reader.uint32(); + continue; + } + case 51: { + if (tag !== 410) { + break; + } + + message.KeyboardLayoutMapping = Buffer.from(reader.bytes()); + continue; + } + case 56: { + if (tag !== 448) { + break; + } + + message.Benchmark = reader.bool(); + continue; + } + case 57: { + if (tag !== 456) { + break; + } + + message.BenchmarkAll = reader.bool(); + continue; + } + case 58: { + if (tag !== 464) { + break; + } + + message.SpeedOnly = reader.bool(); + continue; + } + case 59: { + if (tag !== 472) { + break; + } + + message.ProgressOnly = reader.bool(); + continue; + } + case 60: { + if (tag !== 480) { + break; + } + + message.SegmentSize = reader.uint32(); + continue; + } + case 61: { + if (tag !== 488) { + break; + } + + message.BitmapMin = reader.uint32(); + continue; + } + case 62: { + if (tag !== 496) { + break; + } + + message.BitmapMax = reader.uint32(); + continue; + } + case 63: { + if (tag === 504) { + message.CPUAffinity.push(reader.uint32()); + + continue; + } + + if (tag === 506) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.CPUAffinity.push(reader.uint32()); + } + + continue; + } + + break; + } + case 64: { + if (tag !== 512) { + break; + } + + message.HookThreads = reader.uint32(); + continue; + } + case 65: { + if (tag !== 520) { + break; + } + + message.HashInfo = reader.bool(); + continue; + } + case 67: { + if (tag !== 536) { + break; + } + + message.BackendIgnoreCUDA = reader.bool(); + continue; + } + case 68: { + if (tag !== 544) { + break; + } + + message.BackendIgnoreHip = reader.bool(); + continue; + } + case 69: { + if (tag !== 552) { + break; + } + + message.BackendIgnoreMetal = reader.bool(); + continue; + } + case 70: { + if (tag !== 560) { + break; + } + + message.BackendIgnoreOpenCL = reader.bool(); + continue; + } + case 71: { + if (tag !== 568) { + break; + } + + message.BackendInfo = reader.bool(); + continue; + } + case 72: { + if (tag === 576) { + message.BackendDevices.push(reader.uint32()); + + continue; + } + + if (tag === 578) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.BackendDevices.push(reader.uint32()); + } + + continue; + } + + break; + } + case 73: { + if (tag === 584) { + message.OpenCLDeviceTypes.push(reader.uint32()); + + continue; + } + + if (tag === 586) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.OpenCLDeviceTypes.push(reader.uint32()); + } + + continue; + } + + break; + } + case 74: { + if (tag !== 592) { + break; + } + + message.OptimizedKernelEnable = reader.bool(); + continue; + } + case 75: { + if (tag !== 600) { + break; + } + + message.MultiplyAccelDisabled = reader.bool(); + continue; + } + case 76: { + if (tag !== 608) { + break; + } + + message.WorkloadProfile = reader.int32() as any; + continue; + } + case 77: { + if (tag !== 616) { + break; + } + + message.KernelAccel = reader.uint32(); + continue; + } + case 78: { + if (tag !== 624) { + break; + } + + message.KernelLoops = reader.uint32(); + continue; + } + case 79: { + if (tag !== 632) { + break; + } + + message.KernelThreads = reader.uint32(); + continue; + } + case 80: { + if (tag !== 640) { + break; + } + + message.BackendVectorWidth = reader.uint32(); + continue; + } + case 81: { + if (tag !== 648) { + break; + } + + message.SpinDamp = reader.uint32(); + continue; + } + case 82: { + if (tag !== 656) { + break; + } + + message.HwmonDisable = reader.bool(); + continue; + } + case 83: { + if (tag !== 664) { + break; + } + + message.HwmonTempAbort = reader.uint32(); + continue; + } + case 84: { + if (tag !== 672) { + break; + } + + message.ScryptTMTO = reader.uint32(); + continue; + } + case 85: { + if (tag !== 680) { + break; + } + + message.Skip = reader.uint64().toString(); + continue; + } + case 86: { + if (tag !== 688) { + break; + } + + message.Limit = reader.uint64().toString(); + continue; + } + case 87: { + if (tag !== 696) { + break; + } + + message.Keyspace = reader.bool(); + continue; + } + case 90: { + if (tag !== 722) { + break; + } + + message.RulesFile = Buffer.from(reader.bytes()); + continue; + } + case 91: { + if (tag !== 728) { + break; + } + + message.GenerateRules = reader.uint32(); + continue; + } + case 92: { + if (tag !== 736) { + break; + } + + message.GenerateRulesFunMin = reader.uint32(); + continue; + } + case 93: { + if (tag !== 744) { + break; + } + + message.GenerateRulesFunMax = reader.uint32(); + continue; + } + case 94: { + if (tag !== 754) { + break; + } + + message.GenerateRulesFuncSel = reader.string(); + continue; + } + case 95: { + if (tag !== 760) { + break; + } + + message.GenerateRulesSeed = reader.int32(); + continue; + } + case 96: { + if (tag !== 770) { + break; + } + + message.CustomCharset1 = reader.string(); + continue; + } + case 97: { + if (tag !== 778) { + break; + } + + message.CustomCharset2 = reader.string(); + continue; + } + case 98: { + if (tag !== 786) { + break; + } + + message.CustomCharset3 = reader.string(); + continue; + } + case 99: { + if (tag !== 794) { + break; + } + + message.CustomCharset4 = reader.string(); + continue; + } + case 100: { + if (tag !== 802) { + break; + } + + message.Identify = reader.string(); + continue; + } + case 101: { + if (tag !== 808) { + break; + } + + message.Increment = reader.bool(); + continue; + } + case 102: { + if (tag !== 816) { + break; + } + + message.IncrementMin = reader.uint32(); + continue; + } + case 103: { + if (tag !== 824) { + break; + } + + message.IncrementMax = reader.uint32(); + continue; + } + case 104: { + if (tag !== 832) { + break; + } + + message.SlowCandidates = reader.bool(); + continue; + } + case 105: { + if (tag !== 840) { + break; + } + + message.BrainServer = reader.bool(); + continue; + } + case 106: { + if (tag !== 848) { + break; + } + + message.BrainServerTimer = reader.uint32(); + continue; + } + case 107: { + if (tag !== 856) { + break; + } + + message.BrainClient = reader.bool(); + continue; + } + case 108: { + if (tag !== 866) { + break; + } + + message.BrainClientFeatures = reader.string(); + continue; + } + case 109: { + if (tag !== 874) { + break; + } + + message.BrainHost = reader.string(); + continue; + } + case 110: { + if (tag !== 880) { + break; + } + + message.BrainPort = reader.uint32(); + continue; + } + case 111: { + if (tag !== 890) { + break; + } + + message.BrainPassword = reader.string(); + continue; + } + case 112: { + if (tag !== 898) { + break; + } + + message.BrainSession = reader.string(); + continue; + } + case 113: { + if (tag !== 906) { + break; + } + + message.BrainSessionWhitelist = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackCommand { + return { + AttackMode: isSet(object.AttackMode) ? crackAttackModeFromJSON(object.AttackMode) : 0, + HashType: isSet(object.HashType) ? hashTypeFromJSON(object.HashType) : 0, + Hashes: globalThis.Array.isArray(object?.Hashes) ? object.Hashes.map((e: any) => globalThis.String(e)) : [], + Quiet: isSet(object.Quiet) ? globalThis.Boolean(object.Quiet) : false, + HexCharset: isSet(object.HexCharset) ? globalThis.Boolean(object.HexCharset) : false, + HexSalt: isSet(object.HexSalt) ? globalThis.Boolean(object.HexSalt) : false, + HexWordlist: isSet(object.HexWordlist) ? globalThis.Boolean(object.HexWordlist) : false, + Force: isSet(object.Force) ? globalThis.Boolean(object.Force) : false, + DeprecatedCheckDisable: isSet(object.DeprecatedCheckDisable) + ? globalThis.Boolean(object.DeprecatedCheckDisable) + : false, + Status: isSet(object.Status) ? globalThis.Boolean(object.Status) : false, + StatusJSON: isSet(object.StatusJSON) ? globalThis.Boolean(object.StatusJSON) : false, + StatusTimer: isSet(object.StatusTimer) ? globalThis.Number(object.StatusTimer) : 0, + StdinTimeoutAbort: isSet(object.StdinTimeoutAbort) ? globalThis.Number(object.StdinTimeoutAbort) : 0, + MachineReadable: isSet(object.MachineReadable) ? globalThis.Boolean(object.MachineReadable) : false, + KeepGuessing: isSet(object.KeepGuessing) ? globalThis.Boolean(object.KeepGuessing) : false, + SelfTestDisable: isSet(object.SelfTestDisable) ? globalThis.Boolean(object.SelfTestDisable) : false, + Loopback: isSet(object.Loopback) ? globalThis.Boolean(object.Loopback) : false, + MarkovHcstat2: isSet(object.MarkovHcstat2) ? Buffer.from(bytesFromBase64(object.MarkovHcstat2)) : Buffer.alloc(0), + MarkovDisable: isSet(object.MarkovDisable) ? globalThis.Boolean(object.MarkovDisable) : false, + MarkovClassic: isSet(object.MarkovClassic) ? globalThis.Boolean(object.MarkovClassic) : false, + MarkovInverse: isSet(object.MarkovInverse) ? globalThis.Boolean(object.MarkovInverse) : false, + MarkovThreshold: isSet(object.MarkovThreshold) ? globalThis.Number(object.MarkovThreshold) : 0, + Runtime: isSet(object.Runtime) ? globalThis.Number(object.Runtime) : 0, + Session: isSet(object.Session) ? globalThis.String(object.Session) : "", + Restore: isSet(object.Restore) ? globalThis.Boolean(object.Restore) : false, + RestoreDisable: isSet(object.RestoreDisable) ? globalThis.Boolean(object.RestoreDisable) : false, + RestoreFile: isSet(object.RestoreFile) ? Buffer.from(bytesFromBase64(object.RestoreFile)) : Buffer.alloc(0), + OutfileFormat: globalThis.Array.isArray(object?.OutfileFormat) + ? object.OutfileFormat.map((e: any) => crackOutfileFormatFromJSON(e)) + : [], + OutfileAutohexDisable: isSet(object.OutfileAutohexDisable) + ? globalThis.Boolean(object.OutfileAutohexDisable) + : false, + OutfileCheckTimer: isSet(object.OutfileCheckTimer) ? globalThis.Number(object.OutfileCheckTimer) : 0, + WordlistAutohexDisable: isSet(object.WordlistAutohexDisable) + ? globalThis.Boolean(object.WordlistAutohexDisable) + : false, + Separator: isSet(object.Separator) ? globalThis.String(object.Separator) : "", + Stdout: isSet(object.Stdout) ? globalThis.Boolean(object.Stdout) : false, + Show: isSet(object.Show) ? globalThis.Boolean(object.Show) : false, + Left: isSet(object.Left) ? globalThis.Boolean(object.Left) : false, + Username: isSet(object.Username) ? globalThis.Boolean(object.Username) : false, + Remove: isSet(object.Remove) ? globalThis.Boolean(object.Remove) : false, + RemoveTimer: isSet(object.RemoveTimer) ? globalThis.Number(object.RemoveTimer) : 0, + PotfileDisable: isSet(object.PotfileDisable) ? globalThis.Boolean(object.PotfileDisable) : false, + Potfile: isSet(object.Potfile) ? Buffer.from(bytesFromBase64(object.Potfile)) : Buffer.alloc(0), + EncodingFrom: isSet(object.EncodingFrom) ? crackEncodingFromJSON(object.EncodingFrom) : 0, + EncodingTo: isSet(object.EncodingTo) ? crackEncodingFromJSON(object.EncodingTo) : 0, + DebugMode: isSet(object.DebugMode) ? globalThis.Number(object.DebugMode) : 0, + LogfileDisable: isSet(object.LogfileDisable) ? globalThis.Boolean(object.LogfileDisable) : false, + HccapxMessagePair: isSet(object.HccapxMessagePair) ? globalThis.Number(object.HccapxMessagePair) : 0, + NonceErrorCorrections: isSet(object.NonceErrorCorrections) ? globalThis.Number(object.NonceErrorCorrections) : 0, + KeyboardLayoutMapping: isSet(object.KeyboardLayoutMapping) + ? Buffer.from(bytesFromBase64(object.KeyboardLayoutMapping)) + : Buffer.alloc(0), + Benchmark: isSet(object.Benchmark) ? globalThis.Boolean(object.Benchmark) : false, + BenchmarkAll: isSet(object.BenchmarkAll) ? globalThis.Boolean(object.BenchmarkAll) : false, + SpeedOnly: isSet(object.SpeedOnly) ? globalThis.Boolean(object.SpeedOnly) : false, + ProgressOnly: isSet(object.ProgressOnly) ? globalThis.Boolean(object.ProgressOnly) : false, + SegmentSize: isSet(object.SegmentSize) ? globalThis.Number(object.SegmentSize) : 0, + BitmapMin: isSet(object.BitmapMin) ? globalThis.Number(object.BitmapMin) : 0, + BitmapMax: isSet(object.BitmapMax) ? globalThis.Number(object.BitmapMax) : 0, + CPUAffinity: globalThis.Array.isArray(object?.CPUAffinity) + ? object.CPUAffinity.map((e: any) => globalThis.Number(e)) + : [], + HookThreads: isSet(object.HookThreads) ? globalThis.Number(object.HookThreads) : 0, + HashInfo: isSet(object.HashInfo) ? globalThis.Boolean(object.HashInfo) : false, + BackendIgnoreCUDA: isSet(object.BackendIgnoreCUDA) ? globalThis.Boolean(object.BackendIgnoreCUDA) : false, + BackendIgnoreHip: isSet(object.BackendIgnoreHip) ? globalThis.Boolean(object.BackendIgnoreHip) : false, + BackendIgnoreMetal: isSet(object.BackendIgnoreMetal) ? globalThis.Boolean(object.BackendIgnoreMetal) : false, + BackendIgnoreOpenCL: isSet(object.BackendIgnoreOpenCL) ? globalThis.Boolean(object.BackendIgnoreOpenCL) : false, + BackendInfo: isSet(object.BackendInfo) ? globalThis.Boolean(object.BackendInfo) : false, + BackendDevices: globalThis.Array.isArray(object?.BackendDevices) + ? object.BackendDevices.map((e: any) => globalThis.Number(e)) + : [], + OpenCLDeviceTypes: globalThis.Array.isArray(object?.OpenCLDeviceTypes) + ? object.OpenCLDeviceTypes.map((e: any) => globalThis.Number(e)) + : [], + OptimizedKernelEnable: isSet(object.OptimizedKernelEnable) + ? globalThis.Boolean(object.OptimizedKernelEnable) + : false, + MultiplyAccelDisabled: isSet(object.MultiplyAccelDisabled) + ? globalThis.Boolean(object.MultiplyAccelDisabled) + : false, + WorkloadProfile: isSet(object.WorkloadProfile) ? crackWorkloadProfileFromJSON(object.WorkloadProfile) : 0, + KernelAccel: isSet(object.KernelAccel) ? globalThis.Number(object.KernelAccel) : 0, + KernelLoops: isSet(object.KernelLoops) ? globalThis.Number(object.KernelLoops) : 0, + KernelThreads: isSet(object.KernelThreads) ? globalThis.Number(object.KernelThreads) : 0, + BackendVectorWidth: isSet(object.BackendVectorWidth) ? globalThis.Number(object.BackendVectorWidth) : 0, + SpinDamp: isSet(object.SpinDamp) ? globalThis.Number(object.SpinDamp) : 0, + HwmonDisable: isSet(object.HwmonDisable) ? globalThis.Boolean(object.HwmonDisable) : false, + HwmonTempAbort: isSet(object.HwmonTempAbort) ? globalThis.Number(object.HwmonTempAbort) : 0, + ScryptTMTO: isSet(object.ScryptTMTO) ? globalThis.Number(object.ScryptTMTO) : 0, + Skip: isSet(object.Skip) ? globalThis.String(object.Skip) : "0", + Limit: isSet(object.Limit) ? globalThis.String(object.Limit) : "0", + Keyspace: isSet(object.Keyspace) ? globalThis.Boolean(object.Keyspace) : false, + RulesFile: isSet(object.RulesFile) ? Buffer.from(bytesFromBase64(object.RulesFile)) : Buffer.alloc(0), + GenerateRules: isSet(object.GenerateRules) ? globalThis.Number(object.GenerateRules) : 0, + GenerateRulesFunMin: isSet(object.GenerateRulesFunMin) ? globalThis.Number(object.GenerateRulesFunMin) : 0, + GenerateRulesFunMax: isSet(object.GenerateRulesFunMax) ? globalThis.Number(object.GenerateRulesFunMax) : 0, + GenerateRulesFuncSel: isSet(object.GenerateRulesFuncSel) ? globalThis.String(object.GenerateRulesFuncSel) : "", + GenerateRulesSeed: isSet(object.GenerateRulesSeed) ? globalThis.Number(object.GenerateRulesSeed) : 0, + CustomCharset1: isSet(object.CustomCharset1) ? globalThis.String(object.CustomCharset1) : "", + CustomCharset2: isSet(object.CustomCharset2) ? globalThis.String(object.CustomCharset2) : "", + CustomCharset3: isSet(object.CustomCharset3) ? globalThis.String(object.CustomCharset3) : "", + CustomCharset4: isSet(object.CustomCharset4) ? globalThis.String(object.CustomCharset4) : "", + Identify: isSet(object.Identify) ? globalThis.String(object.Identify) : "", + Increment: isSet(object.Increment) ? globalThis.Boolean(object.Increment) : false, + IncrementMin: isSet(object.IncrementMin) ? globalThis.Number(object.IncrementMin) : 0, + IncrementMax: isSet(object.IncrementMax) ? globalThis.Number(object.IncrementMax) : 0, + SlowCandidates: isSet(object.SlowCandidates) ? globalThis.Boolean(object.SlowCandidates) : false, + BrainServer: isSet(object.BrainServer) ? globalThis.Boolean(object.BrainServer) : false, + BrainServerTimer: isSet(object.BrainServerTimer) ? globalThis.Number(object.BrainServerTimer) : 0, + BrainClient: isSet(object.BrainClient) ? globalThis.Boolean(object.BrainClient) : false, + BrainClientFeatures: isSet(object.BrainClientFeatures) ? globalThis.String(object.BrainClientFeatures) : "", + BrainHost: isSet(object.BrainHost) ? globalThis.String(object.BrainHost) : "", + BrainPort: isSet(object.BrainPort) ? globalThis.Number(object.BrainPort) : 0, + BrainPassword: isSet(object.BrainPassword) ? globalThis.String(object.BrainPassword) : "", + BrainSession: isSet(object.BrainSession) ? globalThis.String(object.BrainSession) : "", + BrainSessionWhitelist: isSet(object.BrainSessionWhitelist) ? globalThis.String(object.BrainSessionWhitelist) : "", + }; + }, + + toJSON(message: CrackCommand): unknown { + const obj: any = {}; + if (message.AttackMode !== 0) { + obj.AttackMode = crackAttackModeToJSON(message.AttackMode); + } + if (message.HashType !== 0) { + obj.HashType = hashTypeToJSON(message.HashType); + } + if (message.Hashes?.length) { + obj.Hashes = message.Hashes; + } + if (message.Quiet !== false) { + obj.Quiet = message.Quiet; + } + if (message.HexCharset !== false) { + obj.HexCharset = message.HexCharset; + } + if (message.HexSalt !== false) { + obj.HexSalt = message.HexSalt; + } + if (message.HexWordlist !== false) { + obj.HexWordlist = message.HexWordlist; + } + if (message.Force !== false) { + obj.Force = message.Force; + } + if (message.DeprecatedCheckDisable !== false) { + obj.DeprecatedCheckDisable = message.DeprecatedCheckDisable; + } + if (message.Status !== false) { + obj.Status = message.Status; + } + if (message.StatusJSON !== false) { + obj.StatusJSON = message.StatusJSON; + } + if (message.StatusTimer !== 0) { + obj.StatusTimer = Math.round(message.StatusTimer); + } + if (message.StdinTimeoutAbort !== 0) { + obj.StdinTimeoutAbort = Math.round(message.StdinTimeoutAbort); + } + if (message.MachineReadable !== false) { + obj.MachineReadable = message.MachineReadable; + } + if (message.KeepGuessing !== false) { + obj.KeepGuessing = message.KeepGuessing; + } + if (message.SelfTestDisable !== false) { + obj.SelfTestDisable = message.SelfTestDisable; + } + if (message.Loopback !== false) { + obj.Loopback = message.Loopback; + } + if (message.MarkovHcstat2.length !== 0) { + obj.MarkovHcstat2 = base64FromBytes(message.MarkovHcstat2); + } + if (message.MarkovDisable !== false) { + obj.MarkovDisable = message.MarkovDisable; + } + if (message.MarkovClassic !== false) { + obj.MarkovClassic = message.MarkovClassic; + } + if (message.MarkovInverse !== false) { + obj.MarkovInverse = message.MarkovInverse; + } + if (message.MarkovThreshold !== 0) { + obj.MarkovThreshold = Math.round(message.MarkovThreshold); + } + if (message.Runtime !== 0) { + obj.Runtime = Math.round(message.Runtime); + } + if (message.Session !== "") { + obj.Session = message.Session; + } + if (message.Restore !== false) { + obj.Restore = message.Restore; + } + if (message.RestoreDisable !== false) { + obj.RestoreDisable = message.RestoreDisable; + } + if (message.RestoreFile.length !== 0) { + obj.RestoreFile = base64FromBytes(message.RestoreFile); + } + if (message.OutfileFormat?.length) { + obj.OutfileFormat = message.OutfileFormat.map((e) => crackOutfileFormatToJSON(e)); + } + if (message.OutfileAutohexDisable !== false) { + obj.OutfileAutohexDisable = message.OutfileAutohexDisable; + } + if (message.OutfileCheckTimer !== 0) { + obj.OutfileCheckTimer = Math.round(message.OutfileCheckTimer); + } + if (message.WordlistAutohexDisable !== false) { + obj.WordlistAutohexDisable = message.WordlistAutohexDisable; + } + if (message.Separator !== "") { + obj.Separator = message.Separator; + } + if (message.Stdout !== false) { + obj.Stdout = message.Stdout; + } + if (message.Show !== false) { + obj.Show = message.Show; + } + if (message.Left !== false) { + obj.Left = message.Left; + } + if (message.Username !== false) { + obj.Username = message.Username; + } + if (message.Remove !== false) { + obj.Remove = message.Remove; + } + if (message.RemoveTimer !== 0) { + obj.RemoveTimer = Math.round(message.RemoveTimer); + } + if (message.PotfileDisable !== false) { + obj.PotfileDisable = message.PotfileDisable; + } + if (message.Potfile.length !== 0) { + obj.Potfile = base64FromBytes(message.Potfile); + } + if (message.EncodingFrom !== 0) { + obj.EncodingFrom = crackEncodingToJSON(message.EncodingFrom); + } + if (message.EncodingTo !== 0) { + obj.EncodingTo = crackEncodingToJSON(message.EncodingTo); + } + if (message.DebugMode !== 0) { + obj.DebugMode = Math.round(message.DebugMode); + } + if (message.LogfileDisable !== false) { + obj.LogfileDisable = message.LogfileDisable; + } + if (message.HccapxMessagePair !== 0) { + obj.HccapxMessagePair = Math.round(message.HccapxMessagePair); + } + if (message.NonceErrorCorrections !== 0) { + obj.NonceErrorCorrections = Math.round(message.NonceErrorCorrections); + } + if (message.KeyboardLayoutMapping.length !== 0) { + obj.KeyboardLayoutMapping = base64FromBytes(message.KeyboardLayoutMapping); + } + if (message.Benchmark !== false) { + obj.Benchmark = message.Benchmark; + } + if (message.BenchmarkAll !== false) { + obj.BenchmarkAll = message.BenchmarkAll; + } + if (message.SpeedOnly !== false) { + obj.SpeedOnly = message.SpeedOnly; + } + if (message.ProgressOnly !== false) { + obj.ProgressOnly = message.ProgressOnly; + } + if (message.SegmentSize !== 0) { + obj.SegmentSize = Math.round(message.SegmentSize); + } + if (message.BitmapMin !== 0) { + obj.BitmapMin = Math.round(message.BitmapMin); + } + if (message.BitmapMax !== 0) { + obj.BitmapMax = Math.round(message.BitmapMax); + } + if (message.CPUAffinity?.length) { + obj.CPUAffinity = message.CPUAffinity.map((e) => Math.round(e)); + } + if (message.HookThreads !== 0) { + obj.HookThreads = Math.round(message.HookThreads); + } + if (message.HashInfo !== false) { + obj.HashInfo = message.HashInfo; + } + if (message.BackendIgnoreCUDA !== false) { + obj.BackendIgnoreCUDA = message.BackendIgnoreCUDA; + } + if (message.BackendIgnoreHip !== false) { + obj.BackendIgnoreHip = message.BackendIgnoreHip; + } + if (message.BackendIgnoreMetal !== false) { + obj.BackendIgnoreMetal = message.BackendIgnoreMetal; + } + if (message.BackendIgnoreOpenCL !== false) { + obj.BackendIgnoreOpenCL = message.BackendIgnoreOpenCL; + } + if (message.BackendInfo !== false) { + obj.BackendInfo = message.BackendInfo; + } + if (message.BackendDevices?.length) { + obj.BackendDevices = message.BackendDevices.map((e) => Math.round(e)); + } + if (message.OpenCLDeviceTypes?.length) { + obj.OpenCLDeviceTypes = message.OpenCLDeviceTypes.map((e) => Math.round(e)); + } + if (message.OptimizedKernelEnable !== false) { + obj.OptimizedKernelEnable = message.OptimizedKernelEnable; + } + if (message.MultiplyAccelDisabled !== false) { + obj.MultiplyAccelDisabled = message.MultiplyAccelDisabled; + } + if (message.WorkloadProfile !== 0) { + obj.WorkloadProfile = crackWorkloadProfileToJSON(message.WorkloadProfile); + } + if (message.KernelAccel !== 0) { + obj.KernelAccel = Math.round(message.KernelAccel); + } + if (message.KernelLoops !== 0) { + obj.KernelLoops = Math.round(message.KernelLoops); + } + if (message.KernelThreads !== 0) { + obj.KernelThreads = Math.round(message.KernelThreads); + } + if (message.BackendVectorWidth !== 0) { + obj.BackendVectorWidth = Math.round(message.BackendVectorWidth); + } + if (message.SpinDamp !== 0) { + obj.SpinDamp = Math.round(message.SpinDamp); + } + if (message.HwmonDisable !== false) { + obj.HwmonDisable = message.HwmonDisable; + } + if (message.HwmonTempAbort !== 0) { + obj.HwmonTempAbort = Math.round(message.HwmonTempAbort); + } + if (message.ScryptTMTO !== 0) { + obj.ScryptTMTO = Math.round(message.ScryptTMTO); + } + if (message.Skip !== "0") { + obj.Skip = message.Skip; + } + if (message.Limit !== "0") { + obj.Limit = message.Limit; + } + if (message.Keyspace !== false) { + obj.Keyspace = message.Keyspace; + } + if (message.RulesFile.length !== 0) { + obj.RulesFile = base64FromBytes(message.RulesFile); + } + if (message.GenerateRules !== 0) { + obj.GenerateRules = Math.round(message.GenerateRules); + } + if (message.GenerateRulesFunMin !== 0) { + obj.GenerateRulesFunMin = Math.round(message.GenerateRulesFunMin); + } + if (message.GenerateRulesFunMax !== 0) { + obj.GenerateRulesFunMax = Math.round(message.GenerateRulesFunMax); + } + if (message.GenerateRulesFuncSel !== "") { + obj.GenerateRulesFuncSel = message.GenerateRulesFuncSel; + } + if (message.GenerateRulesSeed !== 0) { + obj.GenerateRulesSeed = Math.round(message.GenerateRulesSeed); + } + if (message.CustomCharset1 !== "") { + obj.CustomCharset1 = message.CustomCharset1; + } + if (message.CustomCharset2 !== "") { + obj.CustomCharset2 = message.CustomCharset2; + } + if (message.CustomCharset3 !== "") { + obj.CustomCharset3 = message.CustomCharset3; + } + if (message.CustomCharset4 !== "") { + obj.CustomCharset4 = message.CustomCharset4; + } + if (message.Identify !== "") { + obj.Identify = message.Identify; + } + if (message.Increment !== false) { + obj.Increment = message.Increment; + } + if (message.IncrementMin !== 0) { + obj.IncrementMin = Math.round(message.IncrementMin); + } + if (message.IncrementMax !== 0) { + obj.IncrementMax = Math.round(message.IncrementMax); + } + if (message.SlowCandidates !== false) { + obj.SlowCandidates = message.SlowCandidates; + } + if (message.BrainServer !== false) { + obj.BrainServer = message.BrainServer; + } + if (message.BrainServerTimer !== 0) { + obj.BrainServerTimer = Math.round(message.BrainServerTimer); + } + if (message.BrainClient !== false) { + obj.BrainClient = message.BrainClient; + } + if (message.BrainClientFeatures !== "") { + obj.BrainClientFeatures = message.BrainClientFeatures; + } + if (message.BrainHost !== "") { + obj.BrainHost = message.BrainHost; + } + if (message.BrainPort !== 0) { + obj.BrainPort = Math.round(message.BrainPort); + } + if (message.BrainPassword !== "") { + obj.BrainPassword = message.BrainPassword; + } + if (message.BrainSession !== "") { + obj.BrainSession = message.BrainSession; + } + if (message.BrainSessionWhitelist !== "") { + obj.BrainSessionWhitelist = message.BrainSessionWhitelist; + } + return obj; + }, + + create(base?: DeepPartial): CrackCommand { + return CrackCommand.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackCommand { + const message = createBaseCrackCommand(); + message.AttackMode = object.AttackMode ?? 0; + message.HashType = object.HashType ?? 0; + message.Hashes = object.Hashes?.map((e) => e) || []; + message.Quiet = object.Quiet ?? false; + message.HexCharset = object.HexCharset ?? false; + message.HexSalt = object.HexSalt ?? false; + message.HexWordlist = object.HexWordlist ?? false; + message.Force = object.Force ?? false; + message.DeprecatedCheckDisable = object.DeprecatedCheckDisable ?? false; + message.Status = object.Status ?? false; + message.StatusJSON = object.StatusJSON ?? false; + message.StatusTimer = object.StatusTimer ?? 0; + message.StdinTimeoutAbort = object.StdinTimeoutAbort ?? 0; + message.MachineReadable = object.MachineReadable ?? false; + message.KeepGuessing = object.KeepGuessing ?? false; + message.SelfTestDisable = object.SelfTestDisable ?? false; + message.Loopback = object.Loopback ?? false; + message.MarkovHcstat2 = object.MarkovHcstat2 ?? Buffer.alloc(0); + message.MarkovDisable = object.MarkovDisable ?? false; + message.MarkovClassic = object.MarkovClassic ?? false; + message.MarkovInverse = object.MarkovInverse ?? false; + message.MarkovThreshold = object.MarkovThreshold ?? 0; + message.Runtime = object.Runtime ?? 0; + message.Session = object.Session ?? ""; + message.Restore = object.Restore ?? false; + message.RestoreDisable = object.RestoreDisable ?? false; + message.RestoreFile = object.RestoreFile ?? Buffer.alloc(0); + message.OutfileFormat = object.OutfileFormat?.map((e) => e) || []; + message.OutfileAutohexDisable = object.OutfileAutohexDisable ?? false; + message.OutfileCheckTimer = object.OutfileCheckTimer ?? 0; + message.WordlistAutohexDisable = object.WordlistAutohexDisable ?? false; + message.Separator = object.Separator ?? ""; + message.Stdout = object.Stdout ?? false; + message.Show = object.Show ?? false; + message.Left = object.Left ?? false; + message.Username = object.Username ?? false; + message.Remove = object.Remove ?? false; + message.RemoveTimer = object.RemoveTimer ?? 0; + message.PotfileDisable = object.PotfileDisable ?? false; + message.Potfile = object.Potfile ?? Buffer.alloc(0); + message.EncodingFrom = object.EncodingFrom ?? 0; + message.EncodingTo = object.EncodingTo ?? 0; + message.DebugMode = object.DebugMode ?? 0; + message.LogfileDisable = object.LogfileDisable ?? false; + message.HccapxMessagePair = object.HccapxMessagePair ?? 0; + message.NonceErrorCorrections = object.NonceErrorCorrections ?? 0; + message.KeyboardLayoutMapping = object.KeyboardLayoutMapping ?? Buffer.alloc(0); + message.Benchmark = object.Benchmark ?? false; + message.BenchmarkAll = object.BenchmarkAll ?? false; + message.SpeedOnly = object.SpeedOnly ?? false; + message.ProgressOnly = object.ProgressOnly ?? false; + message.SegmentSize = object.SegmentSize ?? 0; + message.BitmapMin = object.BitmapMin ?? 0; + message.BitmapMax = object.BitmapMax ?? 0; + message.CPUAffinity = object.CPUAffinity?.map((e) => e) || []; + message.HookThreads = object.HookThreads ?? 0; + message.HashInfo = object.HashInfo ?? false; + message.BackendIgnoreCUDA = object.BackendIgnoreCUDA ?? false; + message.BackendIgnoreHip = object.BackendIgnoreHip ?? false; + message.BackendIgnoreMetal = object.BackendIgnoreMetal ?? false; + message.BackendIgnoreOpenCL = object.BackendIgnoreOpenCL ?? false; + message.BackendInfo = object.BackendInfo ?? false; + message.BackendDevices = object.BackendDevices?.map((e) => e) || []; + message.OpenCLDeviceTypes = object.OpenCLDeviceTypes?.map((e) => e) || []; + message.OptimizedKernelEnable = object.OptimizedKernelEnable ?? false; + message.MultiplyAccelDisabled = object.MultiplyAccelDisabled ?? false; + message.WorkloadProfile = object.WorkloadProfile ?? 0; + message.KernelAccel = object.KernelAccel ?? 0; + message.KernelLoops = object.KernelLoops ?? 0; + message.KernelThreads = object.KernelThreads ?? 0; + message.BackendVectorWidth = object.BackendVectorWidth ?? 0; + message.SpinDamp = object.SpinDamp ?? 0; + message.HwmonDisable = object.HwmonDisable ?? false; + message.HwmonTempAbort = object.HwmonTempAbort ?? 0; + message.ScryptTMTO = object.ScryptTMTO ?? 0; + message.Skip = object.Skip ?? "0"; + message.Limit = object.Limit ?? "0"; + message.Keyspace = object.Keyspace ?? false; + message.RulesFile = object.RulesFile ?? Buffer.alloc(0); + message.GenerateRules = object.GenerateRules ?? 0; + message.GenerateRulesFunMin = object.GenerateRulesFunMin ?? 0; + message.GenerateRulesFunMax = object.GenerateRulesFunMax ?? 0; + message.GenerateRulesFuncSel = object.GenerateRulesFuncSel ?? ""; + message.GenerateRulesSeed = object.GenerateRulesSeed ?? 0; + message.CustomCharset1 = object.CustomCharset1 ?? ""; + message.CustomCharset2 = object.CustomCharset2 ?? ""; + message.CustomCharset3 = object.CustomCharset3 ?? ""; + message.CustomCharset4 = object.CustomCharset4 ?? ""; + message.Identify = object.Identify ?? ""; + message.Increment = object.Increment ?? false; + message.IncrementMin = object.IncrementMin ?? 0; + message.IncrementMax = object.IncrementMax ?? 0; + message.SlowCandidates = object.SlowCandidates ?? false; + message.BrainServer = object.BrainServer ?? false; + message.BrainServerTimer = object.BrainServerTimer ?? 0; + message.BrainClient = object.BrainClient ?? false; + message.BrainClientFeatures = object.BrainClientFeatures ?? ""; + message.BrainHost = object.BrainHost ?? ""; + message.BrainPort = object.BrainPort ?? 0; + message.BrainPassword = object.BrainPassword ?? ""; + message.BrainSession = object.BrainSession ?? ""; + message.BrainSessionWhitelist = object.BrainSessionWhitelist ?? ""; + return message; + }, +}; + +function createBaseCrackJob(): CrackJob { + return { ID: "", CreatedAt: "", CompletedAt: "", Status: 0, Err: "", Command: undefined, ResultFileID: "" }; +} + +export const CrackJob: MessageFns = { + encode(message: CrackJob, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.CreatedAt !== "") { + writer.uint32(18).string(message.CreatedAt); + } + if (message.CompletedAt !== "") { + writer.uint32(26).string(message.CompletedAt); + } + if (message.Status !== 0) { + writer.uint32(32).int32(message.Status); + } + if (message.Err !== "") { + writer.uint32(42).string(message.Err); + } + if (message.Command !== undefined) { + CrackCommand.encode(message.Command, writer.uint32(58).fork()).join(); + } + if (message.ResultFileID !== "") { + writer.uint32(66).string(message.ResultFileID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackJob { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackJob(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.CreatedAt = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.CompletedAt = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Status = reader.int32() as any; + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Err = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Command = CrackCommand.decode(reader, reader.uint32()); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.ResultFileID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackJob { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + CreatedAt: isSet(object.CreatedAt) ? globalThis.String(object.CreatedAt) : "", + CompletedAt: isSet(object.CompletedAt) ? globalThis.String(object.CompletedAt) : "", + Status: isSet(object.Status) ? crackJobStatusFromJSON(object.Status) : 0, + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Command: isSet(object.Command) ? CrackCommand.fromJSON(object.Command) : undefined, + ResultFileID: isSet(object.ResultFileID) ? globalThis.String(object.ResultFileID) : "", + }; + }, + + toJSON(message: CrackJob): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.CreatedAt !== "") { + obj.CreatedAt = message.CreatedAt; + } + if (message.CompletedAt !== "") { + obj.CompletedAt = message.CompletedAt; + } + if (message.Status !== 0) { + obj.Status = crackJobStatusToJSON(message.Status); + } + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Command !== undefined) { + obj.Command = CrackCommand.toJSON(message.Command); + } + if (message.ResultFileID !== "") { + obj.ResultFileID = message.ResultFileID; + } + return obj; + }, + + create(base?: DeepPartial): CrackJob { + return CrackJob.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackJob { + const message = createBaseCrackJob(); + message.ID = object.ID ?? ""; + message.CreatedAt = object.CreatedAt ?? ""; + message.CompletedAt = object.CompletedAt ?? ""; + message.Status = object.Status ?? 0; + message.Err = object.Err ?? ""; + message.Command = (object.Command !== undefined && object.Command !== null) + ? CrackCommand.fromPartial(object.Command) + : undefined; + message.ResultFileID = object.ResultFileID ?? ""; + return message; + }, +}; + +function createBaseCrackResponse(): CrackResponse { + return { Job: undefined }; +} + +export const CrackResponse: MessageFns = { + encode(message: CrackResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Job !== undefined) { + CrackJob.encode(message.Job, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackResponse { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Job = CrackJob.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackResponse { + return { Job: isSet(object.Job) ? CrackJob.fromJSON(object.Job) : undefined }; + }, + + toJSON(message: CrackResponse): unknown { + const obj: any = {}; + if (message.Job !== undefined) { + obj.Job = CrackJob.toJSON(message.Job); + } + return obj; + }, + + create(base?: DeepPartial): CrackResponse { + return CrackResponse.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackResponse { + const message = createBaseCrackResponse(); + message.Job = (object.Job !== undefined && object.Job !== null) ? CrackJob.fromPartial(object.Job) : undefined; + return message; + }, +}; + +function createBaseCrackConfig(): CrackConfig { + return { AutoFire: false, MaxFileSize: "0", ChunkSize: "0", MaxDiskUsage: "0" }; +} + +export const CrackConfig: MessageFns = { + encode(message: CrackConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.AutoFire !== false) { + writer.uint32(8).bool(message.AutoFire); + } + if (message.MaxFileSize !== "0") { + writer.uint32(16).int64(message.MaxFileSize); + } + if (message.ChunkSize !== "0") { + writer.uint32(24).int64(message.ChunkSize); + } + if (message.MaxDiskUsage !== "0") { + writer.uint32(32).int64(message.MaxDiskUsage); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.AutoFire = reader.bool(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.MaxFileSize = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.ChunkSize = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.MaxDiskUsage = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackConfig { + return { + AutoFire: isSet(object.AutoFire) ? globalThis.Boolean(object.AutoFire) : false, + MaxFileSize: isSet(object.MaxFileSize) ? globalThis.String(object.MaxFileSize) : "0", + ChunkSize: isSet(object.ChunkSize) ? globalThis.String(object.ChunkSize) : "0", + MaxDiskUsage: isSet(object.MaxDiskUsage) ? globalThis.String(object.MaxDiskUsage) : "0", + }; + }, + + toJSON(message: CrackConfig): unknown { + const obj: any = {}; + if (message.AutoFire !== false) { + obj.AutoFire = message.AutoFire; + } + if (message.MaxFileSize !== "0") { + obj.MaxFileSize = message.MaxFileSize; + } + if (message.ChunkSize !== "0") { + obj.ChunkSize = message.ChunkSize; + } + if (message.MaxDiskUsage !== "0") { + obj.MaxDiskUsage = message.MaxDiskUsage; + } + return obj; + }, + + create(base?: DeepPartial): CrackConfig { + return CrackConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackConfig { + const message = createBaseCrackConfig(); + message.AutoFire = object.AutoFire ?? false; + message.MaxFileSize = object.MaxFileSize ?? "0"; + message.ChunkSize = object.ChunkSize ?? "0"; + message.MaxDiskUsage = object.MaxDiskUsage ?? "0"; + return message; + }, +}; + +function createBaseCrackFiles(): CrackFiles { + return { Files: [], CurrentDiskUsage: "0", MaxDiskUsage: "0" }; +} + +export const CrackFiles: MessageFns = { + encode(message: CrackFiles, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Files) { + CrackFile.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.CurrentDiskUsage !== "0") { + writer.uint32(16).int64(message.CurrentDiskUsage); + } + if (message.MaxDiskUsage !== "0") { + writer.uint32(24).int64(message.MaxDiskUsage); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackFiles { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackFiles(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Files.push(CrackFile.decode(reader, reader.uint32())); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.CurrentDiskUsage = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.MaxDiskUsage = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackFiles { + return { + Files: globalThis.Array.isArray(object?.Files) ? object.Files.map((e: any) => CrackFile.fromJSON(e)) : [], + CurrentDiskUsage: isSet(object.CurrentDiskUsage) ? globalThis.String(object.CurrentDiskUsage) : "0", + MaxDiskUsage: isSet(object.MaxDiskUsage) ? globalThis.String(object.MaxDiskUsage) : "0", + }; + }, + + toJSON(message: CrackFiles): unknown { + const obj: any = {}; + if (message.Files?.length) { + obj.Files = message.Files.map((e) => CrackFile.toJSON(e)); + } + if (message.CurrentDiskUsage !== "0") { + obj.CurrentDiskUsage = message.CurrentDiskUsage; + } + if (message.MaxDiskUsage !== "0") { + obj.MaxDiskUsage = message.MaxDiskUsage; + } + return obj; + }, + + create(base?: DeepPartial): CrackFiles { + return CrackFiles.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackFiles { + const message = createBaseCrackFiles(); + message.Files = object.Files?.map((e) => CrackFile.fromPartial(e)) || []; + message.CurrentDiskUsage = object.CurrentDiskUsage ?? "0"; + message.MaxDiskUsage = object.MaxDiskUsage ?? "0"; + return message; + }, +}; + +function createBaseCrackFile(): CrackFile { + return { + ID: "", + CreatedAt: "0", + LastModified: "0", + Name: "", + UncompressedSize: "0", + Sha2256: "", + Type: 0, + IsCompressed: false, + MaxFileSize: "0", + ChunkSize: "0", + Chunks: [], + }; +} + +export const CrackFile: MessageFns = { + encode(message: CrackFile, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.CreatedAt !== "0") { + writer.uint32(16).int64(message.CreatedAt); + } + if (message.LastModified !== "0") { + writer.uint32(24).int64(message.LastModified); + } + if (message.Name !== "") { + writer.uint32(34).string(message.Name); + } + if (message.UncompressedSize !== "0") { + writer.uint32(40).int64(message.UncompressedSize); + } + if (message.Sha2256 !== "") { + writer.uint32(50).string(message.Sha2256); + } + if (message.Type !== 0) { + writer.uint32(56).int32(message.Type); + } + if (message.IsCompressed !== false) { + writer.uint32(64).bool(message.IsCompressed); + } + if (message.MaxFileSize !== "0") { + writer.uint32(72).int64(message.MaxFileSize); + } + if (message.ChunkSize !== "0") { + writer.uint32(80).int64(message.ChunkSize); + } + for (const v of message.Chunks) { + CrackFileChunk.encode(v!, writer.uint32(802).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackFile { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackFile(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.CreatedAt = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.LastModified = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Name = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.UncompressedSize = reader.int64().toString(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Sha2256 = reader.string(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Type = reader.int32() as any; + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.IsCompressed = reader.bool(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.MaxFileSize = reader.int64().toString(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.ChunkSize = reader.int64().toString(); + continue; + } + case 100: { + if (tag !== 802) { + break; + } + + message.Chunks.push(CrackFileChunk.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackFile { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + CreatedAt: isSet(object.CreatedAt) ? globalThis.String(object.CreatedAt) : "0", + LastModified: isSet(object.LastModified) ? globalThis.String(object.LastModified) : "0", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + UncompressedSize: isSet(object.UncompressedSize) ? globalThis.String(object.UncompressedSize) : "0", + Sha2256: isSet(object.Sha2256) + ? globalThis.String(object.Sha2256) + : isSet(object.Sha2_256) + ? globalThis.String(object.Sha2_256) + : "", + Type: isSet(object.Type) ? crackFileTypeFromJSON(object.Type) : 0, + IsCompressed: isSet(object.IsCompressed) ? globalThis.Boolean(object.IsCompressed) : false, + MaxFileSize: isSet(object.MaxFileSize) ? globalThis.String(object.MaxFileSize) : "0", + ChunkSize: isSet(object.ChunkSize) ? globalThis.String(object.ChunkSize) : "0", + Chunks: globalThis.Array.isArray(object?.Chunks) ? object.Chunks.map((e: any) => CrackFileChunk.fromJSON(e)) : [], + }; + }, + + toJSON(message: CrackFile): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.CreatedAt !== "0") { + obj.CreatedAt = message.CreatedAt; + } + if (message.LastModified !== "0") { + obj.LastModified = message.LastModified; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.UncompressedSize !== "0") { + obj.UncompressedSize = message.UncompressedSize; + } + if (message.Sha2256 !== "") { + obj.Sha2256 = message.Sha2256; + } + if (message.Type !== 0) { + obj.Type = crackFileTypeToJSON(message.Type); + } + if (message.IsCompressed !== false) { + obj.IsCompressed = message.IsCompressed; + } + if (message.MaxFileSize !== "0") { + obj.MaxFileSize = message.MaxFileSize; + } + if (message.ChunkSize !== "0") { + obj.ChunkSize = message.ChunkSize; + } + if (message.Chunks?.length) { + obj.Chunks = message.Chunks.map((e) => CrackFileChunk.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): CrackFile { + return CrackFile.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackFile { + const message = createBaseCrackFile(); + message.ID = object.ID ?? ""; + message.CreatedAt = object.CreatedAt ?? "0"; + message.LastModified = object.LastModified ?? "0"; + message.Name = object.Name ?? ""; + message.UncompressedSize = object.UncompressedSize ?? "0"; + message.Sha2256 = object.Sha2256 ?? ""; + message.Type = object.Type ?? 0; + message.IsCompressed = object.IsCompressed ?? false; + message.MaxFileSize = object.MaxFileSize ?? "0"; + message.ChunkSize = object.ChunkSize ?? "0"; + message.Chunks = object.Chunks?.map((e) => CrackFileChunk.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseCrackFileChunk(): CrackFileChunk { + return { ID: "", CrackFileID: "", N: 0, Data: Buffer.alloc(0) }; +} + +export const CrackFileChunk: MessageFns = { + encode(message: CrackFileChunk, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.CrackFileID !== "") { + writer.uint32(18).string(message.CrackFileID); + } + if (message.N !== 0) { + writer.uint32(24).uint32(message.N); + } + if (message.Data.length !== 0) { + writer.uint32(74).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CrackFileChunk { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCrackFileChunk(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.CrackFileID = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.N = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CrackFileChunk { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + CrackFileID: isSet(object.CrackFileID) ? globalThis.String(object.CrackFileID) : "", + N: isSet(object.N) ? globalThis.Number(object.N) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + }; + }, + + toJSON(message: CrackFileChunk): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.CrackFileID !== "") { + obj.CrackFileID = message.CrackFileID; + } + if (message.N !== 0) { + obj.N = Math.round(message.N); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): CrackFileChunk { + return CrackFileChunk.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CrackFileChunk { + const message = createBaseCrackFileChunk(); + message.ID = object.ID ?? ""; + message.CrackFileID = object.CrackFileID ?? ""; + message.N = object.N ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseMonitoringProviders(): MonitoringProviders { + return { providers: [] }; +} + +export const MonitoringProviders: MessageFns = { + encode(message: MonitoringProviders, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.providers) { + MonitoringProvider.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MonitoringProviders { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMonitoringProviders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.providers.push(MonitoringProvider.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MonitoringProviders { + return { + providers: globalThis.Array.isArray(object?.providers) + ? object.providers.map((e: any) => MonitoringProvider.fromJSON(e)) + : [], + }; + }, + + toJSON(message: MonitoringProviders): unknown { + const obj: any = {}; + if (message.providers?.length) { + obj.providers = message.providers.map((e) => MonitoringProvider.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): MonitoringProviders { + return MonitoringProviders.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MonitoringProviders { + const message = createBaseMonitoringProviders(); + message.providers = object.providers?.map((e) => MonitoringProvider.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseMonitoringProvider(): MonitoringProvider { + return { ID: "", Type: "", APIKey: "", APIPassword: "" }; +} + +export const MonitoringProvider: MessageFns = { + encode(message: MonitoringProvider, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Type !== "") { + writer.uint32(18).string(message.Type); + } + if (message.APIKey !== "") { + writer.uint32(26).string(message.APIKey); + } + if (message.APIPassword !== "") { + writer.uint32(34).string(message.APIPassword); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MonitoringProvider { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMonitoringProvider(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Type = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.APIKey = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.APIPassword = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MonitoringProvider { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + APIKey: isSet(object.APIKey) ? globalThis.String(object.APIKey) : "", + APIPassword: isSet(object.APIPassword) ? globalThis.String(object.APIPassword) : "", + }; + }, + + toJSON(message: MonitoringProvider): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.APIKey !== "") { + obj.APIKey = message.APIKey; + } + if (message.APIPassword !== "") { + obj.APIPassword = message.APIPassword; + } + return obj; + }, + + create(base?: DeepPartial): MonitoringProvider { + return MonitoringProvider.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MonitoringProvider { + const message = createBaseMonitoringProvider(); + message.ID = object.ID ?? ""; + message.Type = object.Type ?? ""; + message.APIKey = object.APIKey ?? ""; + message.APIPassword = object.APIPassword ?? ""; + return message; + }, +}; + +function createBaseResourceID(): ResourceID { + return { ID: "", Type: "", Name: "", Value: "0" }; +} + +export const ResourceID: MessageFns = { + encode(message: ResourceID, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Type !== "") { + writer.uint32(18).string(message.Type); + } + if (message.Name !== "") { + writer.uint32(26).string(message.Name); + } + if (message.Value !== "0") { + writer.uint32(32).uint64(message.Value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ResourceID { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResourceID(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Type = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Name = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Value = reader.uint64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ResourceID { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Value: isSet(object.Value) ? globalThis.String(object.Value) : "0", + }; + }, + + toJSON(message: ResourceID): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Value !== "0") { + obj.Value = message.Value; + } + return obj; + }, + + create(base?: DeepPartial): ResourceID { + return ResourceID.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ResourceID { + const message = createBaseResourceID(); + message.ID = object.ID ?? ""; + message.Type = object.Type ?? ""; + message.Name = object.Name ?? ""; + message.Value = object.Value ?? "0"; + return message; + }, +}; + +function createBaseCertificatesReq(): CertificatesReq { + return { CategoryFilters: 0, CN: "" }; +} + +export const CertificatesReq: MessageFns = { + encode(message: CertificatesReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.CategoryFilters !== 0) { + writer.uint32(8).uint32(message.CategoryFilters); + } + if (message.CN !== "") { + writer.uint32(18).string(message.CN); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CertificatesReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCertificatesReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.CategoryFilters = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.CN = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CertificatesReq { + return { + CategoryFilters: isSet(object.CategoryFilters) ? globalThis.Number(object.CategoryFilters) : 0, + CN: isSet(object.CN) ? globalThis.String(object.CN) : "", + }; + }, + + toJSON(message: CertificatesReq): unknown { + const obj: any = {}; + if (message.CategoryFilters !== 0) { + obj.CategoryFilters = Math.round(message.CategoryFilters); + } + if (message.CN !== "") { + obj.CN = message.CN; + } + return obj; + }, + + create(base?: DeepPartial): CertificatesReq { + return CertificatesReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CertificatesReq { + const message = createBaseCertificatesReq(); + message.CategoryFilters = object.CategoryFilters ?? 0; + message.CN = object.CN ?? ""; + return message; + }, +}; + +function createBaseCertificateData(): CertificateData { + return { CN: "", CreationTime: "", ValidityStart: "", ValidityExpiry: "", Type: "", KeyAlgorithm: "", ID: "" }; +} + +export const CertificateData: MessageFns = { + encode(message: CertificateData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.CN !== "") { + writer.uint32(10).string(message.CN); + } + if (message.CreationTime !== "") { + writer.uint32(18).string(message.CreationTime); + } + if (message.ValidityStart !== "") { + writer.uint32(26).string(message.ValidityStart); + } + if (message.ValidityExpiry !== "") { + writer.uint32(34).string(message.ValidityExpiry); + } + if (message.Type !== "") { + writer.uint32(42).string(message.Type); + } + if (message.KeyAlgorithm !== "") { + writer.uint32(50).string(message.KeyAlgorithm); + } + if (message.ID !== "") { + writer.uint32(58).string(message.ID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CertificateData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCertificateData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.CN = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.CreationTime = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ValidityStart = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ValidityExpiry = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Type = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.KeyAlgorithm = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.ID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CertificateData { + return { + CN: isSet(object.CN) ? globalThis.String(object.CN) : "", + CreationTime: isSet(object.CreationTime) ? globalThis.String(object.CreationTime) : "", + ValidityStart: isSet(object.ValidityStart) ? globalThis.String(object.ValidityStart) : "", + ValidityExpiry: isSet(object.ValidityExpiry) ? globalThis.String(object.ValidityExpiry) : "", + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + KeyAlgorithm: isSet(object.KeyAlgorithm) ? globalThis.String(object.KeyAlgorithm) : "", + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + }; + }, + + toJSON(message: CertificateData): unknown { + const obj: any = {}; + if (message.CN !== "") { + obj.CN = message.CN; + } + if (message.CreationTime !== "") { + obj.CreationTime = message.CreationTime; + } + if (message.ValidityStart !== "") { + obj.ValidityStart = message.ValidityStart; + } + if (message.ValidityExpiry !== "") { + obj.ValidityExpiry = message.ValidityExpiry; + } + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.KeyAlgorithm !== "") { + obj.KeyAlgorithm = message.KeyAlgorithm; + } + if (message.ID !== "") { + obj.ID = message.ID; + } + return obj; + }, + + create(base?: DeepPartial): CertificateData { + return CertificateData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CertificateData { + const message = createBaseCertificateData(); + message.CN = object.CN ?? ""; + message.CreationTime = object.CreationTime ?? ""; + message.ValidityStart = object.ValidityStart ?? ""; + message.ValidityExpiry = object.ValidityExpiry ?? ""; + message.Type = object.Type ?? ""; + message.KeyAlgorithm = object.KeyAlgorithm ?? ""; + message.ID = object.ID ?? ""; + return message; + }, +}; + +function createBaseCertificateInfo(): CertificateInfo { + return { info: [] }; +} + +export const CertificateInfo: MessageFns = { + encode(message: CertificateInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.info) { + CertificateData.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CertificateInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCertificateInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.info.push(CertificateData.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CertificateInfo { + return { + info: globalThis.Array.isArray(object?.info) ? object.info.map((e: any) => CertificateData.fromJSON(e)) : [], + }; + }, + + toJSON(message: CertificateInfo): unknown { + const obj: any = {}; + if (message.info?.length) { + obj.info = message.info.map((e) => CertificateData.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): CertificateInfo { + return CertificateInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CertificateInfo { + const message = createBaseCertificateInfo(); + message.info = object.info?.map((e) => CertificateData.fromPartial(e)) || []; + return message; + }, +}; + +function createBaseCertificateAuthorityData(): CertificateAuthorityData { + return { CN: "", CreationTime: "", ValidityStart: "", ValidityExpiry: "", Type: "", KeyAlgorithm: "", ID: "" }; +} + +export const CertificateAuthorityData: MessageFns = { + encode(message: CertificateAuthorityData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.CN !== "") { + writer.uint32(10).string(message.CN); + } + if (message.CreationTime !== "") { + writer.uint32(18).string(message.CreationTime); + } + if (message.ValidityStart !== "") { + writer.uint32(26).string(message.ValidityStart); + } + if (message.ValidityExpiry !== "") { + writer.uint32(34).string(message.ValidityExpiry); + } + if (message.Type !== "") { + writer.uint32(42).string(message.Type); + } + if (message.KeyAlgorithm !== "") { + writer.uint32(50).string(message.KeyAlgorithm); + } + if (message.ID !== "") { + writer.uint32(58).string(message.ID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CertificateAuthorityData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCertificateAuthorityData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.CN = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.CreationTime = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ValidityStart = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ValidityExpiry = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Type = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.KeyAlgorithm = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.ID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CertificateAuthorityData { + return { + CN: isSet(object.CN) ? globalThis.String(object.CN) : "", + CreationTime: isSet(object.CreationTime) ? globalThis.String(object.CreationTime) : "", + ValidityStart: isSet(object.ValidityStart) ? globalThis.String(object.ValidityStart) : "", + ValidityExpiry: isSet(object.ValidityExpiry) ? globalThis.String(object.ValidityExpiry) : "", + Type: isSet(object.Type) ? globalThis.String(object.Type) : "", + KeyAlgorithm: isSet(object.KeyAlgorithm) ? globalThis.String(object.KeyAlgorithm) : "", + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + }; + }, + + toJSON(message: CertificateAuthorityData): unknown { + const obj: any = {}; + if (message.CN !== "") { + obj.CN = message.CN; + } + if (message.CreationTime !== "") { + obj.CreationTime = message.CreationTime; + } + if (message.ValidityStart !== "") { + obj.ValidityStart = message.ValidityStart; + } + if (message.ValidityExpiry !== "") { + obj.ValidityExpiry = message.ValidityExpiry; + } + if (message.Type !== "") { + obj.Type = message.Type; + } + if (message.KeyAlgorithm !== "") { + obj.KeyAlgorithm = message.KeyAlgorithm; + } + if (message.ID !== "") { + obj.ID = message.ID; + } + return obj; + }, + + create(base?: DeepPartial): CertificateAuthorityData { + return CertificateAuthorityData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CertificateAuthorityData { + const message = createBaseCertificateAuthorityData(); + message.CN = object.CN ?? ""; + message.CreationTime = object.CreationTime ?? ""; + message.ValidityStart = object.ValidityStart ?? ""; + message.ValidityExpiry = object.ValidityExpiry ?? ""; + message.Type = object.Type ?? ""; + message.KeyAlgorithm = object.KeyAlgorithm ?? ""; + message.ID = object.ID ?? ""; + return message; + }, +}; + +function createBaseCertificateAuthorityInfo(): CertificateAuthorityInfo { + return { info: [] }; +} + +export const CertificateAuthorityInfo: MessageFns = { + encode(message: CertificateAuthorityInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.info) { + CertificateAuthorityData.encode(v!, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CertificateAuthorityInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCertificateAuthorityInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.info.push(CertificateAuthorityData.decode(reader, reader.uint32())); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CertificateAuthorityInfo { + return { + info: globalThis.Array.isArray(object?.info) + ? object.info.map((e: any) => CertificateAuthorityData.fromJSON(e)) + : [], + }; + }, + + toJSON(message: CertificateAuthorityInfo): unknown { + const obj: any = {}; + if (message.info?.length) { + obj.info = message.info.map((e) => CertificateAuthorityData.toJSON(e)); + } + return obj; + }, + + create(base?: DeepPartial): CertificateAuthorityInfo { + return CertificateAuthorityInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CertificateAuthorityInfo { + const message = createBaseCertificateAuthorityInfo(); + message.info = object.info?.map((e) => CertificateAuthorityData.fromPartial(e)) || []; + return message; + }, +}; + +function bytesFromBase64(b64: string): Uint8Array { + return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); +} + +function base64FromBytes(arr: Uint8Array): string { + return globalThis.Buffer.from(arr).toString("base64"); +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +function isObject(value: any): boolean { + return typeof value === "object" && value !== null; +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create(base?: DeepPartial): T; + fromPartial(object: DeepPartial): T; } diff --git a/src/pb/clientpb/client_pb.js b/src/pb/clientpb/client_pb.js deleted file mode 100644 index 267ca11..0000000 --- a/src/pb/clientpb/client_pb.js +++ /dev/null @@ -1,20174 +0,0 @@ -// source: clientpb/client.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck -if (proto === undefined) { var proto = {commonpb: {}, clientpb: {}, sliverpb: {}}; } - - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function(){return this;})(); - -var commonpb_common_pb = require('../commonpb/common_pb.js'); -goog.object.extend(proto, commonpb_common_pb); -goog.exportSymbol('proto.clientpb.AllHosts', null, global); -goog.exportSymbol('proto.clientpb.AllLoot', null, global); -goog.exportSymbol('proto.clientpb.Beacon', null, global); -goog.exportSymbol('proto.clientpb.BeaconTask', null, global); -goog.exportSymbol('proto.clientpb.BeaconTasks', null, global); -goog.exportSymbol('proto.clientpb.Beacons', null, global); -goog.exportSymbol('proto.clientpb.Canaries', null, global); -goog.exportSymbol('proto.clientpb.Client', null, global); -goog.exportSymbol('proto.clientpb.CloseTunnelReq', null, global); -goog.exportSymbol('proto.clientpb.Compiler', null, global); -goog.exportSymbol('proto.clientpb.CompilerTarget', null, global); -goog.exportSymbol('proto.clientpb.CreateTunnel', null, global); -goog.exportSymbol('proto.clientpb.CreateTunnelReq', null, global); -goog.exportSymbol('proto.clientpb.Credential', null, global); -goog.exportSymbol('proto.clientpb.CredentialType', null, global); -goog.exportSymbol('proto.clientpb.CrossCompiler', null, global); -goog.exportSymbol('proto.clientpb.DNSCanary', null, global); -goog.exportSymbol('proto.clientpb.DNSListener', null, global); -goog.exportSymbol('proto.clientpb.DNSListenerReq', null, global); -goog.exportSymbol('proto.clientpb.DeleteReq', null, global); -goog.exportSymbol('proto.clientpb.DllHijack', null, global); -goog.exportSymbol('proto.clientpb.DllHijackReq', null, global); -goog.exportSymbol('proto.clientpb.Event', null, global); -goog.exportSymbol('proto.clientpb.ExtensionData', null, global); -goog.exportSymbol('proto.clientpb.FileType', null, global); -goog.exportSymbol('proto.clientpb.Generate', null, global); -goog.exportSymbol('proto.clientpb.GenerateReq', null, global); -goog.exportSymbol('proto.clientpb.GetSystemReq', null, global); -goog.exportSymbol('proto.clientpb.HTTPListener', null, global); -goog.exportSymbol('proto.clientpb.HTTPListenerReq', null, global); -goog.exportSymbol('proto.clientpb.Host', null, global); -goog.exportSymbol('proto.clientpb.IOC', null, global); -goog.exportSymbol('proto.clientpb.ImplantBuilds', null, global); -goog.exportSymbol('proto.clientpb.ImplantC2', null, global); -goog.exportSymbol('proto.clientpb.ImplantConfig', null, global); -goog.exportSymbol('proto.clientpb.ImplantProfile', null, global); -goog.exportSymbol('proto.clientpb.ImplantProfiles', null, global); -goog.exportSymbol('proto.clientpb.Job', null, global); -goog.exportSymbol('proto.clientpb.Jobs', null, global); -goog.exportSymbol('proto.clientpb.KillJob', null, global); -goog.exportSymbol('proto.clientpb.KillJobReq', null, global); -goog.exportSymbol('proto.clientpb.Loot', null, global); -goog.exportSymbol('proto.clientpb.LootType', null, global); -goog.exportSymbol('proto.clientpb.MSFRemoteReq', null, global); -goog.exportSymbol('proto.clientpb.MSFReq', null, global); -goog.exportSymbol('proto.clientpb.MTLSListener', null, global); -goog.exportSymbol('proto.clientpb.MTLSListenerReq', null, global); -goog.exportSymbol('proto.clientpb.MigrateReq', null, global); -goog.exportSymbol('proto.clientpb.MsfStager', null, global); -goog.exportSymbol('proto.clientpb.MsfStagerReq', null, global); -goog.exportSymbol('proto.clientpb.NamedPipes', null, global); -goog.exportSymbol('proto.clientpb.NamedPipesReq', null, global); -goog.exportSymbol('proto.clientpb.Operator', null, global); -goog.exportSymbol('proto.clientpb.Operators', null, global); -goog.exportSymbol('proto.clientpb.OutputFormat', null, global); -goog.exportSymbol('proto.clientpb.PivotGraph', null, global); -goog.exportSymbol('proto.clientpb.PivotGraphEntry', null, global); -goog.exportSymbol('proto.clientpb.RegenerateReq', null, global); -goog.exportSymbol('proto.clientpb.RenameReq', null, global); -goog.exportSymbol('proto.clientpb.Session', null, global); -goog.exportSymbol('proto.clientpb.Sessions', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeEncode', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeEncodeReq', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeEncoder', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeEncoderMap', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeRDI', null, global); -goog.exportSymbol('proto.clientpb.ShellcodeRDIReq', null, global); -goog.exportSymbol('proto.clientpb.StageProtocol', null, global); -goog.exportSymbol('proto.clientpb.StagerListener', null, global); -goog.exportSymbol('proto.clientpb.StagerListenerReq', null, global); -goog.exportSymbol('proto.clientpb.TCPPivot', null, global); -goog.exportSymbol('proto.clientpb.TCPPivotReq', null, global); -goog.exportSymbol('proto.clientpb.UniqueWGIP', null, global); -goog.exportSymbol('proto.clientpb.Version', null, global); -goog.exportSymbol('proto.clientpb.WGClientConfig', null, global); -goog.exportSymbol('proto.clientpb.WGListener', null, global); -goog.exportSymbol('proto.clientpb.WGListenerReq', null, global); -goog.exportSymbol('proto.clientpb.WebContent', null, global); -goog.exportSymbol('proto.clientpb.Website', null, global); -goog.exportSymbol('proto.clientpb.WebsiteAddContent', null, global); -goog.exportSymbol('proto.clientpb.WebsiteRemoveContent', null, global); -goog.exportSymbol('proto.clientpb.Websites', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Version = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Version, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Version.displayName = 'proto.clientpb.Version'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Session = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Session.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Session, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Session.displayName = 'proto.clientpb.Session'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Beacon = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Beacon, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Beacon.displayName = 'proto.clientpb.Beacon'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Beacons = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Beacons.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Beacons, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Beacons.displayName = 'proto.clientpb.Beacons'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.BeaconTask = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.BeaconTask, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.BeaconTask.displayName = 'proto.clientpb.BeaconTask'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.BeaconTasks = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.BeaconTasks.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.BeaconTasks, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.BeaconTasks.displayName = 'proto.clientpb.BeaconTasks'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ImplantC2 = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ImplantC2, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ImplantC2.displayName = 'proto.clientpb.ImplantC2'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ImplantConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.ImplantConfig.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.ImplantConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ImplantConfig.displayName = 'proto.clientpb.ImplantConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ImplantBuilds = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ImplantBuilds, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ImplantBuilds.displayName = 'proto.clientpb.ImplantBuilds'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.CompilerTarget = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.CompilerTarget, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.CompilerTarget.displayName = 'proto.clientpb.CompilerTarget'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.CrossCompiler = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.CrossCompiler, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.CrossCompiler.displayName = 'proto.clientpb.CrossCompiler'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Compiler = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Compiler.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Compiler, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Compiler.displayName = 'proto.clientpb.Compiler'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DeleteReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.DeleteReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DeleteReq.displayName = 'proto.clientpb.DeleteReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DNSCanary = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.DNSCanary, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DNSCanary.displayName = 'proto.clientpb.DNSCanary'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Canaries = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Canaries.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Canaries, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Canaries.displayName = 'proto.clientpb.Canaries'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.UniqueWGIP = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.UniqueWGIP, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.UniqueWGIP.displayName = 'proto.clientpb.UniqueWGIP'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ImplantProfile = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ImplantProfile, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ImplantProfile.displayName = 'proto.clientpb.ImplantProfile'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ImplantProfiles = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.ImplantProfiles.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.ImplantProfiles, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ImplantProfiles.displayName = 'proto.clientpb.ImplantProfiles'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.RegenerateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.RegenerateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.RegenerateReq.displayName = 'proto.clientpb.RegenerateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Job = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Job.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Job, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Job.displayName = 'proto.clientpb.Job'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Jobs = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Jobs.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Jobs, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Jobs.displayName = 'proto.clientpb.Jobs'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.KillJobReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.KillJobReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.KillJobReq.displayName = 'proto.clientpb.KillJobReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.KillJob = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.KillJob, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.KillJob.displayName = 'proto.clientpb.KillJob'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MTLSListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MTLSListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MTLSListenerReq.displayName = 'proto.clientpb.MTLSListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MTLSListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MTLSListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MTLSListener.displayName = 'proto.clientpb.MTLSListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WGListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.WGListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WGListenerReq.displayName = 'proto.clientpb.WGListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WGListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.WGListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WGListener.displayName = 'proto.clientpb.WGListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DNSListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.DNSListenerReq.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.DNSListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DNSListenerReq.displayName = 'proto.clientpb.DNSListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DNSListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.DNSListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DNSListener.displayName = 'proto.clientpb.DNSListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.HTTPListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.HTTPListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.HTTPListenerReq.displayName = 'proto.clientpb.HTTPListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.NamedPipesReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.NamedPipesReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.NamedPipesReq.displayName = 'proto.clientpb.NamedPipesReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.NamedPipes = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.NamedPipes, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.NamedPipes.displayName = 'proto.clientpb.NamedPipes'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.TCPPivotReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.TCPPivotReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.TCPPivotReq.displayName = 'proto.clientpb.TCPPivotReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.TCPPivot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.TCPPivot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.TCPPivot.displayName = 'proto.clientpb.TCPPivot'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.HTTPListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.HTTPListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.HTTPListener.displayName = 'proto.clientpb.HTTPListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Sessions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Sessions.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Sessions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Sessions.displayName = 'proto.clientpb.Sessions'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.RenameReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.RenameReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.RenameReq.displayName = 'proto.clientpb.RenameReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.GenerateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.GenerateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.GenerateReq.displayName = 'proto.clientpb.GenerateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Generate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Generate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Generate.displayName = 'proto.clientpb.Generate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MSFReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MSFReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MSFReq.displayName = 'proto.clientpb.MSFReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MSFRemoteReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MSFRemoteReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MSFRemoteReq.displayName = 'proto.clientpb.MSFRemoteReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.StagerListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.StagerListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.StagerListenerReq.displayName = 'proto.clientpb.StagerListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.StagerListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.StagerListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.StagerListener.displayName = 'proto.clientpb.StagerListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ShellcodeRDIReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ShellcodeRDIReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ShellcodeRDIReq.displayName = 'proto.clientpb.ShellcodeRDIReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ShellcodeRDI = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ShellcodeRDI, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ShellcodeRDI.displayName = 'proto.clientpb.ShellcodeRDI'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MsfStagerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.MsfStagerReq.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.MsfStagerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MsfStagerReq.displayName = 'proto.clientpb.MsfStagerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MsfStager = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MsfStager, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MsfStager.displayName = 'proto.clientpb.MsfStager'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.GetSystemReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.GetSystemReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.GetSystemReq.displayName = 'proto.clientpb.GetSystemReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.MigrateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.MigrateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.MigrateReq.displayName = 'proto.clientpb.MigrateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.CreateTunnelReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.CreateTunnelReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.CreateTunnelReq.displayName = 'proto.clientpb.CreateTunnelReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.CreateTunnel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.CreateTunnel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.CreateTunnel.displayName = 'proto.clientpb.CreateTunnel'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.CloseTunnelReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.CloseTunnelReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.CloseTunnelReq.displayName = 'proto.clientpb.CloseTunnelReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.PivotGraphEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.PivotGraphEntry.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.PivotGraphEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.PivotGraphEntry.displayName = 'proto.clientpb.PivotGraphEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.PivotGraph = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.PivotGraph.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.PivotGraph, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.PivotGraph.displayName = 'proto.clientpb.PivotGraph'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Client = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Client, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Client.displayName = 'proto.clientpb.Client'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Event = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Event, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Event.displayName = 'proto.clientpb.Event'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Operators = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Operators.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Operators, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Operators.displayName = 'proto.clientpb.Operators'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Operator = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Operator, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Operator.displayName = 'proto.clientpb.Operator'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WebContent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.WebContent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WebContent.displayName = 'proto.clientpb.WebContent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WebsiteAddContent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.WebsiteAddContent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WebsiteAddContent.displayName = 'proto.clientpb.WebsiteAddContent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WebsiteRemoveContent = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.WebsiteRemoveContent.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.WebsiteRemoveContent, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WebsiteRemoveContent.displayName = 'proto.clientpb.WebsiteRemoveContent'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Website = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Website, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Website.displayName = 'proto.clientpb.Website'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Websites = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Websites.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Websites, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Websites.displayName = 'proto.clientpb.Websites'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.WGClientConfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.WGClientConfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.WGClientConfig.displayName = 'proto.clientpb.WGClientConfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Credential = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Credential, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Credential.displayName = 'proto.clientpb.Credential'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Loot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.Loot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Loot.displayName = 'proto.clientpb.Loot'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.AllLoot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.AllLoot.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.AllLoot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.AllLoot.displayName = 'proto.clientpb.AllLoot'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.IOC = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.IOC, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.IOC.displayName = 'proto.clientpb.IOC'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ExtensionData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ExtensionData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ExtensionData.displayName = 'proto.clientpb.ExtensionData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.Host = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.Host.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.Host, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.Host.displayName = 'proto.clientpb.Host'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.AllHosts = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.clientpb.AllHosts.repeatedFields_, null); -}; -goog.inherits(proto.clientpb.AllHosts, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.AllHosts.displayName = 'proto.clientpb.AllHosts'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DllHijackReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.DllHijackReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DllHijackReq.displayName = 'proto.clientpb.DllHijackReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.DllHijack = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.DllHijack, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.DllHijack.displayName = 'proto.clientpb.DllHijack'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ShellcodeEncodeReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ShellcodeEncodeReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ShellcodeEncodeReq.displayName = 'proto.clientpb.ShellcodeEncodeReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ShellcodeEncode = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ShellcodeEncode, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ShellcodeEncode.displayName = 'proto.clientpb.ShellcodeEncode'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.clientpb.ShellcodeEncoderMap = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.clientpb.ShellcodeEncoderMap, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.clientpb.ShellcodeEncoderMap.displayName = 'proto.clientpb.ShellcodeEncoderMap'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Version.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Version.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Version} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Version.toObject = function(includeInstance, msg) { - var f, obj = { - major: jspb.Message.getFieldWithDefault(msg, 1, 0), - minor: jspb.Message.getFieldWithDefault(msg, 2, 0), - patch: jspb.Message.getFieldWithDefault(msg, 3, 0), - commit: jspb.Message.getFieldWithDefault(msg, 4, ""), - dirty: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - compiledat: jspb.Message.getFieldWithDefault(msg, 6, 0), - os: jspb.Message.getFieldWithDefault(msg, 7, ""), - arch: jspb.Message.getFieldWithDefault(msg, 8, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Version} - */ -proto.clientpb.Version.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Version; - return proto.clientpb.Version.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Version} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Version} - */ -proto.clientpb.Version.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMajor(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setMinor(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPatch(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCommit(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDirty(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCompiledat(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Version.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Version.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Version} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Version.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getMajor(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getMinor(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getPatch(); - if (f !== 0) { - writer.writeInt32( - 3, - f - ); - } - f = message.getCommit(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getDirty(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getCompiledat(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } -}; - - -/** - * optional int32 Major = 1; - * @return {number} - */ -proto.clientpb.Version.prototype.getMajor = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setMajor = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 Minor = 2; - * @return {number} - */ -proto.clientpb.Version.prototype.getMinor = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setMinor = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int32 Patch = 3; - * @return {number} - */ -proto.clientpb.Version.prototype.getPatch = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setPatch = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Commit = 4; - * @return {string} - */ -proto.clientpb.Version.prototype.getCommit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setCommit = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool Dirty = 5; - * @return {boolean} - */ -proto.clientpb.Version.prototype.getDirty = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setDirty = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional int64 CompiledAt = 6; - * @return {number} - */ -proto.clientpb.Version.prototype.getCompiledat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setCompiledat = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional string OS = 7; - * @return {string} - */ -proto.clientpb.Version.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string Arch = 8; - * @return {string} - */ -proto.clientpb.Version.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Version} returns this - */ -proto.clientpb.Version.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Session.repeatedFields_ = [23]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Session.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Session.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Session} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Session.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 3, ""), - uuid: jspb.Message.getFieldWithDefault(msg, 4, ""), - username: jspb.Message.getFieldWithDefault(msg, 5, ""), - uid: jspb.Message.getFieldWithDefault(msg, 6, ""), - gid: jspb.Message.getFieldWithDefault(msg, 7, ""), - os: jspb.Message.getFieldWithDefault(msg, 8, ""), - arch: jspb.Message.getFieldWithDefault(msg, 9, ""), - transport: jspb.Message.getFieldWithDefault(msg, 10, ""), - remoteaddress: jspb.Message.getFieldWithDefault(msg, 11, ""), - pid: jspb.Message.getFieldWithDefault(msg, 12, 0), - filename: jspb.Message.getFieldWithDefault(msg, 13, ""), - lastcheckin: jspb.Message.getFieldWithDefault(msg, 14, 0), - activec2: jspb.Message.getFieldWithDefault(msg, 15, ""), - version: jspb.Message.getFieldWithDefault(msg, 16, ""), - evasion: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - isdead: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), - reconnectinterval: jspb.Message.getFieldWithDefault(msg, 19, 0), - proxyurl: jspb.Message.getFieldWithDefault(msg, 20, ""), - burned: jspb.Message.getBooleanFieldWithDefault(msg, 22, false), - extensionsList: (f = jspb.Message.getRepeatedField(msg, 23)) == null ? undefined : f, - peerid: jspb.Message.getFieldWithDefault(msg, 25, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Session} - */ -proto.clientpb.Session.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Session; - return proto.clientpb.Session.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Session} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Session} - */ -proto.clientpb.Session.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUuid(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setGid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setTransport(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setRemoteaddress(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLastcheckin(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setActivec2(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEvasion(value); - break; - case 18: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdead(value); - break; - case 19: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReconnectinterval(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setProxyurl(value); - break; - case 22: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBurned(value); - break; - case 23: - var value = /** @type {string} */ (reader.readString()); - msg.addExtensions(value); - break; - case 25: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPeerid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Session.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Session.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Session} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Session.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUuid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getGid(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTransport(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getRemoteaddress(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 12, - f - ); - } - f = message.getFilename(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getLastcheckin(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getActivec2(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getEvasion(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getIsdead(); - if (f) { - writer.writeBool( - 18, - f - ); - } - f = message.getReconnectinterval(); - if (f !== 0) { - writer.writeInt64( - 19, - f - ); - } - f = message.getProxyurl(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getBurned(); - if (f) { - writer.writeBool( - 22, - f - ); - } - f = message.getExtensionsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 23, - f - ); - } - f = message.getPeerid(); - if (f !== 0) { - writer.writeInt64( - 25, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.clientpb.Session.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.clientpb.Session.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Hostname = 3; - * @return {string} - */ -proto.clientpb.Session.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string UUID = 4; - * @return {string} - */ -proto.clientpb.Session.prototype.getUuid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setUuid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Username = 5; - * @return {string} - */ -proto.clientpb.Session.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string UID = 6; - * @return {string} - */ -proto.clientpb.Session.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string GID = 7; - * @return {string} - */ -proto.clientpb.Session.prototype.getGid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setGid = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string OS = 8; - * @return {string} - */ -proto.clientpb.Session.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string Arch = 9; - * @return {string} - */ -proto.clientpb.Session.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string Transport = 10; - * @return {string} - */ -proto.clientpb.Session.prototype.getTransport = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setTransport = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string RemoteAddress = 11; - * @return {string} - */ -proto.clientpb.Session.prototype.getRemoteaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setRemoteaddress = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional int32 PID = 12; - * @return {number} - */ -proto.clientpb.Session.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional string Filename = 13; - * @return {string} - */ -proto.clientpb.Session.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional int64 LastCheckin = 14; - * @return {number} - */ -proto.clientpb.Session.prototype.getLastcheckin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setLastcheckin = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional string ActiveC2 = 15; - * @return {string} - */ -proto.clientpb.Session.prototype.getActivec2 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setActivec2 = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional string Version = 16; - * @return {string} - */ -proto.clientpb.Session.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional bool Evasion = 17; - * @return {boolean} - */ -proto.clientpb.Session.prototype.getEvasion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setEvasion = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional bool IsDead = 18; - * @return {boolean} - */ -proto.clientpb.Session.prototype.getIsdead = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setIsdead = function(value) { - return jspb.Message.setProto3BooleanField(this, 18, value); -}; - - -/** - * optional int64 ReconnectInterval = 19; - * @return {number} - */ -proto.clientpb.Session.prototype.getReconnectinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 19, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setReconnectinterval = function(value) { - return jspb.Message.setProto3IntField(this, 19, value); -}; - - -/** - * optional string ProxyURL = 20; - * @return {string} - */ -proto.clientpb.Session.prototype.getProxyurl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setProxyurl = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional bool Burned = 22; - * @return {boolean} - */ -proto.clientpb.Session.prototype.getBurned = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 22, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setBurned = function(value) { - return jspb.Message.setProto3BooleanField(this, 22, value); -}; - - -/** - * repeated string Extensions = 23; - * @return {!Array} - */ -proto.clientpb.Session.prototype.getExtensionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 23)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setExtensionsList = function(value) { - return jspb.Message.setField(this, 23, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.addExtensions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 23, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.clearExtensionsList = function() { - return this.setExtensionsList([]); -}; - - -/** - * optional int64 PeerID = 25; - * @return {number} - */ -proto.clientpb.Session.prototype.getPeerid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Session} returns this - */ -proto.clientpb.Session.prototype.setPeerid = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Beacon.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Beacon.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Beacon} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Beacon.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 3, ""), - uuid: jspb.Message.getFieldWithDefault(msg, 4, ""), - username: jspb.Message.getFieldWithDefault(msg, 5, ""), - uid: jspb.Message.getFieldWithDefault(msg, 6, ""), - gid: jspb.Message.getFieldWithDefault(msg, 7, ""), - os: jspb.Message.getFieldWithDefault(msg, 8, ""), - arch: jspb.Message.getFieldWithDefault(msg, 9, ""), - transport: jspb.Message.getFieldWithDefault(msg, 10, ""), - remoteaddress: jspb.Message.getFieldWithDefault(msg, 11, ""), - pid: jspb.Message.getFieldWithDefault(msg, 12, 0), - filename: jspb.Message.getFieldWithDefault(msg, 13, ""), - lastcheckin: jspb.Message.getFieldWithDefault(msg, 14, 0), - activec2: jspb.Message.getFieldWithDefault(msg, 15, ""), - version: jspb.Message.getFieldWithDefault(msg, 16, ""), - evasion: jspb.Message.getBooleanFieldWithDefault(msg, 17, false), - isdead: jspb.Message.getBooleanFieldWithDefault(msg, 18, false), - proxyurl: jspb.Message.getFieldWithDefault(msg, 20, ""), - reconnectinterval: jspb.Message.getFieldWithDefault(msg, 21, 0), - interval: jspb.Message.getFieldWithDefault(msg, 22, 0), - jitter: jspb.Message.getFieldWithDefault(msg, 23, 0), - burned: jspb.Message.getBooleanFieldWithDefault(msg, 24, false), - nextcheckin: jspb.Message.getFieldWithDefault(msg, 25, 0), - taskscount: jspb.Message.getFieldWithDefault(msg, 26, 0), - taskscountcompleted: jspb.Message.getFieldWithDefault(msg, 27, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Beacon} - */ -proto.clientpb.Beacon.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Beacon; - return proto.clientpb.Beacon.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Beacon} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Beacon} - */ -proto.clientpb.Beacon.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUuid(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setGid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setTransport(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setRemoteaddress(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 14: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLastcheckin(value); - break; - case 15: - var value = /** @type {string} */ (reader.readString()); - msg.setActivec2(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 17: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEvasion(value); - break; - case 18: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdead(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setProxyurl(value); - break; - case 21: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReconnectinterval(value); - break; - case 22: - var value = /** @type {number} */ (reader.readInt64()); - msg.setInterval(value); - break; - case 23: - var value = /** @type {number} */ (reader.readInt64()); - msg.setJitter(value); - break; - case 24: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setBurned(value); - break; - case 25: - var value = /** @type {number} */ (reader.readInt64()); - msg.setNextcheckin(value); - break; - case 26: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTaskscount(value); - break; - case 27: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTaskscountcompleted(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Beacon.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Beacon.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Beacon} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Beacon.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUuid(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getGid(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } - f = message.getTransport(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getRemoteaddress(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 12, - f - ); - } - f = message.getFilename(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getLastcheckin(); - if (f !== 0) { - writer.writeInt64( - 14, - f - ); - } - f = message.getActivec2(); - if (f.length > 0) { - writer.writeString( - 15, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getEvasion(); - if (f) { - writer.writeBool( - 17, - f - ); - } - f = message.getIsdead(); - if (f) { - writer.writeBool( - 18, - f - ); - } - f = message.getProxyurl(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getReconnectinterval(); - if (f !== 0) { - writer.writeInt64( - 21, - f - ); - } - f = message.getInterval(); - if (f !== 0) { - writer.writeInt64( - 22, - f - ); - } - f = message.getJitter(); - if (f !== 0) { - writer.writeInt64( - 23, - f - ); - } - f = message.getBurned(); - if (f) { - writer.writeBool( - 24, - f - ); - } - f = message.getNextcheckin(); - if (f !== 0) { - writer.writeInt64( - 25, - f - ); - } - f = message.getTaskscount(); - if (f !== 0) { - writer.writeInt64( - 26, - f - ); - } - f = message.getTaskscountcompleted(); - if (f !== 0) { - writer.writeInt64( - 27, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Hostname = 3; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string UUID = 4; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getUuid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setUuid = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Username = 5; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string UID = 6; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string GID = 7; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getGid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setGid = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string OS = 8; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string Arch = 9; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - -/** - * optional string Transport = 10; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getTransport = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setTransport = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string RemoteAddress = 11; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getRemoteaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setRemoteaddress = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional int32 PID = 12; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - -/** - * optional string Filename = 13; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional int64 LastCheckin = 14; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getLastcheckin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setLastcheckin = function(value) { - return jspb.Message.setProto3IntField(this, 14, value); -}; - - -/** - * optional string ActiveC2 = 15; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getActivec2 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setActivec2 = function(value) { - return jspb.Message.setProto3StringField(this, 15, value); -}; - - -/** - * optional string Version = 16; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional bool Evasion = 17; - * @return {boolean} - */ -proto.clientpb.Beacon.prototype.getEvasion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setEvasion = function(value) { - return jspb.Message.setProto3BooleanField(this, 17, value); -}; - - -/** - * optional bool IsDead = 18; - * @return {boolean} - */ -proto.clientpb.Beacon.prototype.getIsdead = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 18, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setIsdead = function(value) { - return jspb.Message.setProto3BooleanField(this, 18, value); -}; - - -/** - * optional string ProxyURL = 20; - * @return {string} - */ -proto.clientpb.Beacon.prototype.getProxyurl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setProxyurl = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional int64 ReconnectInterval = 21; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getReconnectinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 21, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setReconnectinterval = function(value) { - return jspb.Message.setProto3IntField(this, 21, value); -}; - - -/** - * optional int64 Interval = 22; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 22, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setInterval = function(value) { - return jspb.Message.setProto3IntField(this, 22, value); -}; - - -/** - * optional int64 Jitter = 23; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getJitter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 23, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setJitter = function(value) { - return jspb.Message.setProto3IntField(this, 23, value); -}; - - -/** - * optional bool Burned = 24; - * @return {boolean} - */ -proto.clientpb.Beacon.prototype.getBurned = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 24, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setBurned = function(value) { - return jspb.Message.setProto3BooleanField(this, 24, value); -}; - - -/** - * optional int64 NextCheckin = 25; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getNextcheckin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 25, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setNextcheckin = function(value) { - return jspb.Message.setProto3IntField(this, 25, value); -}; - - -/** - * optional int64 TasksCount = 26; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getTaskscount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 26, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setTaskscount = function(value) { - return jspb.Message.setProto3IntField(this, 26, value); -}; - - -/** - * optional int64 TasksCountCompleted = 27; - * @return {number} - */ -proto.clientpb.Beacon.prototype.getTaskscountcompleted = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 27, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Beacon} returns this - */ -proto.clientpb.Beacon.prototype.setTaskscountcompleted = function(value) { - return jspb.Message.setProto3IntField(this, 27, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Beacons.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Beacons.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Beacons.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Beacons} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Beacons.toObject = function(includeInstance, msg) { - var f, obj = { - beaconsList: jspb.Message.toObjectList(msg.getBeaconsList(), - proto.clientpb.Beacon.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Beacons} - */ -proto.clientpb.Beacons.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Beacons; - return proto.clientpb.Beacons.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Beacons} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Beacons} - */ -proto.clientpb.Beacons.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = new proto.clientpb.Beacon; - reader.readMessage(value,proto.clientpb.Beacon.deserializeBinaryFromReader); - msg.addBeacons(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Beacons.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Beacons.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Beacons} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Beacons.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBeaconsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.clientpb.Beacon.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Beacon Beacons = 2; - * @return {!Array} - */ -proto.clientpb.Beacons.prototype.getBeaconsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Beacon, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Beacons} returns this -*/ -proto.clientpb.Beacons.prototype.setBeaconsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clientpb.Beacon=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Beacon} - */ -proto.clientpb.Beacons.prototype.addBeacons = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clientpb.Beacon, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Beacons} returns this - */ -proto.clientpb.Beacons.prototype.clearBeaconsList = function() { - return this.setBeaconsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.BeaconTask.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.BeaconTask.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.BeaconTask} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.BeaconTask.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - beaconid: jspb.Message.getFieldWithDefault(msg, 2, ""), - createdat: jspb.Message.getFieldWithDefault(msg, 3, 0), - state: jspb.Message.getFieldWithDefault(msg, 4, ""), - sentat: jspb.Message.getFieldWithDefault(msg, 5, 0), - completedat: jspb.Message.getFieldWithDefault(msg, 6, 0), - request: msg.getRequest_asB64(), - response: msg.getResponse_asB64(), - description: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.BeaconTask} - */ -proto.clientpb.BeaconTask.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.BeaconTask; - return proto.clientpb.BeaconTask.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.BeaconTask} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.BeaconTask} - */ -proto.clientpb.BeaconTask.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setBeaconid(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCreatedat(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setState(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSentat(value); - break; - case 6: - var value = /** @type {number} */ (reader.readInt64()); - msg.setCompletedat(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setRequest(value); - break; - case 8: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setResponse(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.BeaconTask.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.BeaconTask.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.BeaconTask} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.BeaconTask.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBeaconid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCreatedat(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getState(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSentat(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getCompletedat(); - if (f !== 0) { - writer.writeInt64( - 6, - f - ); - } - f = message.getRequest_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getResponse_asU8(); - if (f.length > 0) { - writer.writeBytes( - 8, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string BeaconID = 2; - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getBeaconid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setBeaconid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional int64 CreatedAt = 3; - * @return {number} - */ -proto.clientpb.BeaconTask.prototype.getCreatedat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setCreatedat = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string State = 4; - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getState = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setState = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int64 SentAt = 5; - * @return {number} - */ -proto.clientpb.BeaconTask.prototype.getSentat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setSentat = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional int64 CompletedAt = 6; - * @return {number} - */ -proto.clientpb.BeaconTask.prototype.getCompletedat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setCompletedat = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - -/** - * optional bytes Request = 7; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.BeaconTask.prototype.getRequest = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes Request = 7; - * This is a type-conversion wrapper around `getRequest()` - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getRequest_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getRequest())); -}; - - -/** - * optional bytes Request = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getRequest()` - * @return {!Uint8Array} - */ -proto.clientpb.BeaconTask.prototype.getRequest_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getRequest())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setRequest = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional bytes Response = 8; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.BeaconTask.prototype.getResponse = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * optional bytes Response = 8; - * This is a type-conversion wrapper around `getResponse()` - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getResponse_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getResponse())); -}; - - -/** - * optional bytes Response = 8; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getResponse()` - * @return {!Uint8Array} - */ -proto.clientpb.BeaconTask.prototype.getResponse_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getResponse())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setResponse = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); -}; - - -/** - * optional string Description = 9; - * @return {string} - */ -proto.clientpb.BeaconTask.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.BeaconTask} returns this - */ -proto.clientpb.BeaconTask.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.BeaconTasks.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.BeaconTasks.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.BeaconTasks.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.BeaconTasks} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.BeaconTasks.toObject = function(includeInstance, msg) { - var f, obj = { - beaconid: jspb.Message.getFieldWithDefault(msg, 1, ""), - tasksList: jspb.Message.toObjectList(msg.getTasksList(), - proto.clientpb.BeaconTask.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.BeaconTasks} - */ -proto.clientpb.BeaconTasks.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.BeaconTasks; - return proto.clientpb.BeaconTasks.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.BeaconTasks} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.BeaconTasks} - */ -proto.clientpb.BeaconTasks.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setBeaconid(value); - break; - case 2: - var value = new proto.clientpb.BeaconTask; - reader.readMessage(value,proto.clientpb.BeaconTask.deserializeBinaryFromReader); - msg.addTasks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.BeaconTasks.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.BeaconTasks.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.BeaconTasks} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.BeaconTasks.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBeaconid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTasksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.clientpb.BeaconTask.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string BeaconID = 1; - * @return {string} - */ -proto.clientpb.BeaconTasks.prototype.getBeaconid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.BeaconTasks} returns this - */ -proto.clientpb.BeaconTasks.prototype.setBeaconid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated BeaconTask Tasks = 2; - * @return {!Array} - */ -proto.clientpb.BeaconTasks.prototype.getTasksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.BeaconTask, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.BeaconTasks} returns this -*/ -proto.clientpb.BeaconTasks.prototype.setTasksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.clientpb.BeaconTask=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.BeaconTask} - */ -proto.clientpb.BeaconTasks.prototype.addTasks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.clientpb.BeaconTask, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.BeaconTasks} returns this - */ -proto.clientpb.BeaconTasks.prototype.clearTasksList = function() { - return this.setTasksList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ImplantC2.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ImplantC2.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ImplantC2} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantC2.toObject = function(includeInstance, msg) { - var f, obj = { - priority: jspb.Message.getFieldWithDefault(msg, 1, 0), - url: jspb.Message.getFieldWithDefault(msg, 2, ""), - options: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ImplantC2} - */ -proto.clientpb.ImplantC2.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ImplantC2; - return proto.clientpb.ImplantC2.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ImplantC2} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ImplantC2} - */ -proto.clientpb.ImplantC2.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPriority(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUrl(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOptions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ImplantC2.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ImplantC2.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ImplantC2} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantC2.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPriority(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getUrl(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOptions(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional uint32 Priority = 1; - * @return {number} - */ -proto.clientpb.ImplantC2.prototype.getPriority = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantC2} returns this - */ -proto.clientpb.ImplantC2.prototype.setPriority = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string URL = 2; - * @return {string} - */ -proto.clientpb.ImplantC2.prototype.getUrl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantC2} returns this - */ -proto.clientpb.ImplantC2.prototype.setUrl = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Options = 3; - * @return {string} - */ -proto.clientpb.ImplantC2.prototype.getOptions = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantC2} returns this - */ -proto.clientpb.ImplantC2.prototype.setOptions = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.ImplantConfig.repeatedFields_ = [50,51]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ImplantConfig.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ImplantConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ImplantConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantConfig.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - isbeacon: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - beaconinterval: jspb.Message.getFieldWithDefault(msg, 3, 0), - beaconjitter: jspb.Message.getFieldWithDefault(msg, 4, 0), - goos: jspb.Message.getFieldWithDefault(msg, 5, ""), - goarch: jspb.Message.getFieldWithDefault(msg, 6, ""), - name: jspb.Message.getFieldWithDefault(msg, 7, ""), - debug: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - evasion: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - obfuscatesymbols: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - mtlscacert: jspb.Message.getFieldWithDefault(msg, 20, ""), - mtlscert: jspb.Message.getFieldWithDefault(msg, 21, ""), - mtlskey: jspb.Message.getFieldWithDefault(msg, 22, ""), - eccpublickey: jspb.Message.getFieldWithDefault(msg, 23, ""), - eccprivatekey: jspb.Message.getFieldWithDefault(msg, 24, ""), - eccpublickeysignature: jspb.Message.getFieldWithDefault(msg, 25, ""), - minisignserverpublickey: jspb.Message.getFieldWithDefault(msg, 26, ""), - wgimplantprivkey: jspb.Message.getFieldWithDefault(msg, 30, ""), - wgserverpubkey: jspb.Message.getFieldWithDefault(msg, 31, ""), - wgpeertunip: jspb.Message.getFieldWithDefault(msg, 32, ""), - wgkeyexchangeport: jspb.Message.getFieldWithDefault(msg, 33, 0), - wgtcpcommsport: jspb.Message.getFieldWithDefault(msg, 34, 0), - reconnectinterval: jspb.Message.getFieldWithDefault(msg, 40, 0), - maxconnectionerrors: jspb.Message.getFieldWithDefault(msg, 41, 0), - polltimeout: jspb.Message.getFieldWithDefault(msg, 42, 0), - c2List: jspb.Message.toObjectList(msg.getC2List(), - proto.clientpb.ImplantC2.toObject, includeInstance), - canarydomainsList: (f = jspb.Message.getRepeatedField(msg, 51)) == null ? undefined : f, - connectionstrategy: jspb.Message.getFieldWithDefault(msg, 52, ""), - limitdomainjoined: jspb.Message.getBooleanFieldWithDefault(msg, 60, false), - limitdatetime: jspb.Message.getFieldWithDefault(msg, 61, ""), - limithostname: jspb.Message.getFieldWithDefault(msg, 62, ""), - limitusername: jspb.Message.getFieldWithDefault(msg, 63, ""), - limitfileexists: jspb.Message.getFieldWithDefault(msg, 64, ""), - format: jspb.Message.getFieldWithDefault(msg, 100, 0), - issharedlib: jspb.Message.getBooleanFieldWithDefault(msg, 101, false), - filename: jspb.Message.getFieldWithDefault(msg, 102, ""), - isservice: jspb.Message.getBooleanFieldWithDefault(msg, 103, false), - isshellcode: jspb.Message.getBooleanFieldWithDefault(msg, 104, false), - runatload: jspb.Message.getBooleanFieldWithDefault(msg, 105, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ImplantConfig} - */ -proto.clientpb.ImplantConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ImplantConfig; - return proto.clientpb.ImplantConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ImplantConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ImplantConfig} - */ -proto.clientpb.ImplantConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsbeacon(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBeaconinterval(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBeaconjitter(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setGoos(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGoarch(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setDebug(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEvasion(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setObfuscatesymbols(value); - break; - case 20: - var value = /** @type {string} */ (reader.readString()); - msg.setMtlscacert(value); - break; - case 21: - var value = /** @type {string} */ (reader.readString()); - msg.setMtlscert(value); - break; - case 22: - var value = /** @type {string} */ (reader.readString()); - msg.setMtlskey(value); - break; - case 23: - var value = /** @type {string} */ (reader.readString()); - msg.setEccpublickey(value); - break; - case 24: - var value = /** @type {string} */ (reader.readString()); - msg.setEccprivatekey(value); - break; - case 25: - var value = /** @type {string} */ (reader.readString()); - msg.setEccpublickeysignature(value); - break; - case 26: - var value = /** @type {string} */ (reader.readString()); - msg.setMinisignserverpublickey(value); - break; - case 30: - var value = /** @type {string} */ (reader.readString()); - msg.setWgimplantprivkey(value); - break; - case 31: - var value = /** @type {string} */ (reader.readString()); - msg.setWgserverpubkey(value); - break; - case 32: - var value = /** @type {string} */ (reader.readString()); - msg.setWgpeertunip(value); - break; - case 33: - var value = /** @type {number} */ (reader.readUint32()); - msg.setWgkeyexchangeport(value); - break; - case 34: - var value = /** @type {number} */ (reader.readUint32()); - msg.setWgtcpcommsport(value); - break; - case 40: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReconnectinterval(value); - break; - case 41: - var value = /** @type {number} */ (reader.readUint32()); - msg.setMaxconnectionerrors(value); - break; - case 42: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPolltimeout(value); - break; - case 50: - var value = new proto.clientpb.ImplantC2; - reader.readMessage(value,proto.clientpb.ImplantC2.deserializeBinaryFromReader); - msg.addC2(value); - break; - case 51: - var value = /** @type {string} */ (reader.readString()); - msg.addCanarydomains(value); - break; - case 52: - var value = /** @type {string} */ (reader.readString()); - msg.setConnectionstrategy(value); - break; - case 60: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setLimitdomainjoined(value); - break; - case 61: - var value = /** @type {string} */ (reader.readString()); - msg.setLimitdatetime(value); - break; - case 62: - var value = /** @type {string} */ (reader.readString()); - msg.setLimithostname(value); - break; - case 63: - var value = /** @type {string} */ (reader.readString()); - msg.setLimitusername(value); - break; - case 64: - var value = /** @type {string} */ (reader.readString()); - msg.setLimitfileexists(value); - break; - case 100: - var value = /** @type {!proto.clientpb.OutputFormat} */ (reader.readEnum()); - msg.setFormat(value); - break; - case 101: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIssharedlib(value); - break; - case 102: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 103: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsservice(value); - break; - case 104: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsshellcode(value); - break; - case 105: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRunatload(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ImplantConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ImplantConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ImplantConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsbeacon(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getBeaconinterval(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getBeaconjitter(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getGoos(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getGoarch(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getDebug(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getEvasion(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getObfuscatesymbols(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getMtlscacert(); - if (f.length > 0) { - writer.writeString( - 20, - f - ); - } - f = message.getMtlscert(); - if (f.length > 0) { - writer.writeString( - 21, - f - ); - } - f = message.getMtlskey(); - if (f.length > 0) { - writer.writeString( - 22, - f - ); - } - f = message.getEccpublickey(); - if (f.length > 0) { - writer.writeString( - 23, - f - ); - } - f = message.getEccprivatekey(); - if (f.length > 0) { - writer.writeString( - 24, - f - ); - } - f = message.getEccpublickeysignature(); - if (f.length > 0) { - writer.writeString( - 25, - f - ); - } - f = message.getMinisignserverpublickey(); - if (f.length > 0) { - writer.writeString( - 26, - f - ); - } - f = message.getWgimplantprivkey(); - if (f.length > 0) { - writer.writeString( - 30, - f - ); - } - f = message.getWgserverpubkey(); - if (f.length > 0) { - writer.writeString( - 31, - f - ); - } - f = message.getWgpeertunip(); - if (f.length > 0) { - writer.writeString( - 32, - f - ); - } - f = message.getWgkeyexchangeport(); - if (f !== 0) { - writer.writeUint32( - 33, - f - ); - } - f = message.getWgtcpcommsport(); - if (f !== 0) { - writer.writeUint32( - 34, - f - ); - } - f = message.getReconnectinterval(); - if (f !== 0) { - writer.writeInt64( - 40, - f - ); - } - f = message.getMaxconnectionerrors(); - if (f !== 0) { - writer.writeUint32( - 41, - f - ); - } - f = message.getPolltimeout(); - if (f !== 0) { - writer.writeInt64( - 42, - f - ); - } - f = message.getC2List(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 50, - f, - proto.clientpb.ImplantC2.serializeBinaryToWriter - ); - } - f = message.getCanarydomainsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 51, - f - ); - } - f = message.getConnectionstrategy(); - if (f.length > 0) { - writer.writeString( - 52, - f - ); - } - f = message.getLimitdomainjoined(); - if (f) { - writer.writeBool( - 60, - f - ); - } - f = message.getLimitdatetime(); - if (f.length > 0) { - writer.writeString( - 61, - f - ); - } - f = message.getLimithostname(); - if (f.length > 0) { - writer.writeString( - 62, - f - ); - } - f = message.getLimitusername(); - if (f.length > 0) { - writer.writeString( - 63, - f - ); - } - f = message.getLimitfileexists(); - if (f.length > 0) { - writer.writeString( - 64, - f - ); - } - f = message.getFormat(); - if (f !== 0.0) { - writer.writeEnum( - 100, - f - ); - } - f = message.getIssharedlib(); - if (f) { - writer.writeBool( - 101, - f - ); - } - f = message.getFilename(); - if (f.length > 0) { - writer.writeString( - 102, - f - ); - } - f = message.getIsservice(); - if (f) { - writer.writeBool( - 103, - f - ); - } - f = message.getIsshellcode(); - if (f) { - writer.writeBool( - 104, - f - ); - } - f = message.getRunatload(); - if (f) { - writer.writeBool( - 105, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool IsBeacon = 2; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getIsbeacon = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setIsbeacon = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional int64 BeaconInterval = 3; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getBeaconinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setBeaconinterval = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 BeaconJitter = 4; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getBeaconjitter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setBeaconjitter = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string GOOS = 5; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getGoos = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setGoos = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string GOARCH = 6; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getGoarch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setGoarch = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string Name = 7; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional bool Debug = 8; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getDebug = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setDebug = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool Evasion = 9; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getEvasion = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setEvasion = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool ObfuscateSymbols = 10; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getObfuscatesymbols = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setObfuscatesymbols = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional string MtlsCACert = 20; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getMtlscacert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 20, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setMtlscacert = function(value) { - return jspb.Message.setProto3StringField(this, 20, value); -}; - - -/** - * optional string MtlsCert = 21; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getMtlscert = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 21, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setMtlscert = function(value) { - return jspb.Message.setProto3StringField(this, 21, value); -}; - - -/** - * optional string MtlsKey = 22; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getMtlskey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 22, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setMtlskey = function(value) { - return jspb.Message.setProto3StringField(this, 22, value); -}; - - -/** - * optional string ECCPublicKey = 23; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getEccpublickey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setEccpublickey = function(value) { - return jspb.Message.setProto3StringField(this, 23, value); -}; - - -/** - * optional string ECCPrivateKey = 24; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getEccprivatekey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setEccprivatekey = function(value) { - return jspb.Message.setProto3StringField(this, 24, value); -}; - - -/** - * optional string ECCPublicKeySignature = 25; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getEccpublickeysignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 25, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setEccpublickeysignature = function(value) { - return jspb.Message.setProto3StringField(this, 25, value); -}; - - -/** - * optional string MinisignServerPublicKey = 26; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getMinisignserverpublickey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 26, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setMinisignserverpublickey = function(value) { - return jspb.Message.setProto3StringField(this, 26, value); -}; - - -/** - * optional string WGImplantPrivKey = 30; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getWgimplantprivkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setWgimplantprivkey = function(value) { - return jspb.Message.setProto3StringField(this, 30, value); -}; - - -/** - * optional string WGServerPubKey = 31; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getWgserverpubkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 31, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setWgserverpubkey = function(value) { - return jspb.Message.setProto3StringField(this, 31, value); -}; - - -/** - * optional string WGPeerTunIP = 32; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getWgpeertunip = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 32, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setWgpeertunip = function(value) { - return jspb.Message.setProto3StringField(this, 32, value); -}; - - -/** - * optional uint32 WGKeyExchangePort = 33; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getWgkeyexchangeport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 33, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setWgkeyexchangeport = function(value) { - return jspb.Message.setProto3IntField(this, 33, value); -}; - - -/** - * optional uint32 WGTcpCommsPort = 34; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getWgtcpcommsport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 34, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setWgtcpcommsport = function(value) { - return jspb.Message.setProto3IntField(this, 34, value); -}; - - -/** - * optional int64 ReconnectInterval = 40; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getReconnectinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 40, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setReconnectinterval = function(value) { - return jspb.Message.setProto3IntField(this, 40, value); -}; - - -/** - * optional uint32 MaxConnectionErrors = 41; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getMaxconnectionerrors = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 41, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setMaxconnectionerrors = function(value) { - return jspb.Message.setProto3IntField(this, 41, value); -}; - - -/** - * optional int64 PollTimeout = 42; - * @return {number} - */ -proto.clientpb.ImplantConfig.prototype.getPolltimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 42, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setPolltimeout = function(value) { - return jspb.Message.setProto3IntField(this, 42, value); -}; - - -/** - * repeated ImplantC2 C2 = 50; - * @return {!Array} - */ -proto.clientpb.ImplantConfig.prototype.getC2List = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.ImplantC2, 50)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.ImplantConfig} returns this -*/ -proto.clientpb.ImplantConfig.prototype.setC2List = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 50, value); -}; - - -/** - * @param {!proto.clientpb.ImplantC2=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.ImplantC2} - */ -proto.clientpb.ImplantConfig.prototype.addC2 = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 50, opt_value, proto.clientpb.ImplantC2, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.clearC2List = function() { - return this.setC2List([]); -}; - - -/** - * repeated string CanaryDomains = 51; - * @return {!Array} - */ -proto.clientpb.ImplantConfig.prototype.getCanarydomainsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 51)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setCanarydomainsList = function(value) { - return jspb.Message.setField(this, 51, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.addCanarydomains = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 51, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.clearCanarydomainsList = function() { - return this.setCanarydomainsList([]); -}; - - -/** - * optional string ConnectionStrategy = 52; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getConnectionstrategy = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 52, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setConnectionstrategy = function(value) { - return jspb.Message.setProto3StringField(this, 52, value); -}; - - -/** - * optional bool LimitDomainJoined = 60; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getLimitdomainjoined = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 60, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setLimitdomainjoined = function(value) { - return jspb.Message.setProto3BooleanField(this, 60, value); -}; - - -/** - * optional string LimitDatetime = 61; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getLimitdatetime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 61, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setLimitdatetime = function(value) { - return jspb.Message.setProto3StringField(this, 61, value); -}; - - -/** - * optional string LimitHostname = 62; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getLimithostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 62, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setLimithostname = function(value) { - return jspb.Message.setProto3StringField(this, 62, value); -}; - - -/** - * optional string LimitUsername = 63; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getLimitusername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 63, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setLimitusername = function(value) { - return jspb.Message.setProto3StringField(this, 63, value); -}; - - -/** - * optional string LimitFileExists = 64; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getLimitfileexists = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 64, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setLimitfileexists = function(value) { - return jspb.Message.setProto3StringField(this, 64, value); -}; - - -/** - * optional OutputFormat Format = 100; - * @return {!proto.clientpb.OutputFormat} - */ -proto.clientpb.ImplantConfig.prototype.getFormat = function() { - return /** @type {!proto.clientpb.OutputFormat} */ (jspb.Message.getFieldWithDefault(this, 100, 0)); -}; - - -/** - * @param {!proto.clientpb.OutputFormat} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setFormat = function(value) { - return jspb.Message.setProto3EnumField(this, 100, value); -}; - - -/** - * optional bool IsSharedLib = 101; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getIssharedlib = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 101, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setIssharedlib = function(value) { - return jspb.Message.setProto3BooleanField(this, 101, value); -}; - - -/** - * optional string FileName = 102; - * @return {string} - */ -proto.clientpb.ImplantConfig.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 102, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 102, value); -}; - - -/** - * optional bool IsService = 103; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getIsservice = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 103, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setIsservice = function(value) { - return jspb.Message.setProto3BooleanField(this, 103, value); -}; - - -/** - * optional bool IsShellcode = 104; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getIsshellcode = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 104, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setIsshellcode = function(value) { - return jspb.Message.setProto3BooleanField(this, 104, value); -}; - - -/** - * optional bool RunAtLoad = 105; - * @return {boolean} - */ -proto.clientpb.ImplantConfig.prototype.getRunatload = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 105, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.ImplantConfig} returns this - */ -proto.clientpb.ImplantConfig.prototype.setRunatload = function(value) { - return jspb.Message.setProto3BooleanField(this, 105, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ImplantBuilds.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ImplantBuilds.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ImplantBuilds} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantBuilds.toObject = function(includeInstance, msg) { - var f, obj = { - configsMap: (f = msg.getConfigsMap()) ? f.toObject(includeInstance, proto.clientpb.ImplantConfig.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ImplantBuilds} - */ -proto.clientpb.ImplantBuilds.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ImplantBuilds; - return proto.clientpb.ImplantBuilds.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ImplantBuilds} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ImplantBuilds} - */ -proto.clientpb.ImplantBuilds.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getConfigsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clientpb.ImplantConfig.deserializeBinaryFromReader, "", new proto.clientpb.ImplantConfig()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ImplantBuilds.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ImplantBuilds.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ImplantBuilds} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantBuilds.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConfigsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clientpb.ImplantConfig.serializeBinaryToWriter); - } -}; - - -/** - * map Configs = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.clientpb.ImplantBuilds.prototype.getConfigsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - proto.clientpb.ImplantConfig)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.clientpb.ImplantBuilds} returns this - */ -proto.clientpb.ImplantBuilds.prototype.clearConfigsMap = function() { - this.getConfigsMap().clear(); - return this;}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.CompilerTarget.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.CompilerTarget.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.CompilerTarget} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CompilerTarget.toObject = function(includeInstance, msg) { - var f, obj = { - goos: jspb.Message.getFieldWithDefault(msg, 1, ""), - goarch: jspb.Message.getFieldWithDefault(msg, 2, ""), - format: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.CompilerTarget} - */ -proto.clientpb.CompilerTarget.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.CompilerTarget; - return proto.clientpb.CompilerTarget.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.CompilerTarget} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.CompilerTarget} - */ -proto.clientpb.CompilerTarget.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGoos(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGoarch(value); - break; - case 3: - var value = /** @type {!proto.clientpb.OutputFormat} */ (reader.readEnum()); - msg.setFormat(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.CompilerTarget.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.CompilerTarget.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.CompilerTarget} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CompilerTarget.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGoos(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGoarch(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getFormat(); - if (f !== 0.0) { - writer.writeEnum( - 3, - f - ); - } -}; - - -/** - * optional string GOOS = 1; - * @return {string} - */ -proto.clientpb.CompilerTarget.prototype.getGoos = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CompilerTarget} returns this - */ -proto.clientpb.CompilerTarget.prototype.setGoos = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string GOARCH = 2; - * @return {string} - */ -proto.clientpb.CompilerTarget.prototype.getGoarch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CompilerTarget} returns this - */ -proto.clientpb.CompilerTarget.prototype.setGoarch = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional OutputFormat Format = 3; - * @return {!proto.clientpb.OutputFormat} - */ -proto.clientpb.CompilerTarget.prototype.getFormat = function() { - return /** @type {!proto.clientpb.OutputFormat} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {!proto.clientpb.OutputFormat} value - * @return {!proto.clientpb.CompilerTarget} returns this - */ -proto.clientpb.CompilerTarget.prototype.setFormat = function(value) { - return jspb.Message.setProto3EnumField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.CrossCompiler.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.CrossCompiler.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.CrossCompiler} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CrossCompiler.toObject = function(includeInstance, msg) { - var f, obj = { - targetgoos: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetgoarch: jspb.Message.getFieldWithDefault(msg, 2, ""), - ccpath: jspb.Message.getFieldWithDefault(msg, 3, ""), - cxxpath: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.CrossCompiler} - */ -proto.clientpb.CrossCompiler.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.CrossCompiler; - return proto.clientpb.CrossCompiler.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.CrossCompiler} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.CrossCompiler} - */ -proto.clientpb.CrossCompiler.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetgoos(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetgoarch(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setCcpath(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCxxpath(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.CrossCompiler.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.CrossCompiler.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.CrossCompiler} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CrossCompiler.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTargetgoos(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetgoarch(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getCcpath(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCxxpath(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string TargetGOOS = 1; - * @return {string} - */ -proto.clientpb.CrossCompiler.prototype.getTargetgoos = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CrossCompiler} returns this - */ -proto.clientpb.CrossCompiler.prototype.setTargetgoos = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string TargetGOARCH = 2; - * @return {string} - */ -proto.clientpb.CrossCompiler.prototype.getTargetgoarch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CrossCompiler} returns this - */ -proto.clientpb.CrossCompiler.prototype.setTargetgoarch = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string CCPath = 3; - * @return {string} - */ -proto.clientpb.CrossCompiler.prototype.getCcpath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CrossCompiler} returns this - */ -proto.clientpb.CrossCompiler.prototype.setCcpath = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string CXXPath = 4; - * @return {string} - */ -proto.clientpb.CrossCompiler.prototype.getCxxpath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CrossCompiler} returns this - */ -proto.clientpb.CrossCompiler.prototype.setCxxpath = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Compiler.repeatedFields_ = [3,4,5]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Compiler.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Compiler.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Compiler} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Compiler.toObject = function(includeInstance, msg) { - var f, obj = { - goos: jspb.Message.getFieldWithDefault(msg, 1, ""), - goarch: jspb.Message.getFieldWithDefault(msg, 2, ""), - targetsList: jspb.Message.toObjectList(msg.getTargetsList(), - proto.clientpb.CompilerTarget.toObject, includeInstance), - crosscompilersList: jspb.Message.toObjectList(msg.getCrosscompilersList(), - proto.clientpb.CrossCompiler.toObject, includeInstance), - unsupportedtargetsList: jspb.Message.toObjectList(msg.getUnsupportedtargetsList(), - proto.clientpb.CompilerTarget.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Compiler} - */ -proto.clientpb.Compiler.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Compiler; - return proto.clientpb.Compiler.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Compiler} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Compiler} - */ -proto.clientpb.Compiler.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setGoos(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setGoarch(value); - break; - case 3: - var value = new proto.clientpb.CompilerTarget; - reader.readMessage(value,proto.clientpb.CompilerTarget.deserializeBinaryFromReader); - msg.addTargets(value); - break; - case 4: - var value = new proto.clientpb.CrossCompiler; - reader.readMessage(value,proto.clientpb.CrossCompiler.deserializeBinaryFromReader); - msg.addCrosscompilers(value); - break; - case 5: - var value = new proto.clientpb.CompilerTarget; - reader.readMessage(value,proto.clientpb.CompilerTarget.deserializeBinaryFromReader); - msg.addUnsupportedtargets(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Compiler.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Compiler.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Compiler} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Compiler.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getGoos(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getGoarch(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTargetsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.clientpb.CompilerTarget.serializeBinaryToWriter - ); - } - f = message.getCrosscompilersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.clientpb.CrossCompiler.serializeBinaryToWriter - ); - } - f = message.getUnsupportedtargetsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 5, - f, - proto.clientpb.CompilerTarget.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string GOOS = 1; - * @return {string} - */ -proto.clientpb.Compiler.prototype.getGoos = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Compiler} returns this - */ -proto.clientpb.Compiler.prototype.setGoos = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string GOARCH = 2; - * @return {string} - */ -proto.clientpb.Compiler.prototype.getGoarch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Compiler} returns this - */ -proto.clientpb.Compiler.prototype.setGoarch = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated CompilerTarget Targets = 3; - * @return {!Array} - */ -proto.clientpb.Compiler.prototype.getTargetsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.CompilerTarget, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Compiler} returns this -*/ -proto.clientpb.Compiler.prototype.setTargetsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.clientpb.CompilerTarget=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.CompilerTarget} - */ -proto.clientpb.Compiler.prototype.addTargets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.clientpb.CompilerTarget, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Compiler} returns this - */ -proto.clientpb.Compiler.prototype.clearTargetsList = function() { - return this.setTargetsList([]); -}; - - -/** - * repeated CrossCompiler CrossCompilers = 4; - * @return {!Array} - */ -proto.clientpb.Compiler.prototype.getCrosscompilersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.CrossCompiler, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Compiler} returns this -*/ -proto.clientpb.Compiler.prototype.setCrosscompilersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clientpb.CrossCompiler=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.CrossCompiler} - */ -proto.clientpb.Compiler.prototype.addCrosscompilers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clientpb.CrossCompiler, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Compiler} returns this - */ -proto.clientpb.Compiler.prototype.clearCrosscompilersList = function() { - return this.setCrosscompilersList([]); -}; - - -/** - * repeated CompilerTarget UnsupportedTargets = 5; - * @return {!Array} - */ -proto.clientpb.Compiler.prototype.getUnsupportedtargetsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.CompilerTarget, 5)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Compiler} returns this -*/ -proto.clientpb.Compiler.prototype.setUnsupportedtargetsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 5, value); -}; - - -/** - * @param {!proto.clientpb.CompilerTarget=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.CompilerTarget} - */ -proto.clientpb.Compiler.prototype.addUnsupportedtargets = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 5, opt_value, proto.clientpb.CompilerTarget, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Compiler} returns this - */ -proto.clientpb.Compiler.prototype.clearUnsupportedtargetsList = function() { - return this.setUnsupportedtargetsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DeleteReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DeleteReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DeleteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DeleteReq.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DeleteReq} - */ -proto.clientpb.DeleteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DeleteReq; - return proto.clientpb.DeleteReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DeleteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DeleteReq} - */ -proto.clientpb.DeleteReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DeleteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DeleteReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DeleteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DeleteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.clientpb.DeleteReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DeleteReq} returns this - */ -proto.clientpb.DeleteReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DNSCanary.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DNSCanary.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DNSCanary} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSCanary.toObject = function(includeInstance, msg) { - var f, obj = { - implantname: jspb.Message.getFieldWithDefault(msg, 1, ""), - domain: jspb.Message.getFieldWithDefault(msg, 2, ""), - triggered: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - firsttriggered: jspb.Message.getFieldWithDefault(msg, 4, ""), - latesttrigger: jspb.Message.getFieldWithDefault(msg, 5, ""), - count: jspb.Message.getFieldWithDefault(msg, 6, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DNSCanary} - */ -proto.clientpb.DNSCanary.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DNSCanary; - return proto.clientpb.DNSCanary.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DNSCanary} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DNSCanary} - */ -proto.clientpb.DNSCanary.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setImplantname(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTriggered(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setFirsttriggered(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setLatesttrigger(value); - break; - case 6: - var value = /** @type {number} */ (reader.readUint32()); - msg.setCount(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DNSCanary.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DNSCanary.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DNSCanary} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSCanary.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getImplantname(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getTriggered(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getFirsttriggered(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getLatesttrigger(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCount(); - if (f !== 0) { - writer.writeUint32( - 6, - f - ); - } -}; - - -/** - * optional string ImplantName = 1; - * @return {string} - */ -proto.clientpb.DNSCanary.prototype.getImplantname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setImplantname = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Domain = 2; - * @return {string} - */ -proto.clientpb.DNSCanary.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setDomain = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool Triggered = 3; - * @return {boolean} - */ -proto.clientpb.DNSCanary.prototype.getTriggered = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setTriggered = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string FirstTriggered = 4; - * @return {string} - */ -proto.clientpb.DNSCanary.prototype.getFirsttriggered = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setFirsttriggered = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string LatestTrigger = 5; - * @return {string} - */ -proto.clientpb.DNSCanary.prototype.getLatesttrigger = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setLatesttrigger = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint32 Count = 6; - * @return {number} - */ -proto.clientpb.DNSCanary.prototype.getCount = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.DNSCanary} returns this - */ -proto.clientpb.DNSCanary.prototype.setCount = function(value) { - return jspb.Message.setProto3IntField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Canaries.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Canaries.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Canaries.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Canaries} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Canaries.toObject = function(includeInstance, msg) { - var f, obj = { - canariesList: jspb.Message.toObjectList(msg.getCanariesList(), - proto.clientpb.DNSCanary.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Canaries} - */ -proto.clientpb.Canaries.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Canaries; - return proto.clientpb.Canaries.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Canaries} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Canaries} - */ -proto.clientpb.Canaries.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.DNSCanary; - reader.readMessage(value,proto.clientpb.DNSCanary.deserializeBinaryFromReader); - msg.addCanaries(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Canaries.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Canaries.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Canaries} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Canaries.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getCanariesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.DNSCanary.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated DNSCanary Canaries = 1; - * @return {!Array} - */ -proto.clientpb.Canaries.prototype.getCanariesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.DNSCanary, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Canaries} returns this -*/ -proto.clientpb.Canaries.prototype.setCanariesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.DNSCanary=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.DNSCanary} - */ -proto.clientpb.Canaries.prototype.addCanaries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.DNSCanary, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Canaries} returns this - */ -proto.clientpb.Canaries.prototype.clearCanariesList = function() { - return this.setCanariesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.UniqueWGIP.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.UniqueWGIP.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.UniqueWGIP} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.UniqueWGIP.toObject = function(includeInstance, msg) { - var f, obj = { - ip: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.UniqueWGIP} - */ -proto.clientpb.UniqueWGIP.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.UniqueWGIP; - return proto.clientpb.UniqueWGIP.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.UniqueWGIP} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.UniqueWGIP} - */ -proto.clientpb.UniqueWGIP.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.UniqueWGIP.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.UniqueWGIP.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.UniqueWGIP} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.UniqueWGIP.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIp(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string IP = 1; - * @return {string} - */ -proto.clientpb.UniqueWGIP.prototype.getIp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.UniqueWGIP} returns this - */ -proto.clientpb.UniqueWGIP.prototype.setIp = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ImplantProfile.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ImplantProfile.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ImplantProfile} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantProfile.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - config: (f = msg.getConfig()) && proto.clientpb.ImplantConfig.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ImplantProfile} - */ -proto.clientpb.ImplantProfile.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ImplantProfile; - return proto.clientpb.ImplantProfile.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ImplantProfile} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ImplantProfile} - */ -proto.clientpb.ImplantProfile.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = new proto.clientpb.ImplantConfig; - reader.readMessage(value,proto.clientpb.ImplantConfig.deserializeBinaryFromReader); - msg.setConfig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ImplantProfile.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ImplantProfile.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ImplantProfile} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantProfile.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getConfig(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientpb.ImplantConfig.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.clientpb.ImplantProfile.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ImplantProfile} returns this - */ -proto.clientpb.ImplantProfile.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ImplantConfig Config = 2; - * @return {?proto.clientpb.ImplantConfig} - */ -proto.clientpb.ImplantProfile.prototype.getConfig = function() { - return /** @type{?proto.clientpb.ImplantConfig} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.ImplantConfig, 2)); -}; - - -/** - * @param {?proto.clientpb.ImplantConfig|undefined} value - * @return {!proto.clientpb.ImplantProfile} returns this -*/ -proto.clientpb.ImplantProfile.prototype.setConfig = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.ImplantProfile} returns this - */ -proto.clientpb.ImplantProfile.prototype.clearConfig = function() { - return this.setConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.ImplantProfile.prototype.hasConfig = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.ImplantProfiles.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ImplantProfiles.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ImplantProfiles.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ImplantProfiles} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantProfiles.toObject = function(includeInstance, msg) { - var f, obj = { - profilesList: jspb.Message.toObjectList(msg.getProfilesList(), - proto.clientpb.ImplantProfile.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ImplantProfiles} - */ -proto.clientpb.ImplantProfiles.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ImplantProfiles; - return proto.clientpb.ImplantProfiles.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ImplantProfiles} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ImplantProfiles} - */ -proto.clientpb.ImplantProfiles.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.ImplantProfile; - reader.readMessage(value,proto.clientpb.ImplantProfile.deserializeBinaryFromReader); - msg.addProfiles(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ImplantProfiles.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ImplantProfiles.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ImplantProfiles} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ImplantProfiles.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProfilesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.ImplantProfile.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated ImplantProfile Profiles = 1; - * @return {!Array} - */ -proto.clientpb.ImplantProfiles.prototype.getProfilesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.ImplantProfile, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.ImplantProfiles} returns this -*/ -proto.clientpb.ImplantProfiles.prototype.setProfilesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.ImplantProfile=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.ImplantProfile} - */ -proto.clientpb.ImplantProfiles.prototype.addProfiles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.ImplantProfile, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.ImplantProfiles} returns this - */ -proto.clientpb.ImplantProfiles.prototype.clearProfilesList = function() { - return this.setProfilesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.RegenerateReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.RegenerateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.RegenerateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.RegenerateReq.toObject = function(includeInstance, msg) { - var f, obj = { - implantname: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.RegenerateReq} - */ -proto.clientpb.RegenerateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.RegenerateReq; - return proto.clientpb.RegenerateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.RegenerateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.RegenerateReq} - */ -proto.clientpb.RegenerateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setImplantname(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.RegenerateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.RegenerateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.RegenerateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.RegenerateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getImplantname(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string ImplantName = 1; - * @return {string} - */ -proto.clientpb.RegenerateReq.prototype.getImplantname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.RegenerateReq} returns this - */ -proto.clientpb.RegenerateReq.prototype.setImplantname = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Job.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Job.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Job.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Job} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Job.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - description: jspb.Message.getFieldWithDefault(msg, 3, ""), - protocol: jspb.Message.getFieldWithDefault(msg, 4, ""), - port: jspb.Message.getFieldWithDefault(msg, 5, 0), - domainsList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Job} - */ -proto.clientpb.Job.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Job; - return proto.clientpb.Job.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Job} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Job} - */ -proto.clientpb.Job.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addDomains(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Job.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Job.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Job} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Job.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 5, - f - ); - } - f = message.getDomainsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.clientpb.Job.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.clientpb.Job.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Description = 3; - * @return {string} - */ -proto.clientpb.Job.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Protocol = 4; - * @return {string} - */ -proto.clientpb.Job.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint32 Port = 5; - * @return {number} - */ -proto.clientpb.Job.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * repeated string Domains = 6; - * @return {!Array} - */ -proto.clientpb.Job.prototype.getDomainsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.setDomainsList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.addDomains = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Job} returns this - */ -proto.clientpb.Job.prototype.clearDomainsList = function() { - return this.setDomainsList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Jobs.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Jobs.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Jobs.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Jobs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Jobs.toObject = function(includeInstance, msg) { - var f, obj = { - activeList: jspb.Message.toObjectList(msg.getActiveList(), - proto.clientpb.Job.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Jobs} - */ -proto.clientpb.Jobs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Jobs; - return proto.clientpb.Jobs.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Jobs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Jobs} - */ -proto.clientpb.Jobs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Job; - reader.readMessage(value,proto.clientpb.Job.deserializeBinaryFromReader); - msg.addActive(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Jobs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Jobs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Jobs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Jobs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getActiveList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Job.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Job Active = 1; - * @return {!Array} - */ -proto.clientpb.Jobs.prototype.getActiveList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Job, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Jobs} returns this -*/ -proto.clientpb.Jobs.prototype.setActiveList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Job=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Job} - */ -proto.clientpb.Jobs.prototype.addActive = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Job, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Jobs} returns this - */ -proto.clientpb.Jobs.prototype.clearActiveList = function() { - return this.setActiveList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.KillJobReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.KillJobReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.KillJobReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.KillJobReq.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.KillJobReq} - */ -proto.clientpb.KillJobReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.KillJobReq; - return proto.clientpb.KillJobReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.KillJobReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.KillJobReq} - */ -proto.clientpb.KillJobReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.KillJobReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.KillJobReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.KillJobReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.KillJobReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.clientpb.KillJobReq.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.KillJobReq} returns this - */ -proto.clientpb.KillJobReq.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.KillJob.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.KillJob.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.KillJob} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.KillJob.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - success: jspb.Message.getBooleanFieldWithDefault(msg, 2, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.KillJob} - */ -proto.clientpb.KillJob.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.KillJob; - return proto.clientpb.KillJob.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.KillJob} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.KillJob} - */ -proto.clientpb.KillJob.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.KillJob.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.KillJob.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.KillJob} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.KillJob.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getSuccess(); - if (f) { - writer.writeBool( - 2, - f - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.clientpb.KillJob.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.KillJob} returns this - */ -proto.clientpb.KillJob.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool Success = 2; - * @return {boolean} - */ -proto.clientpb.KillJob.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.KillJob} returns this - */ -proto.clientpb.KillJob.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MTLSListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MTLSListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MTLSListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MTLSListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - host: jspb.Message.getFieldWithDefault(msg, 1, ""), - port: jspb.Message.getFieldWithDefault(msg, 2, 0), - persistent: jspb.Message.getBooleanFieldWithDefault(msg, 3, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MTLSListenerReq} - */ -proto.clientpb.MTLSListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MTLSListenerReq; - return proto.clientpb.MTLSListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MTLSListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MTLSListenerReq} - */ -proto.clientpb.MTLSListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPersistent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MTLSListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MTLSListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MTLSListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MTLSListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getPersistent(); - if (f) { - writer.writeBool( - 3, - f - ); - } -}; - - -/** - * optional string Host = 1; - * @return {string} - */ -proto.clientpb.MTLSListenerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MTLSListenerReq} returns this - */ -proto.clientpb.MTLSListenerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 Port = 2; - * @return {number} - */ -proto.clientpb.MTLSListenerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MTLSListenerReq} returns this - */ -proto.clientpb.MTLSListenerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bool Persistent = 3; - * @return {boolean} - */ -proto.clientpb.MTLSListenerReq.prototype.getPersistent = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.MTLSListenerReq} returns this - */ -proto.clientpb.MTLSListenerReq.prototype.setPersistent = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MTLSListener.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MTLSListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MTLSListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MTLSListener.toObject = function(includeInstance, msg) { - var f, obj = { - jobid: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MTLSListener} - */ -proto.clientpb.MTLSListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MTLSListener; - return proto.clientpb.MTLSListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MTLSListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MTLSListener} - */ -proto.clientpb.MTLSListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setJobid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MTLSListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MTLSListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MTLSListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MTLSListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 JobID = 1; - * @return {number} - */ -proto.clientpb.MTLSListener.prototype.getJobid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MTLSListener} returns this - */ -proto.clientpb.MTLSListener.prototype.setJobid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WGListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WGListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WGListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - host: jspb.Message.getFieldWithDefault(msg, 6, ""), - port: jspb.Message.getFieldWithDefault(msg, 1, 0), - tunip: jspb.Message.getFieldWithDefault(msg, 2, ""), - nport: jspb.Message.getFieldWithDefault(msg, 3, 0), - keyport: jspb.Message.getFieldWithDefault(msg, 4, 0), - persistent: jspb.Message.getBooleanFieldWithDefault(msg, 5, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WGListenerReq} - */ -proto.clientpb.WGListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WGListenerReq; - return proto.clientpb.WGListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WGListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WGListenerReq} - */ -proto.clientpb.WGListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTunip(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNport(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setKeyport(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPersistent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WGListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WGListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WGListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getTunip(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getNport(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getKeyport(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getPersistent(); - if (f) { - writer.writeBool( - 5, - f - ); - } -}; - - -/** - * optional string Host = 6; - * @return {string} - */ -proto.clientpb.WGListenerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional uint32 Port = 1; - * @return {number} - */ -proto.clientpb.WGListenerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string TunIP = 2; - * @return {string} - */ -proto.clientpb.WGListenerReq.prototype.getTunip = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setTunip = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 NPort = 3; - * @return {number} - */ -proto.clientpb.WGListenerReq.prototype.getNport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setNport = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint32 KeyPort = 4; - * @return {number} - */ -proto.clientpb.WGListenerReq.prototype.getKeyport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setKeyport = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool Persistent = 5; - * @return {boolean} - */ -proto.clientpb.WGListenerReq.prototype.getPersistent = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.WGListenerReq} returns this - */ -proto.clientpb.WGListenerReq.prototype.setPersistent = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WGListener.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WGListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WGListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGListener.toObject = function(includeInstance, msg) { - var f, obj = { - jobid: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WGListener} - */ -proto.clientpb.WGListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WGListener; - return proto.clientpb.WGListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WGListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WGListener} - */ -proto.clientpb.WGListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setJobid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WGListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WGListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WGListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 JobID = 1; - * @return {number} - */ -proto.clientpb.WGListener.prototype.getJobid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.WGListener} returns this - */ -proto.clientpb.WGListener.prototype.setJobid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.DNSListenerReq.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DNSListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DNSListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DNSListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - domainsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - canaries: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - host: jspb.Message.getFieldWithDefault(msg, 3, ""), - port: jspb.Message.getFieldWithDefault(msg, 4, 0), - persistent: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - enforceotp: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DNSListenerReq} - */ -proto.clientpb.DNSListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DNSListenerReq; - return proto.clientpb.DNSListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DNSListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DNSListenerReq} - */ -proto.clientpb.DNSListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addDomains(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCanaries(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPersistent(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnforceotp(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DNSListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DNSListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DNSListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomainsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getCanaries(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getPersistent(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getEnforceotp(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * repeated string Domains = 1; - * @return {!Array} - */ -proto.clientpb.DNSListenerReq.prototype.getDomainsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setDomainsList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.addDomains = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.clearDomainsList = function() { - return this.setDomainsList([]); -}; - - -/** - * optional bool Canaries = 2; - * @return {boolean} - */ -proto.clientpb.DNSListenerReq.prototype.getCanaries = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setCanaries = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional string Host = 3; - * @return {string} - */ -proto.clientpb.DNSListenerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint32 Port = 4; - * @return {number} - */ -proto.clientpb.DNSListenerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool Persistent = 5; - * @return {boolean} - */ -proto.clientpb.DNSListenerReq.prototype.getPersistent = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setPersistent = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool EnforceOTP = 6; - * @return {boolean} - */ -proto.clientpb.DNSListenerReq.prototype.getEnforceotp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.DNSListenerReq} returns this - */ -proto.clientpb.DNSListenerReq.prototype.setEnforceotp = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DNSListener.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DNSListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DNSListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSListener.toObject = function(includeInstance, msg) { - var f, obj = { - jobid: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DNSListener} - */ -proto.clientpb.DNSListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DNSListener; - return proto.clientpb.DNSListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DNSListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DNSListener} - */ -proto.clientpb.DNSListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setJobid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DNSListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DNSListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DNSListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DNSListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 JobID = 1; - * @return {number} - */ -proto.clientpb.DNSListener.prototype.getJobid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.DNSListener} returns this - */ -proto.clientpb.DNSListener.prototype.setJobid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.HTTPListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.HTTPListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.HTTPListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.HTTPListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - domain: jspb.Message.getFieldWithDefault(msg, 1, ""), - host: jspb.Message.getFieldWithDefault(msg, 2, ""), - port: jspb.Message.getFieldWithDefault(msg, 3, 0), - secure: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - website: jspb.Message.getFieldWithDefault(msg, 5, ""), - cert: msg.getCert_asB64(), - key: msg.getKey_asB64(), - acme: jspb.Message.getBooleanFieldWithDefault(msg, 8, false), - persistent: jspb.Message.getBooleanFieldWithDefault(msg, 9, false), - enforceotp: jspb.Message.getBooleanFieldWithDefault(msg, 10, false), - longpolltimeout: jspb.Message.getFieldWithDefault(msg, 11, 0), - longpolljitter: jspb.Message.getFieldWithDefault(msg, 12, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.HTTPListenerReq} - */ -proto.clientpb.HTTPListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.HTTPListenerReq; - return proto.clientpb.HTTPListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.HTTPListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.HTTPListenerReq} - */ -proto.clientpb.HTTPListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSecure(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setWebsite(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCert(value); - break; - case 7: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - case 8: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcme(value); - break; - case 9: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setPersistent(value); - break; - case 10: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnforceotp(value); - break; - case 11: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLongpolltimeout(value); - break; - case 12: - var value = /** @type {number} */ (reader.readInt64()); - msg.setLongpolljitter(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.HTTPListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.HTTPListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.HTTPListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.HTTPListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getSecure(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getWebsite(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getCert_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 7, - f - ); - } - f = message.getAcme(); - if (f) { - writer.writeBool( - 8, - f - ); - } - f = message.getPersistent(); - if (f) { - writer.writeBool( - 9, - f - ); - } - f = message.getEnforceotp(); - if (f) { - writer.writeBool( - 10, - f - ); - } - f = message.getLongpolltimeout(); - if (f !== 0) { - writer.writeInt64( - 11, - f - ); - } - f = message.getLongpolljitter(); - if (f !== 0) { - writer.writeInt64( - 12, - f - ); - } -}; - - -/** - * optional string Domain = 1; - * @return {string} - */ -proto.clientpb.HTTPListenerReq.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setDomain = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Host = 2; - * @return {string} - */ -proto.clientpb.HTTPListenerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Port = 3; - * @return {number} - */ -proto.clientpb.HTTPListenerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool Secure = 4; - * @return {boolean} - */ -proto.clientpb.HTTPListenerReq.prototype.getSecure = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setSecure = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional string Website = 5; - * @return {string} - */ -proto.clientpb.HTTPListenerReq.prototype.getWebsite = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setWebsite = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes Cert = 6; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.HTTPListenerReq.prototype.getCert = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes Cert = 6; - * This is a type-conversion wrapper around `getCert()` - * @return {string} - */ -proto.clientpb.HTTPListenerReq.prototype.getCert_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCert())); -}; - - -/** - * optional bytes Cert = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCert()` - * @return {!Uint8Array} - */ -proto.clientpb.HTTPListenerReq.prototype.getCert_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCert())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setCert = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional bytes Key = 7; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.HTTPListenerReq.prototype.getKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * optional bytes Key = 7; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.clientpb.HTTPListenerReq.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes Key = 7; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.clientpb.HTTPListenerReq.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 7, value); -}; - - -/** - * optional bool ACME = 8; - * @return {boolean} - */ -proto.clientpb.HTTPListenerReq.prototype.getAcme = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 8, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setAcme = function(value) { - return jspb.Message.setProto3BooleanField(this, 8, value); -}; - - -/** - * optional bool Persistent = 9; - * @return {boolean} - */ -proto.clientpb.HTTPListenerReq.prototype.getPersistent = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 9, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setPersistent = function(value) { - return jspb.Message.setProto3BooleanField(this, 9, value); -}; - - -/** - * optional bool EnforceOTP = 10; - * @return {boolean} - */ -proto.clientpb.HTTPListenerReq.prototype.getEnforceotp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setEnforceotp = function(value) { - return jspb.Message.setProto3BooleanField(this, 10, value); -}; - - -/** - * optional int64 LongPollTimeout = 11; - * @return {number} - */ -proto.clientpb.HTTPListenerReq.prototype.getLongpolltimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setLongpolltimeout = function(value) { - return jspb.Message.setProto3IntField(this, 11, value); -}; - - -/** - * optional int64 LongPollJitter = 12; - * @return {number} - */ -proto.clientpb.HTTPListenerReq.prototype.getLongpolljitter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.HTTPListenerReq} returns this - */ -proto.clientpb.HTTPListenerReq.prototype.setLongpolljitter = function(value) { - return jspb.Message.setProto3IntField(this, 12, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.NamedPipesReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.NamedPipesReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.NamedPipesReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.NamedPipesReq.toObject = function(includeInstance, msg) { - var f, obj = { - pipename: jspb.Message.getFieldWithDefault(msg, 16, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.NamedPipesReq} - */ -proto.clientpb.NamedPipesReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.NamedPipesReq; - return proto.clientpb.NamedPipesReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.NamedPipesReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.NamedPipesReq} - */ -proto.clientpb.NamedPipesReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setPipename(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.NamedPipesReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.NamedPipesReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.NamedPipesReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.NamedPipesReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPipename(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string PipeName = 16; - * @return {string} - */ -proto.clientpb.NamedPipesReq.prototype.getPipename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.NamedPipesReq} returns this - */ -proto.clientpb.NamedPipesReq.prototype.setPipename = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.NamedPipesReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.NamedPipesReq} returns this -*/ -proto.clientpb.NamedPipesReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.NamedPipesReq} returns this - */ -proto.clientpb.NamedPipesReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.NamedPipesReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.NamedPipes.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.NamedPipes.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.NamedPipes} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.NamedPipes.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - err: jspb.Message.getFieldWithDefault(msg, 2, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.NamedPipes} - */ -proto.clientpb.NamedPipes.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.NamedPipes; - return proto.clientpb.NamedPipes.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.NamedPipes} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.NamedPipes} - */ -proto.clientpb.NamedPipes.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.NamedPipes.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.NamedPipes.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.NamedPipes} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.NamedPipes.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool Success = 1; - * @return {boolean} - */ -proto.clientpb.NamedPipes.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.NamedPipes} returns this - */ -proto.clientpb.NamedPipes.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string Err = 2; - * @return {string} - */ -proto.clientpb.NamedPipes.prototype.getErr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.NamedPipes} returns this - */ -proto.clientpb.NamedPipes.prototype.setErr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.clientpb.NamedPipes.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.clientpb.NamedPipes} returns this -*/ -proto.clientpb.NamedPipes.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.NamedPipes} returns this - */ -proto.clientpb.NamedPipes.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.NamedPipes.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.TCPPivotReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.TCPPivotReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.TCPPivotReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.TCPPivotReq.toObject = function(includeInstance, msg) { - var f, obj = { - address: jspb.Message.getFieldWithDefault(msg, 16, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.TCPPivotReq} - */ -proto.clientpb.TCPPivotReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.TCPPivotReq; - return proto.clientpb.TCPPivotReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.TCPPivotReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.TCPPivotReq} - */ -proto.clientpb.TCPPivotReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setAddress(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.TCPPivotReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.TCPPivotReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.TCPPivotReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.TCPPivotReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAddress(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Address = 16; - * @return {string} - */ -proto.clientpb.TCPPivotReq.prototype.getAddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.TCPPivotReq} returns this - */ -proto.clientpb.TCPPivotReq.prototype.setAddress = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.TCPPivotReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.TCPPivotReq} returns this -*/ -proto.clientpb.TCPPivotReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.TCPPivotReq} returns this - */ -proto.clientpb.TCPPivotReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.TCPPivotReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.TCPPivot.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.TCPPivot.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.TCPPivot} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.TCPPivot.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - err: jspb.Message.getFieldWithDefault(msg, 2, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.TCPPivot} - */ -proto.clientpb.TCPPivot.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.TCPPivot; - return proto.clientpb.TCPPivot.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.TCPPivot} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.TCPPivot} - */ -proto.clientpb.TCPPivot.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.TCPPivot.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.TCPPivot.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.TCPPivot} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.TCPPivot.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool Success = 1; - * @return {boolean} - */ -proto.clientpb.TCPPivot.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.TCPPivot} returns this - */ -proto.clientpb.TCPPivot.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string Err = 2; - * @return {string} - */ -proto.clientpb.TCPPivot.prototype.getErr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.TCPPivot} returns this - */ -proto.clientpb.TCPPivot.prototype.setErr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.clientpb.TCPPivot.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.clientpb.TCPPivot} returns this -*/ -proto.clientpb.TCPPivot.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.TCPPivot} returns this - */ -proto.clientpb.TCPPivot.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.TCPPivot.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.HTTPListener.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.HTTPListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.HTTPListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.HTTPListener.toObject = function(includeInstance, msg) { - var f, obj = { - jobid: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.HTTPListener} - */ -proto.clientpb.HTTPListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.HTTPListener; - return proto.clientpb.HTTPListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.HTTPListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.HTTPListener} - */ -proto.clientpb.HTTPListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setJobid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.HTTPListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.HTTPListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.HTTPListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.HTTPListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 JobID = 1; - * @return {number} - */ -proto.clientpb.HTTPListener.prototype.getJobid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.HTTPListener} returns this - */ -proto.clientpb.HTTPListener.prototype.setJobid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Sessions.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Sessions.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Sessions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Sessions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Sessions.toObject = function(includeInstance, msg) { - var f, obj = { - sessionsList: jspb.Message.toObjectList(msg.getSessionsList(), - proto.clientpb.Session.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Sessions} - */ -proto.clientpb.Sessions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Sessions; - return proto.clientpb.Sessions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Sessions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Sessions} - */ -proto.clientpb.Sessions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Session; - reader.readMessage(value,proto.clientpb.Session.deserializeBinaryFromReader); - msg.addSessions(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Sessions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Sessions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Sessions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Sessions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessionsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Session.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Session Sessions = 1; - * @return {!Array} - */ -proto.clientpb.Sessions.prototype.getSessionsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Session, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Sessions} returns this -*/ -proto.clientpb.Sessions.prototype.setSessionsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Session=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Session} - */ -proto.clientpb.Sessions.prototype.addSessions = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Session, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Sessions} returns this - */ -proto.clientpb.Sessions.prototype.clearSessionsList = function() { - return this.setSessionsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.RenameReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.RenameReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.RenameReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.RenameReq.toObject = function(includeInstance, msg) { - var f, obj = { - sessionid: jspb.Message.getFieldWithDefault(msg, 1, ""), - beaconid: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.RenameReq} - */ -proto.clientpb.RenameReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.RenameReq; - return proto.clientpb.RenameReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.RenameReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.RenameReq} - */ -proto.clientpb.RenameReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setBeaconid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.RenameReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.RenameReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.RenameReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.RenameReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessionid(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getBeaconid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string SessionID = 1; - * @return {string} - */ -proto.clientpb.RenameReq.prototype.getSessionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.RenameReq} returns this - */ -proto.clientpb.RenameReq.prototype.setSessionid = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string BeaconID = 2; - * @return {string} - */ -proto.clientpb.RenameReq.prototype.getBeaconid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.RenameReq} returns this - */ -proto.clientpb.RenameReq.prototype.setBeaconid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Name = 3; - * @return {string} - */ -proto.clientpb.RenameReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.RenameReq} returns this - */ -proto.clientpb.RenameReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.GenerateReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.GenerateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.GenerateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.GenerateReq.toObject = function(includeInstance, msg) { - var f, obj = { - config: (f = msg.getConfig()) && proto.clientpb.ImplantConfig.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.GenerateReq} - */ -proto.clientpb.GenerateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.GenerateReq; - return proto.clientpb.GenerateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.GenerateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.GenerateReq} - */ -proto.clientpb.GenerateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.ImplantConfig; - reader.readMessage(value,proto.clientpb.ImplantConfig.deserializeBinaryFromReader); - msg.setConfig(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.GenerateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.GenerateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.GenerateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.GenerateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getConfig(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.clientpb.ImplantConfig.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ImplantConfig Config = 1; - * @return {?proto.clientpb.ImplantConfig} - */ -proto.clientpb.GenerateReq.prototype.getConfig = function() { - return /** @type{?proto.clientpb.ImplantConfig} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.ImplantConfig, 1)); -}; - - -/** - * @param {?proto.clientpb.ImplantConfig|undefined} value - * @return {!proto.clientpb.GenerateReq} returns this -*/ -proto.clientpb.GenerateReq.prototype.setConfig = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.GenerateReq} returns this - */ -proto.clientpb.GenerateReq.prototype.clearConfig = function() { - return this.setConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.GenerateReq.prototype.hasConfig = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Generate.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Generate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Generate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Generate.toObject = function(includeInstance, msg) { - var f, obj = { - file: (f = msg.getFile()) && commonpb_common_pb.File.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Generate} - */ -proto.clientpb.Generate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Generate; - return proto.clientpb.Generate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Generate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Generate} - */ -proto.clientpb.Generate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commonpb_common_pb.File; - reader.readMessage(value,commonpb_common_pb.File.deserializeBinaryFromReader); - msg.setFile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Generate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Generate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Generate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Generate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFile(); - if (f != null) { - writer.writeMessage( - 1, - f, - commonpb_common_pb.File.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.File File = 1; - * @return {?proto.commonpb.File} - */ -proto.clientpb.Generate.prototype.getFile = function() { - return /** @type{?proto.commonpb.File} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.File, 1)); -}; - - -/** - * @param {?proto.commonpb.File|undefined} value - * @return {!proto.clientpb.Generate} returns this -*/ -proto.clientpb.Generate.prototype.setFile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Generate} returns this - */ -proto.clientpb.Generate.prototype.clearFile = function() { - return this.setFile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Generate.prototype.hasFile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MSFReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MSFReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MSFReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MSFReq.toObject = function(includeInstance, msg) { - var f, obj = { - payload: jspb.Message.getFieldWithDefault(msg, 1, ""), - lhost: jspb.Message.getFieldWithDefault(msg, 2, ""), - lport: jspb.Message.getFieldWithDefault(msg, 3, 0), - encoder: jspb.Message.getFieldWithDefault(msg, 4, ""), - iterations: jspb.Message.getFieldWithDefault(msg, 5, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MSFReq} - */ -proto.clientpb.MSFReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MSFReq; - return proto.clientpb.MSFReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MSFReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MSFReq} - */ -proto.clientpb.MSFReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPayload(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLhost(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLport(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoder(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIterations(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MSFReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MSFReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MSFReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MSFReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPayload(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLhost(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLport(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getEncoder(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getIterations(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Payload = 1; - * @return {string} - */ -proto.clientpb.MSFReq.prototype.getPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.setPayload = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string LHost = 2; - * @return {string} - */ -proto.clientpb.MSFReq.prototype.getLhost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.setLhost = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 LPort = 3; - * @return {number} - */ -proto.clientpb.MSFReq.prototype.getLport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.setLport = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Encoder = 4; - * @return {string} - */ -proto.clientpb.MSFReq.prototype.getEncoder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.setEncoder = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int32 Iterations = 5; - * @return {number} - */ -proto.clientpb.MSFReq.prototype.getIterations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.setIterations = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.MSFReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.MSFReq} returns this -*/ -proto.clientpb.MSFReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.MSFReq} returns this - */ -proto.clientpb.MSFReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.MSFReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MSFRemoteReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MSFRemoteReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MSFRemoteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MSFRemoteReq.toObject = function(includeInstance, msg) { - var f, obj = { - payload: jspb.Message.getFieldWithDefault(msg, 1, ""), - lhost: jspb.Message.getFieldWithDefault(msg, 2, ""), - lport: jspb.Message.getFieldWithDefault(msg, 3, 0), - encoder: jspb.Message.getFieldWithDefault(msg, 4, ""), - iterations: jspb.Message.getFieldWithDefault(msg, 5, 0), - pid: jspb.Message.getFieldWithDefault(msg, 8, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MSFRemoteReq} - */ -proto.clientpb.MSFRemoteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MSFRemoteReq; - return proto.clientpb.MSFRemoteReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MSFRemoteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MSFRemoteReq} - */ -proto.clientpb.MSFRemoteReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPayload(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLhost(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setLport(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoder(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIterations(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MSFRemoteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MSFRemoteReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MSFRemoteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MSFRemoteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPayload(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getLhost(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getLport(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getEncoder(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getIterations(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Payload = 1; - * @return {string} - */ -proto.clientpb.MSFRemoteReq.prototype.getPayload = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setPayload = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string LHost = 2; - * @return {string} - */ -proto.clientpb.MSFRemoteReq.prototype.getLhost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setLhost = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 LPort = 3; - * @return {number} - */ -proto.clientpb.MSFRemoteReq.prototype.getLport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setLport = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Encoder = 4; - * @return {string} - */ -proto.clientpb.MSFRemoteReq.prototype.getEncoder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setEncoder = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int32 Iterations = 5; - * @return {number} - */ -proto.clientpb.MSFRemoteReq.prototype.getIterations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setIterations = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint32 PID = 8; - * @return {number} - */ -proto.clientpb.MSFRemoteReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.MSFRemoteReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.MSFRemoteReq} returns this -*/ -proto.clientpb.MSFRemoteReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.MSFRemoteReq} returns this - */ -proto.clientpb.MSFRemoteReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.MSFRemoteReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.StagerListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.StagerListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.StagerListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.StagerListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - protocol: jspb.Message.getFieldWithDefault(msg, 1, 0), - host: jspb.Message.getFieldWithDefault(msg, 2, ""), - port: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: msg.getData_asB64(), - cert: msg.getCert_asB64(), - key: msg.getKey_asB64(), - acme: jspb.Message.getBooleanFieldWithDefault(msg, 7, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.StagerListenerReq} - */ -proto.clientpb.StagerListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.StagerListenerReq; - return proto.clientpb.StagerListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.StagerListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.StagerListenerReq} - */ -proto.clientpb.StagerListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.clientpb.StageProtocol} */ (reader.readEnum()); - msg.setProtocol(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setCert(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAcme(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.StagerListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.StagerListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.StagerListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.StagerListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProtocol(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getCert_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getAcme(); - if (f) { - writer.writeBool( - 7, - f - ); - } -}; - - -/** - * optional StageProtocol Protocol = 1; - * @return {!proto.clientpb.StageProtocol} - */ -proto.clientpb.StagerListenerReq.prototype.getProtocol = function() { - return /** @type {!proto.clientpb.StageProtocol} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.clientpb.StageProtocol} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setProtocol = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string Host = 2; - * @return {string} - */ -proto.clientpb.StagerListenerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Port = 3; - * @return {number} - */ -proto.clientpb.StagerListenerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes Data = 4; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.StagerListenerReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes Data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.StagerListenerReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.StagerListenerReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes Cert = 5; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.StagerListenerReq.prototype.getCert = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes Cert = 5; - * This is a type-conversion wrapper around `getCert()` - * @return {string} - */ -proto.clientpb.StagerListenerReq.prototype.getCert_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getCert())); -}; - - -/** - * optional bytes Cert = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getCert()` - * @return {!Uint8Array} - */ -proto.clientpb.StagerListenerReq.prototype.getCert_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getCert())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setCert = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional bytes Key = 6; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.StagerListenerReq.prototype.getKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes Key = 6; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.clientpb.StagerListenerReq.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes Key = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.clientpb.StagerListenerReq.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional bool ACME = 7; - * @return {boolean} - */ -proto.clientpb.StagerListenerReq.prototype.getAcme = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.StagerListenerReq} returns this - */ -proto.clientpb.StagerListenerReq.prototype.setAcme = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.StagerListener.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.StagerListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.StagerListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.StagerListener.toObject = function(includeInstance, msg) { - var f, obj = { - jobid: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.StagerListener} - */ -proto.clientpb.StagerListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.StagerListener; - return proto.clientpb.StagerListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.StagerListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.StagerListener} - */ -proto.clientpb.StagerListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setJobid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.StagerListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.StagerListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.StagerListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.StagerListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getJobid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 JobID = 1; - * @return {number} - */ -proto.clientpb.StagerListener.prototype.getJobid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.StagerListener} returns this - */ -proto.clientpb.StagerListener.prototype.setJobid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ShellcodeRDIReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ShellcodeRDIReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ShellcodeRDIReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeRDIReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - functionname: jspb.Message.getFieldWithDefault(msg, 2, ""), - arguments: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ShellcodeRDIReq} - */ -proto.clientpb.ShellcodeRDIReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ShellcodeRDIReq; - return proto.clientpb.ShellcodeRDIReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ShellcodeRDIReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ShellcodeRDIReq} - */ -proto.clientpb.ShellcodeRDIReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFunctionname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setArguments(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeRDIReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ShellcodeRDIReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ShellcodeRDIReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeRDIReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getFunctionname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getArguments(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.ShellcodeRDIReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.ShellcodeRDIReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeRDIReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.ShellcodeRDIReq} returns this - */ -proto.clientpb.ShellcodeRDIReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string FunctionName = 2; - * @return {string} - */ -proto.clientpb.ShellcodeRDIReq.prototype.getFunctionname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ShellcodeRDIReq} returns this - */ -proto.clientpb.ShellcodeRDIReq.prototype.setFunctionname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Arguments = 3; - * @return {string} - */ -proto.clientpb.ShellcodeRDIReq.prototype.getArguments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ShellcodeRDIReq} returns this - */ -proto.clientpb.ShellcodeRDIReq.prototype.setArguments = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ShellcodeRDI.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ShellcodeRDI.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ShellcodeRDI} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeRDI.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ShellcodeRDI} - */ -proto.clientpb.ShellcodeRDI.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ShellcodeRDI; - return proto.clientpb.ShellcodeRDI.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ShellcodeRDI} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ShellcodeRDI} - */ -proto.clientpb.ShellcodeRDI.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeRDI.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ShellcodeRDI.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ShellcodeRDI} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeRDI.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.ShellcodeRDI.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.ShellcodeRDI.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeRDI.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.ShellcodeRDI} returns this - */ -proto.clientpb.ShellcodeRDI.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.MsfStagerReq.repeatedFields_ = [7]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MsfStagerReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MsfStagerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MsfStagerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MsfStagerReq.toObject = function(includeInstance, msg) { - var f, obj = { - arch: jspb.Message.getFieldWithDefault(msg, 1, ""), - format: jspb.Message.getFieldWithDefault(msg, 2, ""), - port: jspb.Message.getFieldWithDefault(msg, 3, 0), - host: jspb.Message.getFieldWithDefault(msg, 4, ""), - os: jspb.Message.getFieldWithDefault(msg, 5, ""), - protocol: jspb.Message.getFieldWithDefault(msg, 6, 0), - badcharsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MsfStagerReq} - */ -proto.clientpb.MsfStagerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MsfStagerReq; - return proto.clientpb.MsfStagerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MsfStagerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MsfStagerReq} - */ -proto.clientpb.MsfStagerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFormat(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 6: - var value = /** @type {!proto.clientpb.StageProtocol} */ (reader.readEnum()); - msg.setProtocol(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.addBadchars(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MsfStagerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MsfStagerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MsfStagerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MsfStagerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFormat(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getProtocol(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getBadcharsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 7, - f - ); - } -}; - - -/** - * optional string Arch = 1; - * @return {string} - */ -proto.clientpb.MsfStagerReq.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Format = 2; - * @return {string} - */ -proto.clientpb.MsfStagerReq.prototype.getFormat = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setFormat = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Port = 3; - * @return {number} - */ -proto.clientpb.MsfStagerReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Host = 4; - * @return {string} - */ -proto.clientpb.MsfStagerReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string OS = 5; - * @return {string} - */ -proto.clientpb.MsfStagerReq.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional StageProtocol Protocol = 6; - * @return {!proto.clientpb.StageProtocol} - */ -proto.clientpb.MsfStagerReq.prototype.getProtocol = function() { - return /** @type {!proto.clientpb.StageProtocol} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.clientpb.StageProtocol} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setProtocol = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * repeated string BadChars = 7; - * @return {!Array} - */ -proto.clientpb.MsfStagerReq.prototype.getBadcharsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 7)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.setBadcharsList = function(value) { - return jspb.Message.setField(this, 7, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.addBadchars = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 7, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.MsfStagerReq} returns this - */ -proto.clientpb.MsfStagerReq.prototype.clearBadcharsList = function() { - return this.setBadcharsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MsfStager.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MsfStager.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MsfStager} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MsfStager.toObject = function(includeInstance, msg) { - var f, obj = { - file: (f = msg.getFile()) && commonpb_common_pb.File.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MsfStager} - */ -proto.clientpb.MsfStager.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MsfStager; - return proto.clientpb.MsfStager.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MsfStager} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MsfStager} - */ -proto.clientpb.MsfStager.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commonpb_common_pb.File; - reader.readMessage(value,commonpb_common_pb.File.deserializeBinaryFromReader); - msg.setFile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MsfStager.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MsfStager.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MsfStager} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MsfStager.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFile(); - if (f != null) { - writer.writeMessage( - 1, - f, - commonpb_common_pb.File.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.File File = 1; - * @return {?proto.commonpb.File} - */ -proto.clientpb.MsfStager.prototype.getFile = function() { - return /** @type{?proto.commonpb.File} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.File, 1)); -}; - - -/** - * @param {?proto.commonpb.File|undefined} value - * @return {!proto.clientpb.MsfStager} returns this -*/ -proto.clientpb.MsfStager.prototype.setFile = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.MsfStager} returns this - */ -proto.clientpb.MsfStager.prototype.clearFile = function() { - return this.setFile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.MsfStager.prototype.hasFile = function() { - return jspb.Message.getField(this, 1) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.GetSystemReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.GetSystemReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.GetSystemReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.GetSystemReq.toObject = function(includeInstance, msg) { - var f, obj = { - hostingprocess: jspb.Message.getFieldWithDefault(msg, 1, ""), - config: (f = msg.getConfig()) && proto.clientpb.ImplantConfig.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.GetSystemReq} - */ -proto.clientpb.GetSystemReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.GetSystemReq; - return proto.clientpb.GetSystemReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.GetSystemReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.GetSystemReq} - */ -proto.clientpb.GetSystemReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHostingprocess(value); - break; - case 2: - var value = new proto.clientpb.ImplantConfig; - reader.readMessage(value,proto.clientpb.ImplantConfig.deserializeBinaryFromReader); - msg.setConfig(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.GetSystemReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.GetSystemReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.GetSystemReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.GetSystemReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostingprocess(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getConfig(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientpb.ImplantConfig.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string HostingProcess = 1; - * @return {string} - */ -proto.clientpb.GetSystemReq.prototype.getHostingprocess = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.GetSystemReq} returns this - */ -proto.clientpb.GetSystemReq.prototype.setHostingprocess = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional ImplantConfig Config = 2; - * @return {?proto.clientpb.ImplantConfig} - */ -proto.clientpb.GetSystemReq.prototype.getConfig = function() { - return /** @type{?proto.clientpb.ImplantConfig} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.ImplantConfig, 2)); -}; - - -/** - * @param {?proto.clientpb.ImplantConfig|undefined} value - * @return {!proto.clientpb.GetSystemReq} returns this -*/ -proto.clientpb.GetSystemReq.prototype.setConfig = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.GetSystemReq} returns this - */ -proto.clientpb.GetSystemReq.prototype.clearConfig = function() { - return this.setConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.GetSystemReq.prototype.hasConfig = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.GetSystemReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.GetSystemReq} returns this -*/ -proto.clientpb.GetSystemReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.GetSystemReq} returns this - */ -proto.clientpb.GetSystemReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.GetSystemReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.MigrateReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.MigrateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.MigrateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MigrateReq.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - config: (f = msg.getConfig()) && proto.clientpb.ImplantConfig.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.MigrateReq} - */ -proto.clientpb.MigrateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.MigrateReq; - return proto.clientpb.MigrateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.MigrateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.MigrateReq} - */ -proto.clientpb.MigrateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 2: - var value = new proto.clientpb.ImplantConfig; - reader.readMessage(value,proto.clientpb.ImplantConfig.deserializeBinaryFromReader); - msg.setConfig(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.MigrateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.MigrateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.MigrateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.MigrateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getConfig(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientpb.ImplantConfig.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 Pid = 1; - * @return {number} - */ -proto.clientpb.MigrateReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.MigrateReq} returns this - */ -proto.clientpb.MigrateReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional ImplantConfig Config = 2; - * @return {?proto.clientpb.ImplantConfig} - */ -proto.clientpb.MigrateReq.prototype.getConfig = function() { - return /** @type{?proto.clientpb.ImplantConfig} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.ImplantConfig, 2)); -}; - - -/** - * @param {?proto.clientpb.ImplantConfig|undefined} value - * @return {!proto.clientpb.MigrateReq} returns this -*/ -proto.clientpb.MigrateReq.prototype.setConfig = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.MigrateReq} returns this - */ -proto.clientpb.MigrateReq.prototype.clearConfig = function() { - return this.setConfig(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.MigrateReq.prototype.hasConfig = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.MigrateReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.MigrateReq} returns this -*/ -proto.clientpb.MigrateReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.MigrateReq} returns this - */ -proto.clientpb.MigrateReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.MigrateReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.CreateTunnelReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.CreateTunnelReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.CreateTunnelReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CreateTunnelReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.CreateTunnelReq} - */ -proto.clientpb.CreateTunnelReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.CreateTunnelReq; - return proto.clientpb.CreateTunnelReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.CreateTunnelReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.CreateTunnelReq} - */ -proto.clientpb.CreateTunnelReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.CreateTunnelReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.CreateTunnelReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.CreateTunnelReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CreateTunnelReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.CreateTunnelReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.CreateTunnelReq} returns this -*/ -proto.clientpb.CreateTunnelReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.CreateTunnelReq} returns this - */ -proto.clientpb.CreateTunnelReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.CreateTunnelReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.CreateTunnel.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.CreateTunnel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.CreateTunnel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CreateTunnel.toObject = function(includeInstance, msg) { - var f, obj = { - sessionid: jspb.Message.getFieldWithDefault(msg, 1, 0), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.CreateTunnel} - */ -proto.clientpb.CreateTunnel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.CreateTunnel; - return proto.clientpb.CreateTunnel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.CreateTunnel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.CreateTunnel} - */ -proto.clientpb.CreateTunnel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSessionid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.CreateTunnel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.CreateTunnel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.CreateTunnel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CreateTunnel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSessionid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } -}; - - -/** - * optional uint32 SessionID = 1; - * @return {number} - */ -proto.clientpb.CreateTunnel.prototype.getSessionid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.CreateTunnel} returns this - */ -proto.clientpb.CreateTunnel.prototype.setSessionid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.clientpb.CreateTunnel.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CreateTunnel} returns this - */ -proto.clientpb.CreateTunnel.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.CloseTunnelReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.CloseTunnelReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.CloseTunnelReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CloseTunnelReq.toObject = function(includeInstance, msg) { - var f, obj = { - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.CloseTunnelReq} - */ -proto.clientpb.CloseTunnelReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.CloseTunnelReq; - return proto.clientpb.CloseTunnelReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.CloseTunnelReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.CloseTunnelReq} - */ -proto.clientpb.CloseTunnelReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.CloseTunnelReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.CloseTunnelReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.CloseTunnelReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.CloseTunnelReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.clientpb.CloseTunnelReq.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.CloseTunnelReq} returns this - */ -proto.clientpb.CloseTunnelReq.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.CloseTunnelReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.CloseTunnelReq} returns this -*/ -proto.clientpb.CloseTunnelReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.CloseTunnelReq} returns this - */ -proto.clientpb.CloseTunnelReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.CloseTunnelReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.PivotGraphEntry.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.PivotGraphEntry.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.PivotGraphEntry.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.PivotGraphEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.PivotGraphEntry.toObject = function(includeInstance, msg) { - var f, obj = { - peerid: jspb.Message.getFieldWithDefault(msg, 1, 0), - session: (f = msg.getSession()) && proto.clientpb.Session.toObject(includeInstance, f), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - childrenList: jspb.Message.toObjectList(msg.getChildrenList(), - proto.clientpb.PivotGraphEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.PivotGraphEntry} - */ -proto.clientpb.PivotGraphEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.PivotGraphEntry; - return proto.clientpb.PivotGraphEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.PivotGraphEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.PivotGraphEntry} - */ -proto.clientpb.PivotGraphEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPeerid(value); - break; - case 2: - var value = new proto.clientpb.Session; - reader.readMessage(value,proto.clientpb.Session.deserializeBinaryFromReader); - msg.setSession(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = new proto.clientpb.PivotGraphEntry; - reader.readMessage(value,proto.clientpb.PivotGraphEntry.deserializeBinaryFromReader); - msg.addChildren(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.PivotGraphEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.PivotGraphEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.PivotGraphEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.PivotGraphEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeerid(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getSession(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientpb.Session.serializeBinaryToWriter - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getChildrenList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.clientpb.PivotGraphEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int64 PeerID = 1; - * @return {number} - */ -proto.clientpb.PivotGraphEntry.prototype.getPeerid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.PivotGraphEntry} returns this - */ -proto.clientpb.PivotGraphEntry.prototype.setPeerid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional Session Session = 2; - * @return {?proto.clientpb.Session} - */ -proto.clientpb.PivotGraphEntry.prototype.getSession = function() { - return /** @type{?proto.clientpb.Session} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Session, 2)); -}; - - -/** - * @param {?proto.clientpb.Session|undefined} value - * @return {!proto.clientpb.PivotGraphEntry} returns this -*/ -proto.clientpb.PivotGraphEntry.prototype.setSession = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.PivotGraphEntry} returns this - */ -proto.clientpb.PivotGraphEntry.prototype.clearSession = function() { - return this.setSession(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.PivotGraphEntry.prototype.hasSession = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string Name = 3; - * @return {string} - */ -proto.clientpb.PivotGraphEntry.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.PivotGraphEntry} returns this - */ -proto.clientpb.PivotGraphEntry.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated PivotGraphEntry Children = 4; - * @return {!Array} - */ -proto.clientpb.PivotGraphEntry.prototype.getChildrenList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.PivotGraphEntry, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.PivotGraphEntry} returns this -*/ -proto.clientpb.PivotGraphEntry.prototype.setChildrenList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clientpb.PivotGraphEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.PivotGraphEntry} - */ -proto.clientpb.PivotGraphEntry.prototype.addChildren = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clientpb.PivotGraphEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.PivotGraphEntry} returns this - */ -proto.clientpb.PivotGraphEntry.prototype.clearChildrenList = function() { - return this.setChildrenList([]); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.PivotGraph.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.PivotGraph.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.PivotGraph.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.PivotGraph} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.PivotGraph.toObject = function(includeInstance, msg) { - var f, obj = { - childrenList: jspb.Message.toObjectList(msg.getChildrenList(), - proto.clientpb.PivotGraphEntry.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.PivotGraph} - */ -proto.clientpb.PivotGraph.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.PivotGraph; - return proto.clientpb.PivotGraph.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.PivotGraph} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.PivotGraph} - */ -proto.clientpb.PivotGraph.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.PivotGraphEntry; - reader.readMessage(value,proto.clientpb.PivotGraphEntry.deserializeBinaryFromReader); - msg.addChildren(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.PivotGraph.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.PivotGraph.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.PivotGraph} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.PivotGraph.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getChildrenList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.PivotGraphEntry.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated PivotGraphEntry Children = 1; - * @return {!Array} - */ -proto.clientpb.PivotGraph.prototype.getChildrenList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.PivotGraphEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.PivotGraph} returns this -*/ -proto.clientpb.PivotGraph.prototype.setChildrenList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.PivotGraphEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.PivotGraphEntry} - */ -proto.clientpb.PivotGraph.prototype.addChildren = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.PivotGraphEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.PivotGraph} returns this - */ -proto.clientpb.PivotGraph.prototype.clearChildrenList = function() { - return this.setChildrenList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Client.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Client.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Client} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Client.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - operator: (f = msg.getOperator()) && proto.clientpb.Operator.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Client} - */ -proto.clientpb.Client.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Client; - return proto.clientpb.Client.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Client} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Client} - */ -proto.clientpb.Client.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = new proto.clientpb.Operator; - reader.readMessage(value,proto.clientpb.Operator.deserializeBinaryFromReader); - msg.setOperator(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Client.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Client.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Client} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Client.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOperator(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clientpb.Operator.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.clientpb.Client.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.Client} returns this - */ -proto.clientpb.Client.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.clientpb.Client.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Client} returns this - */ -proto.clientpb.Client.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional Operator Operator = 3; - * @return {?proto.clientpb.Operator} - */ -proto.clientpb.Client.prototype.getOperator = function() { - return /** @type{?proto.clientpb.Operator} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Operator, 3)); -}; - - -/** - * @param {?proto.clientpb.Operator|undefined} value - * @return {!proto.clientpb.Client} returns this -*/ -proto.clientpb.Client.prototype.setOperator = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Client} returns this - */ -proto.clientpb.Client.prototype.clearOperator = function() { - return this.setOperator(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Client.prototype.hasOperator = function() { - return jspb.Message.getField(this, 3) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Event.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Event.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Event} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Event.toObject = function(includeInstance, msg) { - var f, obj = { - eventtype: jspb.Message.getFieldWithDefault(msg, 1, ""), - session: (f = msg.getSession()) && proto.clientpb.Session.toObject(includeInstance, f), - job: (f = msg.getJob()) && proto.clientpb.Job.toObject(includeInstance, f), - client: (f = msg.getClient()) && proto.clientpb.Client.toObject(includeInstance, f), - data: msg.getData_asB64(), - err: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Event} - */ -proto.clientpb.Event.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Event; - return proto.clientpb.Event.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Event} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Event} - */ -proto.clientpb.Event.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEventtype(value); - break; - case 2: - var value = new proto.clientpb.Session; - reader.readMessage(value,proto.clientpb.Session.deserializeBinaryFromReader); - msg.setSession(value); - break; - case 3: - var value = new proto.clientpb.Job; - reader.readMessage(value,proto.clientpb.Job.deserializeBinaryFromReader); - msg.setJob(value); - break; - case 4: - var value = new proto.clientpb.Client; - reader.readMessage(value,proto.clientpb.Client.deserializeBinaryFromReader); - msg.setClient(value); - break; - case 5: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Event.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Event.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Event} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Event.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEventtype(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSession(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.clientpb.Session.serializeBinaryToWriter - ); - } - f = message.getJob(); - if (f != null) { - writer.writeMessage( - 3, - f, - proto.clientpb.Job.serializeBinaryToWriter - ); - } - f = message.getClient(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.clientpb.Client.serializeBinaryToWriter - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 5, - f - ); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string EventType = 1; - * @return {string} - */ -proto.clientpb.Event.prototype.getEventtype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.setEventtype = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Session Session = 2; - * @return {?proto.clientpb.Session} - */ -proto.clientpb.Event.prototype.getSession = function() { - return /** @type{?proto.clientpb.Session} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Session, 2)); -}; - - -/** - * @param {?proto.clientpb.Session|undefined} value - * @return {!proto.clientpb.Event} returns this -*/ -proto.clientpb.Event.prototype.setSession = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.clearSession = function() { - return this.setSession(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Event.prototype.hasSession = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional Job Job = 3; - * @return {?proto.clientpb.Job} - */ -proto.clientpb.Event.prototype.getJob = function() { - return /** @type{?proto.clientpb.Job} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Job, 3)); -}; - - -/** - * @param {?proto.clientpb.Job|undefined} value - * @return {!proto.clientpb.Event} returns this -*/ -proto.clientpb.Event.prototype.setJob = function(value) { - return jspb.Message.setWrapperField(this, 3, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.clearJob = function() { - return this.setJob(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Event.prototype.hasJob = function() { - return jspb.Message.getField(this, 3) != null; -}; - - -/** - * optional Client Client = 4; - * @return {?proto.clientpb.Client} - */ -proto.clientpb.Event.prototype.getClient = function() { - return /** @type{?proto.clientpb.Client} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Client, 4)); -}; - - -/** - * @param {?proto.clientpb.Client|undefined} value - * @return {!proto.clientpb.Event} returns this -*/ -proto.clientpb.Event.prototype.setClient = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.clearClient = function() { - return this.setClient(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Event.prototype.hasClient = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional bytes Data = 5; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.Event.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * optional bytes Data = 5; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.Event.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 5; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.Event.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 5, value); -}; - - -/** - * optional string Err = 6; - * @return {string} - */ -proto.clientpb.Event.prototype.getErr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Event} returns this - */ -proto.clientpb.Event.prototype.setErr = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Operators.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Operators.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Operators.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Operators} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Operators.toObject = function(includeInstance, msg) { - var f, obj = { - operatorsList: jspb.Message.toObjectList(msg.getOperatorsList(), - proto.clientpb.Operator.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Operators} - */ -proto.clientpb.Operators.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Operators; - return proto.clientpb.Operators.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Operators} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Operators} - */ -proto.clientpb.Operators.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Operator; - reader.readMessage(value,proto.clientpb.Operator.deserializeBinaryFromReader); - msg.addOperators(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Operators.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Operators.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Operators} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Operators.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOperatorsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Operator.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Operator Operators = 1; - * @return {!Array} - */ -proto.clientpb.Operators.prototype.getOperatorsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Operator, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Operators} returns this -*/ -proto.clientpb.Operators.prototype.setOperatorsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Operator=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Operator} - */ -proto.clientpb.Operators.prototype.addOperators = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Operator, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Operators} returns this - */ -proto.clientpb.Operators.prototype.clearOperatorsList = function() { - return this.setOperatorsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Operator.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Operator.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Operator} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Operator.toObject = function(includeInstance, msg) { - var f, obj = { - online: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Operator} - */ -proto.clientpb.Operator.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Operator; - return proto.clientpb.Operator.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Operator} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Operator} - */ -proto.clientpb.Operator.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOnline(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Operator.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Operator.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Operator} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Operator.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOnline(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional bool Online = 1; - * @return {boolean} - */ -proto.clientpb.Operator.prototype.getOnline = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.clientpb.Operator} returns this - */ -proto.clientpb.Operator.prototype.setOnline = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.clientpb.Operator.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Operator} returns this - */ -proto.clientpb.Operator.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WebContent.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WebContent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WebContent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebContent.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - contenttype: jspb.Message.getFieldWithDefault(msg, 2, ""), - size: jspb.Message.getFieldWithDefault(msg, 3, "0"), - content: msg.getContent_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WebContent} - */ -proto.clientpb.WebContent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WebContent; - return proto.clientpb.WebContent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WebContent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WebContent} - */ -proto.clientpb.WebContent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setContenttype(value); - break; - case 3: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setSize(value); - break; - case 9: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setContent(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WebContent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WebContent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WebContent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebContent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContenttype(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getSize(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 3, - f - ); - } - f = message.getContent_asU8(); - if (f.length > 0) { - writer.writeBytes( - 9, - f - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.clientpb.WebContent.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WebContent} returns this - */ -proto.clientpb.WebContent.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ContentType = 2; - * @return {string} - */ -proto.clientpb.WebContent.prototype.getContenttype = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WebContent} returns this - */ -proto.clientpb.WebContent.prototype.setContenttype = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint64 Size = 3; - * @return {string} - */ -proto.clientpb.WebContent.prototype.getSize = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WebContent} returns this - */ -proto.clientpb.WebContent.prototype.setSize = function(value) { - return jspb.Message.setProto3StringIntField(this, 3, value); -}; - - -/** - * optional bytes Content = 9; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.WebContent.prototype.getContent = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * optional bytes Content = 9; - * This is a type-conversion wrapper around `getContent()` - * @return {string} - */ -proto.clientpb.WebContent.prototype.getContent_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getContent())); -}; - - -/** - * optional bytes Content = 9; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getContent()` - * @return {!Uint8Array} - */ -proto.clientpb.WebContent.prototype.getContent_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getContent())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.WebContent} returns this - */ -proto.clientpb.WebContent.prototype.setContent = function(value) { - return jspb.Message.setProto3BytesField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WebsiteAddContent.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WebsiteAddContent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WebsiteAddContent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebsiteAddContent.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentsMap: (f = msg.getContentsMap()) ? f.toObject(includeInstance, proto.clientpb.WebContent.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WebsiteAddContent} - */ -proto.clientpb.WebsiteAddContent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WebsiteAddContent; - return proto.clientpb.WebsiteAddContent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WebsiteAddContent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WebsiteAddContent} - */ -proto.clientpb.WebsiteAddContent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = msg.getContentsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clientpb.WebContent.deserializeBinaryFromReader, "", new proto.clientpb.WebContent()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WebsiteAddContent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WebsiteAddContent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WebsiteAddContent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebsiteAddContent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContentsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clientpb.WebContent.serializeBinaryToWriter); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.clientpb.WebsiteAddContent.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WebsiteAddContent} returns this - */ -proto.clientpb.WebsiteAddContent.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map Contents = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.clientpb.WebsiteAddContent.prototype.getContentsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.clientpb.WebContent)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.clientpb.WebsiteAddContent} returns this - */ -proto.clientpb.WebsiteAddContent.prototype.clearContentsMap = function() { - this.getContentsMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.WebsiteRemoveContent.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WebsiteRemoveContent.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WebsiteRemoveContent.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WebsiteRemoveContent} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebsiteRemoveContent.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - pathsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WebsiteRemoveContent} - */ -proto.clientpb.WebsiteRemoveContent.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WebsiteRemoveContent; - return proto.clientpb.WebsiteRemoveContent.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WebsiteRemoveContent} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WebsiteRemoveContent} - */ -proto.clientpb.WebsiteRemoveContent.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addPaths(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WebsiteRemoveContent.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WebsiteRemoveContent.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WebsiteRemoveContent} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WebsiteRemoveContent.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPathsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.clientpb.WebsiteRemoveContent.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WebsiteRemoveContent} returns this - */ -proto.clientpb.WebsiteRemoveContent.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string Paths = 2; - * @return {!Array} - */ -proto.clientpb.WebsiteRemoveContent.prototype.getPathsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.WebsiteRemoveContent} returns this - */ -proto.clientpb.WebsiteRemoveContent.prototype.setPathsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.clientpb.WebsiteRemoveContent} returns this - */ -proto.clientpb.WebsiteRemoveContent.prototype.addPaths = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.WebsiteRemoveContent} returns this - */ -proto.clientpb.WebsiteRemoveContent.prototype.clearPathsList = function() { - return this.setPathsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Website.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Website.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Website} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Website.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - contentsMap: (f = msg.getContentsMap()) ? f.toObject(includeInstance, proto.clientpb.WebContent.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Website} - */ -proto.clientpb.Website.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Website; - return proto.clientpb.Website.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Website} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Website} - */ -proto.clientpb.Website.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = msg.getContentsMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clientpb.WebContent.deserializeBinaryFromReader, "", new proto.clientpb.WebContent()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Website.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Website.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Website} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Website.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getContentsMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(2, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clientpb.WebContent.serializeBinaryToWriter); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.clientpb.Website.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Website} returns this - */ -proto.clientpb.Website.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * map Contents = 2; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.clientpb.Website.prototype.getContentsMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 2, opt_noLazyCreate, - proto.clientpb.WebContent)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.clientpb.Website} returns this - */ -proto.clientpb.Website.prototype.clearContentsMap = function() { - this.getContentsMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Websites.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Websites.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Websites.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Websites} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Websites.toObject = function(includeInstance, msg) { - var f, obj = { - websitesList: jspb.Message.toObjectList(msg.getWebsitesList(), - proto.clientpb.Website.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Websites} - */ -proto.clientpb.Websites.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Websites; - return proto.clientpb.Websites.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Websites} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Websites} - */ -proto.clientpb.Websites.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Website; - reader.readMessage(value,proto.clientpb.Website.deserializeBinaryFromReader); - msg.addWebsites(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Websites.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Websites.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Websites} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Websites.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getWebsitesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Website.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Website Websites = 1; - * @return {!Array} - */ -proto.clientpb.Websites.prototype.getWebsitesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Website, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Websites} returns this -*/ -proto.clientpb.Websites.prototype.setWebsitesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Website=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Website} - */ -proto.clientpb.Websites.prototype.addWebsites = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Website, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Websites} returns this - */ -proto.clientpb.Websites.prototype.clearWebsitesList = function() { - return this.setWebsitesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.WGClientConfig.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.WGClientConfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.WGClientConfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGClientConfig.toObject = function(includeInstance, msg) { - var f, obj = { - serverpubkey: jspb.Message.getFieldWithDefault(msg, 1, ""), - clientprivatekey: jspb.Message.getFieldWithDefault(msg, 2, ""), - clientpubkey: jspb.Message.getFieldWithDefault(msg, 3, ""), - clientip: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.WGClientConfig} - */ -proto.clientpb.WGClientConfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.WGClientConfig; - return proto.clientpb.WGClientConfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.WGClientConfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.WGClientConfig} - */ -proto.clientpb.WGClientConfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setServerpubkey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setClientprivatekey(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setClientpubkey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setClientip(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.WGClientConfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.WGClientConfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.WGClientConfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.WGClientConfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServerpubkey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getClientprivatekey(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getClientpubkey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getClientip(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string ServerPubKey = 1; - * @return {string} - */ -proto.clientpb.WGClientConfig.prototype.getServerpubkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGClientConfig} returns this - */ -proto.clientpb.WGClientConfig.prototype.setServerpubkey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ClientPrivateKey = 2; - * @return {string} - */ -proto.clientpb.WGClientConfig.prototype.getClientprivatekey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGClientConfig} returns this - */ -proto.clientpb.WGClientConfig.prototype.setClientprivatekey = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ClientPubKey = 3; - * @return {string} - */ -proto.clientpb.WGClientConfig.prototype.getClientpubkey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGClientConfig} returns this - */ -proto.clientpb.WGClientConfig.prototype.setClientpubkey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string ClientIP = 4; - * @return {string} - */ -proto.clientpb.WGClientConfig.prototype.getClientip = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.WGClientConfig} returns this - */ -proto.clientpb.WGClientConfig.prototype.setClientip = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Credential.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Credential.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Credential} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Credential.toObject = function(includeInstance, msg) { - var f, obj = { - user: jspb.Message.getFieldWithDefault(msg, 2, ""), - password: jspb.Message.getFieldWithDefault(msg, 3, ""), - apikey: jspb.Message.getFieldWithDefault(msg, 4, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Credential} - */ -proto.clientpb.Credential.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Credential; - return proto.clientpb.Credential.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Credential} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Credential} - */ -proto.clientpb.Credential.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setUser(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setApikey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Credential.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Credential.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Credential} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Credential.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUser(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getApikey(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } -}; - - -/** - * optional string User = 2; - * @return {string} - */ -proto.clientpb.Credential.prototype.getUser = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Credential} returns this - */ -proto.clientpb.Credential.prototype.setUser = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Password = 3; - * @return {string} - */ -proto.clientpb.Credential.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Credential} returns this - */ -proto.clientpb.Credential.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string APIKey = 4; - * @return {string} - */ -proto.clientpb.Credential.prototype.getApikey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Credential} returns this - */ -proto.clientpb.Credential.prototype.setApikey = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Loot.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Loot.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Loot} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Loot.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - lootid: jspb.Message.getFieldWithDefault(msg, 2, ""), - name: jspb.Message.getFieldWithDefault(msg, 3, ""), - credentialtype: jspb.Message.getFieldWithDefault(msg, 4, 0), - credential: (f = msg.getCredential()) && proto.clientpb.Credential.toObject(includeInstance, f), - filetype: jspb.Message.getFieldWithDefault(msg, 6, 0), - file: (f = msg.getFile()) && commonpb_common_pb.File.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Loot} - */ -proto.clientpb.Loot.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Loot; - return proto.clientpb.Loot.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Loot} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Loot} - */ -proto.clientpb.Loot.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.clientpb.LootType} */ (reader.readEnum()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLootid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 4: - var value = /** @type {!proto.clientpb.CredentialType} */ (reader.readEnum()); - msg.setCredentialtype(value); - break; - case 5: - var value = new proto.clientpb.Credential; - reader.readMessage(value,proto.clientpb.Credential.deserializeBinaryFromReader); - msg.setCredential(value); - break; - case 6: - var value = /** @type {!proto.clientpb.FileType} */ (reader.readEnum()); - msg.setFiletype(value); - break; - case 9: - var value = new commonpb_common_pb.File; - reader.readMessage(value,commonpb_common_pb.File.deserializeBinaryFromReader); - msg.setFile(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Loot.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Loot.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Loot} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Loot.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getLootid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getCredentialtype(); - if (f !== 0.0) { - writer.writeEnum( - 4, - f - ); - } - f = message.getCredential(); - if (f != null) { - writer.writeMessage( - 5, - f, - proto.clientpb.Credential.serializeBinaryToWriter - ); - } - f = message.getFiletype(); - if (f !== 0.0) { - writer.writeEnum( - 6, - f - ); - } - f = message.getFile(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.File.serializeBinaryToWriter - ); - } -}; - - -/** - * optional LootType Type = 1; - * @return {!proto.clientpb.LootType} - */ -proto.clientpb.Loot.prototype.getType = function() { - return /** @type {!proto.clientpb.LootType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.clientpb.LootType} value - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string LootID = 2; - * @return {string} - */ -proto.clientpb.Loot.prototype.getLootid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.setLootid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Name = 3; - * @return {string} - */ -proto.clientpb.Loot.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional CredentialType CredentialType = 4; - * @return {!proto.clientpb.CredentialType} - */ -proto.clientpb.Loot.prototype.getCredentialtype = function() { - return /** @type {!proto.clientpb.CredentialType} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {!proto.clientpb.CredentialType} value - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.setCredentialtype = function(value) { - return jspb.Message.setProto3EnumField(this, 4, value); -}; - - -/** - * optional Credential Credential = 5; - * @return {?proto.clientpb.Credential} - */ -proto.clientpb.Loot.prototype.getCredential = function() { - return /** @type{?proto.clientpb.Credential} */ ( - jspb.Message.getWrapperField(this, proto.clientpb.Credential, 5)); -}; - - -/** - * @param {?proto.clientpb.Credential|undefined} value - * @return {!proto.clientpb.Loot} returns this -*/ -proto.clientpb.Loot.prototype.setCredential = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.clearCredential = function() { - return this.setCredential(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Loot.prototype.hasCredential = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional FileType FileType = 6; - * @return {!proto.clientpb.FileType} - */ -proto.clientpb.Loot.prototype.getFiletype = function() { - return /** @type {!proto.clientpb.FileType} */ (jspb.Message.getFieldWithDefault(this, 6, 0)); -}; - - -/** - * @param {!proto.clientpb.FileType} value - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.setFiletype = function(value) { - return jspb.Message.setProto3EnumField(this, 6, value); -}; - - -/** - * optional commonpb.File File = 9; - * @return {?proto.commonpb.File} - */ -proto.clientpb.Loot.prototype.getFile = function() { - return /** @type{?proto.commonpb.File} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.File, 9)); -}; - - -/** - * @param {?proto.commonpb.File|undefined} value - * @return {!proto.clientpb.Loot} returns this -*/ -proto.clientpb.Loot.prototype.setFile = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.Loot} returns this - */ -proto.clientpb.Loot.prototype.clearFile = function() { - return this.setFile(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.Loot.prototype.hasFile = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.AllLoot.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.AllLoot.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.AllLoot.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.AllLoot} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.AllLoot.toObject = function(includeInstance, msg) { - var f, obj = { - lootList: jspb.Message.toObjectList(msg.getLootList(), - proto.clientpb.Loot.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.AllLoot} - */ -proto.clientpb.AllLoot.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.AllLoot; - return proto.clientpb.AllLoot.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.AllLoot} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.AllLoot} - */ -proto.clientpb.AllLoot.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Loot; - reader.readMessage(value,proto.clientpb.Loot.deserializeBinaryFromReader); - msg.addLoot(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.AllLoot.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.AllLoot.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.AllLoot} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.AllLoot.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLootList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Loot.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Loot Loot = 1; - * @return {!Array} - */ -proto.clientpb.AllLoot.prototype.getLootList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Loot, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.AllLoot} returns this -*/ -proto.clientpb.AllLoot.prototype.setLootList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Loot=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Loot} - */ -proto.clientpb.AllLoot.prototype.addLoot = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Loot, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.AllLoot} returns this - */ -proto.clientpb.AllLoot.prototype.clearLootList = function() { - return this.setLootList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.IOC.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.IOC.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.IOC} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.IOC.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - filehash: jspb.Message.getFieldWithDefault(msg, 2, ""), - id: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.IOC} - */ -proto.clientpb.IOC.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.IOC; - return proto.clientpb.IOC.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.IOC} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.IOC} - */ -proto.clientpb.IOC.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setFilehash(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.IOC.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.IOC.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.IOC} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.IOC.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getFilehash(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.clientpb.IOC.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.IOC} returns this - */ -proto.clientpb.IOC.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string FileHash = 2; - * @return {string} - */ -proto.clientpb.IOC.prototype.getFilehash = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.IOC} returns this - */ -proto.clientpb.IOC.prototype.setFilehash = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ID = 3; - * @return {string} - */ -proto.clientpb.IOC.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.IOC} returns this - */ -proto.clientpb.IOC.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ExtensionData.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ExtensionData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ExtensionData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ExtensionData.toObject = function(includeInstance, msg) { - var f, obj = { - output: jspb.Message.getFieldWithDefault(msg, 1, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ExtensionData} - */ -proto.clientpb.ExtensionData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ExtensionData; - return proto.clientpb.ExtensionData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ExtensionData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ExtensionData} - */ -proto.clientpb.ExtensionData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOutput(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ExtensionData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ExtensionData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ExtensionData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ExtensionData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOutput(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } -}; - - -/** - * optional string Output = 1; - * @return {string} - */ -proto.clientpb.ExtensionData.prototype.getOutput = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ExtensionData} returns this - */ -proto.clientpb.ExtensionData.prototype.setOutput = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.Host.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.Host.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.Host.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.Host} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Host.toObject = function(includeInstance, msg) { - var f, obj = { - hostname: jspb.Message.getFieldWithDefault(msg, 1, ""), - hostuuid: jspb.Message.getFieldWithDefault(msg, 2, ""), - osversion: jspb.Message.getFieldWithDefault(msg, 3, ""), - iocsList: jspb.Message.toObjectList(msg.getIocsList(), - proto.clientpb.IOC.toObject, includeInstance), - extensiondataMap: (f = msg.getExtensiondataMap()) ? f.toObject(includeInstance, proto.clientpb.ExtensionData.toObject) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.Host} - */ -proto.clientpb.Host.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.Host; - return proto.clientpb.Host.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.Host} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.Host} - */ -proto.clientpb.Host.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHostuuid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOsversion(value); - break; - case 4: - var value = new proto.clientpb.IOC; - reader.readMessage(value,proto.clientpb.IOC.deserializeBinaryFromReader); - msg.addIocs(value); - break; - case 5: - var value = msg.getExtensiondataMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readMessage, proto.clientpb.ExtensionData.deserializeBinaryFromReader, "", new proto.clientpb.ExtensionData()); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.Host.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.Host.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.Host} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.Host.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHostuuid(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOsversion(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getIocsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.clientpb.IOC.serializeBinaryToWriter - ); - } - f = message.getExtensiondataMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeMessage, proto.clientpb.ExtensionData.serializeBinaryToWriter); - } -}; - - -/** - * optional string Hostname = 1; - * @return {string} - */ -proto.clientpb.Host.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Host} returns this - */ -proto.clientpb.Host.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string HostUUID = 2; - * @return {string} - */ -proto.clientpb.Host.prototype.getHostuuid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Host} returns this - */ -proto.clientpb.Host.prototype.setHostuuid = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string OSVersion = 3; - * @return {string} - */ -proto.clientpb.Host.prototype.getOsversion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.Host} returns this - */ -proto.clientpb.Host.prototype.setOsversion = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated IOC IOCs = 4; - * @return {!Array} - */ -proto.clientpb.Host.prototype.getIocsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.IOC, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.Host} returns this -*/ -proto.clientpb.Host.prototype.setIocsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.clientpb.IOC=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.IOC} - */ -proto.clientpb.Host.prototype.addIocs = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.clientpb.IOC, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.Host} returns this - */ -proto.clientpb.Host.prototype.clearIocsList = function() { - return this.setIocsList([]); -}; - - -/** - * map ExtensionData = 5; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.clientpb.Host.prototype.getExtensiondataMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 5, opt_noLazyCreate, - proto.clientpb.ExtensionData)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.clientpb.Host} returns this - */ -proto.clientpb.Host.prototype.clearExtensiondataMap = function() { - this.getExtensiondataMap().clear(); - return this;}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.clientpb.AllHosts.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.AllHosts.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.AllHosts.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.AllHosts} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.AllHosts.toObject = function(includeInstance, msg) { - var f, obj = { - hostsList: jspb.Message.toObjectList(msg.getHostsList(), - proto.clientpb.Host.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.AllHosts} - */ -proto.clientpb.AllHosts.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.AllHosts; - return proto.clientpb.AllHosts.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.AllHosts} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.AllHosts} - */ -proto.clientpb.AllHosts.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.clientpb.Host; - reader.readMessage(value,proto.clientpb.Host.deserializeBinaryFromReader); - msg.addHosts(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.AllHosts.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.AllHosts.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.AllHosts} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.AllHosts.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHostsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.clientpb.Host.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated Host Hosts = 1; - * @return {!Array} - */ -proto.clientpb.AllHosts.prototype.getHostsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.clientpb.Host, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.clientpb.AllHosts} returns this -*/ -proto.clientpb.AllHosts.prototype.setHostsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.clientpb.Host=} opt_value - * @param {number=} opt_index - * @return {!proto.clientpb.Host} - */ -proto.clientpb.AllHosts.prototype.addHosts = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.clientpb.Host, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.clientpb.AllHosts} returns this - */ -proto.clientpb.AllHosts.prototype.clearHostsList = function() { - return this.setHostsList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DllHijackReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DllHijackReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DllHijackReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DllHijackReq.toObject = function(includeInstance, msg) { - var f, obj = { - referencedllpath: jspb.Message.getFieldWithDefault(msg, 1, ""), - targetlocation: jspb.Message.getFieldWithDefault(msg, 2, ""), - referencedll: msg.getReferencedll_asB64(), - targetdll: msg.getTargetdll_asB64(), - profilename: jspb.Message.getFieldWithDefault(msg, 5, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DllHijackReq} - */ -proto.clientpb.DllHijackReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DllHijackReq; - return proto.clientpb.DllHijackReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DllHijackReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DllHijackReq} - */ -proto.clientpb.DllHijackReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setReferencedllpath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setTargetlocation(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setReferencedll(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setTargetdll(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setProfilename(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DllHijackReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DllHijackReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DllHijackReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DllHijackReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReferencedllpath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTargetlocation(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getReferencedll_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getTargetdll_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getProfilename(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string ReferenceDLLPath = 1; - * @return {string} - */ -proto.clientpb.DllHijackReq.prototype.getReferencedllpath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.setReferencedllpath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string TargetLocation = 2; - * @return {string} - */ -proto.clientpb.DllHijackReq.prototype.getTargetlocation = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.setTargetlocation = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes ReferenceDLL = 3; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.DllHijackReq.prototype.getReferencedll = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes ReferenceDLL = 3; - * This is a type-conversion wrapper around `getReferencedll()` - * @return {string} - */ -proto.clientpb.DllHijackReq.prototype.getReferencedll_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getReferencedll())); -}; - - -/** - * optional bytes ReferenceDLL = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getReferencedll()` - * @return {!Uint8Array} - */ -proto.clientpb.DllHijackReq.prototype.getReferencedll_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getReferencedll())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.setReferencedll = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes TargetDLL = 4; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.DllHijackReq.prototype.getTargetdll = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes TargetDLL = 4; - * This is a type-conversion wrapper around `getTargetdll()` - * @return {string} - */ -proto.clientpb.DllHijackReq.prototype.getTargetdll_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getTargetdll())); -}; - - -/** - * optional bytes TargetDLL = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getTargetdll()` - * @return {!Uint8Array} - */ -proto.clientpb.DllHijackReq.prototype.getTargetdll_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getTargetdll())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.setTargetdll = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional string ProfileName = 5; - * @return {string} - */ -proto.clientpb.DllHijackReq.prototype.getProfilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.setProfilename = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.DllHijackReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.DllHijackReq} returns this -*/ -proto.clientpb.DllHijackReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.DllHijackReq} returns this - */ -proto.clientpb.DllHijackReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.DllHijackReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.DllHijack.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.DllHijack.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.DllHijack} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DllHijack.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.DllHijack} - */ -proto.clientpb.DllHijack.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.DllHijack; - return proto.clientpb.DllHijack.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.DllHijack} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.DllHijack} - */ -proto.clientpb.DllHijack.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.DllHijack.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.DllHijack.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.DllHijack} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.DllHijack.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.clientpb.DllHijack.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.clientpb.DllHijack} returns this -*/ -proto.clientpb.DllHijack.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.DllHijack} returns this - */ -proto.clientpb.DllHijack.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.DllHijack.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ShellcodeEncodeReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ShellcodeEncodeReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncodeReq.toObject = function(includeInstance, msg) { - var f, obj = { - encoder: jspb.Message.getFieldWithDefault(msg, 1, 0), - architecture: jspb.Message.getFieldWithDefault(msg, 2, ""), - iterations: jspb.Message.getFieldWithDefault(msg, 3, 0), - badchars: msg.getBadchars_asB64(), - data: msg.getData_asB64(), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ShellcodeEncodeReq} - */ -proto.clientpb.ShellcodeEncodeReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ShellcodeEncodeReq; - return proto.clientpb.ShellcodeEncodeReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ShellcodeEncodeReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ShellcodeEncodeReq} - */ -proto.clientpb.ShellcodeEncodeReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.clientpb.ShellcodeEncoder} */ (reader.readEnum()); - msg.setEncoder(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setArchitecture(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setIterations(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBadchars(value); - break; - case 8: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ShellcodeEncodeReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ShellcodeEncodeReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncodeReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEncoder(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getArchitecture(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getIterations(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getBadchars_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ShellcodeEncoder Encoder = 1; - * @return {!proto.clientpb.ShellcodeEncoder} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getEncoder = function() { - return /** @type {!proto.clientpb.ShellcodeEncoder} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.clientpb.ShellcodeEncoder} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.setEncoder = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string Architecture = 2; - * @return {string} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getArchitecture = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.setArchitecture = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Iterations = 3; - * @return {number} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getIterations = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.setIterations = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes BadChars = 4; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getBadchars = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes BadChars = 4; - * This is a type-conversion wrapper around `getBadchars()` - * @return {string} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getBadchars_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBadchars())); -}; - - -/** - * optional bytes BadChars = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBadchars()` - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getBadchars_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBadchars())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.setBadchars = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional bytes Data = 8; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * optional bytes Data = 8; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 8; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this -*/ -proto.clientpb.ShellcodeEncodeReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.ShellcodeEncodeReq} returns this - */ -proto.clientpb.ShellcodeEncodeReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.ShellcodeEncodeReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ShellcodeEncode.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ShellcodeEncode.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ShellcodeEncode} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncode.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ShellcodeEncode} - */ -proto.clientpb.ShellcodeEncode.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ShellcodeEncode; - return proto.clientpb.ShellcodeEncode.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ShellcodeEncode} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ShellcodeEncode} - */ -proto.clientpb.ShellcodeEncode.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncode.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ShellcodeEncode.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ShellcodeEncode} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncode.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 8, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 8; - * @return {!(string|Uint8Array)} - */ -proto.clientpb.ShellcodeEncode.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * optional bytes Data = 8; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.clientpb.ShellcodeEncode.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 8; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncode.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.clientpb.ShellcodeEncode} returns this - */ -proto.clientpb.ShellcodeEncode.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 8, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.clientpb.ShellcodeEncode.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.clientpb.ShellcodeEncode} returns this -*/ -proto.clientpb.ShellcodeEncode.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.clientpb.ShellcodeEncode} returns this - */ -proto.clientpb.ShellcodeEncode.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.clientpb.ShellcodeEncode.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.clientpb.ShellcodeEncoderMap.prototype.toObject = function(opt_includeInstance) { - return proto.clientpb.ShellcodeEncoderMap.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.clientpb.ShellcodeEncoderMap} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncoderMap.toObject = function(includeInstance, msg) { - var f, obj = { - encodersMap: (f = msg.getEncodersMap()) ? f.toObject(includeInstance, undefined) : [] - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.clientpb.ShellcodeEncoderMap} - */ -proto.clientpb.ShellcodeEncoderMap.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.clientpb.ShellcodeEncoderMap; - return proto.clientpb.ShellcodeEncoderMap.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.clientpb.ShellcodeEncoderMap} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.clientpb.ShellcodeEncoderMap} - */ -proto.clientpb.ShellcodeEncoderMap.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = msg.getEncodersMap(); - reader.readMessage(value, function(message, reader) { - jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readEnum, null, "", 0); - }); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.clientpb.ShellcodeEncoderMap.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.clientpb.ShellcodeEncoderMap.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.clientpb.ShellcodeEncoderMap} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.clientpb.ShellcodeEncoderMap.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEncodersMap(true); - if (f && f.getLength() > 0) { - f.serializeBinary(1, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeEnum); - } -}; - - -/** - * map Encoders = 1; - * @param {boolean=} opt_noLazyCreate Do not create the map if - * empty, instead returning `undefined` - * @return {!jspb.Map} - */ -proto.clientpb.ShellcodeEncoderMap.prototype.getEncodersMap = function(opt_noLazyCreate) { - return /** @type {!jspb.Map} */ ( - jspb.Message.getMapField(this, 1, opt_noLazyCreate, - null)); -}; - - -/** - * Clears values from the map. The map will be non-null. - * @return {!proto.clientpb.ShellcodeEncoderMap} returns this - */ -proto.clientpb.ShellcodeEncoderMap.prototype.clearEncodersMap = function() { - this.getEncodersMap().clear(); - return this;}; - - -/** - * @enum {number} - */ -proto.clientpb.OutputFormat = { - SHARED_LIB: 0, - SHELLCODE: 1, - EXECUTABLE: 2, - SERVICE: 3 -}; - -/** - * @enum {number} - */ -proto.clientpb.StageProtocol = { - TCP: 0, - HTTP: 1, - HTTPS: 2 -}; - -/** - * @enum {number} - */ -proto.clientpb.LootType = { - LOOT_FILE: 0, - LOOT_CREDENTIAL: 1 -}; - -/** - * @enum {number} - */ -proto.clientpb.CredentialType = { - NO_CREDENTIAL: 0, - USER_PASSWORD: 1, - API_KEY: 2, - FILE: 3 -}; - -/** - * @enum {number} - */ -proto.clientpb.FileType = { - NO_FILE: 0, - BINARY: 1, - TEXT: 2 -}; - -/** - * @enum {number} - */ -proto.clientpb.ShellcodeEncoder = { - SHIKATA_GA_NAI: 0 -}; - -goog.object.extend(exports, proto.clientpb); diff --git a/src/pb/commonpb/common.ts b/src/pb/commonpb/common.ts index 6bd6ee5..5cdb507 100644 --- a/src/pb/commonpb/common.ts +++ b/src/pb/commonpb/common.ts @@ -1,699 +1,652 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 3.15.6 - * source: commonpb/common.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as pb_1 from "google-protobuf"; -export namespace commonpb { - export class Empty extends pb_1.Message { - constructor(data?: any[] | {}) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { } - } - static fromObject(data: {}) { - const message = new Empty({}); - return message; - } - toObject() { - const data: {} = {}; - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Empty { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Empty(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Empty { - return Empty.deserialize(bytes); - } - } - export class Request extends pb_1.Message { - constructor(data?: any[] | { - Async?: boolean; - Timeout?: number; - BeaconID?: string; - SessionID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Async" in data && data.Async != undefined) { - this.Async = data.Async; - } - if ("Timeout" in data && data.Timeout != undefined) { - this.Timeout = data.Timeout; - } - if ("BeaconID" in data && data.BeaconID != undefined) { - this.BeaconID = data.BeaconID; - } - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - } - } - get Async() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Async(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Timeout() { - return pb_1.Message.getField(this, 2) as number; - } - set Timeout(value: number) { - pb_1.Message.setField(this, 2, value); - } - get BeaconID() { - return pb_1.Message.getField(this, 8) as string; - } - set BeaconID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get SessionID() { - return pb_1.Message.getField(this, 9) as string; - } - set SessionID(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - Async?: boolean; - Timeout?: number; - BeaconID?: string; - SessionID?: string; - }) { - const message = new Request({}); - if (data.Async != null) { - message.Async = data.Async; - } - if (data.Timeout != null) { - message.Timeout = data.Timeout; - } - if (data.BeaconID != null) { - message.BeaconID = data.BeaconID; - } - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - return message; - } - toObject() { - const data: { - Async?: boolean; - Timeout?: number; - BeaconID?: string; - SessionID?: string; - } = {}; - if (this.Async != null) { - data.Async = this.Async; - } - if (this.Timeout != null) { - data.Timeout = this.Timeout; - } - if (this.BeaconID != null) { - data.BeaconID = this.BeaconID; - } - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Async !== undefined) - writer.writeBool(1, this.Async); - if (this.Timeout !== undefined) - writer.writeInt64(2, this.Timeout); - if (typeof this.BeaconID === "string" && this.BeaconID.length) - writer.writeString(8, this.BeaconID); - if (typeof this.SessionID === "string" && this.SessionID.length) - writer.writeString(9, this.SessionID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Request { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Request(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Async = reader.readBool(); - break; - case 2: - message.Timeout = reader.readInt64(); - break; - case 8: - message.BeaconID = reader.readString(); - break; - case 9: - message.SessionID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Request { - return Request.deserialize(bytes); - } - } - export class Response extends pb_1.Message { - constructor(data?: any[] | { - Err?: string; - Async?: boolean; - BeaconID?: string; - TaskID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Err" in data && data.Err != undefined) { - this.Err = data.Err; - } - if ("Async" in data && data.Async != undefined) { - this.Async = data.Async; - } - if ("BeaconID" in data && data.BeaconID != undefined) { - this.BeaconID = data.BeaconID; - } - if ("TaskID" in data && data.TaskID != undefined) { - this.TaskID = data.TaskID; - } - } - } - get Err() { - return pb_1.Message.getField(this, 1) as string; - } - set Err(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Async() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Async(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get BeaconID() { - return pb_1.Message.getField(this, 8) as string; - } - set BeaconID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get TaskID() { - return pb_1.Message.getField(this, 9) as string; - } - set TaskID(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - Err?: string; - Async?: boolean; - BeaconID?: string; - TaskID?: string; - }) { - const message = new Response({}); - if (data.Err != null) { - message.Err = data.Err; - } - if (data.Async != null) { - message.Async = data.Async; - } - if (data.BeaconID != null) { - message.BeaconID = data.BeaconID; - } - if (data.TaskID != null) { - message.TaskID = data.TaskID; - } - return message; - } - toObject() { - const data: { - Err?: string; - Async?: boolean; - BeaconID?: string; - TaskID?: string; - } = {}; - if (this.Err != null) { - data.Err = this.Err; - } - if (this.Async != null) { - data.Async = this.Async; - } - if (this.BeaconID != null) { - data.BeaconID = this.BeaconID; - } - if (this.TaskID != null) { - data.TaskID = this.TaskID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Err === "string" && this.Err.length) - writer.writeString(1, this.Err); - if (this.Async !== undefined) - writer.writeBool(2, this.Async); - if (typeof this.BeaconID === "string" && this.BeaconID.length) - writer.writeString(8, this.BeaconID); - if (typeof this.TaskID === "string" && this.TaskID.length) - writer.writeString(9, this.TaskID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Response { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Response(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Err = reader.readString(); - break; - case 2: - message.Async = reader.readBool(); - break; - case 8: - message.BeaconID = reader.readString(); - break; - case 9: - message.TaskID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Response { - return Response.deserialize(bytes); - } - } - export class File extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Data?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Data() { - return pb_1.Message.getField(this, 2) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - Name?: string; - Data?: Uint8Array; - }) { - const message = new File({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Data != null) { - message.Data = data.Data; - } - return message; - } - toObject() { - const data: { - Name?: string; - Data?: Uint8Array; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Data != null) { - data.Data = this.Data; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Data !== undefined) - writer.writeBytes(2, this.Data); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): File { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new File(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.Data = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): File { - return File.deserialize(bytes); - } - } - export class Process extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Ppid?: number; - Executable?: string; - Owner?: string; - Architecture?: string; - SessionID?: number; - CmdLine?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [6], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Ppid" in data && data.Ppid != undefined) { - this.Ppid = data.Ppid; - } - if ("Executable" in data && data.Executable != undefined) { - this.Executable = data.Executable; - } - if ("Owner" in data && data.Owner != undefined) { - this.Owner = data.Owner; - } - if ("Architecture" in data && data.Architecture != undefined) { - this.Architecture = data.Architecture; - } - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - if ("CmdLine" in data && data.CmdLine != undefined) { - this.CmdLine = data.CmdLine; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Ppid() { - return pb_1.Message.getField(this, 2) as number; - } - set Ppid(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Executable() { - return pb_1.Message.getField(this, 3) as string; - } - set Executable(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Owner() { - return pb_1.Message.getField(this, 4) as string; - } - set Owner(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Architecture() { - return pb_1.Message.getField(this, 7) as string; - } - set Architecture(value: string) { - pb_1.Message.setField(this, 7, value); - } - get SessionID() { - return pb_1.Message.getField(this, 5) as number; - } - set SessionID(value: number) { - pb_1.Message.setField(this, 5, value); - } - get CmdLine() { - return pb_1.Message.getField(this, 6) as string[]; - } - set CmdLine(value: string[]) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - Pid?: number; - Ppid?: number; - Executable?: string; - Owner?: string; - Architecture?: string; - SessionID?: number; - CmdLine?: string[]; - }) { - const message = new Process({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Ppid != null) { - message.Ppid = data.Ppid; - } - if (data.Executable != null) { - message.Executable = data.Executable; - } - if (data.Owner != null) { - message.Owner = data.Owner; - } - if (data.Architecture != null) { - message.Architecture = data.Architecture; - } - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - if (data.CmdLine != null) { - message.CmdLine = data.CmdLine; - } - return message; - } - toObject() { - const data: { - Pid?: number; - Ppid?: number; - Executable?: string; - Owner?: string; - Architecture?: string; - SessionID?: number; - CmdLine?: string[]; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Ppid != null) { - data.Ppid = this.Ppid; - } - if (this.Executable != null) { - data.Executable = this.Executable; - } - if (this.Owner != null) { - data.Owner = this.Owner; - } - if (this.Architecture != null) { - data.Architecture = this.Architecture; - } - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - if (this.CmdLine != null) { - data.CmdLine = this.CmdLine; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeInt32(1, this.Pid); - if (this.Ppid !== undefined) - writer.writeInt32(2, this.Ppid); - if (typeof this.Executable === "string" && this.Executable.length) - writer.writeString(3, this.Executable); - if (typeof this.Owner === "string" && this.Owner.length) - writer.writeString(4, this.Owner); - if (typeof this.Architecture === "string" && this.Architecture.length) - writer.writeString(7, this.Architecture); - if (this.SessionID !== undefined) - writer.writeInt32(5, this.SessionID); - if (this.CmdLine !== undefined) - writer.writeRepeatedString(6, this.CmdLine); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Process { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Process(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readInt32(); - break; - case 2: - message.Ppid = reader.readInt32(); - break; - case 3: - message.Executable = reader.readString(); - break; - case 4: - message.Owner = reader.readString(); - break; - case 7: - message.Architecture = reader.readString(); - break; - case 5: - message.SessionID = reader.readInt32(); - break; - case 6: - pb_1.Message.addToRepeatedField(message, 6, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Process { - return Process.deserialize(bytes); - } - } - export class EnvVar extends pb_1.Message { - constructor(data?: any[] | { - Key?: string; - Value?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("Value" in data && data.Value != undefined) { - this.Value = data.Value; - } - } - } - get Key() { - return pb_1.Message.getField(this, 1) as string; - } - set Key(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Value() { - return pb_1.Message.getField(this, 2) as string; - } - set Value(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - Key?: string; - Value?: string; - }) { - const message = new EnvVar({}); - if (data.Key != null) { - message.Key = data.Key; - } - if (data.Value != null) { - message.Value = data.Value; - } - return message; - } - toObject() { - const data: { - Key?: string; - Value?: string; - } = {}; - if (this.Key != null) { - data.Key = this.Key; - } - if (this.Value != null) { - data.Value = this.Value; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Key === "string" && this.Key.length) - writer.writeString(1, this.Key); - if (typeof this.Value === "string" && this.Value.length) - writer.writeString(2, this.Value); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EnvVar { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new EnvVar(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Key = reader.readString(); - break; - case 2: - message.Value = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): EnvVar { - return EnvVar.deserialize(bytes); - } - } +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.11.2 +// protoc v3.15.8 +// source: commonpb/common.proto + +/* eslint-disable */ +import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; + +export const protobufPackage = "commonpb"; + +export interface Empty { +} + +/** Request - Common fields used in all gRPC requests */ +export interface Request { + Async: boolean; + Timeout: string; + BeaconID: string; + SessionID: string; +} + +/** + * Response - Common fields used in all gRPC responses. Note that the Err field + * only used when the implant needs to return an error to the server. + * Client<->Server comms should use normal gRPC error handling. + */ +export interface Response { + Err: string; + Async: boolean; + BeaconID: string; + TaskID: string; +} + +/** File - A basic file data type */ +export interface File { + Name: string; + Data: Buffer; +} + +/** Process - A basic process data type */ +export interface Process { + Pid: number; + Ppid: number; + Executable: string; + Owner: string; + Architecture: string; + SessionID: number; + CmdLine: string[]; +} + +/** EnvVar - Environment variable K/V */ +export interface EnvVar { + Key: string; + Value: string; +} + +function createBaseEmpty(): Empty { + return {}; +} + +export const Empty: MessageFns = { + encode(_: Empty, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Empty { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEmpty(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(_: any): Empty { + return {}; + }, + + toJSON(_: Empty): unknown { + const obj: any = {}; + return obj; + }, + + create(base?: DeepPartial): Empty { + return Empty.fromPartial(base ?? {}); + }, + fromPartial(_: DeepPartial): Empty { + const message = createBaseEmpty(); + return message; + }, +}; + +function createBaseRequest(): Request { + return { Async: false, Timeout: "0", BeaconID: "", SessionID: "" }; +} + +export const Request: MessageFns = { + encode(message: Request, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Async !== false) { + writer.uint32(8).bool(message.Async); + } + if (message.Timeout !== "0") { + writer.uint32(16).int64(message.Timeout); + } + if (message.BeaconID !== "") { + writer.uint32(66).string(message.BeaconID); + } + if (message.SessionID !== "") { + writer.uint32(74).string(message.SessionID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Request { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRequest(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Async = reader.bool(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Timeout = reader.int64().toString(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.SessionID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Request { + return { + Async: isSet(object.Async) ? globalThis.Boolean(object.Async) : false, + Timeout: isSet(object.Timeout) ? globalThis.String(object.Timeout) : "0", + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + SessionID: isSet(object.SessionID) ? globalThis.String(object.SessionID) : "", + }; + }, + + toJSON(message: Request): unknown { + const obj: any = {}; + if (message.Async !== false) { + obj.Async = message.Async; + } + if (message.Timeout !== "0") { + obj.Timeout = message.Timeout; + } + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.SessionID !== "") { + obj.SessionID = message.SessionID; + } + return obj; + }, + + create(base?: DeepPartial): Request { + return Request.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Request { + const message = createBaseRequest(); + message.Async = object.Async ?? false; + message.Timeout = object.Timeout ?? "0"; + message.BeaconID = object.BeaconID ?? ""; + message.SessionID = object.SessionID ?? ""; + return message; + }, +}; + +function createBaseResponse(): Response { + return { Err: "", Async: false, BeaconID: "", TaskID: "" }; +} + +export const Response: MessageFns = { + encode(message: Response, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Err !== "") { + writer.uint32(10).string(message.Err); + } + if (message.Async !== false) { + writer.uint32(16).bool(message.Async); + } + if (message.BeaconID !== "") { + writer.uint32(66).string(message.BeaconID); + } + if (message.TaskID !== "") { + writer.uint32(74).string(message.TaskID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Response { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseResponse(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Err = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Async = reader.bool(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.BeaconID = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.TaskID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Response { + return { + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + Async: isSet(object.Async) ? globalThis.Boolean(object.Async) : false, + BeaconID: isSet(object.BeaconID) ? globalThis.String(object.BeaconID) : "", + TaskID: isSet(object.TaskID) ? globalThis.String(object.TaskID) : "", + }; + }, + + toJSON(message: Response): unknown { + const obj: any = {}; + if (message.Err !== "") { + obj.Err = message.Err; + } + if (message.Async !== false) { + obj.Async = message.Async; + } + if (message.BeaconID !== "") { + obj.BeaconID = message.BeaconID; + } + if (message.TaskID !== "") { + obj.TaskID = message.TaskID; + } + return obj; + }, + + create(base?: DeepPartial): Response { + return Response.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Response { + const message = createBaseResponse(); + message.Err = object.Err ?? ""; + message.Async = object.Async ?? false; + message.BeaconID = object.BeaconID ?? ""; + message.TaskID = object.TaskID ?? ""; + return message; + }, +}; + +function createBaseFile(): File { + return { Name: "", Data: Buffer.alloc(0) }; +} + +export const File: MessageFns = { + encode(message: File, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Data.length !== 0) { + writer.uint32(18).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): File { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFile(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): File { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + }; + }, + + toJSON(message: File): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): File { + return File.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): File { + const message = createBaseFile(); + message.Name = object.Name ?? ""; + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseProcess(): Process { + return { Pid: 0, Ppid: 0, Executable: "", Owner: "", Architecture: "", SessionID: 0, CmdLine: [] }; +} + +export const Process: MessageFns = { + encode(message: Process, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).int32(message.Pid); + } + if (message.Ppid !== 0) { + writer.uint32(16).int32(message.Ppid); + } + if (message.Executable !== "") { + writer.uint32(26).string(message.Executable); + } + if (message.Owner !== "") { + writer.uint32(34).string(message.Owner); + } + if (message.Architecture !== "") { + writer.uint32(58).string(message.Architecture); + } + if (message.SessionID !== 0) { + writer.uint32(40).int32(message.SessionID); + } + for (const v of message.CmdLine) { + writer.uint32(50).string(v!); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Process { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProcess(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Ppid = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Executable = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Owner = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Architecture = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.SessionID = reader.int32(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.CmdLine.push(reader.string()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Process { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Ppid: isSet(object.Ppid) ? globalThis.Number(object.Ppid) : 0, + Executable: isSet(object.Executable) ? globalThis.String(object.Executable) : "", + Owner: isSet(object.Owner) ? globalThis.String(object.Owner) : "", + Architecture: isSet(object.Architecture) ? globalThis.String(object.Architecture) : "", + SessionID: isSet(object.SessionID) ? globalThis.Number(object.SessionID) : 0, + CmdLine: globalThis.Array.isArray(object?.CmdLine) ? object.CmdLine.map((e: any) => globalThis.String(e)) : [], + }; + }, + + toJSON(message: Process): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Ppid !== 0) { + obj.Ppid = Math.round(message.Ppid); + } + if (message.Executable !== "") { + obj.Executable = message.Executable; + } + if (message.Owner !== "") { + obj.Owner = message.Owner; + } + if (message.Architecture !== "") { + obj.Architecture = message.Architecture; + } + if (message.SessionID !== 0) { + obj.SessionID = Math.round(message.SessionID); + } + if (message.CmdLine?.length) { + obj.CmdLine = message.CmdLine; + } + return obj; + }, + + create(base?: DeepPartial): Process { + return Process.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Process { + const message = createBaseProcess(); + message.Pid = object.Pid ?? 0; + message.Ppid = object.Ppid ?? 0; + message.Executable = object.Executable ?? ""; + message.Owner = object.Owner ?? ""; + message.Architecture = object.Architecture ?? ""; + message.SessionID = object.SessionID ?? 0; + message.CmdLine = object.CmdLine?.map((e) => e) || []; + return message; + }, +}; + +function createBaseEnvVar(): EnvVar { + return { Key: "", Value: "" }; +} + +export const EnvVar: MessageFns = { + encode(message: EnvVar, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Key !== "") { + writer.uint32(10).string(message.Key); + } + if (message.Value !== "") { + writer.uint32(18).string(message.Value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): EnvVar { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnvVar(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Value = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): EnvVar { + return { + Key: isSet(object.Key) ? globalThis.String(object.Key) : "", + Value: isSet(object.Value) ? globalThis.String(object.Value) : "", + }; + }, + + toJSON(message: EnvVar): unknown { + const obj: any = {}; + if (message.Key !== "") { + obj.Key = message.Key; + } + if (message.Value !== "") { + obj.Value = message.Value; + } + return obj; + }, + + create(base?: DeepPartial): EnvVar { + return EnvVar.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): EnvVar { + const message = createBaseEnvVar(); + message.Key = object.Key ?? ""; + message.Value = object.Value ?? ""; + return message; + }, +}; + +function bytesFromBase64(b64: string): Uint8Array { + return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); +} + +function base64FromBytes(arr: Uint8Array): string { + return globalThis.Buffer.from(arr).toString("base64"); +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create(base?: DeepPartial): T; + fromPartial(object: DeepPartial): T; } diff --git a/src/pb/commonpb/common_pb.js b/src/pb/commonpb/common_pb.js deleted file mode 100644 index 9b342fc..0000000 --- a/src/pb/commonpb/common_pb.js +++ /dev/null @@ -1,1373 +0,0 @@ -// source: commonpb/common.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck -if (proto === undefined) { var proto = {commonpb: {}, clientpb: {}, sliverpb: {}}; } - - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function(){return this;})(); - -goog.exportSymbol('proto.commonpb.Empty', null, global); -goog.exportSymbol('proto.commonpb.EnvVar', null, global); -goog.exportSymbol('proto.commonpb.File', null, global); -goog.exportSymbol('proto.commonpb.Process', null, global); -goog.exportSymbol('proto.commonpb.Request', null, global); -goog.exportSymbol('proto.commonpb.Response', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.Empty = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.commonpb.Empty, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.Empty.displayName = 'proto.commonpb.Empty'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.Request = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.commonpb.Request, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.Request.displayName = 'proto.commonpb.Request'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.Response = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.commonpb.Response, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.Response.displayName = 'proto.commonpb.Response'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.File = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.commonpb.File, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.File.displayName = 'proto.commonpb.File'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.Process = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.commonpb.Process.repeatedFields_, null); -}; -goog.inherits(proto.commonpb.Process, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.Process.displayName = 'proto.commonpb.Process'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.commonpb.EnvVar = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.commonpb.EnvVar, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.commonpb.EnvVar.displayName = 'proto.commonpb.EnvVar'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.Empty.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.Empty.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.Empty} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Empty.toObject = function(includeInstance, msg) { - var f, obj = { - - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.Empty} - */ -proto.commonpb.Empty.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.Empty; - return proto.commonpb.Empty.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.Empty} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.Empty} - */ -proto.commonpb.Empty.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.Empty.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.Empty.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.Empty} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Empty.serializeBinaryToWriter = function(message, writer) { - var f = undefined; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.Request.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.Request.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.Request} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Request.toObject = function(includeInstance, msg) { - var f, obj = { - async: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - timeout: jspb.Message.getFieldWithDefault(msg, 2, 0), - beaconid: jspb.Message.getFieldWithDefault(msg, 8, ""), - sessionid: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.Request} - */ -proto.commonpb.Request.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.Request; - return proto.commonpb.Request.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.Request} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.Request} - */ -proto.commonpb.Request.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsync(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setTimeout(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setBeaconid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.Request.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.Request.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.Request} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Request.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAsync(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getTimeout(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getBeaconid(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getSessionid(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional bool Async = 1; - * @return {boolean} - */ -proto.commonpb.Request.prototype.getAsync = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.commonpb.Request} returns this - */ -proto.commonpb.Request.prototype.setAsync = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional int64 Timeout = 2; - * @return {number} - */ -proto.commonpb.Request.prototype.getTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.commonpb.Request} returns this - */ -proto.commonpb.Request.prototype.setTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string BeaconID = 8; - * @return {string} - */ -proto.commonpb.Request.prototype.getBeaconid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Request} returns this - */ -proto.commonpb.Request.prototype.setBeaconid = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string SessionID = 9; - * @return {string} - */ -proto.commonpb.Request.prototype.getSessionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Request} returns this - */ -proto.commonpb.Request.prototype.setSessionid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.Response.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.Response.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.Response} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Response.toObject = function(includeInstance, msg) { - var f, obj = { - err: jspb.Message.getFieldWithDefault(msg, 1, ""), - async: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - beaconid: jspb.Message.getFieldWithDefault(msg, 8, ""), - taskid: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.Response} - */ -proto.commonpb.Response.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.Response; - return proto.commonpb.Response.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.Response} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.Response} - */ -proto.commonpb.Response.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAsync(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setBeaconid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setTaskid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.Response.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.Response.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.Response} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Response.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getErr(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getAsync(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getBeaconid(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getTaskid(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional string Err = 1; - * @return {string} - */ -proto.commonpb.Response.prototype.getErr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Response} returns this - */ -proto.commonpb.Response.prototype.setErr = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool Async = 2; - * @return {boolean} - */ -proto.commonpb.Response.prototype.getAsync = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.commonpb.Response} returns this - */ -proto.commonpb.Response.prototype.setAsync = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional string BeaconID = 8; - * @return {string} - */ -proto.commonpb.Response.prototype.getBeaconid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Response} returns this - */ -proto.commonpb.Response.prototype.setBeaconid = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional string TaskID = 9; - * @return {string} - */ -proto.commonpb.Response.prototype.getTaskid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Response} returns this - */ -proto.commonpb.Response.prototype.setTaskid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.File.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.File.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.File} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.File.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.File} - */ -proto.commonpb.File.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.File; - return proto.commonpb.File.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.File} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.File} - */ -proto.commonpb.File.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.File.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.File.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.File} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.File.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.commonpb.File.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.File} returns this - */ -proto.commonpb.File.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes Data = 2; - * @return {!(string|Uint8Array)} - */ -proto.commonpb.File.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes Data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.commonpb.File.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.commonpb.File.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.commonpb.File} returns this - */ -proto.commonpb.File.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.commonpb.Process.repeatedFields_ = [6]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.Process.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.Process.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.Process} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Process.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - ppid: jspb.Message.getFieldWithDefault(msg, 2, 0), - executable: jspb.Message.getFieldWithDefault(msg, 3, ""), - owner: jspb.Message.getFieldWithDefault(msg, 4, ""), - architecture: jspb.Message.getFieldWithDefault(msg, 7, ""), - sessionid: jspb.Message.getFieldWithDefault(msg, 5, 0), - cmdlineList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.Process} - */ -proto.commonpb.Process.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.Process; - return proto.commonpb.Process.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.Process} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.Process} - */ -proto.commonpb.Process.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPpid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setExecutable(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setOwner(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setArchitecture(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setSessionid(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.addCmdline(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.Process.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.Process.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.Process} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.Process.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getExecutable(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getOwner(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getArchitecture(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getSessionid(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getCmdlineList(); - if (f.length > 0) { - writer.writeRepeatedString( - 6, - f - ); - } -}; - - -/** - * optional int32 Pid = 1; - * @return {number} - */ -proto.commonpb.Process.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 Ppid = 2; - * @return {number} - */ -proto.commonpb.Process.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string Executable = 3; - * @return {string} - */ -proto.commonpb.Process.prototype.getExecutable = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setExecutable = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Owner = 4; - * @return {string} - */ -proto.commonpb.Process.prototype.getOwner = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setOwner = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Architecture = 7; - * @return {string} - */ -proto.commonpb.Process.prototype.getArchitecture = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setArchitecture = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional int32 SessionID = 5; - * @return {number} - */ -proto.commonpb.Process.prototype.getSessionid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setSessionid = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * repeated string CmdLine = 6; - * @return {!Array} - */ -proto.commonpb.Process.prototype.getCmdlineList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 6)); -}; - - -/** - * @param {!Array} value - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.setCmdlineList = function(value) { - return jspb.Message.setField(this, 6, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.addCmdline = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 6, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.commonpb.Process} returns this - */ -proto.commonpb.Process.prototype.clearCmdlineList = function() { - return this.setCmdlineList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.commonpb.EnvVar.prototype.toObject = function(opt_includeInstance) { - return proto.commonpb.EnvVar.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.commonpb.EnvVar} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.EnvVar.toObject = function(includeInstance, msg) { - var f, obj = { - key: jspb.Message.getFieldWithDefault(msg, 1, ""), - value: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.commonpb.EnvVar} - */ -proto.commonpb.EnvVar.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.commonpb.EnvVar; - return proto.commonpb.EnvVar.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.commonpb.EnvVar} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.commonpb.EnvVar} - */ -proto.commonpb.EnvVar.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.commonpb.EnvVar.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.commonpb.EnvVar.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.commonpb.EnvVar} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.commonpb.EnvVar.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string Key = 1; - * @return {string} - */ -proto.commonpb.EnvVar.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.EnvVar} returns this - */ -proto.commonpb.EnvVar.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Value = 2; - * @return {string} - */ -proto.commonpb.EnvVar.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.commonpb.EnvVar} returns this - */ -proto.commonpb.EnvVar.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -goog.object.extend(exports, proto.commonpb); diff --git a/src/pb/dnspb/dns.ts b/src/pb/dnspb/dns.ts new file mode 100644 index 0000000..b9caf9b --- /dev/null +++ b/src/pb/dnspb/dns.ts @@ -0,0 +1,267 @@ +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.11.2 +// protoc v3.15.8 +// source: dnspb/dns.proto + +/* eslint-disable */ +import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; + +export const protobufPackage = "dnspb"; + +export enum DNSMessageType { + /** NOP - aka FINGERPRINT */ + NOP = 0, + INIT = 2, + POLL = 3, + CLOSE = 4, + MANIFEST = 6, + DATA_TO_IMPLANT = 7, + DATA_FROM_IMPLANT = 8, + CLEAR = 9, + UNRECOGNIZED = -1, +} + +export function dNSMessageTypeFromJSON(object: any): DNSMessageType { + switch (object) { + case 0: + case "NOP": + return DNSMessageType.NOP; + case 2: + case "INIT": + return DNSMessageType.INIT; + case 3: + case "POLL": + return DNSMessageType.POLL; + case 4: + case "CLOSE": + return DNSMessageType.CLOSE; + case 6: + case "MANIFEST": + return DNSMessageType.MANIFEST; + case 7: + case "DATA_TO_IMPLANT": + return DNSMessageType.DATA_TO_IMPLANT; + case 8: + case "DATA_FROM_IMPLANT": + return DNSMessageType.DATA_FROM_IMPLANT; + case 9: + case "CLEAR": + return DNSMessageType.CLEAR; + case -1: + case "UNRECOGNIZED": + default: + return DNSMessageType.UNRECOGNIZED; + } +} + +export function dNSMessageTypeToJSON(object: DNSMessageType): string { + switch (object) { + case DNSMessageType.NOP: + return "NOP"; + case DNSMessageType.INIT: + return "INIT"; + case DNSMessageType.POLL: + return "POLL"; + case DNSMessageType.CLOSE: + return "CLOSE"; + case DNSMessageType.MANIFEST: + return "MANIFEST"; + case DNSMessageType.DATA_TO_IMPLANT: + return "DATA_TO_IMPLANT"; + case DNSMessageType.DATA_FROM_IMPLANT: + return "DATA_FROM_IMPLANT"; + case DNSMessageType.CLEAR: + return "CLEAR"; + case DNSMessageType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +/** + * NOTE: DNS is very space sensitive so certain fields are re-purposed + * depending on the DNSMessageType. + */ +export interface DNSMessage { + Type: DNSMessageType; + /** 8 bit message id + 24 bit dns session ID */ + ID: number; + /** Bytes start at */ + Start: number; + /** Bytes stop at */ + Stop: number; + /** Total size */ + Size: number; + /** Actual data */ + Data: Buffer; +} + +function createBaseDNSMessage(): DNSMessage { + return { Type: 0, ID: 0, Start: 0, Stop: 0, Size: 0, Data: Buffer.alloc(0) }; +} + +export const DNSMessage: MessageFns = { + encode(message: DNSMessage, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Type !== 0) { + writer.uint32(8).int32(message.Type); + } + if (message.ID !== 0) { + writer.uint32(16).uint32(message.ID); + } + if (message.Start !== 0) { + writer.uint32(24).uint32(message.Start); + } + if (message.Stop !== 0) { + writer.uint32(32).uint32(message.Stop); + } + if (message.Size !== 0) { + writer.uint32(40).uint32(message.Size); + } + if (message.Data.length !== 0) { + writer.uint32(50).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DNSMessage { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDNSMessage(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Type = reader.int32() as any; + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Start = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Stop = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Size = reader.uint32(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DNSMessage { + return { + Type: isSet(object.Type) ? dNSMessageTypeFromJSON(object.Type) : 0, + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Start: isSet(object.Start) ? globalThis.Number(object.Start) : 0, + Stop: isSet(object.Stop) ? globalThis.Number(object.Stop) : 0, + Size: isSet(object.Size) ? globalThis.Number(object.Size) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + }; + }, + + toJSON(message: DNSMessage): unknown { + const obj: any = {}; + if (message.Type !== 0) { + obj.Type = dNSMessageTypeToJSON(message.Type); + } + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Start !== 0) { + obj.Start = Math.round(message.Start); + } + if (message.Stop !== 0) { + obj.Stop = Math.round(message.Stop); + } + if (message.Size !== 0) { + obj.Size = Math.round(message.Size); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): DNSMessage { + return DNSMessage.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DNSMessage { + const message = createBaseDNSMessage(); + message.Type = object.Type ?? 0; + message.ID = object.ID ?? 0; + message.Start = object.Start ?? 0; + message.Stop = object.Stop ?? 0; + message.Size = object.Size ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function bytesFromBase64(b64: string): Uint8Array { + return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); +} + +function base64FromBytes(arr: Uint8Array): string { + return globalThis.Buffer.from(arr).toString("base64"); +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create(base?: DeepPartial): T; + fromPartial(object: DeepPartial): T; +} diff --git a/src/pb/rpcpb/services.ts b/src/pb/rpcpb/services.ts index fdaf6dd..b7278b1 100644 --- a/src/pb/rpcpb/services.ts +++ b/src/pb/rpcpb/services.ts @@ -1,1657 +1,2437 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 3.15.6 - * source: rpcpb/services.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./../commonpb/common"; -import * as dependency_2 from "./../sliverpb/sliver"; -import * as dependency_3 from "./../clientpb/client"; -import * as grpc_1 from "@grpc/grpc-js"; -export namespace rpcpb { - interface GrpcUnaryServiceInterface { - (message: P, metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall; - (message: P, metadata: grpc_1.Metadata, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall; - (message: P, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall; - (message: P, callback: grpc_1.requestCallback): grpc_1.ClientUnaryCall; - } - interface GrpcStreamServiceInterface { - (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream; - (message: P, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream; - } - interface GrpWritableServiceInterface { - (metadata: grpc_1.Metadata, options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientWritableStream

; - (metadata: grpc_1.Metadata, callback: grpc_1.requestCallback): grpc_1.ClientWritableStream

; - (options: grpc_1.CallOptions, callback: grpc_1.requestCallback): grpc_1.ClientWritableStream

; - (callback: grpc_1.requestCallback): grpc_1.ClientWritableStream

; - } - interface GrpcChunkServiceInterface { - (metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream; - (options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream; - } - interface GrpcPromiseServiceInterface { - (message: P, metadata: grpc_1.Metadata, options?: grpc_1.CallOptions): Promise; - (message: P, options?: grpc_1.CallOptions): Promise; - } - export abstract class UnimplementedSliverRPCService { - static definition = { - GetVersion: { - path: "/rpcpb.SliverRPC/GetVersion", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Version) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Version.deserialize(new Uint8Array(bytes)) - }, - GetOperators: { - path: "/rpcpb.SliverRPC/GetOperators", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Operators) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Operators.deserialize(new Uint8Array(bytes)) - }, - Kill: { - path: "/rpcpb.SliverRPC/Kill", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.KillReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.KillReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - Reconfigure: { - path: "/rpcpb.SliverRPC/Reconfigure", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ReconfigureReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ReconfigureReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Reconfigure) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Reconfigure.deserialize(new Uint8Array(bytes)) - }, - Rename: { - path: "/rpcpb.SliverRPC/Rename", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.RenameReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.RenameReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - GetSessions: { - path: "/rpcpb.SliverRPC/GetSessions", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Sessions) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Sessions.deserialize(new Uint8Array(bytes)) - }, - GetBeacons: { - path: "/rpcpb.SliverRPC/GetBeacons", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Beacons) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Beacons.deserialize(new Uint8Array(bytes)) - }, - GetBeacon: { - path: "/rpcpb.SliverRPC/GetBeacon", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Beacon) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Beacon.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Beacon) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Beacon.deserialize(new Uint8Array(bytes)) - }, - RmBeacon: { - path: "/rpcpb.SliverRPC/RmBeacon", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Beacon) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Beacon.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - GetBeaconTasks: { - path: "/rpcpb.SliverRPC/GetBeaconTasks", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Beacon) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Beacon.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.BeaconTasks) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.BeaconTasks.deserialize(new Uint8Array(bytes)) - }, - GetBeaconTaskContent: { - path: "/rpcpb.SliverRPC/GetBeaconTaskContent", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.BeaconTask) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.BeaconTask.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.BeaconTask) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.BeaconTask.deserialize(new Uint8Array(bytes)) - }, - CancelBeaconTask: { - path: "/rpcpb.SliverRPC/CancelBeaconTask", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.BeaconTask) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.BeaconTask.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.BeaconTask) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.BeaconTask.deserialize(new Uint8Array(bytes)) - }, - MonitorStart: { - path: "/rpcpb.SliverRPC/MonitorStart", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Response) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Response.deserialize(new Uint8Array(bytes)) - }, - MonitorStop: { - path: "/rpcpb.SliverRPC/MonitorStop", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - GetJobs: { - path: "/rpcpb.SliverRPC/GetJobs", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Jobs) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Jobs.deserialize(new Uint8Array(bytes)) - }, - KillJob: { - path: "/rpcpb.SliverRPC/KillJob", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.KillJobReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.KillJobReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.KillJob) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.KillJob.deserialize(new Uint8Array(bytes)) - }, - StartMTLSListener: { - path: "/rpcpb.SliverRPC/StartMTLSListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.MTLSListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.MTLSListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.MTLSListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.MTLSListener.deserialize(new Uint8Array(bytes)) - }, - StartWGListener: { - path: "/rpcpb.SliverRPC/StartWGListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.WGListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.WGListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.WGListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.WGListener.deserialize(new Uint8Array(bytes)) - }, - StartDNSListener: { - path: "/rpcpb.SliverRPC/StartDNSListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.DNSListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.DNSListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.DNSListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.DNSListener.deserialize(new Uint8Array(bytes)) - }, - StartHTTPSListener: { - path: "/rpcpb.SliverRPC/StartHTTPSListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.HTTPListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.HTTPListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.HTTPListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.HTTPListener.deserialize(new Uint8Array(bytes)) - }, - StartHTTPListener: { - path: "/rpcpb.SliverRPC/StartHTTPListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.HTTPListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.HTTPListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.HTTPListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.HTTPListener.deserialize(new Uint8Array(bytes)) - }, - StartTCPStagerListener: { - path: "/rpcpb.SliverRPC/StartTCPStagerListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.StagerListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.StagerListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.StagerListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.StagerListener.deserialize(new Uint8Array(bytes)) - }, - StartHTTPStagerListener: { - path: "/rpcpb.SliverRPC/StartHTTPStagerListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.StagerListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.StagerListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.StagerListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.StagerListener.deserialize(new Uint8Array(bytes)) - }, - LootAdd: { - path: "/rpcpb.SliverRPC/LootAdd", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)) - }, - LootRm: { - path: "/rpcpb.SliverRPC/LootRm", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - LootUpdate: { - path: "/rpcpb.SliverRPC/LootUpdate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)) - }, - LootContent: { - path: "/rpcpb.SliverRPC/LootContent", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)) - }, - LootAll: { - path: "/rpcpb.SliverRPC/LootAll", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.AllLoot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.AllLoot.deserialize(new Uint8Array(bytes)) - }, - LootAllOf: { - path: "/rpcpb.SliverRPC/LootAllOf", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Loot) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Loot.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.AllLoot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.AllLoot.deserialize(new Uint8Array(bytes)) - }, - Hosts: { - path: "/rpcpb.SliverRPC/Hosts", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.AllHosts) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.AllHosts.deserialize(new Uint8Array(bytes)) - }, - Host: { - path: "/rpcpb.SliverRPC/Host", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Host) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Host.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Host) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Host.deserialize(new Uint8Array(bytes)) - }, - HostRm: { - path: "/rpcpb.SliverRPC/HostRm", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Host) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Host.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - HostIOCRm: { - path: "/rpcpb.SliverRPC/HostIOCRm", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.IOC) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.IOC.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - Generate: { - path: "/rpcpb.SliverRPC/Generate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.GenerateReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.GenerateReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Generate) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Generate.deserialize(new Uint8Array(bytes)) - }, - Regenerate: { - path: "/rpcpb.SliverRPC/Regenerate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.RegenerateReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.RegenerateReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Generate) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Generate.deserialize(new Uint8Array(bytes)) - }, - ImplantBuilds: { - path: "/rpcpb.SliverRPC/ImplantBuilds", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ImplantBuilds) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ImplantBuilds.deserialize(new Uint8Array(bytes)) - }, - DeleteImplantBuild: { - path: "/rpcpb.SliverRPC/DeleteImplantBuild", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.DeleteReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.DeleteReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - Canaries: { - path: "/rpcpb.SliverRPC/Canaries", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Canaries) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Canaries.deserialize(new Uint8Array(bytes)) - }, - GenerateWGClientConfig: { - path: "/rpcpb.SliverRPC/GenerateWGClientConfig", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.WGClientConfig) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.WGClientConfig.deserialize(new Uint8Array(bytes)) - }, - GenerateUniqueIP: { - path: "/rpcpb.SliverRPC/GenerateUniqueIP", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.UniqueWGIP) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.UniqueWGIP.deserialize(new Uint8Array(bytes)) - }, - ImplantProfiles: { - path: "/rpcpb.SliverRPC/ImplantProfiles", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ImplantProfiles) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ImplantProfiles.deserialize(new Uint8Array(bytes)) - }, - DeleteImplantProfile: { - path: "/rpcpb.SliverRPC/DeleteImplantProfile", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.DeleteReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.DeleteReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - SaveImplantProfile: { - path: "/rpcpb.SliverRPC/SaveImplantProfile", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.ImplantProfile) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.ImplantProfile.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ImplantProfile) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ImplantProfile.deserialize(new Uint8Array(bytes)) - }, - MsfStage: { - path: "/rpcpb.SliverRPC/MsfStage", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.MsfStagerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.MsfStagerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.MsfStager) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.MsfStager.deserialize(new Uint8Array(bytes)) - }, - ShellcodeRDI: { - path: "/rpcpb.SliverRPC/ShellcodeRDI", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.ShellcodeRDIReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.ShellcodeRDIReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ShellcodeRDI) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ShellcodeRDI.deserialize(new Uint8Array(bytes)) - }, - GetCompiler: { - path: "/rpcpb.SliverRPC/GetCompiler", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Compiler) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Compiler.deserialize(new Uint8Array(bytes)) - }, - ShellcodeEncoder: { - path: "/rpcpb.SliverRPC/ShellcodeEncoder", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.ShellcodeEncodeReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.ShellcodeEncodeReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ShellcodeEncode) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ShellcodeEncode.deserialize(new Uint8Array(bytes)) - }, - ShellcodeEncoderMap: { - path: "/rpcpb.SliverRPC/ShellcodeEncoderMap", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.ShellcodeEncoderMap) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.ShellcodeEncoderMap.deserialize(new Uint8Array(bytes)) - }, - Websites: { - path: "/rpcpb.SliverRPC/Websites", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Websites) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Websites.deserialize(new Uint8Array(bytes)) - }, - Website: { - path: "/rpcpb.SliverRPC/Website", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)) - }, - WebsiteRemove: { - path: "/rpcpb.SliverRPC/WebsiteRemove", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - WebsiteAddContent: { - path: "/rpcpb.SliverRPC/WebsiteAddContent", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.WebsiteAddContent) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.WebsiteAddContent.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)) - }, - WebsiteUpdateContent: { - path: "/rpcpb.SliverRPC/WebsiteUpdateContent", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.WebsiteAddContent) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.WebsiteAddContent.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)) - }, - WebsiteRemoveContent: { - path: "/rpcpb.SliverRPC/WebsiteRemoveContent", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.WebsiteRemoveContent) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.WebsiteRemoveContent.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Website) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Website.deserialize(new Uint8Array(bytes)) - }, - Ping: { - path: "/rpcpb.SliverRPC/Ping", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.Ping) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Ping.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Ping) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Ping.deserialize(new Uint8Array(bytes)) - }, - Ps: { - path: "/rpcpb.SliverRPC/Ps", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Ps) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Ps.deserialize(new Uint8Array(bytes)) - }, - Terminate: { - path: "/rpcpb.SliverRPC/Terminate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.TerminateReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.TerminateReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Terminate) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Terminate.deserialize(new Uint8Array(bytes)) - }, - Ifconfig: { - path: "/rpcpb.SliverRPC/Ifconfig", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.IfconfigReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.IfconfigReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Ifconfig) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Ifconfig.deserialize(new Uint8Array(bytes)) - }, - Netstat: { - path: "/rpcpb.SliverRPC/Netstat", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.NetstatReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.NetstatReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Netstat) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Netstat.deserialize(new Uint8Array(bytes)) - }, - Ls: { - path: "/rpcpb.SliverRPC/Ls", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.LsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.LsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Ls) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Ls.deserialize(new Uint8Array(bytes)) - }, - Cd: { - path: "/rpcpb.SliverRPC/Cd", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.CdReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CdReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Pwd) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Pwd.deserialize(new Uint8Array(bytes)) - }, - Pwd: { - path: "/rpcpb.SliverRPC/Pwd", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PwdReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PwdReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Pwd) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Pwd.deserialize(new Uint8Array(bytes)) - }, - Mv: { - path: "/rpcpb.SliverRPC/Mv", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.MvReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.MvReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Mv) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Mv.deserialize(new Uint8Array(bytes)) - }, - Rm: { - path: "/rpcpb.SliverRPC/Rm", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RmReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RmReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Rm) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Rm.deserialize(new Uint8Array(bytes)) - }, - Mkdir: { - path: "/rpcpb.SliverRPC/Mkdir", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.MkdirReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.MkdirReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Mkdir) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Mkdir.deserialize(new Uint8Array(bytes)) - }, - Download: { - path: "/rpcpb.SliverRPC/Download", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.DownloadReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.DownloadReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Download) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Download.deserialize(new Uint8Array(bytes)) - }, - Upload: { - path: "/rpcpb.SliverRPC/Upload", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.UploadReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.UploadReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Upload) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Upload.deserialize(new Uint8Array(bytes)) - }, - ProcessDump: { - path: "/rpcpb.SliverRPC/ProcessDump", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ProcessDumpReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ProcessDumpReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ProcessDump) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ProcessDump.deserialize(new Uint8Array(bytes)) - }, - RunAs: { - path: "/rpcpb.SliverRPC/RunAs", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RunAsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RunAsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RunAs) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RunAs.deserialize(new Uint8Array(bytes)) - }, - Impersonate: { - path: "/rpcpb.SliverRPC/Impersonate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ImpersonateReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ImpersonateReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Impersonate) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Impersonate.deserialize(new Uint8Array(bytes)) - }, - RevToSelf: { - path: "/rpcpb.SliverRPC/RevToSelf", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RevToSelfReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RevToSelfReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RevToSelf) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RevToSelf.deserialize(new Uint8Array(bytes)) - }, - GetSystem: { - path: "/rpcpb.SliverRPC/GetSystem", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.GetSystemReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.GetSystemReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.GetSystem) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.GetSystem.deserialize(new Uint8Array(bytes)) - }, - Task: { - path: "/rpcpb.SliverRPC/Task", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.TaskReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.TaskReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Task) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Task.deserialize(new Uint8Array(bytes)) - }, - Msf: { - path: "/rpcpb.SliverRPC/Msf", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.MSFReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.MSFReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Task) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Task.deserialize(new Uint8Array(bytes)) - }, - MsfRemote: { - path: "/rpcpb.SliverRPC/MsfRemote", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.MSFRemoteReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.MSFRemoteReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Task) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Task.deserialize(new Uint8Array(bytes)) - }, - ExecuteAssembly: { - path: "/rpcpb.SliverRPC/ExecuteAssembly", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ExecuteAssemblyReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ExecuteAssemblyReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ExecuteAssembly) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ExecuteAssembly.deserialize(new Uint8Array(bytes)) - }, - Migrate: { - path: "/rpcpb.SliverRPC/Migrate", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.MigrateReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.MigrateReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Migrate) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Migrate.deserialize(new Uint8Array(bytes)) - }, - Execute: { - path: "/rpcpb.SliverRPC/Execute", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ExecuteReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ExecuteReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Execute) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Execute.deserialize(new Uint8Array(bytes)) - }, - ExecuteWindows: { - path: "/rpcpb.SliverRPC/ExecuteWindows", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ExecuteWindowsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ExecuteWindowsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Execute) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Execute.deserialize(new Uint8Array(bytes)) - }, - Sideload: { - path: "/rpcpb.SliverRPC/Sideload", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.SideloadReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SideloadReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Sideload) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Sideload.deserialize(new Uint8Array(bytes)) - }, - SpawnDll: { - path: "/rpcpb.SliverRPC/SpawnDll", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.InvokeSpawnDllReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.InvokeSpawnDllReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.SpawnDll) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SpawnDll.deserialize(new Uint8Array(bytes)) - }, - Screenshot: { - path: "/rpcpb.SliverRPC/Screenshot", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ScreenshotReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ScreenshotReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Screenshot) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Screenshot.deserialize(new Uint8Array(bytes)) - }, - CurrentTokenOwner: { - path: "/rpcpb.SliverRPC/CurrentTokenOwner", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.CurrentTokenOwnerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CurrentTokenOwnerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.CurrentTokenOwner) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CurrentTokenOwner.deserialize(new Uint8Array(bytes)) - }, - PivotStartListener: { - path: "/rpcpb.SliverRPC/PivotStartListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PivotStartListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PivotStartListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.PivotListener) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PivotListener.deserialize(new Uint8Array(bytes)) - }, - PivotStopListener: { - path: "/rpcpb.SliverRPC/PivotStopListener", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PivotStopListenerReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PivotStopListenerReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - PivotSessionListeners: { - path: "/rpcpb.SliverRPC/PivotSessionListeners", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PivotListenersReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PivotListenersReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.PivotListeners) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PivotListeners.deserialize(new Uint8Array(bytes)) - }, - PivotGraph: { - path: "/rpcpb.SliverRPC/PivotGraph", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.PivotGraph) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.PivotGraph.deserialize(new Uint8Array(bytes)) - }, - StartService: { - path: "/rpcpb.SliverRPC/StartService", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.StartServiceReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.StartServiceReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ServiceInfo) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ServiceInfo.deserialize(new Uint8Array(bytes)) - }, - StopService: { - path: "/rpcpb.SliverRPC/StopService", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.StopServiceReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.StopServiceReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ServiceInfo) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ServiceInfo.deserialize(new Uint8Array(bytes)) - }, - RemoveService: { - path: "/rpcpb.SliverRPC/RemoveService", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RemoveServiceReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RemoveServiceReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ServiceInfo) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ServiceInfo.deserialize(new Uint8Array(bytes)) - }, - MakeToken: { - path: "/rpcpb.SliverRPC/MakeToken", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.MakeTokenReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.MakeTokenReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.MakeToken) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.MakeToken.deserialize(new Uint8Array(bytes)) - }, - GetEnv: { - path: "/rpcpb.SliverRPC/GetEnv", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.EnvReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.EnvReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.EnvInfo) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.EnvInfo.deserialize(new Uint8Array(bytes)) - }, - SetEnv: { - path: "/rpcpb.SliverRPC/SetEnv", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.SetEnvReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SetEnvReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.SetEnv) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SetEnv.deserialize(new Uint8Array(bytes)) - }, - UnsetEnv: { - path: "/rpcpb.SliverRPC/UnsetEnv", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.UnsetEnvReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.UnsetEnvReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.UnsetEnv) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.UnsetEnv.deserialize(new Uint8Array(bytes)) - }, - Backdoor: { - path: "/rpcpb.SliverRPC/Backdoor", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.BackdoorReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.BackdoorReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Backdoor) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Backdoor.deserialize(new Uint8Array(bytes)) - }, - RegistryRead: { - path: "/rpcpb.SliverRPC/RegistryRead", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistryReadReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryReadReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistryRead) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryRead.deserialize(new Uint8Array(bytes)) - }, - RegistryWrite: { - path: "/rpcpb.SliverRPC/RegistryWrite", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistryWriteReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryWriteReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistryWrite) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryWrite.deserialize(new Uint8Array(bytes)) - }, - RegistryCreateKey: { - path: "/rpcpb.SliverRPC/RegistryCreateKey", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistryCreateKeyReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryCreateKeyReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistryCreateKey) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryCreateKey.deserialize(new Uint8Array(bytes)) - }, - RegistryDeleteKey: { - path: "/rpcpb.SliverRPC/RegistryDeleteKey", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistryDeleteKeyReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryDeleteKeyReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistryDeleteKey) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryDeleteKey.deserialize(new Uint8Array(bytes)) - }, - RegistryListSubKeys: { - path: "/rpcpb.SliverRPC/RegistryListSubKeys", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistrySubKeyListReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistrySubKeyListReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistrySubKeyList) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistrySubKeyList.deserialize(new Uint8Array(bytes)) - }, - RegistryListValues: { - path: "/rpcpb.SliverRPC/RegistryListValues", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegistryListValuesReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryListValuesReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegistryValuesList) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegistryValuesList.deserialize(new Uint8Array(bytes)) - }, - RunSSHCommand: { - path: "/rpcpb.SliverRPC/RunSSHCommand", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.SSHCommandReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SSHCommandReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.SSHCommand) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SSHCommand.deserialize(new Uint8Array(bytes)) - }, - HijackDLL: { - path: "/rpcpb.SliverRPC/HijackDLL", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_3.clientpb.DllHijackReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_3.clientpb.DllHijackReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.DllHijack) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.DllHijack.deserialize(new Uint8Array(bytes)) - }, - GetPrivs: { - path: "/rpcpb.SliverRPC/GetPrivs", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.GetPrivsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.GetPrivsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.GetPrivs) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.GetPrivs.deserialize(new Uint8Array(bytes)) - }, - OpenSession: { - path: "/rpcpb.SliverRPC/OpenSession", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.OpenSession) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.OpenSession.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.OpenSession) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.OpenSession.deserialize(new Uint8Array(bytes)) - }, - CloseSession: { - path: "/rpcpb.SliverRPC/CloseSession", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.CloseSession) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CloseSession.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - RegisterExtension: { - path: "/rpcpb.SliverRPC/RegisterExtension", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.RegisterExtensionReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegisterExtensionReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.RegisterExtension) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.RegisterExtension.deserialize(new Uint8Array(bytes)) - }, - CallExtension: { - path: "/rpcpb.SliverRPC/CallExtension", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.CallExtensionReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CallExtensionReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.CallExtension) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.CallExtension.deserialize(new Uint8Array(bytes)) - }, - ListExtensions: { - path: "/rpcpb.SliverRPC/ListExtensions", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ListExtensionsReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ListExtensionsReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.ListExtensions) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ListExtensions.deserialize(new Uint8Array(bytes)) - }, - WGStartPortForward: { - path: "/rpcpb.SliverRPC/WGStartPortForward", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGPortForwardStartReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGPortForwardStartReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGPortForward) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGPortForward.deserialize(new Uint8Array(bytes)) - }, - WGStopPortForward: { - path: "/rpcpb.SliverRPC/WGStopPortForward", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGPortForwardStopReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGPortForwardStopReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGPortForward) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGPortForward.deserialize(new Uint8Array(bytes)) - }, - WGStartSocks: { - path: "/rpcpb.SliverRPC/WGStartSocks", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGSocksStartReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocksStartReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGSocks) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocks.deserialize(new Uint8Array(bytes)) - }, - WGStopSocks: { - path: "/rpcpb.SliverRPC/WGStopSocks", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGSocksStopReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocksStopReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGSocks) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocks.deserialize(new Uint8Array(bytes)) - }, - WGListForwarders: { - path: "/rpcpb.SliverRPC/WGListForwarders", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGTCPForwardersReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGTCPForwardersReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGTCPForwarders) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGTCPForwarders.deserialize(new Uint8Array(bytes)) - }, - WGListSocksServers: { - path: "/rpcpb.SliverRPC/WGListSocksServers", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.WGSocksServersReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocksServersReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.WGSocksServers) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.WGSocksServers.deserialize(new Uint8Array(bytes)) - }, - Shell: { - path: "/rpcpb.SliverRPC/Shell", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.ShellReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.ShellReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Shell) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Shell.deserialize(new Uint8Array(bytes)) - }, - Portfwd: { - path: "/rpcpb.SliverRPC/Portfwd", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.PortfwdReq) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.PortfwdReq.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Portfwd) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Portfwd.deserialize(new Uint8Array(bytes)) - }, - CreateSocks: { - path: "/rpcpb.SliverRPC/CreateSocks", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.Socks) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Socks.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Socks) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Socks.deserialize(new Uint8Array(bytes)) - }, - CloseSocks: { - path: "/rpcpb.SliverRPC/CloseSocks", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.Socks) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Socks.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - SocksProxy: { - path: "/rpcpb.SliverRPC/SocksProxy", - requestStream: true, - responseStream: true, - requestSerialize: (message: dependency_2.sliverpb.SocksData) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SocksData.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.SocksData) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.SocksData.deserialize(new Uint8Array(bytes)) - }, - CreateTunnel: { - path: "/rpcpb.SliverRPC/CreateTunnel", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.Tunnel) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Tunnel.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.Tunnel) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Tunnel.deserialize(new Uint8Array(bytes)) - }, - CloseTunnel: { - path: "/rpcpb.SliverRPC/CloseTunnel", - requestStream: false, - responseStream: false, - requestSerialize: (message: dependency_2.sliverpb.Tunnel) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.Tunnel.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)) - }, - TunnelData: { - path: "/rpcpb.SliverRPC/TunnelData", - requestStream: true, - responseStream: true, - requestSerialize: (message: dependency_2.sliverpb.TunnelData) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_2.sliverpb.TunnelData.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_2.sliverpb.TunnelData) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_2.sliverpb.TunnelData.deserialize(new Uint8Array(bytes)) - }, - Events: { - path: "/rpcpb.SliverRPC/Events", - requestStream: false, - responseStream: true, - requestSerialize: (message: dependency_1.commonpb.Empty) => Buffer.from(message.serialize()), - requestDeserialize: (bytes: Buffer) => dependency_1.commonpb.Empty.deserialize(new Uint8Array(bytes)), - responseSerialize: (message: dependency_3.clientpb.Event) => Buffer.from(message.serialize()), - responseDeserialize: (bytes: Buffer) => dependency_3.clientpb.Event.deserialize(new Uint8Array(bytes)) - } - }; - [method: string]: grpc_1.UntypedHandleCall; - abstract GetVersion(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetOperators(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Kill(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Reconfigure(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Rename(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetSessions(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetBeacons(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetBeacon(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RmBeacon(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetBeaconTasks(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetBeaconTaskContent(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CancelBeaconTask(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract MonitorStart(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract MonitorStop(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetJobs(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract KillJob(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartMTLSListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartWGListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartDNSListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartHTTPSListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartHTTPListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartTCPStagerListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartHTTPStagerListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootAdd(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootRm(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootUpdate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootContent(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootAll(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract LootAllOf(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Hosts(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Host(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract HostRm(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract HostIOCRm(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Generate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Regenerate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ImplantBuilds(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract DeleteImplantBuild(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Canaries(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GenerateWGClientConfig(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GenerateUniqueIP(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ImplantProfiles(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract DeleteImplantProfile(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract SaveImplantProfile(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract MsfStage(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ShellcodeRDI(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetCompiler(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ShellcodeEncoder(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ShellcodeEncoderMap(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Websites(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Website(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WebsiteRemove(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WebsiteAddContent(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WebsiteUpdateContent(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WebsiteRemoveContent(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Ping(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Ps(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Terminate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Ifconfig(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Netstat(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Ls(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Cd(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Pwd(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Mv(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Rm(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Mkdir(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Download(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Upload(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ProcessDump(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RunAs(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Impersonate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RevToSelf(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetSystem(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Task(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Msf(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract MsfRemote(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ExecuteAssembly(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Migrate(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Execute(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ExecuteWindows(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Sideload(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract SpawnDll(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Screenshot(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CurrentTokenOwner(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract PivotStartListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract PivotStopListener(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract PivotSessionListeners(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract PivotGraph(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StartService(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract StopService(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RemoveService(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract MakeToken(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetEnv(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract SetEnv(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract UnsetEnv(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Backdoor(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryRead(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryWrite(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryCreateKey(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryDeleteKey(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryListSubKeys(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegistryListValues(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RunSSHCommand(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract HijackDLL(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract GetPrivs(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract OpenSession(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CloseSession(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract RegisterExtension(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CallExtension(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract ListExtensions(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGStartPortForward(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGStopPortForward(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGStartSocks(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGStopSocks(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGListForwarders(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract WGListSocksServers(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Shell(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract Portfwd(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CreateSocks(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CloseSocks(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract SocksProxy(call: grpc_1.ServerDuplexStream): void; - abstract CreateTunnel(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract CloseTunnel(call: grpc_1.ServerUnaryCall, callback: grpc_1.sendUnaryData): void; - abstract TunnelData(call: grpc_1.ServerDuplexStream): void; - abstract Events(call: grpc_1.ServerWritableStream): void; - } - export class SliverRPCClient extends grpc_1.makeGenericClientConstructor(UnimplementedSliverRPCService.definition, "SliverRPC", {}) { - constructor(address: string, credentials: grpc_1.ChannelCredentials, options?: Partial) { - super(address, credentials, options); - } - GetVersion: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetVersion(message, metadata, options, callback); - }; - GetOperators: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetOperators(message, metadata, options, callback); - }; - Kill: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.KillReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Kill(message, metadata, options, callback); - }; - Reconfigure: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ReconfigureReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Reconfigure(message, metadata, options, callback); - }; - Rename: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.RenameReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Rename(message, metadata, options, callback); - }; - GetSessions: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetSessions(message, metadata, options, callback); - }; - GetBeacons: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetBeacons(message, metadata, options, callback); - }; - GetBeacon: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Beacon, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetBeacon(message, metadata, options, callback); - }; - RmBeacon: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Beacon, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RmBeacon(message, metadata, options, callback); - }; - GetBeaconTasks: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Beacon, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetBeaconTasks(message, metadata, options, callback); - }; - GetBeaconTaskContent: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.BeaconTask, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetBeaconTaskContent(message, metadata, options, callback); - }; - CancelBeaconTask: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.BeaconTask, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CancelBeaconTask(message, metadata, options, callback); - }; - MonitorStart: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.MonitorStart(message, metadata, options, callback); - }; - MonitorStop: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.MonitorStop(message, metadata, options, callback); - }; - GetJobs: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetJobs(message, metadata, options, callback); - }; - KillJob: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.KillJobReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.KillJob(message, metadata, options, callback); - }; - StartMTLSListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.MTLSListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartMTLSListener(message, metadata, options, callback); - }; - StartWGListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.WGListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartWGListener(message, metadata, options, callback); - }; - StartDNSListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.DNSListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartDNSListener(message, metadata, options, callback); - }; - StartHTTPSListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.HTTPListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartHTTPSListener(message, metadata, options, callback); - }; - StartHTTPListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.HTTPListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartHTTPListener(message, metadata, options, callback); - }; - StartTCPStagerListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.StagerListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartTCPStagerListener(message, metadata, options, callback); - }; - StartHTTPStagerListener: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.StagerListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartHTTPStagerListener(message, metadata, options, callback); - }; - LootAdd: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Loot, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootAdd(message, metadata, options, callback); - }; - LootRm: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Loot, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootRm(message, metadata, options, callback); - }; - LootUpdate: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Loot, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootUpdate(message, metadata, options, callback); - }; - LootContent: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Loot, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootContent(message, metadata, options, callback); - }; - LootAll: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootAll(message, metadata, options, callback); - }; - LootAllOf: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Loot, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.LootAllOf(message, metadata, options, callback); - }; - Hosts: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Hosts(message, metadata, options, callback); - }; - Host: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Host, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Host(message, metadata, options, callback); - }; - HostRm: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Host, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.HostRm(message, metadata, options, callback); - }; - HostIOCRm: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.IOC, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.HostIOCRm(message, metadata, options, callback); - }; - Generate: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.GenerateReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Generate(message, metadata, options, callback); - }; - Regenerate: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.RegenerateReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Regenerate(message, metadata, options, callback); - }; - ImplantBuilds: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ImplantBuilds(message, metadata, options, callback); - }; - DeleteImplantBuild: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.DeleteReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.DeleteImplantBuild(message, metadata, options, callback); - }; - Canaries: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Canaries(message, metadata, options, callback); - }; - GenerateWGClientConfig: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GenerateWGClientConfig(message, metadata, options, callback); - }; - GenerateUniqueIP: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GenerateUniqueIP(message, metadata, options, callback); - }; - ImplantProfiles: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ImplantProfiles(message, metadata, options, callback); - }; - DeleteImplantProfile: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.DeleteReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.DeleteImplantProfile(message, metadata, options, callback); - }; - SaveImplantProfile: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.ImplantProfile, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.SaveImplantProfile(message, metadata, options, callback); - }; - MsfStage: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.MsfStagerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.MsfStage(message, metadata, options, callback); - }; - ShellcodeRDI: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.ShellcodeRDIReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ShellcodeRDI(message, metadata, options, callback); - }; - GetCompiler: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetCompiler(message, metadata, options, callback); - }; - ShellcodeEncoder: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.ShellcodeEncodeReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ShellcodeEncoder(message, metadata, options, callback); - }; - ShellcodeEncoderMap: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ShellcodeEncoderMap(message, metadata, options, callback); - }; - Websites: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Websites(message, metadata, options, callback); - }; - Website: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Website, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Website(message, metadata, options, callback); - }; - WebsiteRemove: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.Website, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WebsiteRemove(message, metadata, options, callback); - }; - WebsiteAddContent: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.WebsiteAddContent, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WebsiteAddContent(message, metadata, options, callback); - }; - WebsiteUpdateContent: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.WebsiteAddContent, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WebsiteUpdateContent(message, metadata, options, callback); - }; - WebsiteRemoveContent: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.WebsiteRemoveContent, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WebsiteRemoveContent(message, metadata, options, callback); - }; - Ping: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.Ping, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Ping(message, metadata, options, callback); - }; - Ps: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Ps(message, metadata, options, callback); - }; - Terminate: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.TerminateReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Terminate(message, metadata, options, callback); - }; - Ifconfig: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.IfconfigReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Ifconfig(message, metadata, options, callback); - }; - Netstat: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.NetstatReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Netstat(message, metadata, options, callback); - }; - Ls: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.LsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Ls(message, metadata, options, callback); - }; - Cd: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.CdReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Cd(message, metadata, options, callback); - }; - Pwd: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PwdReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Pwd(message, metadata, options, callback); - }; - Mv: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.MvReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Mv(message, metadata, options, callback); - }; - Rm: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RmReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Rm(message, metadata, options, callback); - }; - Mkdir: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.MkdirReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Mkdir(message, metadata, options, callback); - }; - Download: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.DownloadReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Download(message, metadata, options, callback); - }; - Upload: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.UploadReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Upload(message, metadata, options, callback); - }; - ProcessDump: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ProcessDumpReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ProcessDump(message, metadata, options, callback); - }; - RunAs: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RunAsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RunAs(message, metadata, options, callback); - }; - Impersonate: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ImpersonateReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Impersonate(message, metadata, options, callback); - }; - RevToSelf: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RevToSelfReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RevToSelf(message, metadata, options, callback); - }; - GetSystem: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.GetSystemReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetSystem(message, metadata, options, callback); - }; - Task: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.TaskReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Task(message, metadata, options, callback); - }; - Msf: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.MSFReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Msf(message, metadata, options, callback); - }; - MsfRemote: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.MSFRemoteReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.MsfRemote(message, metadata, options, callback); - }; - ExecuteAssembly: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ExecuteAssemblyReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ExecuteAssembly(message, metadata, options, callback); - }; - Migrate: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.MigrateReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Migrate(message, metadata, options, callback); - }; - Execute: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ExecuteReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Execute(message, metadata, options, callback); - }; - ExecuteWindows: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ExecuteWindowsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ExecuteWindows(message, metadata, options, callback); - }; - Sideload: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.SideloadReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Sideload(message, metadata, options, callback); - }; - SpawnDll: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.InvokeSpawnDllReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.SpawnDll(message, metadata, options, callback); - }; - Screenshot: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ScreenshotReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Screenshot(message, metadata, options, callback); - }; - CurrentTokenOwner: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.CurrentTokenOwnerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CurrentTokenOwner(message, metadata, options, callback); - }; - PivotStartListener: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PivotStartListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.PivotStartListener(message, metadata, options, callback); - }; - PivotStopListener: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PivotStopListenerReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.PivotStopListener(message, metadata, options, callback); - }; - PivotSessionListeners: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PivotListenersReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.PivotSessionListeners(message, metadata, options, callback); - }; - PivotGraph: GrpcUnaryServiceInterface = (message: dependency_1.commonpb.Empty, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.PivotGraph(message, metadata, options, callback); - }; - StartService: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.StartServiceReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StartService(message, metadata, options, callback); - }; - StopService: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.StopServiceReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.StopService(message, metadata, options, callback); - }; - RemoveService: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RemoveServiceReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RemoveService(message, metadata, options, callback); - }; - MakeToken: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.MakeTokenReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.MakeToken(message, metadata, options, callback); - }; - GetEnv: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.EnvReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetEnv(message, metadata, options, callback); - }; - SetEnv: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.SetEnvReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.SetEnv(message, metadata, options, callback); - }; - UnsetEnv: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.UnsetEnvReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.UnsetEnv(message, metadata, options, callback); - }; - Backdoor: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.BackdoorReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Backdoor(message, metadata, options, callback); - }; - RegistryRead: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistryReadReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryRead(message, metadata, options, callback); - }; - RegistryWrite: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistryWriteReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryWrite(message, metadata, options, callback); - }; - RegistryCreateKey: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistryCreateKeyReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryCreateKey(message, metadata, options, callback); - }; - RegistryDeleteKey: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistryDeleteKeyReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryDeleteKey(message, metadata, options, callback); - }; - RegistryListSubKeys: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistrySubKeyListReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryListSubKeys(message, metadata, options, callback); - }; - RegistryListValues: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegistryListValuesReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegistryListValues(message, metadata, options, callback); - }; - RunSSHCommand: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.SSHCommandReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RunSSHCommand(message, metadata, options, callback); - }; - HijackDLL: GrpcUnaryServiceInterface = (message: dependency_3.clientpb.DllHijackReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.HijackDLL(message, metadata, options, callback); - }; - GetPrivs: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.GetPrivsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.GetPrivs(message, metadata, options, callback); - }; - OpenSession: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.OpenSession, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.OpenSession(message, metadata, options, callback); - }; - CloseSession: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.CloseSession, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CloseSession(message, metadata, options, callback); - }; - RegisterExtension: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.RegisterExtensionReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.RegisterExtension(message, metadata, options, callback); - }; - CallExtension: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.CallExtensionReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CallExtension(message, metadata, options, callback); - }; - ListExtensions: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ListExtensionsReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.ListExtensions(message, metadata, options, callback); - }; - WGStartPortForward: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGPortForwardStartReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGStartPortForward(message, metadata, options, callback); - }; - WGStopPortForward: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGPortForwardStopReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGStopPortForward(message, metadata, options, callback); - }; - WGStartSocks: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGSocksStartReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGStartSocks(message, metadata, options, callback); - }; - WGStopSocks: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGSocksStopReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGStopSocks(message, metadata, options, callback); - }; - WGListForwarders: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGTCPForwardersReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGListForwarders(message, metadata, options, callback); - }; - WGListSocksServers: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.WGSocksServersReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.WGListSocksServers(message, metadata, options, callback); - }; - Shell: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.ShellReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Shell(message, metadata, options, callback); - }; - Portfwd: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.PortfwdReq, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.Portfwd(message, metadata, options, callback); - }; - CreateSocks: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.Socks, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CreateSocks(message, metadata, options, callback); - }; - CloseSocks: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.Socks, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CloseSocks(message, metadata, options, callback); - }; - SocksProxy: GrpcChunkServiceInterface = (metadata?: grpc_1.Metadata | grpc_1.CallOptions, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream => { - return super.SocksProxy(metadata, options); - }; - CreateTunnel: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.Tunnel, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CreateTunnel(message, metadata, options, callback); - }; - CloseTunnel: GrpcUnaryServiceInterface = (message: dependency_2.sliverpb.Tunnel, metadata: grpc_1.Metadata | grpc_1.CallOptions | grpc_1.requestCallback, options?: grpc_1.CallOptions | grpc_1.requestCallback, callback?: grpc_1.requestCallback): grpc_1.ClientUnaryCall => { - return super.CloseTunnel(message, metadata, options, callback); - }; - TunnelData: GrpcChunkServiceInterface = (metadata?: grpc_1.Metadata | grpc_1.CallOptions, options?: grpc_1.CallOptions): grpc_1.ClientDuplexStream => { - return super.TunnelData(metadata, options); - }; - Events: GrpcStreamServiceInterface = (message: dependency_1.commonpb.Empty, metadata?: grpc_1.Metadata | grpc_1.CallOptions, options?: grpc_1.CallOptions): grpc_1.ClientReadableStream => { - return super.Events(message, metadata, options); - }; - } +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.11.2 +// protoc v3.15.8 +// source: rpcpb/services.proto + +/* eslint-disable */ +import type { CallContext, CallOptions } from "nice-grpc-common"; +import { + AllHosts, + AllLoot, + Backdoor, + BackdoorReq, + Beacon, + BeaconIntegrity, + Beacons, + BeaconTask, + BeaconTasks, + Builder, + Builders, + C2ProfileReq, + Canaries, + CertificateAuthorityInfo, + CertificateInfo, + CertificatesReq, + ClientLogData, + Compiler, + CrackBenchmark, + CrackCommand, + CrackFile, + CrackFileChunk, + CrackFiles, + CrackResponse, + Crackstation, + Crackstations, + CrackTask, + Credential, + Credentials, + DeleteReq, + DllHijack, + DllHijackReq, + DNSListenerReq, + Event, + ExternalGenerateReq, + ExternalImplantBinary, + ExternalImplantConfig, + Generate, + GenerateReq, + GenerateStageReq, + GetSystemReq, + Host, + HTTPC2Config, + HTTPC2ConfigReq, + HTTPC2Configs, + HTTPListenerReq, + ImplantBuild, + ImplantBuilds, + ImplantProfile, + ImplantProfiles, + ImplantStageReq, + IOC, + Jobs, + KillJob, + KillJobReq, + ListenerJob, + Loot, + MigrateReq, + MonitoringProvider, + MonitoringProviders, + MSFRemoteReq, + MSFReq, + MTLSListenerReq, + Operators, + PivotGraph, + RegenerateReq, + RenameReq, + RestartJobReq, + Sessions, + ShellcodeEncode, + ShellcodeEncodeReq, + ShellcodeEncoderMap, + ShellcodeRDI, + ShellcodeRDIReq, + StagerListener, + StagerListenerReq, + TrafficEncoder, + TrafficEncoderMap, + TrafficEncoderTests, + UniqueWGIP, + Version, + Website, + WebsiteAddContent, + WebsiteRemoveContent, + Websites, + WGClientConfig, + WGListenerReq, +} from "../clientpb/client"; +import { Empty, Response } from "../commonpb/common"; +import { + CallExtension, + CallExtensionReq, + CdReq, + Chmod, + ChmodReq, + Chown, + ChownReq, + Chtimes, + ChtimesReq, + CloseSession, + Cp, + CpReq, + CurrentTokenOwner, + CurrentTokenOwnerReq, + Download, + DownloadReq, + EnvInfo, + EnvReq, + Execute, + ExecuteAssembly, + ExecuteAssemblyReq, + ExecuteChildren, + ExecuteChildrenReq, + ExecuteReq, + ExecuteWindowsReq, + ExecWasmExtension, + ExecWasmExtensionReq, + GetPrivs, + GetPrivsReq, + GetSystem, + Grep, + GrepReq, + Ifconfig, + IfconfigReq, + Impersonate, + ImpersonateReq, + InvokeSpawnDllReq, + KillReq, + ListExtensions, + ListExtensionsReq, + ListWasmExtensions, + ListWasmExtensionsReq, + Ls, + LsReq, + MakeToken, + MakeTokenReq, + MemfilesAdd, + MemfilesAddReq, + MemfilesListReq, + MemfilesRm, + MemfilesRmReq, + Migrate, + Mkdir, + MkdirReq, + Mount, + MountReq, + Mv, + MvReq, + Netstat, + NetstatReq, + OpenSession, + Ping, + PivotListener, + PivotListeners, + PivotListenersReq, + PivotStartListenerReq, + PivotStopListenerReq, + Portfwd, + PortfwdReq, + ProcessDump, + ProcessDumpReq, + Ps, + PsReq, + Pwd, + PwdReq, + Reconfigure, + ReconfigureReq, + RegisterExtension, + RegisterExtensionReq, + RegisterWasmExtension, + RegisterWasmExtensionReq, + RegistryCreateKey, + RegistryCreateKeyReq, + RegistryDeleteKey, + RegistryDeleteKeyReq, + RegistryListValuesReq, + RegistryRead, + RegistryReadHive, + RegistryReadHiveReq, + RegistryReadReq, + RegistrySubKeyList, + RegistrySubKeyListReq, + RegistryValuesList, + RegistryWrite, + RegistryWriteReq, + RemoveServiceReq, + RevToSelf, + RevToSelfReq, + Rm, + RmReq, + RportFwdListener, + RportFwdListeners, + RportFwdListenersReq, + RportFwdStartListenerReq, + RportFwdStopListenerReq, + RunAs, + RunAsReq, + Screenshot, + ScreenshotReq, + ServiceDetail, + ServiceDetailReq, + ServiceInfo, + Services, + ServicesReq, + SetEnv, + SetEnvReq, + Shell, + ShellReq, + ShellResizeReq, + Sideload, + SideloadReq, + Socks, + SocksData, + SpawnDll, + SSHCommand, + SSHCommandReq, + StartServiceByNameReq, + StartServiceReq, + StopServiceReq, + Task, + TaskReq, + Terminate, + TerminateReq, + Tunnel, + TunnelData, + UnsetEnv, + UnsetEnvReq, + Upload, + UploadReq, + WGPortForward, + WGPortForwardStartReq, + WGPortForwardStopReq, + WGSocks, + WGSocksServers, + WGSocksServersReq, + WGSocksStartReq, + WGSocksStopReq, + WGTCPForwarders, + WGTCPForwardersReq, +} from "../sliverpb/sliver"; + +export const protobufPackage = "rpcpb"; + +export type SliverRPCDefinition = typeof SliverRPCDefinition; +export const SliverRPCDefinition = { + name: "SliverRPC", + fullName: "rpcpb.SliverRPC", + methods: { + /** ** Version *** */ + getVersion: { + name: "GetVersion", + requestType: Empty, + requestStream: false, + responseType: Version, + responseStream: false, + options: {}, + }, + /** ** Client Logs *** */ + clientLog: { + name: "ClientLog", + requestType: ClientLogData, + requestStream: true, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Operator Commands *** */ + getOperators: { + name: "GetOperators", + requestType: Empty, + requestStream: false, + responseType: Operators, + responseStream: false, + options: {}, + }, + /** ** Generic *** */ + kill: { + name: "Kill", + requestType: KillReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + reconfigure: { + name: "Reconfigure", + requestType: ReconfigureReq, + requestStream: false, + responseType: Reconfigure, + responseStream: false, + options: {}, + }, + rename: { + name: "Rename", + requestType: RenameReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Sessions *** */ + getSessions: { + name: "GetSessions", + requestType: Empty, + requestStream: false, + responseType: Sessions, + responseStream: false, + options: {}, + }, + /** **Threat monitoring *** */ + monitorStart: { + name: "MonitorStart", + requestType: Empty, + requestStream: false, + responseType: Response, + responseStream: false, + options: {}, + }, + monitorStop: { + name: "MonitorStop", + requestType: Empty, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + monitorListConfig: { + name: "MonitorListConfig", + requestType: Empty, + requestStream: false, + responseType: MonitoringProviders, + responseStream: false, + options: {}, + }, + monitorAddConfig: { + name: "MonitorAddConfig", + requestType: MonitoringProvider, + requestStream: false, + responseType: Response, + responseStream: false, + options: {}, + }, + monitorDelConfig: { + name: "MonitorDelConfig", + requestType: MonitoringProvider, + requestStream: false, + responseType: Response, + responseStream: false, + options: {}, + }, + /** ** Listeners *** */ + startMTLSListener: { + name: "StartMTLSListener", + requestType: MTLSListenerReq, + requestStream: false, + responseType: ListenerJob, + responseStream: false, + options: {}, + }, + startWGListener: { + name: "StartWGListener", + requestType: WGListenerReq, + requestStream: false, + responseType: ListenerJob, + responseStream: false, + options: {}, + }, + startDNSListener: { + name: "StartDNSListener", + requestType: DNSListenerReq, + requestStream: false, + responseType: ListenerJob, + responseStream: false, + options: {}, + }, + startHTTPSListener: { + name: "StartHTTPSListener", + requestType: HTTPListenerReq, + requestStream: false, + responseType: ListenerJob, + responseStream: false, + options: {}, + }, + startHTTPListener: { + name: "StartHTTPListener", + requestType: HTTPListenerReq, + requestStream: false, + responseType: ListenerJob, + responseStream: false, + options: {}, + }, + /** ** Beacons *** */ + getBeacons: { + name: "GetBeacons", + requestType: Empty, + requestStream: false, + responseType: Beacons, + responseStream: false, + options: {}, + }, + getBeacon: { + name: "GetBeacon", + requestType: Beacon, + requestStream: false, + responseType: Beacon, + responseStream: false, + options: {}, + }, + rmBeacon: { + name: "RmBeacon", + requestType: Beacon, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + getBeaconTasks: { + name: "GetBeaconTasks", + requestType: Beacon, + requestStream: false, + responseType: BeaconTasks, + responseStream: false, + options: {}, + }, + getBeaconTaskContent: { + name: "GetBeaconTaskContent", + requestType: BeaconTask, + requestStream: false, + responseType: BeaconTask, + responseStream: false, + options: {}, + }, + cancelBeaconTask: { + name: "CancelBeaconTask", + requestType: BeaconTask, + requestStream: false, + responseType: BeaconTask, + responseStream: false, + options: {}, + }, + updateBeaconIntegrityInformation: { + name: "UpdateBeaconIntegrityInformation", + requestType: BeaconIntegrity, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Jobs *** */ + getJobs: { + name: "GetJobs", + requestType: Empty, + requestStream: false, + responseType: Jobs, + responseStream: false, + options: {}, + }, + killJob: { + name: "KillJob", + requestType: KillJobReq, + requestStream: false, + responseType: KillJob, + responseStream: false, + options: {}, + }, + restartJobs: { + name: "RestartJobs", + requestType: RestartJobReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Stager Listener *** */ + startTCPStagerListener: { + name: "StartTCPStagerListener", + requestType: StagerListenerReq, + requestStream: false, + responseType: StagerListener, + responseStream: false, + options: {}, + }, + /** ** Loot *** */ + lootAdd: { + name: "LootAdd", + requestType: Loot, + requestStream: false, + responseType: Loot, + responseStream: false, + options: {}, + }, + lootRm: { + name: "LootRm", + requestType: Loot, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + lootUpdate: { + name: "LootUpdate", + requestType: Loot, + requestStream: false, + responseType: Loot, + responseStream: false, + options: {}, + }, + lootContent: { + name: "LootContent", + requestType: Loot, + requestStream: false, + responseType: Loot, + responseStream: false, + options: {}, + }, + lootAll: { + name: "LootAll", + requestType: Empty, + requestStream: false, + responseType: AllLoot, + responseStream: false, + options: {}, + }, + /** ** Creds *** */ + creds: { + name: "Creds", + requestType: Empty, + requestStream: false, + responseType: Credentials, + responseStream: false, + options: {}, + }, + credsAdd: { + name: "CredsAdd", + requestType: Credentials, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + credsRm: { + name: "CredsRm", + requestType: Credentials, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + credsUpdate: { + name: "CredsUpdate", + requestType: Credentials, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + getCredByID: { + name: "GetCredByID", + requestType: Credential, + requestStream: false, + responseType: Credential, + responseStream: false, + options: {}, + }, + getCredsByHashType: { + name: "GetCredsByHashType", + requestType: Credential, + requestStream: false, + responseType: Credentials, + responseStream: false, + options: {}, + }, + getPlaintextCredsByHashType: { + name: "GetPlaintextCredsByHashType", + requestType: Credential, + requestStream: false, + responseType: Credentials, + responseStream: false, + options: {}, + }, + credsSniffHashType: { + name: "CredsSniffHashType", + requestType: Credential, + requestStream: false, + responseType: Credential, + responseStream: false, + options: {}, + }, + /** ** Hosts *** */ + hosts: { + name: "Hosts", + requestType: Empty, + requestStream: false, + responseType: AllHosts, + responseStream: false, + options: {}, + }, + host: { + name: "Host", + requestType: Host, + requestStream: false, + responseType: Host, + responseStream: false, + options: {}, + }, + hostRm: { + name: "HostRm", + requestType: Host, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + hostIOCRm: { + name: "HostIOCRm", + requestType: IOC, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Implants *** */ + generate: { + name: "Generate", + requestType: GenerateReq, + requestStream: false, + responseType: Generate, + responseStream: false, + options: {}, + }, + generateExternal: { + name: "GenerateExternal", + requestType: ExternalGenerateReq, + requestStream: false, + responseType: ExternalImplantConfig, + responseStream: false, + options: {}, + }, + generateExternalSaveBuild: { + name: "GenerateExternalSaveBuild", + requestType: ExternalImplantBinary, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + generateExternalGetBuildConfig: { + name: "GenerateExternalGetBuildConfig", + requestType: ImplantBuild, + requestStream: false, + responseType: ExternalImplantConfig, + responseStream: false, + options: {}, + }, + generateStage: { + name: "GenerateStage", + requestType: GenerateStageReq, + requestStream: false, + responseType: Generate, + responseStream: false, + options: {}, + }, + stageImplantBuild: { + name: "StageImplantBuild", + requestType: ImplantStageReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** HTTP C2 Profiles *** */ + getHTTPC2Profiles: { + name: "GetHTTPC2Profiles", + requestType: Empty, + requestStream: false, + responseType: HTTPC2Configs, + responseStream: false, + options: {}, + }, + getHTTPC2ProfileByName: { + name: "GetHTTPC2ProfileByName", + requestType: C2ProfileReq, + requestStream: false, + responseType: HTTPC2Config, + responseStream: false, + options: {}, + }, + saveHTTPC2Profile: { + name: "SaveHTTPC2Profile", + requestType: HTTPC2ConfigReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Builders *** */ + builderRegister: { + name: "BuilderRegister", + requestType: Builder, + requestStream: false, + responseType: Event, + responseStream: true, + options: {}, + }, + builderTrigger: { + name: "BuilderTrigger", + requestType: Event, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + builders: { + name: "Builders", + requestType: Empty, + requestStream: false, + responseType: Builders, + responseStream: false, + options: {}, + }, + /** ** Certificates *** */ + getCertificateInfo: { + name: "GetCertificateInfo", + requestType: CertificatesReq, + requestStream: false, + responseType: CertificateInfo, + responseStream: false, + options: {}, + }, + getCertificateAuthorityInfo: { + name: "GetCertificateAuthorityInfo", + requestType: Empty, + requestStream: false, + responseType: CertificateAuthorityInfo, + responseStream: false, + options: {}, + }, + /** ** Crackstation *** */ + crack: { + name: "Crack", + requestType: CrackCommand, + requestStream: false, + responseType: CrackResponse, + responseStream: false, + options: {}, + }, + crackstationRegister: { + name: "CrackstationRegister", + requestType: Crackstation, + requestStream: false, + responseType: Event, + responseStream: true, + options: {}, + }, + crackstationTrigger: { + name: "CrackstationTrigger", + requestType: Event, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + crackstationBenchmark: { + name: "CrackstationBenchmark", + requestType: CrackBenchmark, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + crackstations: { + name: "Crackstations", + requestType: Empty, + requestStream: false, + responseType: Crackstations, + responseStream: false, + options: {}, + }, + crackTaskByID: { + name: "CrackTaskByID", + requestType: CrackTask, + requestStream: false, + responseType: CrackTask, + responseStream: false, + options: {}, + }, + crackTaskUpdate: { + name: "CrackTaskUpdate", + requestType: CrackTask, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + crackFilesList: { + name: "CrackFilesList", + requestType: CrackFile, + requestStream: false, + responseType: CrackFiles, + responseStream: false, + options: {}, + }, + crackFileCreate: { + name: "CrackFileCreate", + requestType: CrackFile, + requestStream: false, + responseType: CrackFile, + responseStream: false, + options: {}, + }, + crackFileChunkUpload: { + name: "CrackFileChunkUpload", + requestType: CrackFileChunk, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + crackFileChunkDownload: { + name: "CrackFileChunkDownload", + requestType: CrackFileChunk, + requestStream: false, + responseType: CrackFileChunk, + responseStream: false, + options: {}, + }, + crackFileComplete: { + name: "CrackFileComplete", + requestType: CrackFile, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + crackFileDelete: { + name: "CrackFileDelete", + requestType: CrackFile, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Payloads *** */ + regenerate: { + name: "Regenerate", + requestType: RegenerateReq, + requestStream: false, + responseType: Generate, + responseStream: false, + options: {}, + }, + implantBuilds: { + name: "ImplantBuilds", + requestType: Empty, + requestStream: false, + responseType: ImplantBuilds, + responseStream: false, + options: {}, + }, + deleteImplantBuild: { + name: "DeleteImplantBuild", + requestType: DeleteReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + canaries: { + name: "Canaries", + requestType: Empty, + requestStream: false, + responseType: Canaries, + responseStream: false, + options: {}, + }, + generateWGClientConfig: { + name: "GenerateWGClientConfig", + requestType: Empty, + requestStream: false, + responseType: WGClientConfig, + responseStream: false, + options: {}, + }, + generateUniqueIP: { + name: "GenerateUniqueIP", + requestType: Empty, + requestStream: false, + responseType: UniqueWGIP, + responseStream: false, + options: {}, + }, + implantProfiles: { + name: "ImplantProfiles", + requestType: Empty, + requestStream: false, + responseType: ImplantProfiles, + responseStream: false, + options: {}, + }, + deleteImplantProfile: { + name: "DeleteImplantProfile", + requestType: DeleteReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + saveImplantProfile: { + name: "SaveImplantProfile", + requestType: ImplantProfile, + requestStream: false, + responseType: ImplantProfile, + responseStream: false, + options: {}, + }, + shellcodeRDI: { + name: "ShellcodeRDI", + requestType: ShellcodeRDIReq, + requestStream: false, + responseType: ShellcodeRDI, + responseStream: false, + options: {}, + }, + getCompiler: { + name: "GetCompiler", + requestType: Empty, + requestStream: false, + responseType: Compiler, + responseStream: false, + options: {}, + }, + shellcodeEncoder: { + name: "ShellcodeEncoder", + requestType: ShellcodeEncodeReq, + requestStream: false, + responseType: ShellcodeEncode, + responseStream: false, + options: {}, + }, + shellcodeEncoderMap: { + name: "ShellcodeEncoderMap", + requestType: Empty, + requestStream: false, + responseType: ShellcodeEncoderMap, + responseStream: false, + options: {}, + }, + trafficEncoderMap: { + name: "TrafficEncoderMap", + requestType: Empty, + requestStream: false, + responseType: TrafficEncoderMap, + responseStream: false, + options: {}, + }, + trafficEncoderAdd: { + name: "TrafficEncoderAdd", + requestType: TrafficEncoder, + requestStream: false, + responseType: TrafficEncoderTests, + responseStream: false, + options: {}, + }, + trafficEncoderRm: { + name: "TrafficEncoderRm", + requestType: TrafficEncoder, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Websites *** */ + websites: { + name: "Websites", + requestType: Empty, + requestStream: false, + responseType: Websites, + responseStream: false, + options: {}, + }, + website: { + name: "Website", + requestType: Website, + requestStream: false, + responseType: Website, + responseStream: false, + options: {}, + }, + websiteRemove: { + name: "WebsiteRemove", + requestType: Website, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + websiteAddContent: { + name: "WebsiteAddContent", + requestType: WebsiteAddContent, + requestStream: false, + responseType: Website, + responseStream: false, + options: {}, + }, + websiteUpdateContent: { + name: "WebsiteUpdateContent", + requestType: WebsiteAddContent, + requestStream: false, + responseType: Website, + responseStream: false, + options: {}, + }, + websiteRemoveContent: { + name: "WebsiteRemoveContent", + requestType: WebsiteRemoveContent, + requestStream: false, + responseType: Website, + responseStream: false, + options: {}, + }, + /** ** Session Interactions *** */ + ping: { + name: "Ping", + requestType: Ping, + requestStream: false, + responseType: Ping, + responseStream: false, + options: {}, + }, + ps: { name: "Ps", requestType: PsReq, requestStream: false, responseType: Ps, responseStream: false, options: {} }, + terminate: { + name: "Terminate", + requestType: TerminateReq, + requestStream: false, + responseType: Terminate, + responseStream: false, + options: {}, + }, + ifconfig: { + name: "Ifconfig", + requestType: IfconfigReq, + requestStream: false, + responseType: Ifconfig, + responseStream: false, + options: {}, + }, + netstat: { + name: "Netstat", + requestType: NetstatReq, + requestStream: false, + responseType: Netstat, + responseStream: false, + options: {}, + }, + ls: { name: "Ls", requestType: LsReq, requestStream: false, responseType: Ls, responseStream: false, options: {} }, + cd: { name: "Cd", requestType: CdReq, requestStream: false, responseType: Pwd, responseStream: false, options: {} }, + pwd: { + name: "Pwd", + requestType: PwdReq, + requestStream: false, + responseType: Pwd, + responseStream: false, + options: {}, + }, + mv: { name: "Mv", requestType: MvReq, requestStream: false, responseType: Mv, responseStream: false, options: {} }, + cp: { name: "Cp", requestType: CpReq, requestStream: false, responseType: Cp, responseStream: false, options: {} }, + rm: { name: "Rm", requestType: RmReq, requestStream: false, responseType: Rm, responseStream: false, options: {} }, + mkdir: { + name: "Mkdir", + requestType: MkdirReq, + requestStream: false, + responseType: Mkdir, + responseStream: false, + options: {}, + }, + download: { + name: "Download", + requestType: DownloadReq, + requestStream: false, + responseType: Download, + responseStream: false, + options: {}, + }, + upload: { + name: "Upload", + requestType: UploadReq, + requestStream: false, + responseType: Upload, + responseStream: false, + options: {}, + }, + grep: { + name: "Grep", + requestType: GrepReq, + requestStream: false, + responseType: Grep, + responseStream: false, + options: {}, + }, + chmod: { + name: "Chmod", + requestType: ChmodReq, + requestStream: false, + responseType: Chmod, + responseStream: false, + options: {}, + }, + chown: { + name: "Chown", + requestType: ChownReq, + requestStream: false, + responseType: Chown, + responseStream: false, + options: {}, + }, + chtimes: { + name: "Chtimes", + requestType: ChtimesReq, + requestStream: false, + responseType: Chtimes, + responseStream: false, + options: {}, + }, + memfilesList: { + name: "MemfilesList", + requestType: MemfilesListReq, + requestStream: false, + responseType: Ls, + responseStream: false, + options: {}, + }, + memfilesAdd: { + name: "MemfilesAdd", + requestType: MemfilesAddReq, + requestStream: false, + responseType: MemfilesAdd, + responseStream: false, + options: {}, + }, + memfilesRm: { + name: "MemfilesRm", + requestType: MemfilesRmReq, + requestStream: false, + responseType: MemfilesRm, + responseStream: false, + options: {}, + }, + mount: { + name: "Mount", + requestType: MountReq, + requestStream: false, + responseType: Mount, + responseStream: false, + options: {}, + }, + processDump: { + name: "ProcessDump", + requestType: ProcessDumpReq, + requestStream: false, + responseType: ProcessDump, + responseStream: false, + options: {}, + }, + runAs: { + name: "RunAs", + requestType: RunAsReq, + requestStream: false, + responseType: RunAs, + responseStream: false, + options: {}, + }, + impersonate: { + name: "Impersonate", + requestType: ImpersonateReq, + requestStream: false, + responseType: Impersonate, + responseStream: false, + options: {}, + }, + revToSelf: { + name: "RevToSelf", + requestType: RevToSelfReq, + requestStream: false, + responseType: RevToSelf, + responseStream: false, + options: {}, + }, + getSystem: { + name: "GetSystem", + requestType: GetSystemReq, + requestStream: false, + responseType: GetSystem, + responseStream: false, + options: {}, + }, + task: { + name: "Task", + requestType: TaskReq, + requestStream: false, + responseType: Task, + responseStream: false, + options: {}, + }, + msf: { + name: "Msf", + requestType: MSFReq, + requestStream: false, + responseType: Task, + responseStream: false, + options: {}, + }, + msfRemote: { + name: "MsfRemote", + requestType: MSFRemoteReq, + requestStream: false, + responseType: Task, + responseStream: false, + options: {}, + }, + executeAssembly: { + name: "ExecuteAssembly", + requestType: ExecuteAssemblyReq, + requestStream: false, + responseType: ExecuteAssembly, + responseStream: false, + options: {}, + }, + migrate: { + name: "Migrate", + requestType: MigrateReq, + requestStream: false, + responseType: Migrate, + responseStream: false, + options: {}, + }, + execute: { + name: "Execute", + requestType: ExecuteReq, + requestStream: false, + responseType: Execute, + responseStream: false, + options: {}, + }, + executeWindows: { + name: "ExecuteWindows", + requestType: ExecuteWindowsReq, + requestStream: false, + responseType: Execute, + responseStream: false, + options: {}, + }, + executeChildren: { + name: "ExecuteChildren", + requestType: ExecuteChildrenReq, + requestStream: false, + responseType: ExecuteChildren, + responseStream: false, + options: {}, + }, + sideload: { + name: "Sideload", + requestType: SideloadReq, + requestStream: false, + responseType: Sideload, + responseStream: false, + options: {}, + }, + spawnDll: { + name: "SpawnDll", + requestType: InvokeSpawnDllReq, + requestStream: false, + responseType: SpawnDll, + responseStream: false, + options: {}, + }, + screenshot: { + name: "Screenshot", + requestType: ScreenshotReq, + requestStream: false, + responseType: Screenshot, + responseStream: false, + options: {}, + }, + currentTokenOwner: { + name: "CurrentTokenOwner", + requestType: CurrentTokenOwnerReq, + requestStream: false, + responseType: CurrentTokenOwner, + responseStream: false, + options: {}, + }, + services: { + name: "Services", + requestType: ServicesReq, + requestStream: false, + responseType: Services, + responseStream: false, + options: {}, + }, + serviceDetail: { + name: "ServiceDetail", + requestType: ServiceDetailReq, + requestStream: false, + responseType: ServiceDetail, + responseStream: false, + options: {}, + }, + startServiceByName: { + name: "StartServiceByName", + requestType: StartServiceByNameReq, + requestStream: false, + responseType: ServiceInfo, + responseStream: false, + options: {}, + }, + /** ** Pivots *** */ + pivotStartListener: { + name: "PivotStartListener", + requestType: PivotStartListenerReq, + requestStream: false, + responseType: PivotListener, + responseStream: false, + options: {}, + }, + pivotStopListener: { + name: "PivotStopListener", + requestType: PivotStopListenerReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + pivotSessionListeners: { + name: "PivotSessionListeners", + requestType: PivotListenersReq, + requestStream: false, + responseType: PivotListeners, + responseStream: false, + options: {}, + }, + pivotGraph: { + name: "PivotGraph", + requestType: Empty, + requestStream: false, + responseType: PivotGraph, + responseStream: false, + options: {}, + }, + startService: { + name: "StartService", + requestType: StartServiceReq, + requestStream: false, + responseType: ServiceInfo, + responseStream: false, + options: {}, + }, + stopService: { + name: "StopService", + requestType: StopServiceReq, + requestStream: false, + responseType: ServiceInfo, + responseStream: false, + options: {}, + }, + removeService: { + name: "RemoveService", + requestType: RemoveServiceReq, + requestStream: false, + responseType: ServiceInfo, + responseStream: false, + options: {}, + }, + makeToken: { + name: "MakeToken", + requestType: MakeTokenReq, + requestStream: false, + responseType: MakeToken, + responseStream: false, + options: {}, + }, + getEnv: { + name: "GetEnv", + requestType: EnvReq, + requestStream: false, + responseType: EnvInfo, + responseStream: false, + options: {}, + }, + setEnv: { + name: "SetEnv", + requestType: SetEnvReq, + requestStream: false, + responseType: SetEnv, + responseStream: false, + options: {}, + }, + unsetEnv: { + name: "UnsetEnv", + requestType: UnsetEnvReq, + requestStream: false, + responseType: UnsetEnv, + responseStream: false, + options: {}, + }, + backdoor: { + name: "Backdoor", + requestType: BackdoorReq, + requestStream: false, + responseType: Backdoor, + responseStream: false, + options: {}, + }, + registryRead: { + name: "RegistryRead", + requestType: RegistryReadReq, + requestStream: false, + responseType: RegistryRead, + responseStream: false, + options: {}, + }, + registryWrite: { + name: "RegistryWrite", + requestType: RegistryWriteReq, + requestStream: false, + responseType: RegistryWrite, + responseStream: false, + options: {}, + }, + registryCreateKey: { + name: "RegistryCreateKey", + requestType: RegistryCreateKeyReq, + requestStream: false, + responseType: RegistryCreateKey, + responseStream: false, + options: {}, + }, + registryDeleteKey: { + name: "RegistryDeleteKey", + requestType: RegistryDeleteKeyReq, + requestStream: false, + responseType: RegistryDeleteKey, + responseStream: false, + options: {}, + }, + registryListSubKeys: { + name: "RegistryListSubKeys", + requestType: RegistrySubKeyListReq, + requestStream: false, + responseType: RegistrySubKeyList, + responseStream: false, + options: {}, + }, + registryListValues: { + name: "RegistryListValues", + requestType: RegistryListValuesReq, + requestStream: false, + responseType: RegistryValuesList, + responseStream: false, + options: {}, + }, + registryReadHive: { + name: "RegistryReadHive", + requestType: RegistryReadHiveReq, + requestStream: false, + responseType: RegistryReadHive, + responseStream: false, + options: {}, + }, + runSSHCommand: { + name: "RunSSHCommand", + requestType: SSHCommandReq, + requestStream: false, + responseType: SSHCommand, + responseStream: false, + options: {}, + }, + hijackDLL: { + name: "HijackDLL", + requestType: DllHijackReq, + requestStream: false, + responseType: DllHijack, + responseStream: false, + options: {}, + }, + getPrivs: { + name: "GetPrivs", + requestType: GetPrivsReq, + requestStream: false, + responseType: GetPrivs, + responseStream: false, + options: {}, + }, + startRportFwdListener: { + name: "StartRportFwdListener", + requestType: RportFwdStartListenerReq, + requestStream: false, + responseType: RportFwdListener, + responseStream: false, + options: {}, + }, + getRportFwdListeners: { + name: "GetRportFwdListeners", + requestType: RportFwdListenersReq, + requestStream: false, + responseType: RportFwdListeners, + responseStream: false, + options: {}, + }, + stopRportFwdListener: { + name: "StopRportFwdListener", + requestType: RportFwdStopListenerReq, + requestStream: false, + responseType: RportFwdListener, + responseStream: false, + options: {}, + }, + /** ** Beacon *** -only commands */ + openSession: { + name: "OpenSession", + requestType: OpenSession, + requestStream: false, + responseType: OpenSession, + responseStream: false, + options: {}, + }, + closeSession: { + name: "CloseSession", + requestType: CloseSession, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + /** ** Extensions *** */ + registerExtension: { + name: "RegisterExtension", + requestType: RegisterExtensionReq, + requestStream: false, + responseType: RegisterExtension, + responseStream: false, + options: {}, + }, + callExtension: { + name: "CallExtension", + requestType: CallExtensionReq, + requestStream: false, + responseType: CallExtension, + responseStream: false, + options: {}, + }, + listExtensions: { + name: "ListExtensions", + requestType: ListExtensionsReq, + requestStream: false, + responseType: ListExtensions, + responseStream: false, + options: {}, + }, + /** ** Wasm Extensions *** */ + registerWasmExtension: { + name: "RegisterWasmExtension", + requestType: RegisterWasmExtensionReq, + requestStream: false, + responseType: RegisterWasmExtension, + responseStream: false, + options: {}, + }, + listWasmExtensions: { + name: "ListWasmExtensions", + requestType: ListWasmExtensionsReq, + requestStream: false, + responseType: ListWasmExtensions, + responseStream: false, + options: {}, + }, + execWasmExtension: { + name: "ExecWasmExtension", + requestType: ExecWasmExtensionReq, + requestStream: false, + responseType: ExecWasmExtension, + responseStream: false, + options: {}, + }, + /** ** Wireguard Specific *** */ + wGStartPortForward: { + name: "WGStartPortForward", + requestType: WGPortForwardStartReq, + requestStream: false, + responseType: WGPortForward, + responseStream: false, + options: {}, + }, + wGStopPortForward: { + name: "WGStopPortForward", + requestType: WGPortForwardStopReq, + requestStream: false, + responseType: WGPortForward, + responseStream: false, + options: {}, + }, + wGStartSocks: { + name: "WGStartSocks", + requestType: WGSocksStartReq, + requestStream: false, + responseType: WGSocks, + responseStream: false, + options: {}, + }, + wGStopSocks: { + name: "WGStopSocks", + requestType: WGSocksStopReq, + requestStream: false, + responseType: WGSocks, + responseStream: false, + options: {}, + }, + wGListForwarders: { + name: "WGListForwarders", + requestType: WGTCPForwardersReq, + requestStream: false, + responseType: WGTCPForwarders, + responseStream: false, + options: {}, + }, + wGListSocksServers: { + name: "WGListSocksServers", + requestType: WGSocksServersReq, + requestStream: false, + responseType: WGSocksServers, + responseStream: false, + options: {}, + }, + /** ** Realtime Commands *** */ + shell: { + name: "Shell", + requestType: ShellReq, + requestStream: false, + responseType: Shell, + responseStream: false, + options: {}, + }, + shellResize: { + name: "ShellResize", + requestType: ShellResizeReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + portfwd: { + name: "Portfwd", + requestType: PortfwdReq, + requestStream: false, + responseType: Portfwd, + responseStream: false, + options: {}, + }, + /** ** Socks5 *** */ + createSocks: { + name: "CreateSocks", + requestType: Socks, + requestStream: false, + responseType: Socks, + responseStream: false, + options: {}, + }, + closeSocks: { + name: "CloseSocks", + requestType: Socks, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + socksProxy: { + name: "SocksProxy", + requestType: SocksData, + requestStream: true, + responseType: SocksData, + responseStream: true, + options: {}, + }, + /** ** Tunnels *** */ + createTunnel: { + name: "CreateTunnel", + requestType: Tunnel, + requestStream: false, + responseType: Tunnel, + responseStream: false, + options: {}, + }, + closeTunnel: { + name: "CloseTunnel", + requestType: Tunnel, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, + tunnelData: { + name: "TunnelData", + requestType: TunnelData, + requestStream: true, + responseType: TunnelData, + responseStream: true, + options: {}, + }, + /** ** Events *** */ + events: { + name: "Events", + requestType: Empty, + requestStream: false, + responseType: Event, + responseStream: true, + options: {}, + }, + }, +} as const; + +export interface SliverRPCServiceImplementation { + /** ** Version *** */ + getVersion(request: Empty, context: CallContext & CallContextExt): Promise>; + /** ** Client Logs *** */ + clientLog(request: AsyncIterable, context: CallContext & CallContextExt): Promise>; + /** ** Operator Commands *** */ + getOperators(request: Empty, context: CallContext & CallContextExt): Promise>; + /** ** Generic *** */ + kill(request: KillReq, context: CallContext & CallContextExt): Promise>; + reconfigure(request: ReconfigureReq, context: CallContext & CallContextExt): Promise>; + rename(request: RenameReq, context: CallContext & CallContextExt): Promise>; + /** ** Sessions *** */ + getSessions(request: Empty, context: CallContext & CallContextExt): Promise>; + /** **Threat monitoring *** */ + monitorStart(request: Empty, context: CallContext & CallContextExt): Promise>; + monitorStop(request: Empty, context: CallContext & CallContextExt): Promise>; + monitorListConfig(request: Empty, context: CallContext & CallContextExt): Promise>; + monitorAddConfig(request: MonitoringProvider, context: CallContext & CallContextExt): Promise>; + monitorDelConfig(request: MonitoringProvider, context: CallContext & CallContextExt): Promise>; + /** ** Listeners *** */ + startMTLSListener(request: MTLSListenerReq, context: CallContext & CallContextExt): Promise>; + startWGListener(request: WGListenerReq, context: CallContext & CallContextExt): Promise>; + startDNSListener(request: DNSListenerReq, context: CallContext & CallContextExt): Promise>; + startHTTPSListener( + request: HTTPListenerReq, + context: CallContext & CallContextExt, + ): Promise>; + startHTTPListener(request: HTTPListenerReq, context: CallContext & CallContextExt): Promise>; + /** ** Beacons *** */ + getBeacons(request: Empty, context: CallContext & CallContextExt): Promise>; + getBeacon(request: Beacon, context: CallContext & CallContextExt): Promise>; + rmBeacon(request: Beacon, context: CallContext & CallContextExt): Promise>; + getBeaconTasks(request: Beacon, context: CallContext & CallContextExt): Promise>; + getBeaconTaskContent(request: BeaconTask, context: CallContext & CallContextExt): Promise>; + cancelBeaconTask(request: BeaconTask, context: CallContext & CallContextExt): Promise>; + updateBeaconIntegrityInformation( + request: BeaconIntegrity, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Jobs *** */ + getJobs(request: Empty, context: CallContext & CallContextExt): Promise>; + killJob(request: KillJobReq, context: CallContext & CallContextExt): Promise>; + restartJobs(request: RestartJobReq, context: CallContext & CallContextExt): Promise>; + /** ** Stager Listener *** */ + startTCPStagerListener( + request: StagerListenerReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Loot *** */ + lootAdd(request: Loot, context: CallContext & CallContextExt): Promise>; + lootRm(request: Loot, context: CallContext & CallContextExt): Promise>; + lootUpdate(request: Loot, context: CallContext & CallContextExt): Promise>; + lootContent(request: Loot, context: CallContext & CallContextExt): Promise>; + lootAll(request: Empty, context: CallContext & CallContextExt): Promise>; + /** ** Creds *** */ + creds(request: Empty, context: CallContext & CallContextExt): Promise>; + credsAdd(request: Credentials, context: CallContext & CallContextExt): Promise>; + credsRm(request: Credentials, context: CallContext & CallContextExt): Promise>; + credsUpdate(request: Credentials, context: CallContext & CallContextExt): Promise>; + getCredByID(request: Credential, context: CallContext & CallContextExt): Promise>; + getCredsByHashType(request: Credential, context: CallContext & CallContextExt): Promise>; + getPlaintextCredsByHashType( + request: Credential, + context: CallContext & CallContextExt, + ): Promise>; + credsSniffHashType(request: Credential, context: CallContext & CallContextExt): Promise>; + /** ** Hosts *** */ + hosts(request: Empty, context: CallContext & CallContextExt): Promise>; + host(request: Host, context: CallContext & CallContextExt): Promise>; + hostRm(request: Host, context: CallContext & CallContextExt): Promise>; + hostIOCRm(request: IOC, context: CallContext & CallContextExt): Promise>; + /** ** Implants *** */ + generate(request: GenerateReq, context: CallContext & CallContextExt): Promise>; + generateExternal( + request: ExternalGenerateReq, + context: CallContext & CallContextExt, + ): Promise>; + generateExternalSaveBuild( + request: ExternalImplantBinary, + context: CallContext & CallContextExt, + ): Promise>; + generateExternalGetBuildConfig( + request: ImplantBuild, + context: CallContext & CallContextExt, + ): Promise>; + generateStage(request: GenerateStageReq, context: CallContext & CallContextExt): Promise>; + stageImplantBuild(request: ImplantStageReq, context: CallContext & CallContextExt): Promise>; + /** ** HTTP C2 Profiles *** */ + getHTTPC2Profiles(request: Empty, context: CallContext & CallContextExt): Promise>; + getHTTPC2ProfileByName( + request: C2ProfileReq, + context: CallContext & CallContextExt, + ): Promise>; + saveHTTPC2Profile(request: HTTPC2ConfigReq, context: CallContext & CallContextExt): Promise>; + /** ** Builders *** */ + builderRegister( + request: Builder, + context: CallContext & CallContextExt, + ): ServerStreamingMethodResult>; + builderTrigger(request: Event, context: CallContext & CallContextExt): Promise>; + builders(request: Empty, context: CallContext & CallContextExt): Promise>; + /** ** Certificates *** */ + getCertificateInfo( + request: CertificatesReq, + context: CallContext & CallContextExt, + ): Promise>; + getCertificateAuthorityInfo( + request: Empty, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Crackstation *** */ + crack(request: CrackCommand, context: CallContext & CallContextExt): Promise>; + crackstationRegister( + request: Crackstation, + context: CallContext & CallContextExt, + ): ServerStreamingMethodResult>; + crackstationTrigger(request: Event, context: CallContext & CallContextExt): Promise>; + crackstationBenchmark(request: CrackBenchmark, context: CallContext & CallContextExt): Promise>; + crackstations(request: Empty, context: CallContext & CallContextExt): Promise>; + crackTaskByID(request: CrackTask, context: CallContext & CallContextExt): Promise>; + crackTaskUpdate(request: CrackTask, context: CallContext & CallContextExt): Promise>; + crackFilesList(request: CrackFile, context: CallContext & CallContextExt): Promise>; + crackFileCreate(request: CrackFile, context: CallContext & CallContextExt): Promise>; + crackFileChunkUpload(request: CrackFileChunk, context: CallContext & CallContextExt): Promise>; + crackFileChunkDownload( + request: CrackFileChunk, + context: CallContext & CallContextExt, + ): Promise>; + crackFileComplete(request: CrackFile, context: CallContext & CallContextExt): Promise>; + crackFileDelete(request: CrackFile, context: CallContext & CallContextExt): Promise>; + /** ** Payloads *** */ + regenerate(request: RegenerateReq, context: CallContext & CallContextExt): Promise>; + implantBuilds(request: Empty, context: CallContext & CallContextExt): Promise>; + deleteImplantBuild(request: DeleteReq, context: CallContext & CallContextExt): Promise>; + canaries(request: Empty, context: CallContext & CallContextExt): Promise>; + generateWGClientConfig(request: Empty, context: CallContext & CallContextExt): Promise>; + generateUniqueIP(request: Empty, context: CallContext & CallContextExt): Promise>; + implantProfiles(request: Empty, context: CallContext & CallContextExt): Promise>; + deleteImplantProfile(request: DeleteReq, context: CallContext & CallContextExt): Promise>; + saveImplantProfile( + request: ImplantProfile, + context: CallContext & CallContextExt, + ): Promise>; + shellcodeRDI(request: ShellcodeRDIReq, context: CallContext & CallContextExt): Promise>; + getCompiler(request: Empty, context: CallContext & CallContextExt): Promise>; + shellcodeEncoder( + request: ShellcodeEncodeReq, + context: CallContext & CallContextExt, + ): Promise>; + shellcodeEncoderMap(request: Empty, context: CallContext & CallContextExt): Promise>; + trafficEncoderMap(request: Empty, context: CallContext & CallContextExt): Promise>; + trafficEncoderAdd( + request: TrafficEncoder, + context: CallContext & CallContextExt, + ): Promise>; + trafficEncoderRm(request: TrafficEncoder, context: CallContext & CallContextExt): Promise>; + /** ** Websites *** */ + websites(request: Empty, context: CallContext & CallContextExt): Promise>; + website(request: Website, context: CallContext & CallContextExt): Promise>; + websiteRemove(request: Website, context: CallContext & CallContextExt): Promise>; + websiteAddContent(request: WebsiteAddContent, context: CallContext & CallContextExt): Promise>; + websiteUpdateContent( + request: WebsiteAddContent, + context: CallContext & CallContextExt, + ): Promise>; + websiteRemoveContent( + request: WebsiteRemoveContent, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Session Interactions *** */ + ping(request: Ping, context: CallContext & CallContextExt): Promise>; + ps(request: PsReq, context: CallContext & CallContextExt): Promise>; + terminate(request: TerminateReq, context: CallContext & CallContextExt): Promise>; + ifconfig(request: IfconfigReq, context: CallContext & CallContextExt): Promise>; + netstat(request: NetstatReq, context: CallContext & CallContextExt): Promise>; + ls(request: LsReq, context: CallContext & CallContextExt): Promise>; + cd(request: CdReq, context: CallContext & CallContextExt): Promise>; + pwd(request: PwdReq, context: CallContext & CallContextExt): Promise>; + mv(request: MvReq, context: CallContext & CallContextExt): Promise>; + cp(request: CpReq, context: CallContext & CallContextExt): Promise>; + rm(request: RmReq, context: CallContext & CallContextExt): Promise>; + mkdir(request: MkdirReq, context: CallContext & CallContextExt): Promise>; + download(request: DownloadReq, context: CallContext & CallContextExt): Promise>; + upload(request: UploadReq, context: CallContext & CallContextExt): Promise>; + grep(request: GrepReq, context: CallContext & CallContextExt): Promise>; + chmod(request: ChmodReq, context: CallContext & CallContextExt): Promise>; + chown(request: ChownReq, context: CallContext & CallContextExt): Promise>; + chtimes(request: ChtimesReq, context: CallContext & CallContextExt): Promise>; + memfilesList(request: MemfilesListReq, context: CallContext & CallContextExt): Promise>; + memfilesAdd(request: MemfilesAddReq, context: CallContext & CallContextExt): Promise>; + memfilesRm(request: MemfilesRmReq, context: CallContext & CallContextExt): Promise>; + mount(request: MountReq, context: CallContext & CallContextExt): Promise>; + processDump(request: ProcessDumpReq, context: CallContext & CallContextExt): Promise>; + runAs(request: RunAsReq, context: CallContext & CallContextExt): Promise>; + impersonate(request: ImpersonateReq, context: CallContext & CallContextExt): Promise>; + revToSelf(request: RevToSelfReq, context: CallContext & CallContextExt): Promise>; + getSystem(request: GetSystemReq, context: CallContext & CallContextExt): Promise>; + task(request: TaskReq, context: CallContext & CallContextExt): Promise>; + msf(request: MSFReq, context: CallContext & CallContextExt): Promise>; + msfRemote(request: MSFRemoteReq, context: CallContext & CallContextExt): Promise>; + executeAssembly( + request: ExecuteAssemblyReq, + context: CallContext & CallContextExt, + ): Promise>; + migrate(request: MigrateReq, context: CallContext & CallContextExt): Promise>; + execute(request: ExecuteReq, context: CallContext & CallContextExt): Promise>; + executeWindows(request: ExecuteWindowsReq, context: CallContext & CallContextExt): Promise>; + executeChildren( + request: ExecuteChildrenReq, + context: CallContext & CallContextExt, + ): Promise>; + sideload(request: SideloadReq, context: CallContext & CallContextExt): Promise>; + spawnDll(request: InvokeSpawnDllReq, context: CallContext & CallContextExt): Promise>; + screenshot(request: ScreenshotReq, context: CallContext & CallContextExt): Promise>; + currentTokenOwner( + request: CurrentTokenOwnerReq, + context: CallContext & CallContextExt, + ): Promise>; + services(request: ServicesReq, context: CallContext & CallContextExt): Promise>; + serviceDetail(request: ServiceDetailReq, context: CallContext & CallContextExt): Promise>; + startServiceByName( + request: StartServiceByNameReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Pivots *** */ + pivotStartListener( + request: PivotStartListenerReq, + context: CallContext & CallContextExt, + ): Promise>; + pivotStopListener(request: PivotStopListenerReq, context: CallContext & CallContextExt): Promise>; + pivotSessionListeners( + request: PivotListenersReq, + context: CallContext & CallContextExt, + ): Promise>; + pivotGraph(request: Empty, context: CallContext & CallContextExt): Promise>; + startService(request: StartServiceReq, context: CallContext & CallContextExt): Promise>; + stopService(request: StopServiceReq, context: CallContext & CallContextExt): Promise>; + removeService(request: RemoveServiceReq, context: CallContext & CallContextExt): Promise>; + makeToken(request: MakeTokenReq, context: CallContext & CallContextExt): Promise>; + getEnv(request: EnvReq, context: CallContext & CallContextExt): Promise>; + setEnv(request: SetEnvReq, context: CallContext & CallContextExt): Promise>; + unsetEnv(request: UnsetEnvReq, context: CallContext & CallContextExt): Promise>; + backdoor(request: BackdoorReq, context: CallContext & CallContextExt): Promise>; + registryRead(request: RegistryReadReq, context: CallContext & CallContextExt): Promise>; + registryWrite(request: RegistryWriteReq, context: CallContext & CallContextExt): Promise>; + registryCreateKey( + request: RegistryCreateKeyReq, + context: CallContext & CallContextExt, + ): Promise>; + registryDeleteKey( + request: RegistryDeleteKeyReq, + context: CallContext & CallContextExt, + ): Promise>; + registryListSubKeys( + request: RegistrySubKeyListReq, + context: CallContext & CallContextExt, + ): Promise>; + registryListValues( + request: RegistryListValuesReq, + context: CallContext & CallContextExt, + ): Promise>; + registryReadHive( + request: RegistryReadHiveReq, + context: CallContext & CallContextExt, + ): Promise>; + runSSHCommand(request: SSHCommandReq, context: CallContext & CallContextExt): Promise>; + hijackDLL(request: DllHijackReq, context: CallContext & CallContextExt): Promise>; + getPrivs(request: GetPrivsReq, context: CallContext & CallContextExt): Promise>; + startRportFwdListener( + request: RportFwdStartListenerReq, + context: CallContext & CallContextExt, + ): Promise>; + getRportFwdListeners( + request: RportFwdListenersReq, + context: CallContext & CallContextExt, + ): Promise>; + stopRportFwdListener( + request: RportFwdStopListenerReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Beacon *** -only commands */ + openSession(request: OpenSession, context: CallContext & CallContextExt): Promise>; + closeSession(request: CloseSession, context: CallContext & CallContextExt): Promise>; + /** ** Extensions *** */ + registerExtension( + request: RegisterExtensionReq, + context: CallContext & CallContextExt, + ): Promise>; + callExtension(request: CallExtensionReq, context: CallContext & CallContextExt): Promise>; + listExtensions( + request: ListExtensionsReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Wasm Extensions *** */ + registerWasmExtension( + request: RegisterWasmExtensionReq, + context: CallContext & CallContextExt, + ): Promise>; + listWasmExtensions( + request: ListWasmExtensionsReq, + context: CallContext & CallContextExt, + ): Promise>; + execWasmExtension( + request: ExecWasmExtensionReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Wireguard Specific *** */ + wGStartPortForward( + request: WGPortForwardStartReq, + context: CallContext & CallContextExt, + ): Promise>; + wGStopPortForward( + request: WGPortForwardStopReq, + context: CallContext & CallContextExt, + ): Promise>; + wGStartSocks(request: WGSocksStartReq, context: CallContext & CallContextExt): Promise>; + wGStopSocks(request: WGSocksStopReq, context: CallContext & CallContextExt): Promise>; + wGListForwarders( + request: WGTCPForwardersReq, + context: CallContext & CallContextExt, + ): Promise>; + wGListSocksServers( + request: WGSocksServersReq, + context: CallContext & CallContextExt, + ): Promise>; + /** ** Realtime Commands *** */ + shell(request: ShellReq, context: CallContext & CallContextExt): Promise>; + shellResize(request: ShellResizeReq, context: CallContext & CallContextExt): Promise>; + portfwd(request: PortfwdReq, context: CallContext & CallContextExt): Promise>; + /** ** Socks5 *** */ + createSocks(request: Socks, context: CallContext & CallContextExt): Promise>; + closeSocks(request: Socks, context: CallContext & CallContextExt): Promise>; + socksProxy( + request: AsyncIterable, + context: CallContext & CallContextExt, + ): ServerStreamingMethodResult>; + /** ** Tunnels *** */ + createTunnel(request: Tunnel, context: CallContext & CallContextExt): Promise>; + closeTunnel(request: Tunnel, context: CallContext & CallContextExt): Promise>; + tunnelData( + request: AsyncIterable, + context: CallContext & CallContextExt, + ): ServerStreamingMethodResult>; + /** ** Events *** */ + events(request: Empty, context: CallContext & CallContextExt): ServerStreamingMethodResult>; } + +export interface SliverRPCClient { + /** ** Version *** */ + getVersion(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Client Logs *** */ + clientLog(request: AsyncIterable>, options?: CallOptions & CallOptionsExt): Promise; + /** ** Operator Commands *** */ + getOperators(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Generic *** */ + kill(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + reconfigure(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + rename(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Sessions *** */ + getSessions(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** **Threat monitoring *** */ + monitorStart(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + monitorStop(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + monitorListConfig(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + monitorAddConfig(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + monitorDelConfig(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Listeners *** */ + startMTLSListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + startWGListener(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + startDNSListener(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + startHTTPSListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + startHTTPListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Beacons *** */ + getBeacons(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getBeacon(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + rmBeacon(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getBeaconTasks(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getBeaconTaskContent(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + cancelBeaconTask(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + updateBeaconIntegrityInformation( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Jobs *** */ + getJobs(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + killJob(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + restartJobs(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Stager Listener *** */ + startTCPStagerListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Loot *** */ + lootAdd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + lootRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + lootUpdate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + lootContent(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + lootAll(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Creds *** */ + creds(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + credsAdd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + credsRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + credsUpdate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getCredByID(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getCredsByHashType(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getPlaintextCredsByHashType( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + credsSniffHashType(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Hosts *** */ + hosts(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + host(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + hostRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + hostIOCRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Implants *** */ + generate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + generateExternal( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + generateExternalSaveBuild( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + generateExternalGetBuildConfig( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + generateStage(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + stageImplantBuild(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** HTTP C2 Profiles *** */ + getHTTPC2Profiles(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getHTTPC2ProfileByName( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + saveHTTPC2Profile(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Builders *** */ + builderRegister(request: DeepPartial, options?: CallOptions & CallOptionsExt): AsyncIterable; + builderTrigger(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + builders(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Certificates *** */ + getCertificateInfo( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + getCertificateAuthorityInfo( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Crackstation *** */ + crack(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackstationRegister( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): AsyncIterable; + crackstationTrigger(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackstationBenchmark(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackstations(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackTaskByID(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackTaskUpdate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackFilesList(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackFileCreate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackFileChunkUpload(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackFileChunkDownload( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + crackFileComplete(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + crackFileDelete(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Payloads *** */ + regenerate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + implantBuilds(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + deleteImplantBuild(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + canaries(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + generateWGClientConfig(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + generateUniqueIP(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + implantProfiles(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + deleteImplantProfile(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + saveImplantProfile( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + shellcodeRDI(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getCompiler(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + shellcodeEncoder( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + shellcodeEncoderMap( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + trafficEncoderMap(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + trafficEncoderAdd( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + trafficEncoderRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Websites *** */ + websites(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + website(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + websiteRemove(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + websiteAddContent(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + websiteUpdateContent( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + websiteRemoveContent( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Session Interactions *** */ + ping(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + ps(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + terminate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + ifconfig(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + netstat(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + ls(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + cd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + pwd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + mv(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + cp(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + rm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + mkdir(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + download(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + upload(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + grep(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + chmod(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + chown(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + chtimes(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + memfilesList(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + memfilesAdd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + memfilesRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + mount(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + processDump(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + runAs(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + impersonate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + revToSelf(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getSystem(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + task(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + msf(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + msfRemote(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + executeAssembly( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + migrate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + execute(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + executeWindows(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + executeChildren( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + sideload(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + spawnDll(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + screenshot(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + currentTokenOwner( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + services(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + serviceDetail(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + startServiceByName( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Pivots *** */ + pivotStartListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + pivotStopListener(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + pivotSessionListeners( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + pivotGraph(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + startService(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + stopService(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + removeService(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + makeToken(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getEnv(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + setEnv(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + unsetEnv(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + backdoor(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + registryRead(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + registryWrite(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + registryCreateKey( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + registryDeleteKey( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + registryListSubKeys( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + registryListValues( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + registryReadHive( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + runSSHCommand(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + hijackDLL(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + getPrivs(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + startRportFwdListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + getRportFwdListeners( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + stopRportFwdListener( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Beacon *** -only commands */ + openSession(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + closeSession(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Extensions *** */ + registerExtension( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + callExtension(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + listExtensions( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Wasm Extensions *** */ + registerWasmExtension( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + listWasmExtensions( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + execWasmExtension( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Wireguard Specific *** */ + wGStartPortForward( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + wGStopPortForward( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + wGStartSocks(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + wGStopSocks(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + wGListForwarders( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + wGListSocksServers( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; + /** ** Realtime Commands *** */ + shell(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + shellResize(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + portfwd(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + /** ** Socks5 *** */ + createSocks(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + closeSocks(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + socksProxy( + request: AsyncIterable>, + options?: CallOptions & CallOptionsExt, + ): AsyncIterable; + /** ** Tunnels *** */ + createTunnel(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + closeTunnel(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + tunnelData( + request: AsyncIterable>, + options?: CallOptions & CallOptionsExt, + ): AsyncIterable; + /** ** Events *** */ + events(request: DeepPartial, options?: CallOptions & CallOptionsExt): AsyncIterable; +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +export type ServerStreamingMethodResult = { [Symbol.asyncIterator](): AsyncIterator }; diff --git a/src/pb/rpcpb/services_grpc_pb.js b/src/pb/rpcpb/services_grpc_pb.js deleted file mode 100644 index 961b8ef..0000000 --- a/src/pb/rpcpb/services_grpc_pb.js +++ /dev/null @@ -1,3280 +0,0 @@ -// GENERATED CODE -- DO NOT EDIT! - -'use strict'; -var grpc = require('@grpc/grpc-js'); -var commonpb_common_pb = require('../commonpb/common_pb.js'); -var sliverpb_sliver_pb = require('../sliverpb/sliver_pb.js'); -var clientpb_client_pb = require('../clientpb/client_pb.js'); - -function serialize_clientpb_AllHosts(arg) { - if (!(arg instanceof clientpb_client_pb.AllHosts)) { - throw new Error('Expected argument of type clientpb.AllHosts'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_AllHosts(buffer_arg) { - return clientpb_client_pb.AllHosts.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_AllLoot(arg) { - if (!(arg instanceof clientpb_client_pb.AllLoot)) { - throw new Error('Expected argument of type clientpb.AllLoot'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_AllLoot(buffer_arg) { - return clientpb_client_pb.AllLoot.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Beacon(arg) { - if (!(arg instanceof clientpb_client_pb.Beacon)) { - throw new Error('Expected argument of type clientpb.Beacon'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Beacon(buffer_arg) { - return clientpb_client_pb.Beacon.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_BeaconTask(arg) { - if (!(arg instanceof clientpb_client_pb.BeaconTask)) { - throw new Error('Expected argument of type clientpb.BeaconTask'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_BeaconTask(buffer_arg) { - return clientpb_client_pb.BeaconTask.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_BeaconTasks(arg) { - if (!(arg instanceof clientpb_client_pb.BeaconTasks)) { - throw new Error('Expected argument of type clientpb.BeaconTasks'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_BeaconTasks(buffer_arg) { - return clientpb_client_pb.BeaconTasks.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Beacons(arg) { - if (!(arg instanceof clientpb_client_pb.Beacons)) { - throw new Error('Expected argument of type clientpb.Beacons'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Beacons(buffer_arg) { - return clientpb_client_pb.Beacons.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Canaries(arg) { - if (!(arg instanceof clientpb_client_pb.Canaries)) { - throw new Error('Expected argument of type clientpb.Canaries'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Canaries(buffer_arg) { - return clientpb_client_pb.Canaries.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Compiler(arg) { - if (!(arg instanceof clientpb_client_pb.Compiler)) { - throw new Error('Expected argument of type clientpb.Compiler'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Compiler(buffer_arg) { - return clientpb_client_pb.Compiler.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_DNSListener(arg) { - if (!(arg instanceof clientpb_client_pb.DNSListener)) { - throw new Error('Expected argument of type clientpb.DNSListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_DNSListener(buffer_arg) { - return clientpb_client_pb.DNSListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_DNSListenerReq(arg) { - if (!(arg instanceof clientpb_client_pb.DNSListenerReq)) { - throw new Error('Expected argument of type clientpb.DNSListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_DNSListenerReq(buffer_arg) { - return clientpb_client_pb.DNSListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_DeleteReq(arg) { - if (!(arg instanceof clientpb_client_pb.DeleteReq)) { - throw new Error('Expected argument of type clientpb.DeleteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_DeleteReq(buffer_arg) { - return clientpb_client_pb.DeleteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_DllHijack(arg) { - if (!(arg instanceof clientpb_client_pb.DllHijack)) { - throw new Error('Expected argument of type clientpb.DllHijack'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_DllHijack(buffer_arg) { - return clientpb_client_pb.DllHijack.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_DllHijackReq(arg) { - if (!(arg instanceof clientpb_client_pb.DllHijackReq)) { - throw new Error('Expected argument of type clientpb.DllHijackReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_DllHijackReq(buffer_arg) { - return clientpb_client_pb.DllHijackReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Event(arg) { - if (!(arg instanceof clientpb_client_pb.Event)) { - throw new Error('Expected argument of type clientpb.Event'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Event(buffer_arg) { - return clientpb_client_pb.Event.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Generate(arg) { - if (!(arg instanceof clientpb_client_pb.Generate)) { - throw new Error('Expected argument of type clientpb.Generate'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Generate(buffer_arg) { - return clientpb_client_pb.Generate.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_GenerateReq(arg) { - if (!(arg instanceof clientpb_client_pb.GenerateReq)) { - throw new Error('Expected argument of type clientpb.GenerateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_GenerateReq(buffer_arg) { - return clientpb_client_pb.GenerateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_GetSystemReq(arg) { - if (!(arg instanceof clientpb_client_pb.GetSystemReq)) { - throw new Error('Expected argument of type clientpb.GetSystemReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_GetSystemReq(buffer_arg) { - return clientpb_client_pb.GetSystemReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_HTTPListener(arg) { - if (!(arg instanceof clientpb_client_pb.HTTPListener)) { - throw new Error('Expected argument of type clientpb.HTTPListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_HTTPListener(buffer_arg) { - return clientpb_client_pb.HTTPListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_HTTPListenerReq(arg) { - if (!(arg instanceof clientpb_client_pb.HTTPListenerReq)) { - throw new Error('Expected argument of type clientpb.HTTPListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_HTTPListenerReq(buffer_arg) { - return clientpb_client_pb.HTTPListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Host(arg) { - if (!(arg instanceof clientpb_client_pb.Host)) { - throw new Error('Expected argument of type clientpb.Host'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Host(buffer_arg) { - return clientpb_client_pb.Host.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_IOC(arg) { - if (!(arg instanceof clientpb_client_pb.IOC)) { - throw new Error('Expected argument of type clientpb.IOC'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_IOC(buffer_arg) { - return clientpb_client_pb.IOC.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ImplantBuilds(arg) { - if (!(arg instanceof clientpb_client_pb.ImplantBuilds)) { - throw new Error('Expected argument of type clientpb.ImplantBuilds'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ImplantBuilds(buffer_arg) { - return clientpb_client_pb.ImplantBuilds.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ImplantProfile(arg) { - if (!(arg instanceof clientpb_client_pb.ImplantProfile)) { - throw new Error('Expected argument of type clientpb.ImplantProfile'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ImplantProfile(buffer_arg) { - return clientpb_client_pb.ImplantProfile.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ImplantProfiles(arg) { - if (!(arg instanceof clientpb_client_pb.ImplantProfiles)) { - throw new Error('Expected argument of type clientpb.ImplantProfiles'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ImplantProfiles(buffer_arg) { - return clientpb_client_pb.ImplantProfiles.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Jobs(arg) { - if (!(arg instanceof clientpb_client_pb.Jobs)) { - throw new Error('Expected argument of type clientpb.Jobs'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Jobs(buffer_arg) { - return clientpb_client_pb.Jobs.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_KillJob(arg) { - if (!(arg instanceof clientpb_client_pb.KillJob)) { - throw new Error('Expected argument of type clientpb.KillJob'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_KillJob(buffer_arg) { - return clientpb_client_pb.KillJob.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_KillJobReq(arg) { - if (!(arg instanceof clientpb_client_pb.KillJobReq)) { - throw new Error('Expected argument of type clientpb.KillJobReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_KillJobReq(buffer_arg) { - return clientpb_client_pb.KillJobReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Loot(arg) { - if (!(arg instanceof clientpb_client_pb.Loot)) { - throw new Error('Expected argument of type clientpb.Loot'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Loot(buffer_arg) { - return clientpb_client_pb.Loot.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MSFRemoteReq(arg) { - if (!(arg instanceof clientpb_client_pb.MSFRemoteReq)) { - throw new Error('Expected argument of type clientpb.MSFRemoteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MSFRemoteReq(buffer_arg) { - return clientpb_client_pb.MSFRemoteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MSFReq(arg) { - if (!(arg instanceof clientpb_client_pb.MSFReq)) { - throw new Error('Expected argument of type clientpb.MSFReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MSFReq(buffer_arg) { - return clientpb_client_pb.MSFReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MTLSListener(arg) { - if (!(arg instanceof clientpb_client_pb.MTLSListener)) { - throw new Error('Expected argument of type clientpb.MTLSListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MTLSListener(buffer_arg) { - return clientpb_client_pb.MTLSListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MTLSListenerReq(arg) { - if (!(arg instanceof clientpb_client_pb.MTLSListenerReq)) { - throw new Error('Expected argument of type clientpb.MTLSListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MTLSListenerReq(buffer_arg) { - return clientpb_client_pb.MTLSListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MigrateReq(arg) { - if (!(arg instanceof clientpb_client_pb.MigrateReq)) { - throw new Error('Expected argument of type clientpb.MigrateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MigrateReq(buffer_arg) { - return clientpb_client_pb.MigrateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MsfStager(arg) { - if (!(arg instanceof clientpb_client_pb.MsfStager)) { - throw new Error('Expected argument of type clientpb.MsfStager'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MsfStager(buffer_arg) { - return clientpb_client_pb.MsfStager.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_MsfStagerReq(arg) { - if (!(arg instanceof clientpb_client_pb.MsfStagerReq)) { - throw new Error('Expected argument of type clientpb.MsfStagerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_MsfStagerReq(buffer_arg) { - return clientpb_client_pb.MsfStagerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Operators(arg) { - if (!(arg instanceof clientpb_client_pb.Operators)) { - throw new Error('Expected argument of type clientpb.Operators'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Operators(buffer_arg) { - return clientpb_client_pb.Operators.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_PivotGraph(arg) { - if (!(arg instanceof clientpb_client_pb.PivotGraph)) { - throw new Error('Expected argument of type clientpb.PivotGraph'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_PivotGraph(buffer_arg) { - return clientpb_client_pb.PivotGraph.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_RegenerateReq(arg) { - if (!(arg instanceof clientpb_client_pb.RegenerateReq)) { - throw new Error('Expected argument of type clientpb.RegenerateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_RegenerateReq(buffer_arg) { - return clientpb_client_pb.RegenerateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_RenameReq(arg) { - if (!(arg instanceof clientpb_client_pb.RenameReq)) { - throw new Error('Expected argument of type clientpb.RenameReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_RenameReq(buffer_arg) { - return clientpb_client_pb.RenameReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Sessions(arg) { - if (!(arg instanceof clientpb_client_pb.Sessions)) { - throw new Error('Expected argument of type clientpb.Sessions'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Sessions(buffer_arg) { - return clientpb_client_pb.Sessions.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ShellcodeEncode(arg) { - if (!(arg instanceof clientpb_client_pb.ShellcodeEncode)) { - throw new Error('Expected argument of type clientpb.ShellcodeEncode'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ShellcodeEncode(buffer_arg) { - return clientpb_client_pb.ShellcodeEncode.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ShellcodeEncodeReq(arg) { - if (!(arg instanceof clientpb_client_pb.ShellcodeEncodeReq)) { - throw new Error('Expected argument of type clientpb.ShellcodeEncodeReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ShellcodeEncodeReq(buffer_arg) { - return clientpb_client_pb.ShellcodeEncodeReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ShellcodeEncoderMap(arg) { - if (!(arg instanceof clientpb_client_pb.ShellcodeEncoderMap)) { - throw new Error('Expected argument of type clientpb.ShellcodeEncoderMap'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ShellcodeEncoderMap(buffer_arg) { - return clientpb_client_pb.ShellcodeEncoderMap.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ShellcodeRDI(arg) { - if (!(arg instanceof clientpb_client_pb.ShellcodeRDI)) { - throw new Error('Expected argument of type clientpb.ShellcodeRDI'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ShellcodeRDI(buffer_arg) { - return clientpb_client_pb.ShellcodeRDI.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_ShellcodeRDIReq(arg) { - if (!(arg instanceof clientpb_client_pb.ShellcodeRDIReq)) { - throw new Error('Expected argument of type clientpb.ShellcodeRDIReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_ShellcodeRDIReq(buffer_arg) { - return clientpb_client_pb.ShellcodeRDIReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_StagerListener(arg) { - if (!(arg instanceof clientpb_client_pb.StagerListener)) { - throw new Error('Expected argument of type clientpb.StagerListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_StagerListener(buffer_arg) { - return clientpb_client_pb.StagerListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_StagerListenerReq(arg) { - if (!(arg instanceof clientpb_client_pb.StagerListenerReq)) { - throw new Error('Expected argument of type clientpb.StagerListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_StagerListenerReq(buffer_arg) { - return clientpb_client_pb.StagerListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_UniqueWGIP(arg) { - if (!(arg instanceof clientpb_client_pb.UniqueWGIP)) { - throw new Error('Expected argument of type clientpb.UniqueWGIP'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_UniqueWGIP(buffer_arg) { - return clientpb_client_pb.UniqueWGIP.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Version(arg) { - if (!(arg instanceof clientpb_client_pb.Version)) { - throw new Error('Expected argument of type clientpb.Version'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Version(buffer_arg) { - return clientpb_client_pb.Version.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_WGClientConfig(arg) { - if (!(arg instanceof clientpb_client_pb.WGClientConfig)) { - throw new Error('Expected argument of type clientpb.WGClientConfig'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_WGClientConfig(buffer_arg) { - return clientpb_client_pb.WGClientConfig.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_WGListener(arg) { - if (!(arg instanceof clientpb_client_pb.WGListener)) { - throw new Error('Expected argument of type clientpb.WGListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_WGListener(buffer_arg) { - return clientpb_client_pb.WGListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_WGListenerReq(arg) { - if (!(arg instanceof clientpb_client_pb.WGListenerReq)) { - throw new Error('Expected argument of type clientpb.WGListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_WGListenerReq(buffer_arg) { - return clientpb_client_pb.WGListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Website(arg) { - if (!(arg instanceof clientpb_client_pb.Website)) { - throw new Error('Expected argument of type clientpb.Website'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Website(buffer_arg) { - return clientpb_client_pb.Website.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_WebsiteAddContent(arg) { - if (!(arg instanceof clientpb_client_pb.WebsiteAddContent)) { - throw new Error('Expected argument of type clientpb.WebsiteAddContent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_WebsiteAddContent(buffer_arg) { - return clientpb_client_pb.WebsiteAddContent.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_WebsiteRemoveContent(arg) { - if (!(arg instanceof clientpb_client_pb.WebsiteRemoveContent)) { - throw new Error('Expected argument of type clientpb.WebsiteRemoveContent'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_WebsiteRemoveContent(buffer_arg) { - return clientpb_client_pb.WebsiteRemoveContent.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_clientpb_Websites(arg) { - if (!(arg instanceof clientpb_client_pb.Websites)) { - throw new Error('Expected argument of type clientpb.Websites'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_clientpb_Websites(buffer_arg) { - return clientpb_client_pb.Websites.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_commonpb_Empty(arg) { - if (!(arg instanceof commonpb_common_pb.Empty)) { - throw new Error('Expected argument of type commonpb.Empty'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_commonpb_Empty(buffer_arg) { - return commonpb_common_pb.Empty.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_commonpb_Response(arg) { - if (!(arg instanceof commonpb_common_pb.Response)) { - throw new Error('Expected argument of type commonpb.Response'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_commonpb_Response(buffer_arg) { - return commonpb_common_pb.Response.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Backdoor(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Backdoor)) { - throw new Error('Expected argument of type sliverpb.Backdoor'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Backdoor(buffer_arg) { - return sliverpb_sliver_pb.Backdoor.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_BackdoorReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.BackdoorReq)) { - throw new Error('Expected argument of type sliverpb.BackdoorReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_BackdoorReq(buffer_arg) { - return sliverpb_sliver_pb.BackdoorReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CallExtension(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CallExtension)) { - throw new Error('Expected argument of type sliverpb.CallExtension'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CallExtension(buffer_arg) { - return sliverpb_sliver_pb.CallExtension.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CallExtensionReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CallExtensionReq)) { - throw new Error('Expected argument of type sliverpb.CallExtensionReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CallExtensionReq(buffer_arg) { - return sliverpb_sliver_pb.CallExtensionReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CdReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CdReq)) { - throw new Error('Expected argument of type sliverpb.CdReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CdReq(buffer_arg) { - return sliverpb_sliver_pb.CdReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CloseSession(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CloseSession)) { - throw new Error('Expected argument of type sliverpb.CloseSession'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CloseSession(buffer_arg) { - return sliverpb_sliver_pb.CloseSession.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CurrentTokenOwner(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CurrentTokenOwner)) { - throw new Error('Expected argument of type sliverpb.CurrentTokenOwner'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CurrentTokenOwner(buffer_arg) { - return sliverpb_sliver_pb.CurrentTokenOwner.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_CurrentTokenOwnerReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.CurrentTokenOwnerReq)) { - throw new Error('Expected argument of type sliverpb.CurrentTokenOwnerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_CurrentTokenOwnerReq(buffer_arg) { - return sliverpb_sliver_pb.CurrentTokenOwnerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Download(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Download)) { - throw new Error('Expected argument of type sliverpb.Download'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Download(buffer_arg) { - return sliverpb_sliver_pb.Download.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_DownloadReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.DownloadReq)) { - throw new Error('Expected argument of type sliverpb.DownloadReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_DownloadReq(buffer_arg) { - return sliverpb_sliver_pb.DownloadReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_EnvInfo(arg) { - if (!(arg instanceof sliverpb_sliver_pb.EnvInfo)) { - throw new Error('Expected argument of type sliverpb.EnvInfo'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_EnvInfo(buffer_arg) { - return sliverpb_sliver_pb.EnvInfo.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_EnvReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.EnvReq)) { - throw new Error('Expected argument of type sliverpb.EnvReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_EnvReq(buffer_arg) { - return sliverpb_sliver_pb.EnvReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Execute(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Execute)) { - throw new Error('Expected argument of type sliverpb.Execute'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Execute(buffer_arg) { - return sliverpb_sliver_pb.Execute.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ExecuteAssembly(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ExecuteAssembly)) { - throw new Error('Expected argument of type sliverpb.ExecuteAssembly'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ExecuteAssembly(buffer_arg) { - return sliverpb_sliver_pb.ExecuteAssembly.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ExecuteAssemblyReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ExecuteAssemblyReq)) { - throw new Error('Expected argument of type sliverpb.ExecuteAssemblyReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ExecuteAssemblyReq(buffer_arg) { - return sliverpb_sliver_pb.ExecuteAssemblyReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ExecuteReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ExecuteReq)) { - throw new Error('Expected argument of type sliverpb.ExecuteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ExecuteReq(buffer_arg) { - return sliverpb_sliver_pb.ExecuteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ExecuteWindowsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ExecuteWindowsReq)) { - throw new Error('Expected argument of type sliverpb.ExecuteWindowsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ExecuteWindowsReq(buffer_arg) { - return sliverpb_sliver_pb.ExecuteWindowsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_GetPrivs(arg) { - if (!(arg instanceof sliverpb_sliver_pb.GetPrivs)) { - throw new Error('Expected argument of type sliverpb.GetPrivs'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_GetPrivs(buffer_arg) { - return sliverpb_sliver_pb.GetPrivs.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_GetPrivsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.GetPrivsReq)) { - throw new Error('Expected argument of type sliverpb.GetPrivsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_GetPrivsReq(buffer_arg) { - return sliverpb_sliver_pb.GetPrivsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_GetSystem(arg) { - if (!(arg instanceof sliverpb_sliver_pb.GetSystem)) { - throw new Error('Expected argument of type sliverpb.GetSystem'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_GetSystem(buffer_arg) { - return sliverpb_sliver_pb.GetSystem.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Ifconfig(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Ifconfig)) { - throw new Error('Expected argument of type sliverpb.Ifconfig'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Ifconfig(buffer_arg) { - return sliverpb_sliver_pb.Ifconfig.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_IfconfigReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.IfconfigReq)) { - throw new Error('Expected argument of type sliverpb.IfconfigReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_IfconfigReq(buffer_arg) { - return sliverpb_sliver_pb.IfconfigReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Impersonate(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Impersonate)) { - throw new Error('Expected argument of type sliverpb.Impersonate'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Impersonate(buffer_arg) { - return sliverpb_sliver_pb.Impersonate.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ImpersonateReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ImpersonateReq)) { - throw new Error('Expected argument of type sliverpb.ImpersonateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ImpersonateReq(buffer_arg) { - return sliverpb_sliver_pb.ImpersonateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_InvokeSpawnDllReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.InvokeSpawnDllReq)) { - throw new Error('Expected argument of type sliverpb.InvokeSpawnDllReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_InvokeSpawnDllReq(buffer_arg) { - return sliverpb_sliver_pb.InvokeSpawnDllReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_KillReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.KillReq)) { - throw new Error('Expected argument of type sliverpb.KillReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_KillReq(buffer_arg) { - return sliverpb_sliver_pb.KillReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ListExtensions(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ListExtensions)) { - throw new Error('Expected argument of type sliverpb.ListExtensions'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ListExtensions(buffer_arg) { - return sliverpb_sliver_pb.ListExtensions.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ListExtensionsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ListExtensionsReq)) { - throw new Error('Expected argument of type sliverpb.ListExtensionsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ListExtensionsReq(buffer_arg) { - return sliverpb_sliver_pb.ListExtensionsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Ls(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Ls)) { - throw new Error('Expected argument of type sliverpb.Ls'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Ls(buffer_arg) { - return sliverpb_sliver_pb.Ls.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_LsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.LsReq)) { - throw new Error('Expected argument of type sliverpb.LsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_LsReq(buffer_arg) { - return sliverpb_sliver_pb.LsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_MakeToken(arg) { - if (!(arg instanceof sliverpb_sliver_pb.MakeToken)) { - throw new Error('Expected argument of type sliverpb.MakeToken'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_MakeToken(buffer_arg) { - return sliverpb_sliver_pb.MakeToken.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_MakeTokenReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.MakeTokenReq)) { - throw new Error('Expected argument of type sliverpb.MakeTokenReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_MakeTokenReq(buffer_arg) { - return sliverpb_sliver_pb.MakeTokenReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Migrate(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Migrate)) { - throw new Error('Expected argument of type sliverpb.Migrate'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Migrate(buffer_arg) { - return sliverpb_sliver_pb.Migrate.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Mkdir(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Mkdir)) { - throw new Error('Expected argument of type sliverpb.Mkdir'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Mkdir(buffer_arg) { - return sliverpb_sliver_pb.Mkdir.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_MkdirReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.MkdirReq)) { - throw new Error('Expected argument of type sliverpb.MkdirReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_MkdirReq(buffer_arg) { - return sliverpb_sliver_pb.MkdirReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Mv(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Mv)) { - throw new Error('Expected argument of type sliverpb.Mv'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Mv(buffer_arg) { - return sliverpb_sliver_pb.Mv.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_MvReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.MvReq)) { - throw new Error('Expected argument of type sliverpb.MvReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_MvReq(buffer_arg) { - return sliverpb_sliver_pb.MvReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Netstat(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Netstat)) { - throw new Error('Expected argument of type sliverpb.Netstat'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Netstat(buffer_arg) { - return sliverpb_sliver_pb.Netstat.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_NetstatReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.NetstatReq)) { - throw new Error('Expected argument of type sliverpb.NetstatReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_NetstatReq(buffer_arg) { - return sliverpb_sliver_pb.NetstatReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_OpenSession(arg) { - if (!(arg instanceof sliverpb_sliver_pb.OpenSession)) { - throw new Error('Expected argument of type sliverpb.OpenSession'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_OpenSession(buffer_arg) { - return sliverpb_sliver_pb.OpenSession.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Ping(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Ping)) { - throw new Error('Expected argument of type sliverpb.Ping'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Ping(buffer_arg) { - return sliverpb_sliver_pb.Ping.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PivotListener(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PivotListener)) { - throw new Error('Expected argument of type sliverpb.PivotListener'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PivotListener(buffer_arg) { - return sliverpb_sliver_pb.PivotListener.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PivotListeners(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PivotListeners)) { - throw new Error('Expected argument of type sliverpb.PivotListeners'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PivotListeners(buffer_arg) { - return sliverpb_sliver_pb.PivotListeners.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PivotListenersReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PivotListenersReq)) { - throw new Error('Expected argument of type sliverpb.PivotListenersReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PivotListenersReq(buffer_arg) { - return sliverpb_sliver_pb.PivotListenersReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PivotStartListenerReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PivotStartListenerReq)) { - throw new Error('Expected argument of type sliverpb.PivotStartListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PivotStartListenerReq(buffer_arg) { - return sliverpb_sliver_pb.PivotStartListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PivotStopListenerReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PivotStopListenerReq)) { - throw new Error('Expected argument of type sliverpb.PivotStopListenerReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PivotStopListenerReq(buffer_arg) { - return sliverpb_sliver_pb.PivotStopListenerReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Portfwd(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Portfwd)) { - throw new Error('Expected argument of type sliverpb.Portfwd'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Portfwd(buffer_arg) { - return sliverpb_sliver_pb.Portfwd.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PortfwdReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PortfwdReq)) { - throw new Error('Expected argument of type sliverpb.PortfwdReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PortfwdReq(buffer_arg) { - return sliverpb_sliver_pb.PortfwdReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ProcessDump(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ProcessDump)) { - throw new Error('Expected argument of type sliverpb.ProcessDump'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ProcessDump(buffer_arg) { - return sliverpb_sliver_pb.ProcessDump.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ProcessDumpReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ProcessDumpReq)) { - throw new Error('Expected argument of type sliverpb.ProcessDumpReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ProcessDumpReq(buffer_arg) { - return sliverpb_sliver_pb.ProcessDumpReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Ps(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Ps)) { - throw new Error('Expected argument of type sliverpb.Ps'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Ps(buffer_arg) { - return sliverpb_sliver_pb.Ps.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PsReq)) { - throw new Error('Expected argument of type sliverpb.PsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PsReq(buffer_arg) { - return sliverpb_sliver_pb.PsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Pwd(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Pwd)) { - throw new Error('Expected argument of type sliverpb.Pwd'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Pwd(buffer_arg) { - return sliverpb_sliver_pb.Pwd.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_PwdReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.PwdReq)) { - throw new Error('Expected argument of type sliverpb.PwdReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_PwdReq(buffer_arg) { - return sliverpb_sliver_pb.PwdReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Reconfigure(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Reconfigure)) { - throw new Error('Expected argument of type sliverpb.Reconfigure'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Reconfigure(buffer_arg) { - return sliverpb_sliver_pb.Reconfigure.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ReconfigureReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ReconfigureReq)) { - throw new Error('Expected argument of type sliverpb.ReconfigureReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ReconfigureReq(buffer_arg) { - return sliverpb_sliver_pb.ReconfigureReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegisterExtension(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegisterExtension)) { - throw new Error('Expected argument of type sliverpb.RegisterExtension'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegisterExtension(buffer_arg) { - return sliverpb_sliver_pb.RegisterExtension.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegisterExtensionReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegisterExtensionReq)) { - throw new Error('Expected argument of type sliverpb.RegisterExtensionReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegisterExtensionReq(buffer_arg) { - return sliverpb_sliver_pb.RegisterExtensionReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryCreateKey(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryCreateKey)) { - throw new Error('Expected argument of type sliverpb.RegistryCreateKey'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryCreateKey(buffer_arg) { - return sliverpb_sliver_pb.RegistryCreateKey.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryCreateKeyReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryCreateKeyReq)) { - throw new Error('Expected argument of type sliverpb.RegistryCreateKeyReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryCreateKeyReq(buffer_arg) { - return sliverpb_sliver_pb.RegistryCreateKeyReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryDeleteKey(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryDeleteKey)) { - throw new Error('Expected argument of type sliverpb.RegistryDeleteKey'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryDeleteKey(buffer_arg) { - return sliverpb_sliver_pb.RegistryDeleteKey.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryDeleteKeyReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryDeleteKeyReq)) { - throw new Error('Expected argument of type sliverpb.RegistryDeleteKeyReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryDeleteKeyReq(buffer_arg) { - return sliverpb_sliver_pb.RegistryDeleteKeyReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryListValuesReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryListValuesReq)) { - throw new Error('Expected argument of type sliverpb.RegistryListValuesReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryListValuesReq(buffer_arg) { - return sliverpb_sliver_pb.RegistryListValuesReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryRead(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryRead)) { - throw new Error('Expected argument of type sliverpb.RegistryRead'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryRead(buffer_arg) { - return sliverpb_sliver_pb.RegistryRead.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryReadReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryReadReq)) { - throw new Error('Expected argument of type sliverpb.RegistryReadReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryReadReq(buffer_arg) { - return sliverpb_sliver_pb.RegistryReadReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistrySubKeyList(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistrySubKeyList)) { - throw new Error('Expected argument of type sliverpb.RegistrySubKeyList'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistrySubKeyList(buffer_arg) { - return sliverpb_sliver_pb.RegistrySubKeyList.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistrySubKeyListReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistrySubKeyListReq)) { - throw new Error('Expected argument of type sliverpb.RegistrySubKeyListReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistrySubKeyListReq(buffer_arg) { - return sliverpb_sliver_pb.RegistrySubKeyListReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryValuesList(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryValuesList)) { - throw new Error('Expected argument of type sliverpb.RegistryValuesList'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryValuesList(buffer_arg) { - return sliverpb_sliver_pb.RegistryValuesList.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryWrite(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryWrite)) { - throw new Error('Expected argument of type sliverpb.RegistryWrite'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryWrite(buffer_arg) { - return sliverpb_sliver_pb.RegistryWrite.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RegistryWriteReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RegistryWriteReq)) { - throw new Error('Expected argument of type sliverpb.RegistryWriteReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RegistryWriteReq(buffer_arg) { - return sliverpb_sliver_pb.RegistryWriteReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RemoveServiceReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RemoveServiceReq)) { - throw new Error('Expected argument of type sliverpb.RemoveServiceReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RemoveServiceReq(buffer_arg) { - return sliverpb_sliver_pb.RemoveServiceReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RevToSelf(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RevToSelf)) { - throw new Error('Expected argument of type sliverpb.RevToSelf'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RevToSelf(buffer_arg) { - return sliverpb_sliver_pb.RevToSelf.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RevToSelfReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RevToSelfReq)) { - throw new Error('Expected argument of type sliverpb.RevToSelfReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RevToSelfReq(buffer_arg) { - return sliverpb_sliver_pb.RevToSelfReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Rm(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Rm)) { - throw new Error('Expected argument of type sliverpb.Rm'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Rm(buffer_arg) { - return sliverpb_sliver_pb.Rm.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RmReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RmReq)) { - throw new Error('Expected argument of type sliverpb.RmReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RmReq(buffer_arg) { - return sliverpb_sliver_pb.RmReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RunAs(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RunAs)) { - throw new Error('Expected argument of type sliverpb.RunAs'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RunAs(buffer_arg) { - return sliverpb_sliver_pb.RunAs.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_RunAsReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.RunAsReq)) { - throw new Error('Expected argument of type sliverpb.RunAsReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_RunAsReq(buffer_arg) { - return sliverpb_sliver_pb.RunAsReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SSHCommand(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SSHCommand)) { - throw new Error('Expected argument of type sliverpb.SSHCommand'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SSHCommand(buffer_arg) { - return sliverpb_sliver_pb.SSHCommand.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SSHCommandReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SSHCommandReq)) { - throw new Error('Expected argument of type sliverpb.SSHCommandReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SSHCommandReq(buffer_arg) { - return sliverpb_sliver_pb.SSHCommandReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Screenshot(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Screenshot)) { - throw new Error('Expected argument of type sliverpb.Screenshot'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Screenshot(buffer_arg) { - return sliverpb_sliver_pb.Screenshot.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ScreenshotReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ScreenshotReq)) { - throw new Error('Expected argument of type sliverpb.ScreenshotReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ScreenshotReq(buffer_arg) { - return sliverpb_sliver_pb.ScreenshotReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ServiceInfo(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ServiceInfo)) { - throw new Error('Expected argument of type sliverpb.ServiceInfo'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ServiceInfo(buffer_arg) { - return sliverpb_sliver_pb.ServiceInfo.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SetEnv(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SetEnv)) { - throw new Error('Expected argument of type sliverpb.SetEnv'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SetEnv(buffer_arg) { - return sliverpb_sliver_pb.SetEnv.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SetEnvReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SetEnvReq)) { - throw new Error('Expected argument of type sliverpb.SetEnvReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SetEnvReq(buffer_arg) { - return sliverpb_sliver_pb.SetEnvReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Shell(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Shell)) { - throw new Error('Expected argument of type sliverpb.Shell'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Shell(buffer_arg) { - return sliverpb_sliver_pb.Shell.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_ShellReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.ShellReq)) { - throw new Error('Expected argument of type sliverpb.ShellReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_ShellReq(buffer_arg) { - return sliverpb_sliver_pb.ShellReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Sideload(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Sideload)) { - throw new Error('Expected argument of type sliverpb.Sideload'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Sideload(buffer_arg) { - return sliverpb_sliver_pb.Sideload.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SideloadReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SideloadReq)) { - throw new Error('Expected argument of type sliverpb.SideloadReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SideloadReq(buffer_arg) { - return sliverpb_sliver_pb.SideloadReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Socks(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Socks)) { - throw new Error('Expected argument of type sliverpb.Socks'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Socks(buffer_arg) { - return sliverpb_sliver_pb.Socks.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SocksData(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SocksData)) { - throw new Error('Expected argument of type sliverpb.SocksData'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SocksData(buffer_arg) { - return sliverpb_sliver_pb.SocksData.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_SpawnDll(arg) { - if (!(arg instanceof sliverpb_sliver_pb.SpawnDll)) { - throw new Error('Expected argument of type sliverpb.SpawnDll'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_SpawnDll(buffer_arg) { - return sliverpb_sliver_pb.SpawnDll.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_StartServiceReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.StartServiceReq)) { - throw new Error('Expected argument of type sliverpb.StartServiceReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_StartServiceReq(buffer_arg) { - return sliverpb_sliver_pb.StartServiceReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_StopServiceReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.StopServiceReq)) { - throw new Error('Expected argument of type sliverpb.StopServiceReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_StopServiceReq(buffer_arg) { - return sliverpb_sliver_pb.StopServiceReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Task(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Task)) { - throw new Error('Expected argument of type sliverpb.Task'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Task(buffer_arg) { - return sliverpb_sliver_pb.Task.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_TaskReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.TaskReq)) { - throw new Error('Expected argument of type sliverpb.TaskReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_TaskReq(buffer_arg) { - return sliverpb_sliver_pb.TaskReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Terminate(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Terminate)) { - throw new Error('Expected argument of type sliverpb.Terminate'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Terminate(buffer_arg) { - return sliverpb_sliver_pb.Terminate.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_TerminateReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.TerminateReq)) { - throw new Error('Expected argument of type sliverpb.TerminateReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_TerminateReq(buffer_arg) { - return sliverpb_sliver_pb.TerminateReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Tunnel(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Tunnel)) { - throw new Error('Expected argument of type sliverpb.Tunnel'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Tunnel(buffer_arg) { - return sliverpb_sliver_pb.Tunnel.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_TunnelData(arg) { - if (!(arg instanceof sliverpb_sliver_pb.TunnelData)) { - throw new Error('Expected argument of type sliverpb.TunnelData'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_TunnelData(buffer_arg) { - return sliverpb_sliver_pb.TunnelData.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_UnsetEnv(arg) { - if (!(arg instanceof sliverpb_sliver_pb.UnsetEnv)) { - throw new Error('Expected argument of type sliverpb.UnsetEnv'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_UnsetEnv(buffer_arg) { - return sliverpb_sliver_pb.UnsetEnv.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_UnsetEnvReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.UnsetEnvReq)) { - throw new Error('Expected argument of type sliverpb.UnsetEnvReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_UnsetEnvReq(buffer_arg) { - return sliverpb_sliver_pb.UnsetEnvReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_Upload(arg) { - if (!(arg instanceof sliverpb_sliver_pb.Upload)) { - throw new Error('Expected argument of type sliverpb.Upload'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_Upload(buffer_arg) { - return sliverpb_sliver_pb.Upload.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_UploadReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.UploadReq)) { - throw new Error('Expected argument of type sliverpb.UploadReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_UploadReq(buffer_arg) { - return sliverpb_sliver_pb.UploadReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGPortForward(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGPortForward)) { - throw new Error('Expected argument of type sliverpb.WGPortForward'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGPortForward(buffer_arg) { - return sliverpb_sliver_pb.WGPortForward.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGPortForwardStartReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGPortForwardStartReq)) { - throw new Error('Expected argument of type sliverpb.WGPortForwardStartReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGPortForwardStartReq(buffer_arg) { - return sliverpb_sliver_pb.WGPortForwardStartReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGPortForwardStopReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGPortForwardStopReq)) { - throw new Error('Expected argument of type sliverpb.WGPortForwardStopReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGPortForwardStopReq(buffer_arg) { - return sliverpb_sliver_pb.WGPortForwardStopReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGSocks(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGSocks)) { - throw new Error('Expected argument of type sliverpb.WGSocks'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGSocks(buffer_arg) { - return sliverpb_sliver_pb.WGSocks.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGSocksServers(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGSocksServers)) { - throw new Error('Expected argument of type sliverpb.WGSocksServers'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGSocksServers(buffer_arg) { - return sliverpb_sliver_pb.WGSocksServers.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGSocksServersReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGSocksServersReq)) { - throw new Error('Expected argument of type sliverpb.WGSocksServersReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGSocksServersReq(buffer_arg) { - return sliverpb_sliver_pb.WGSocksServersReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGSocksStartReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGSocksStartReq)) { - throw new Error('Expected argument of type sliverpb.WGSocksStartReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGSocksStartReq(buffer_arg) { - return sliverpb_sliver_pb.WGSocksStartReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGSocksStopReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGSocksStopReq)) { - throw new Error('Expected argument of type sliverpb.WGSocksStopReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGSocksStopReq(buffer_arg) { - return sliverpb_sliver_pb.WGSocksStopReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGTCPForwarders(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGTCPForwarders)) { - throw new Error('Expected argument of type sliverpb.WGTCPForwarders'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGTCPForwarders(buffer_arg) { - return sliverpb_sliver_pb.WGTCPForwarders.deserializeBinary(new Uint8Array(buffer_arg)); -} - -function serialize_sliverpb_WGTCPForwardersReq(arg) { - if (!(arg instanceof sliverpb_sliver_pb.WGTCPForwardersReq)) { - throw new Error('Expected argument of type sliverpb.WGTCPForwardersReq'); - } - return Buffer.from(arg.serializeBinary()); -} - -function deserialize_sliverpb_WGTCPForwardersReq(buffer_arg) { - return sliverpb_sliver_pb.WGTCPForwardersReq.deserializeBinary(new Uint8Array(buffer_arg)); -} - - -var SliverRPCService = exports.SliverRPCService = { - // *** Version *** -getVersion: { - path: '/rpcpb.SliverRPC/GetVersion', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Version, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Version, - responseDeserialize: deserialize_clientpb_Version, - }, - // *** Operator Commands *** -getOperators: { - path: '/rpcpb.SliverRPC/GetOperators', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Operators, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Operators, - responseDeserialize: deserialize_clientpb_Operators, - }, - // *** Generic *** -kill: { - path: '/rpcpb.SliverRPC/Kill', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.KillReq, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_sliverpb_KillReq, - requestDeserialize: deserialize_sliverpb_KillReq, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - reconfigure: { - path: '/rpcpb.SliverRPC/Reconfigure', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ReconfigureReq, - responseType: sliverpb_sliver_pb.Reconfigure, - requestSerialize: serialize_sliverpb_ReconfigureReq, - requestDeserialize: deserialize_sliverpb_ReconfigureReq, - responseSerialize: serialize_sliverpb_Reconfigure, - responseDeserialize: deserialize_sliverpb_Reconfigure, - }, - rename: { - path: '/rpcpb.SliverRPC/Rename', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.RenameReq, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_RenameReq, - requestDeserialize: deserialize_clientpb_RenameReq, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - // *** Sessions *** -getSessions: { - path: '/rpcpb.SliverRPC/GetSessions', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Sessions, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Sessions, - responseDeserialize: deserialize_clientpb_Sessions, - }, - // *** Beacons *** -getBeacons: { - path: '/rpcpb.SliverRPC/GetBeacons', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Beacons, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Beacons, - responseDeserialize: deserialize_clientpb_Beacons, - }, - getBeacon: { - path: '/rpcpb.SliverRPC/GetBeacon', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Beacon, - responseType: clientpb_client_pb.Beacon, - requestSerialize: serialize_clientpb_Beacon, - requestDeserialize: deserialize_clientpb_Beacon, - responseSerialize: serialize_clientpb_Beacon, - responseDeserialize: deserialize_clientpb_Beacon, - }, - rmBeacon: { - path: '/rpcpb.SliverRPC/RmBeacon', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Beacon, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_Beacon, - requestDeserialize: deserialize_clientpb_Beacon, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - getBeaconTasks: { - path: '/rpcpb.SliverRPC/GetBeaconTasks', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Beacon, - responseType: clientpb_client_pb.BeaconTasks, - requestSerialize: serialize_clientpb_Beacon, - requestDeserialize: deserialize_clientpb_Beacon, - responseSerialize: serialize_clientpb_BeaconTasks, - responseDeserialize: deserialize_clientpb_BeaconTasks, - }, - getBeaconTaskContent: { - path: '/rpcpb.SliverRPC/GetBeaconTaskContent', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.BeaconTask, - responseType: clientpb_client_pb.BeaconTask, - requestSerialize: serialize_clientpb_BeaconTask, - requestDeserialize: deserialize_clientpb_BeaconTask, - responseSerialize: serialize_clientpb_BeaconTask, - responseDeserialize: deserialize_clientpb_BeaconTask, - }, - cancelBeaconTask: { - path: '/rpcpb.SliverRPC/CancelBeaconTask', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.BeaconTask, - responseType: clientpb_client_pb.BeaconTask, - requestSerialize: serialize_clientpb_BeaconTask, - requestDeserialize: deserialize_clientpb_BeaconTask, - responseSerialize: serialize_clientpb_BeaconTask, - responseDeserialize: deserialize_clientpb_BeaconTask, - }, - // ***Threat monitoring *** -monitorStart: { - path: '/rpcpb.SliverRPC/MonitorStart', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: commonpb_common_pb.Response, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_commonpb_Response, - responseDeserialize: deserialize_commonpb_Response, - }, - monitorStop: { - path: '/rpcpb.SliverRPC/MonitorStop', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - // *** Jobs *** -getJobs: { - path: '/rpcpb.SliverRPC/GetJobs', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Jobs, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Jobs, - responseDeserialize: deserialize_clientpb_Jobs, - }, - killJob: { - path: '/rpcpb.SliverRPC/KillJob', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.KillJobReq, - responseType: clientpb_client_pb.KillJob, - requestSerialize: serialize_clientpb_KillJobReq, - requestDeserialize: deserialize_clientpb_KillJobReq, - responseSerialize: serialize_clientpb_KillJob, - responseDeserialize: deserialize_clientpb_KillJob, - }, - // *** Listeners *** -startMTLSListener: { - path: '/rpcpb.SliverRPC/StartMTLSListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.MTLSListenerReq, - responseType: clientpb_client_pb.MTLSListener, - requestSerialize: serialize_clientpb_MTLSListenerReq, - requestDeserialize: deserialize_clientpb_MTLSListenerReq, - responseSerialize: serialize_clientpb_MTLSListener, - responseDeserialize: deserialize_clientpb_MTLSListener, - }, - startWGListener: { - path: '/rpcpb.SliverRPC/StartWGListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.WGListenerReq, - responseType: clientpb_client_pb.WGListener, - requestSerialize: serialize_clientpb_WGListenerReq, - requestDeserialize: deserialize_clientpb_WGListenerReq, - responseSerialize: serialize_clientpb_WGListener, - responseDeserialize: deserialize_clientpb_WGListener, - }, - startDNSListener: { - path: '/rpcpb.SliverRPC/StartDNSListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.DNSListenerReq, - responseType: clientpb_client_pb.DNSListener, - requestSerialize: serialize_clientpb_DNSListenerReq, - requestDeserialize: deserialize_clientpb_DNSListenerReq, - responseSerialize: serialize_clientpb_DNSListener, - responseDeserialize: deserialize_clientpb_DNSListener, - }, - startHTTPSListener: { - path: '/rpcpb.SliverRPC/StartHTTPSListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.HTTPListenerReq, - responseType: clientpb_client_pb.HTTPListener, - requestSerialize: serialize_clientpb_HTTPListenerReq, - requestDeserialize: deserialize_clientpb_HTTPListenerReq, - responseSerialize: serialize_clientpb_HTTPListener, - responseDeserialize: deserialize_clientpb_HTTPListener, - }, - startHTTPListener: { - path: '/rpcpb.SliverRPC/StartHTTPListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.HTTPListenerReq, - responseType: clientpb_client_pb.HTTPListener, - requestSerialize: serialize_clientpb_HTTPListenerReq, - requestDeserialize: deserialize_clientpb_HTTPListenerReq, - responseSerialize: serialize_clientpb_HTTPListener, - responseDeserialize: deserialize_clientpb_HTTPListener, - }, - // *** Stager Listener *** -startTCPStagerListener: { - path: '/rpcpb.SliverRPC/StartTCPStagerListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.StagerListenerReq, - responseType: clientpb_client_pb.StagerListener, - requestSerialize: serialize_clientpb_StagerListenerReq, - requestDeserialize: deserialize_clientpb_StagerListenerReq, - responseSerialize: serialize_clientpb_StagerListener, - responseDeserialize: deserialize_clientpb_StagerListener, - }, - startHTTPStagerListener: { - path: '/rpcpb.SliverRPC/StartHTTPStagerListener', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.StagerListenerReq, - responseType: clientpb_client_pb.StagerListener, - requestSerialize: serialize_clientpb_StagerListenerReq, - requestDeserialize: deserialize_clientpb_StagerListenerReq, - responseSerialize: serialize_clientpb_StagerListener, - responseDeserialize: deserialize_clientpb_StagerListener, - }, - // *** Loot *** -lootAdd: { - path: '/rpcpb.SliverRPC/LootAdd', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Loot, - responseType: clientpb_client_pb.Loot, - requestSerialize: serialize_clientpb_Loot, - requestDeserialize: deserialize_clientpb_Loot, - responseSerialize: serialize_clientpb_Loot, - responseDeserialize: deserialize_clientpb_Loot, - }, - lootRm: { - path: '/rpcpb.SliverRPC/LootRm', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Loot, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_Loot, - requestDeserialize: deserialize_clientpb_Loot, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - lootUpdate: { - path: '/rpcpb.SliverRPC/LootUpdate', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Loot, - responseType: clientpb_client_pb.Loot, - requestSerialize: serialize_clientpb_Loot, - requestDeserialize: deserialize_clientpb_Loot, - responseSerialize: serialize_clientpb_Loot, - responseDeserialize: deserialize_clientpb_Loot, - }, - lootContent: { - path: '/rpcpb.SliverRPC/LootContent', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Loot, - responseType: clientpb_client_pb.Loot, - requestSerialize: serialize_clientpb_Loot, - requestDeserialize: deserialize_clientpb_Loot, - responseSerialize: serialize_clientpb_Loot, - responseDeserialize: deserialize_clientpb_Loot, - }, - lootAll: { - path: '/rpcpb.SliverRPC/LootAll', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.AllLoot, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_AllLoot, - responseDeserialize: deserialize_clientpb_AllLoot, - }, - lootAllOf: { - path: '/rpcpb.SliverRPC/LootAllOf', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Loot, - responseType: clientpb_client_pb.AllLoot, - requestSerialize: serialize_clientpb_Loot, - requestDeserialize: deserialize_clientpb_Loot, - responseSerialize: serialize_clientpb_AllLoot, - responseDeserialize: deserialize_clientpb_AllLoot, - }, - // *** Hosts *** -hosts: { - path: '/rpcpb.SliverRPC/Hosts', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.AllHosts, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_AllHosts, - responseDeserialize: deserialize_clientpb_AllHosts, - }, - host: { - path: '/rpcpb.SliverRPC/Host', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Host, - responseType: clientpb_client_pb.Host, - requestSerialize: serialize_clientpb_Host, - requestDeserialize: deserialize_clientpb_Host, - responseSerialize: serialize_clientpb_Host, - responseDeserialize: deserialize_clientpb_Host, - }, - hostRm: { - path: '/rpcpb.SliverRPC/HostRm', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Host, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_Host, - requestDeserialize: deserialize_clientpb_Host, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - hostIOCRm: { - path: '/rpcpb.SliverRPC/HostIOCRm', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.IOC, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_IOC, - requestDeserialize: deserialize_clientpb_IOC, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - // *** Implants *** -generate: { - path: '/rpcpb.SliverRPC/Generate', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.GenerateReq, - responseType: clientpb_client_pb.Generate, - requestSerialize: serialize_clientpb_GenerateReq, - requestDeserialize: deserialize_clientpb_GenerateReq, - responseSerialize: serialize_clientpb_Generate, - responseDeserialize: deserialize_clientpb_Generate, - }, - regenerate: { - path: '/rpcpb.SliverRPC/Regenerate', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.RegenerateReq, - responseType: clientpb_client_pb.Generate, - requestSerialize: serialize_clientpb_RegenerateReq, - requestDeserialize: deserialize_clientpb_RegenerateReq, - responseSerialize: serialize_clientpb_Generate, - responseDeserialize: deserialize_clientpb_Generate, - }, - implantBuilds: { - path: '/rpcpb.SliverRPC/ImplantBuilds', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.ImplantBuilds, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_ImplantBuilds, - responseDeserialize: deserialize_clientpb_ImplantBuilds, - }, - deleteImplantBuild: { - path: '/rpcpb.SliverRPC/DeleteImplantBuild', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.DeleteReq, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_DeleteReq, - requestDeserialize: deserialize_clientpb_DeleteReq, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - canaries: { - path: '/rpcpb.SliverRPC/Canaries', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Canaries, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Canaries, - responseDeserialize: deserialize_clientpb_Canaries, - }, - generateWGClientConfig: { - path: '/rpcpb.SliverRPC/GenerateWGClientConfig', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.WGClientConfig, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_WGClientConfig, - responseDeserialize: deserialize_clientpb_WGClientConfig, - }, - generateUniqueIP: { - path: '/rpcpb.SliverRPC/GenerateUniqueIP', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.UniqueWGIP, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_UniqueWGIP, - responseDeserialize: deserialize_clientpb_UniqueWGIP, - }, - implantProfiles: { - path: '/rpcpb.SliverRPC/ImplantProfiles', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.ImplantProfiles, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_ImplantProfiles, - responseDeserialize: deserialize_clientpb_ImplantProfiles, - }, - deleteImplantProfile: { - path: '/rpcpb.SliverRPC/DeleteImplantProfile', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.DeleteReq, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_DeleteReq, - requestDeserialize: deserialize_clientpb_DeleteReq, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - saveImplantProfile: { - path: '/rpcpb.SliverRPC/SaveImplantProfile', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.ImplantProfile, - responseType: clientpb_client_pb.ImplantProfile, - requestSerialize: serialize_clientpb_ImplantProfile, - requestDeserialize: deserialize_clientpb_ImplantProfile, - responseSerialize: serialize_clientpb_ImplantProfile, - responseDeserialize: deserialize_clientpb_ImplantProfile, - }, - msfStage: { - path: '/rpcpb.SliverRPC/MsfStage', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.MsfStagerReq, - responseType: clientpb_client_pb.MsfStager, - requestSerialize: serialize_clientpb_MsfStagerReq, - requestDeserialize: deserialize_clientpb_MsfStagerReq, - responseSerialize: serialize_clientpb_MsfStager, - responseDeserialize: deserialize_clientpb_MsfStager, - }, - shellcodeRDI: { - path: '/rpcpb.SliverRPC/ShellcodeRDI', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.ShellcodeRDIReq, - responseType: clientpb_client_pb.ShellcodeRDI, - requestSerialize: serialize_clientpb_ShellcodeRDIReq, - requestDeserialize: deserialize_clientpb_ShellcodeRDIReq, - responseSerialize: serialize_clientpb_ShellcodeRDI, - responseDeserialize: deserialize_clientpb_ShellcodeRDI, - }, - getCompiler: { - path: '/rpcpb.SliverRPC/GetCompiler', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Compiler, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Compiler, - responseDeserialize: deserialize_clientpb_Compiler, - }, - shellcodeEncoder: { - path: '/rpcpb.SliverRPC/ShellcodeEncoder', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.ShellcodeEncodeReq, - responseType: clientpb_client_pb.ShellcodeEncode, - requestSerialize: serialize_clientpb_ShellcodeEncodeReq, - requestDeserialize: deserialize_clientpb_ShellcodeEncodeReq, - responseSerialize: serialize_clientpb_ShellcodeEncode, - responseDeserialize: deserialize_clientpb_ShellcodeEncode, - }, - shellcodeEncoderMap: { - path: '/rpcpb.SliverRPC/ShellcodeEncoderMap', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.ShellcodeEncoderMap, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_ShellcodeEncoderMap, - responseDeserialize: deserialize_clientpb_ShellcodeEncoderMap, - }, - // *** Websites *** -websites: { - path: '/rpcpb.SliverRPC/Websites', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Websites, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Websites, - responseDeserialize: deserialize_clientpb_Websites, - }, - website: { - path: '/rpcpb.SliverRPC/Website', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Website, - responseType: clientpb_client_pb.Website, - requestSerialize: serialize_clientpb_Website, - requestDeserialize: deserialize_clientpb_Website, - responseSerialize: serialize_clientpb_Website, - responseDeserialize: deserialize_clientpb_Website, - }, - websiteRemove: { - path: '/rpcpb.SliverRPC/WebsiteRemove', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.Website, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_clientpb_Website, - requestDeserialize: deserialize_clientpb_Website, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - websiteAddContent: { - path: '/rpcpb.SliverRPC/WebsiteAddContent', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.WebsiteAddContent, - responseType: clientpb_client_pb.Website, - requestSerialize: serialize_clientpb_WebsiteAddContent, - requestDeserialize: deserialize_clientpb_WebsiteAddContent, - responseSerialize: serialize_clientpb_Website, - responseDeserialize: deserialize_clientpb_Website, - }, - websiteUpdateContent: { - path: '/rpcpb.SliverRPC/WebsiteUpdateContent', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.WebsiteAddContent, - responseType: clientpb_client_pb.Website, - requestSerialize: serialize_clientpb_WebsiteAddContent, - requestDeserialize: deserialize_clientpb_WebsiteAddContent, - responseSerialize: serialize_clientpb_Website, - responseDeserialize: deserialize_clientpb_Website, - }, - websiteRemoveContent: { - path: '/rpcpb.SliverRPC/WebsiteRemoveContent', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.WebsiteRemoveContent, - responseType: clientpb_client_pb.Website, - requestSerialize: serialize_clientpb_WebsiteRemoveContent, - requestDeserialize: deserialize_clientpb_WebsiteRemoveContent, - responseSerialize: serialize_clientpb_Website, - responseDeserialize: deserialize_clientpb_Website, - }, - // *** Session Interactions *** -ping: { - path: '/rpcpb.SliverRPC/Ping', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.Ping, - responseType: sliverpb_sliver_pb.Ping, - requestSerialize: serialize_sliverpb_Ping, - requestDeserialize: deserialize_sliverpb_Ping, - responseSerialize: serialize_sliverpb_Ping, - responseDeserialize: deserialize_sliverpb_Ping, - }, - ps: { - path: '/rpcpb.SliverRPC/Ps', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PsReq, - responseType: sliverpb_sliver_pb.Ps, - requestSerialize: serialize_sliverpb_PsReq, - requestDeserialize: deserialize_sliverpb_PsReq, - responseSerialize: serialize_sliverpb_Ps, - responseDeserialize: deserialize_sliverpb_Ps, - }, - terminate: { - path: '/rpcpb.SliverRPC/Terminate', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.TerminateReq, - responseType: sliverpb_sliver_pb.Terminate, - requestSerialize: serialize_sliverpb_TerminateReq, - requestDeserialize: deserialize_sliverpb_TerminateReq, - responseSerialize: serialize_sliverpb_Terminate, - responseDeserialize: deserialize_sliverpb_Terminate, - }, - ifconfig: { - path: '/rpcpb.SliverRPC/Ifconfig', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.IfconfigReq, - responseType: sliverpb_sliver_pb.Ifconfig, - requestSerialize: serialize_sliverpb_IfconfigReq, - requestDeserialize: deserialize_sliverpb_IfconfigReq, - responseSerialize: serialize_sliverpb_Ifconfig, - responseDeserialize: deserialize_sliverpb_Ifconfig, - }, - netstat: { - path: '/rpcpb.SliverRPC/Netstat', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.NetstatReq, - responseType: sliverpb_sliver_pb.Netstat, - requestSerialize: serialize_sliverpb_NetstatReq, - requestDeserialize: deserialize_sliverpb_NetstatReq, - responseSerialize: serialize_sliverpb_Netstat, - responseDeserialize: deserialize_sliverpb_Netstat, - }, - ls: { - path: '/rpcpb.SliverRPC/Ls', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.LsReq, - responseType: sliverpb_sliver_pb.Ls, - requestSerialize: serialize_sliverpb_LsReq, - requestDeserialize: deserialize_sliverpb_LsReq, - responseSerialize: serialize_sliverpb_Ls, - responseDeserialize: deserialize_sliverpb_Ls, - }, - cd: { - path: '/rpcpb.SliverRPC/Cd', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.CdReq, - responseType: sliverpb_sliver_pb.Pwd, - requestSerialize: serialize_sliverpb_CdReq, - requestDeserialize: deserialize_sliverpb_CdReq, - responseSerialize: serialize_sliverpb_Pwd, - responseDeserialize: deserialize_sliverpb_Pwd, - }, - pwd: { - path: '/rpcpb.SliverRPC/Pwd', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PwdReq, - responseType: sliverpb_sliver_pb.Pwd, - requestSerialize: serialize_sliverpb_PwdReq, - requestDeserialize: deserialize_sliverpb_PwdReq, - responseSerialize: serialize_sliverpb_Pwd, - responseDeserialize: deserialize_sliverpb_Pwd, - }, - mv: { - path: '/rpcpb.SliverRPC/Mv', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.MvReq, - responseType: sliverpb_sliver_pb.Mv, - requestSerialize: serialize_sliverpb_MvReq, - requestDeserialize: deserialize_sliverpb_MvReq, - responseSerialize: serialize_sliverpb_Mv, - responseDeserialize: deserialize_sliverpb_Mv, - }, - rm: { - path: '/rpcpb.SliverRPC/Rm', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RmReq, - responseType: sliverpb_sliver_pb.Rm, - requestSerialize: serialize_sliverpb_RmReq, - requestDeserialize: deserialize_sliverpb_RmReq, - responseSerialize: serialize_sliverpb_Rm, - responseDeserialize: deserialize_sliverpb_Rm, - }, - mkdir: { - path: '/rpcpb.SliverRPC/Mkdir', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.MkdirReq, - responseType: sliverpb_sliver_pb.Mkdir, - requestSerialize: serialize_sliverpb_MkdirReq, - requestDeserialize: deserialize_sliverpb_MkdirReq, - responseSerialize: serialize_sliverpb_Mkdir, - responseDeserialize: deserialize_sliverpb_Mkdir, - }, - download: { - path: '/rpcpb.SliverRPC/Download', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.DownloadReq, - responseType: sliverpb_sliver_pb.Download, - requestSerialize: serialize_sliverpb_DownloadReq, - requestDeserialize: deserialize_sliverpb_DownloadReq, - responseSerialize: serialize_sliverpb_Download, - responseDeserialize: deserialize_sliverpb_Download, - }, - upload: { - path: '/rpcpb.SliverRPC/Upload', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.UploadReq, - responseType: sliverpb_sliver_pb.Upload, - requestSerialize: serialize_sliverpb_UploadReq, - requestDeserialize: deserialize_sliverpb_UploadReq, - responseSerialize: serialize_sliverpb_Upload, - responseDeserialize: deserialize_sliverpb_Upload, - }, - processDump: { - path: '/rpcpb.SliverRPC/ProcessDump', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ProcessDumpReq, - responseType: sliverpb_sliver_pb.ProcessDump, - requestSerialize: serialize_sliverpb_ProcessDumpReq, - requestDeserialize: deserialize_sliverpb_ProcessDumpReq, - responseSerialize: serialize_sliverpb_ProcessDump, - responseDeserialize: deserialize_sliverpb_ProcessDump, - }, - runAs: { - path: '/rpcpb.SliverRPC/RunAs', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RunAsReq, - responseType: sliverpb_sliver_pb.RunAs, - requestSerialize: serialize_sliverpb_RunAsReq, - requestDeserialize: deserialize_sliverpb_RunAsReq, - responseSerialize: serialize_sliverpb_RunAs, - responseDeserialize: deserialize_sliverpb_RunAs, - }, - impersonate: { - path: '/rpcpb.SliverRPC/Impersonate', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ImpersonateReq, - responseType: sliverpb_sliver_pb.Impersonate, - requestSerialize: serialize_sliverpb_ImpersonateReq, - requestDeserialize: deserialize_sliverpb_ImpersonateReq, - responseSerialize: serialize_sliverpb_Impersonate, - responseDeserialize: deserialize_sliverpb_Impersonate, - }, - revToSelf: { - path: '/rpcpb.SliverRPC/RevToSelf', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RevToSelfReq, - responseType: sliverpb_sliver_pb.RevToSelf, - requestSerialize: serialize_sliverpb_RevToSelfReq, - requestDeserialize: deserialize_sliverpb_RevToSelfReq, - responseSerialize: serialize_sliverpb_RevToSelf, - responseDeserialize: deserialize_sliverpb_RevToSelf, - }, - getSystem: { - path: '/rpcpb.SliverRPC/GetSystem', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.GetSystemReq, - responseType: sliverpb_sliver_pb.GetSystem, - requestSerialize: serialize_clientpb_GetSystemReq, - requestDeserialize: deserialize_clientpb_GetSystemReq, - responseSerialize: serialize_sliverpb_GetSystem, - responseDeserialize: deserialize_sliverpb_GetSystem, - }, - task: { - path: '/rpcpb.SliverRPC/Task', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.TaskReq, - responseType: sliverpb_sliver_pb.Task, - requestSerialize: serialize_sliverpb_TaskReq, - requestDeserialize: deserialize_sliverpb_TaskReq, - responseSerialize: serialize_sliverpb_Task, - responseDeserialize: deserialize_sliverpb_Task, - }, - msf: { - path: '/rpcpb.SliverRPC/Msf', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.MSFReq, - responseType: sliverpb_sliver_pb.Task, - requestSerialize: serialize_clientpb_MSFReq, - requestDeserialize: deserialize_clientpb_MSFReq, - responseSerialize: serialize_sliverpb_Task, - responseDeserialize: deserialize_sliverpb_Task, - }, - msfRemote: { - path: '/rpcpb.SliverRPC/MsfRemote', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.MSFRemoteReq, - responseType: sliverpb_sliver_pb.Task, - requestSerialize: serialize_clientpb_MSFRemoteReq, - requestDeserialize: deserialize_clientpb_MSFRemoteReq, - responseSerialize: serialize_sliverpb_Task, - responseDeserialize: deserialize_sliverpb_Task, - }, - executeAssembly: { - path: '/rpcpb.SliverRPC/ExecuteAssembly', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ExecuteAssemblyReq, - responseType: sliverpb_sliver_pb.ExecuteAssembly, - requestSerialize: serialize_sliverpb_ExecuteAssemblyReq, - requestDeserialize: deserialize_sliverpb_ExecuteAssemblyReq, - responseSerialize: serialize_sliverpb_ExecuteAssembly, - responseDeserialize: deserialize_sliverpb_ExecuteAssembly, - }, - migrate: { - path: '/rpcpb.SliverRPC/Migrate', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.MigrateReq, - responseType: sliverpb_sliver_pb.Migrate, - requestSerialize: serialize_clientpb_MigrateReq, - requestDeserialize: deserialize_clientpb_MigrateReq, - responseSerialize: serialize_sliverpb_Migrate, - responseDeserialize: deserialize_sliverpb_Migrate, - }, - execute: { - path: '/rpcpb.SliverRPC/Execute', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ExecuteReq, - responseType: sliverpb_sliver_pb.Execute, - requestSerialize: serialize_sliverpb_ExecuteReq, - requestDeserialize: deserialize_sliverpb_ExecuteReq, - responseSerialize: serialize_sliverpb_Execute, - responseDeserialize: deserialize_sliverpb_Execute, - }, - executeWindows: { - path: '/rpcpb.SliverRPC/ExecuteWindows', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ExecuteWindowsReq, - responseType: sliverpb_sliver_pb.Execute, - requestSerialize: serialize_sliverpb_ExecuteWindowsReq, - requestDeserialize: deserialize_sliverpb_ExecuteWindowsReq, - responseSerialize: serialize_sliverpb_Execute, - responseDeserialize: deserialize_sliverpb_Execute, - }, - sideload: { - path: '/rpcpb.SliverRPC/Sideload', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.SideloadReq, - responseType: sliverpb_sliver_pb.Sideload, - requestSerialize: serialize_sliverpb_SideloadReq, - requestDeserialize: deserialize_sliverpb_SideloadReq, - responseSerialize: serialize_sliverpb_Sideload, - responseDeserialize: deserialize_sliverpb_Sideload, - }, - spawnDll: { - path: '/rpcpb.SliverRPC/SpawnDll', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.InvokeSpawnDllReq, - responseType: sliverpb_sliver_pb.SpawnDll, - requestSerialize: serialize_sliverpb_InvokeSpawnDllReq, - requestDeserialize: deserialize_sliverpb_InvokeSpawnDllReq, - responseSerialize: serialize_sliverpb_SpawnDll, - responseDeserialize: deserialize_sliverpb_SpawnDll, - }, - screenshot: { - path: '/rpcpb.SliverRPC/Screenshot', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ScreenshotReq, - responseType: sliverpb_sliver_pb.Screenshot, - requestSerialize: serialize_sliverpb_ScreenshotReq, - requestDeserialize: deserialize_sliverpb_ScreenshotReq, - responseSerialize: serialize_sliverpb_Screenshot, - responseDeserialize: deserialize_sliverpb_Screenshot, - }, - currentTokenOwner: { - path: '/rpcpb.SliverRPC/CurrentTokenOwner', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.CurrentTokenOwnerReq, - responseType: sliverpb_sliver_pb.CurrentTokenOwner, - requestSerialize: serialize_sliverpb_CurrentTokenOwnerReq, - requestDeserialize: deserialize_sliverpb_CurrentTokenOwnerReq, - responseSerialize: serialize_sliverpb_CurrentTokenOwner, - responseDeserialize: deserialize_sliverpb_CurrentTokenOwner, - }, - // *** Pivots *** -pivotStartListener: { - path: '/rpcpb.SliverRPC/PivotStartListener', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PivotStartListenerReq, - responseType: sliverpb_sliver_pb.PivotListener, - requestSerialize: serialize_sliverpb_PivotStartListenerReq, - requestDeserialize: deserialize_sliverpb_PivotStartListenerReq, - responseSerialize: serialize_sliverpb_PivotListener, - responseDeserialize: deserialize_sliverpb_PivotListener, - }, - pivotStopListener: { - path: '/rpcpb.SliverRPC/PivotStopListener', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PivotStopListenerReq, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_sliverpb_PivotStopListenerReq, - requestDeserialize: deserialize_sliverpb_PivotStopListenerReq, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - pivotSessionListeners: { - path: '/rpcpb.SliverRPC/PivotSessionListeners', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PivotListenersReq, - responseType: sliverpb_sliver_pb.PivotListeners, - requestSerialize: serialize_sliverpb_PivotListenersReq, - requestDeserialize: deserialize_sliverpb_PivotListenersReq, - responseSerialize: serialize_sliverpb_PivotListeners, - responseDeserialize: deserialize_sliverpb_PivotListeners, - }, - pivotGraph: { - path: '/rpcpb.SliverRPC/PivotGraph', - requestStream: false, - responseStream: false, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.PivotGraph, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_PivotGraph, - responseDeserialize: deserialize_clientpb_PivotGraph, - }, - startService: { - path: '/rpcpb.SliverRPC/StartService', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.StartServiceReq, - responseType: sliverpb_sliver_pb.ServiceInfo, - requestSerialize: serialize_sliverpb_StartServiceReq, - requestDeserialize: deserialize_sliverpb_StartServiceReq, - responseSerialize: serialize_sliverpb_ServiceInfo, - responseDeserialize: deserialize_sliverpb_ServiceInfo, - }, - stopService: { - path: '/rpcpb.SliverRPC/StopService', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.StopServiceReq, - responseType: sliverpb_sliver_pb.ServiceInfo, - requestSerialize: serialize_sliverpb_StopServiceReq, - requestDeserialize: deserialize_sliverpb_StopServiceReq, - responseSerialize: serialize_sliverpb_ServiceInfo, - responseDeserialize: deserialize_sliverpb_ServiceInfo, - }, - removeService: { - path: '/rpcpb.SliverRPC/RemoveService', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RemoveServiceReq, - responseType: sliverpb_sliver_pb.ServiceInfo, - requestSerialize: serialize_sliverpb_RemoveServiceReq, - requestDeserialize: deserialize_sliverpb_RemoveServiceReq, - responseSerialize: serialize_sliverpb_ServiceInfo, - responseDeserialize: deserialize_sliverpb_ServiceInfo, - }, - makeToken: { - path: '/rpcpb.SliverRPC/MakeToken', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.MakeTokenReq, - responseType: sliverpb_sliver_pb.MakeToken, - requestSerialize: serialize_sliverpb_MakeTokenReq, - requestDeserialize: deserialize_sliverpb_MakeTokenReq, - responseSerialize: serialize_sliverpb_MakeToken, - responseDeserialize: deserialize_sliverpb_MakeToken, - }, - getEnv: { - path: '/rpcpb.SliverRPC/GetEnv', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.EnvReq, - responseType: sliverpb_sliver_pb.EnvInfo, - requestSerialize: serialize_sliverpb_EnvReq, - requestDeserialize: deserialize_sliverpb_EnvReq, - responseSerialize: serialize_sliverpb_EnvInfo, - responseDeserialize: deserialize_sliverpb_EnvInfo, - }, - setEnv: { - path: '/rpcpb.SliverRPC/SetEnv', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.SetEnvReq, - responseType: sliverpb_sliver_pb.SetEnv, - requestSerialize: serialize_sliverpb_SetEnvReq, - requestDeserialize: deserialize_sliverpb_SetEnvReq, - responseSerialize: serialize_sliverpb_SetEnv, - responseDeserialize: deserialize_sliverpb_SetEnv, - }, - unsetEnv: { - path: '/rpcpb.SliverRPC/UnsetEnv', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.UnsetEnvReq, - responseType: sliverpb_sliver_pb.UnsetEnv, - requestSerialize: serialize_sliverpb_UnsetEnvReq, - requestDeserialize: deserialize_sliverpb_UnsetEnvReq, - responseSerialize: serialize_sliverpb_UnsetEnv, - responseDeserialize: deserialize_sliverpb_UnsetEnv, - }, - backdoor: { - path: '/rpcpb.SliverRPC/Backdoor', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.BackdoorReq, - responseType: sliverpb_sliver_pb.Backdoor, - requestSerialize: serialize_sliverpb_BackdoorReq, - requestDeserialize: deserialize_sliverpb_BackdoorReq, - responseSerialize: serialize_sliverpb_Backdoor, - responseDeserialize: deserialize_sliverpb_Backdoor, - }, - registryRead: { - path: '/rpcpb.SliverRPC/RegistryRead', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistryReadReq, - responseType: sliverpb_sliver_pb.RegistryRead, - requestSerialize: serialize_sliverpb_RegistryReadReq, - requestDeserialize: deserialize_sliverpb_RegistryReadReq, - responseSerialize: serialize_sliverpb_RegistryRead, - responseDeserialize: deserialize_sliverpb_RegistryRead, - }, - registryWrite: { - path: '/rpcpb.SliverRPC/RegistryWrite', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistryWriteReq, - responseType: sliverpb_sliver_pb.RegistryWrite, - requestSerialize: serialize_sliverpb_RegistryWriteReq, - requestDeserialize: deserialize_sliverpb_RegistryWriteReq, - responseSerialize: serialize_sliverpb_RegistryWrite, - responseDeserialize: deserialize_sliverpb_RegistryWrite, - }, - registryCreateKey: { - path: '/rpcpb.SliverRPC/RegistryCreateKey', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistryCreateKeyReq, - responseType: sliverpb_sliver_pb.RegistryCreateKey, - requestSerialize: serialize_sliverpb_RegistryCreateKeyReq, - requestDeserialize: deserialize_sliverpb_RegistryCreateKeyReq, - responseSerialize: serialize_sliverpb_RegistryCreateKey, - responseDeserialize: deserialize_sliverpb_RegistryCreateKey, - }, - registryDeleteKey: { - path: '/rpcpb.SliverRPC/RegistryDeleteKey', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistryDeleteKeyReq, - responseType: sliverpb_sliver_pb.RegistryDeleteKey, - requestSerialize: serialize_sliverpb_RegistryDeleteKeyReq, - requestDeserialize: deserialize_sliverpb_RegistryDeleteKeyReq, - responseSerialize: serialize_sliverpb_RegistryDeleteKey, - responseDeserialize: deserialize_sliverpb_RegistryDeleteKey, - }, - registryListSubKeys: { - path: '/rpcpb.SliverRPC/RegistryListSubKeys', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistrySubKeyListReq, - responseType: sliverpb_sliver_pb.RegistrySubKeyList, - requestSerialize: serialize_sliverpb_RegistrySubKeyListReq, - requestDeserialize: deserialize_sliverpb_RegistrySubKeyListReq, - responseSerialize: serialize_sliverpb_RegistrySubKeyList, - responseDeserialize: deserialize_sliverpb_RegistrySubKeyList, - }, - registryListValues: { - path: '/rpcpb.SliverRPC/RegistryListValues', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegistryListValuesReq, - responseType: sliverpb_sliver_pb.RegistryValuesList, - requestSerialize: serialize_sliverpb_RegistryListValuesReq, - requestDeserialize: deserialize_sliverpb_RegistryListValuesReq, - responseSerialize: serialize_sliverpb_RegistryValuesList, - responseDeserialize: deserialize_sliverpb_RegistryValuesList, - }, - runSSHCommand: { - path: '/rpcpb.SliverRPC/RunSSHCommand', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.SSHCommandReq, - responseType: sliverpb_sliver_pb.SSHCommand, - requestSerialize: serialize_sliverpb_SSHCommandReq, - requestDeserialize: deserialize_sliverpb_SSHCommandReq, - responseSerialize: serialize_sliverpb_SSHCommand, - responseDeserialize: deserialize_sliverpb_SSHCommand, - }, - hijackDLL: { - path: '/rpcpb.SliverRPC/HijackDLL', - requestStream: false, - responseStream: false, - requestType: clientpb_client_pb.DllHijackReq, - responseType: clientpb_client_pb.DllHijack, - requestSerialize: serialize_clientpb_DllHijackReq, - requestDeserialize: deserialize_clientpb_DllHijackReq, - responseSerialize: serialize_clientpb_DllHijack, - responseDeserialize: deserialize_clientpb_DllHijack, - }, - getPrivs: { - path: '/rpcpb.SliverRPC/GetPrivs', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.GetPrivsReq, - responseType: sliverpb_sliver_pb.GetPrivs, - requestSerialize: serialize_sliverpb_GetPrivsReq, - requestDeserialize: deserialize_sliverpb_GetPrivsReq, - responseSerialize: serialize_sliverpb_GetPrivs, - responseDeserialize: deserialize_sliverpb_GetPrivs, - }, - // Beacon only commands -openSession: { - path: '/rpcpb.SliverRPC/OpenSession', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.OpenSession, - responseType: sliverpb_sliver_pb.OpenSession, - requestSerialize: serialize_sliverpb_OpenSession, - requestDeserialize: deserialize_sliverpb_OpenSession, - responseSerialize: serialize_sliverpb_OpenSession, - responseDeserialize: deserialize_sliverpb_OpenSession, - }, - closeSession: { - path: '/rpcpb.SliverRPC/CloseSession', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.CloseSession, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_sliverpb_CloseSession, - requestDeserialize: deserialize_sliverpb_CloseSession, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - // Extensions -registerExtension: { - path: '/rpcpb.SliverRPC/RegisterExtension', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.RegisterExtensionReq, - responseType: sliverpb_sliver_pb.RegisterExtension, - requestSerialize: serialize_sliverpb_RegisterExtensionReq, - requestDeserialize: deserialize_sliverpb_RegisterExtensionReq, - responseSerialize: serialize_sliverpb_RegisterExtension, - responseDeserialize: deserialize_sliverpb_RegisterExtension, - }, - callExtension: { - path: '/rpcpb.SliverRPC/CallExtension', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.CallExtensionReq, - responseType: sliverpb_sliver_pb.CallExtension, - requestSerialize: serialize_sliverpb_CallExtensionReq, - requestDeserialize: deserialize_sliverpb_CallExtensionReq, - responseSerialize: serialize_sliverpb_CallExtension, - responseDeserialize: deserialize_sliverpb_CallExtension, - }, - listExtensions: { - path: '/rpcpb.SliverRPC/ListExtensions', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ListExtensionsReq, - responseType: sliverpb_sliver_pb.ListExtensions, - requestSerialize: serialize_sliverpb_ListExtensionsReq, - requestDeserialize: deserialize_sliverpb_ListExtensionsReq, - responseSerialize: serialize_sliverpb_ListExtensions, - responseDeserialize: deserialize_sliverpb_ListExtensions, - }, - // *** Wireguard Specific *** -wGStartPortForward: { - path: '/rpcpb.SliverRPC/WGStartPortForward', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGPortForwardStartReq, - responseType: sliverpb_sliver_pb.WGPortForward, - requestSerialize: serialize_sliverpb_WGPortForwardStartReq, - requestDeserialize: deserialize_sliverpb_WGPortForwardStartReq, - responseSerialize: serialize_sliverpb_WGPortForward, - responseDeserialize: deserialize_sliverpb_WGPortForward, - }, - wGStopPortForward: { - path: '/rpcpb.SliverRPC/WGStopPortForward', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGPortForwardStopReq, - responseType: sliverpb_sliver_pb.WGPortForward, - requestSerialize: serialize_sliverpb_WGPortForwardStopReq, - requestDeserialize: deserialize_sliverpb_WGPortForwardStopReq, - responseSerialize: serialize_sliverpb_WGPortForward, - responseDeserialize: deserialize_sliverpb_WGPortForward, - }, - wGStartSocks: { - path: '/rpcpb.SliverRPC/WGStartSocks', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGSocksStartReq, - responseType: sliverpb_sliver_pb.WGSocks, - requestSerialize: serialize_sliverpb_WGSocksStartReq, - requestDeserialize: deserialize_sliverpb_WGSocksStartReq, - responseSerialize: serialize_sliverpb_WGSocks, - responseDeserialize: deserialize_sliverpb_WGSocks, - }, - wGStopSocks: { - path: '/rpcpb.SliverRPC/WGStopSocks', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGSocksStopReq, - responseType: sliverpb_sliver_pb.WGSocks, - requestSerialize: serialize_sliverpb_WGSocksStopReq, - requestDeserialize: deserialize_sliverpb_WGSocksStopReq, - responseSerialize: serialize_sliverpb_WGSocks, - responseDeserialize: deserialize_sliverpb_WGSocks, - }, - wGListForwarders: { - path: '/rpcpb.SliverRPC/WGListForwarders', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGTCPForwardersReq, - responseType: sliverpb_sliver_pb.WGTCPForwarders, - requestSerialize: serialize_sliverpb_WGTCPForwardersReq, - requestDeserialize: deserialize_sliverpb_WGTCPForwardersReq, - responseSerialize: serialize_sliverpb_WGTCPForwarders, - responseDeserialize: deserialize_sliverpb_WGTCPForwarders, - }, - wGListSocksServers: { - path: '/rpcpb.SliverRPC/WGListSocksServers', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.WGSocksServersReq, - responseType: sliverpb_sliver_pb.WGSocksServers, - requestSerialize: serialize_sliverpb_WGSocksServersReq, - requestDeserialize: deserialize_sliverpb_WGSocksServersReq, - responseSerialize: serialize_sliverpb_WGSocksServers, - responseDeserialize: deserialize_sliverpb_WGSocksServers, - }, - // *** Realtime Commands *** -shell: { - path: '/rpcpb.SliverRPC/Shell', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.ShellReq, - responseType: sliverpb_sliver_pb.Shell, - requestSerialize: serialize_sliverpb_ShellReq, - requestDeserialize: deserialize_sliverpb_ShellReq, - responseSerialize: serialize_sliverpb_Shell, - responseDeserialize: deserialize_sliverpb_Shell, - }, - portfwd: { - path: '/rpcpb.SliverRPC/Portfwd', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.PortfwdReq, - responseType: sliverpb_sliver_pb.Portfwd, - requestSerialize: serialize_sliverpb_PortfwdReq, - requestDeserialize: deserialize_sliverpb_PortfwdReq, - responseSerialize: serialize_sliverpb_Portfwd, - responseDeserialize: deserialize_sliverpb_Portfwd, - }, - // *** Socks5 *** -createSocks: { - path: '/rpcpb.SliverRPC/CreateSocks', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.Socks, - responseType: sliverpb_sliver_pb.Socks, - requestSerialize: serialize_sliverpb_Socks, - requestDeserialize: deserialize_sliverpb_Socks, - responseSerialize: serialize_sliverpb_Socks, - responseDeserialize: deserialize_sliverpb_Socks, - }, - closeSocks: { - path: '/rpcpb.SliverRPC/CloseSocks', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.Socks, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_sliverpb_Socks, - requestDeserialize: deserialize_sliverpb_Socks, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - socksProxy: { - path: '/rpcpb.SliverRPC/SocksProxy', - requestStream: true, - responseStream: true, - requestType: sliverpb_sliver_pb.SocksData, - responseType: sliverpb_sliver_pb.SocksData, - requestSerialize: serialize_sliverpb_SocksData, - requestDeserialize: deserialize_sliverpb_SocksData, - responseSerialize: serialize_sliverpb_SocksData, - responseDeserialize: deserialize_sliverpb_SocksData, - }, - // *** Tunnels *** -createTunnel: { - path: '/rpcpb.SliverRPC/CreateTunnel', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.Tunnel, - responseType: sliverpb_sliver_pb.Tunnel, - requestSerialize: serialize_sliverpb_Tunnel, - requestDeserialize: deserialize_sliverpb_Tunnel, - responseSerialize: serialize_sliverpb_Tunnel, - responseDeserialize: deserialize_sliverpb_Tunnel, - }, - closeTunnel: { - path: '/rpcpb.SliverRPC/CloseTunnel', - requestStream: false, - responseStream: false, - requestType: sliverpb_sliver_pb.Tunnel, - responseType: commonpb_common_pb.Empty, - requestSerialize: serialize_sliverpb_Tunnel, - requestDeserialize: deserialize_sliverpb_Tunnel, - responseSerialize: serialize_commonpb_Empty, - responseDeserialize: deserialize_commonpb_Empty, - }, - tunnelData: { - path: '/rpcpb.SliverRPC/TunnelData', - requestStream: true, - responseStream: true, - requestType: sliverpb_sliver_pb.TunnelData, - responseType: sliverpb_sliver_pb.TunnelData, - requestSerialize: serialize_sliverpb_TunnelData, - requestDeserialize: deserialize_sliverpb_TunnelData, - responseSerialize: serialize_sliverpb_TunnelData, - responseDeserialize: deserialize_sliverpb_TunnelData, - }, - // *** Events *** -events: { - path: '/rpcpb.SliverRPC/Events', - requestStream: false, - responseStream: true, - requestType: commonpb_common_pb.Empty, - responseType: clientpb_client_pb.Event, - requestSerialize: serialize_commonpb_Empty, - requestDeserialize: deserialize_commonpb_Empty, - responseSerialize: serialize_clientpb_Event, - responseDeserialize: deserialize_clientpb_Event, - }, -}; - -exports.SliverRPCClient = grpc.makeGenericClientConstructor(SliverRPCService); diff --git a/src/pb/rpcpb/services_pb.js b/src/pb/rpcpb/services_pb.js deleted file mode 100644 index 10c72ac..0000000 --- a/src/pb/rpcpb/services_pb.js +++ /dev/null @@ -1,23 +0,0 @@ -// source: rpcpb/services.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = Function('return this')(); - -var commonpb_common_pb = require('../commonpb/common_pb.js'); -goog.object.extend(proto, commonpb_common_pb); -var sliverpb_sliver_pb = require('../sliverpb/sliver_pb.js'); -goog.object.extend(proto, sliverpb_sliver_pb); -var clientpb_client_pb = require('../clientpb/client_pb.js'); -goog.object.extend(proto, clientpb_client_pb); diff --git a/src/pb/sliverpb/sliver.ts b/src/pb/sliverpb/sliver.ts index d47e43b..afbba75 100644 --- a/src/pb/sliverpb/sliver.ts +++ b/src/pb/sliverpb/sliver.ts @@ -1,16891 +1,20642 @@ -/** - * Generated by the protoc-gen-ts. DO NOT EDIT! - * compiler version: 3.15.6 - * source: sliverpb/sliver.proto - * git: https://github.com/thesayyn/protoc-gen-ts */ -import * as dependency_1 from "./../commonpb/common"; -import * as pb_1 from "google-protobuf"; -export namespace sliverpb { - export enum RegistryType { - Unknown = 0, - Binary = 1, - String = 2, - DWORD = 3, - QWORD = 4 - } - export enum PivotType { - TCP = 0, - UDP = 1, - NamedPipe = 2 - } - export enum PeerFailureType { - SEND_FAILURE = 0, - DISCONNECT = 1 - } - export class Envelope extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Type?: number; - Data?: Uint8Array; - UnknownMessageType?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("UnknownMessageType" in data && data.UnknownMessageType != undefined) { - this.UnknownMessageType = data.UnknownMessageType; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Type() { - return pb_1.Message.getField(this, 2) as number; - } - set Type(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Data() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get UnknownMessageType() { - return pb_1.Message.getField(this, 4) as boolean; - } - set UnknownMessageType(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - ID?: number; - Type?: number; - Data?: Uint8Array; - UnknownMessageType?: boolean; - }) { - const message = new Envelope({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Type != null) { - message.Type = data.Type; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.UnknownMessageType != null) { - message.UnknownMessageType = data.UnknownMessageType; - } - return message; - } - toObject() { - const data: { - ID?: number; - Type?: number; - Data?: Uint8Array; - UnknownMessageType?: boolean; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Type != null) { - data.Type = this.Type; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.UnknownMessageType != null) { - data.UnknownMessageType = this.UnknownMessageType; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeInt64(1, this.ID); - if (this.Type !== undefined) - writer.writeUint32(2, this.Type); - if (this.Data !== undefined) - writer.writeBytes(3, this.Data); - if (this.UnknownMessageType !== undefined) - writer.writeBool(4, this.UnknownMessageType); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Envelope { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Envelope(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readInt64(); - break; - case 2: - message.Type = reader.readUint32(); - break; - case 3: - message.Data = reader.readBytes(); - break; - case 4: - message.UnknownMessageType = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Envelope { - return Envelope.deserialize(bytes); - } - } - export class BeaconTasks extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Tasks?: Envelope[]; - NextCheckin?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Tasks" in data && data.Tasks != undefined) { - this.Tasks = data.Tasks; - } - if ("NextCheckin" in data && data.NextCheckin != undefined) { - this.NextCheckin = data.NextCheckin; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Tasks() { - return pb_1.Message.getRepeatedWrapperField(this, Envelope, 2) as Envelope[]; - } - set Tasks(value: Envelope[]) { - pb_1.Message.setRepeatedWrapperField(this, 2, value); - } - get NextCheckin() { - return pb_1.Message.getField(this, 3) as number; - } - set NextCheckin(value: number) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - ID?: string; - Tasks?: ReturnType[]; - NextCheckin?: number; - }) { - const message = new BeaconTasks({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Tasks != null) { - message.Tasks = data.Tasks.map(item => Envelope.fromObject(item)); - } - if (data.NextCheckin != null) { - message.NextCheckin = data.NextCheckin; - } - return message; - } - toObject() { - const data: { - ID?: string; - Tasks?: ReturnType[]; - NextCheckin?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Tasks != null) { - data.Tasks = this.Tasks.map((item: Envelope) => item.toObject()); - } - if (this.NextCheckin != null) { - data.NextCheckin = this.NextCheckin; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (this.Tasks !== undefined) - writer.writeRepeatedMessage(2, this.Tasks, (item: Envelope) => item.serialize(writer)); - if (this.NextCheckin !== undefined) - writer.writeInt64(3, this.NextCheckin); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BeaconTasks { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BeaconTasks(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - reader.readMessage(message.Tasks, () => pb_1.Message.addToRepeatedWrapperField(message, 2, Envelope.deserialize(reader), Envelope)); - break; - case 3: - message.NextCheckin = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): BeaconTasks { - return BeaconTasks.deserialize(bytes); - } - } - export class Register extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Hostname?: string; - Uuid?: string; - Username?: string; - Uid?: string; - Gid?: string; - Os?: string; - Arch?: string; - Pid?: number; - Filename?: string; - ActiveC2?: string; - Version?: string; - ReconnectInterval?: number; - ProxyURL?: string; - ConfigID?: string; - PeerID?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Uuid" in data && data.Uuid != undefined) { - this.Uuid = data.Uuid; - } - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("Uid" in data && data.Uid != undefined) { - this.Uid = data.Uid; - } - if ("Gid" in data && data.Gid != undefined) { - this.Gid = data.Gid; - } - if ("Os" in data && data.Os != undefined) { - this.Os = data.Os; - } - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Filename" in data && data.Filename != undefined) { - this.Filename = data.Filename; - } - if ("ActiveC2" in data && data.ActiveC2 != undefined) { - this.ActiveC2 = data.ActiveC2; - } - if ("Version" in data && data.Version != undefined) { - this.Version = data.Version; - } - if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) { - this.ReconnectInterval = data.ReconnectInterval; - } - if ("ProxyURL" in data && data.ProxyURL != undefined) { - this.ProxyURL = data.ProxyURL; - } - if ("ConfigID" in data && data.ConfigID != undefined) { - this.ConfigID = data.ConfigID; - } - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Hostname() { - return pb_1.Message.getField(this, 2) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Uuid() { - return pb_1.Message.getField(this, 3) as string; - } - set Uuid(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Username() { - return pb_1.Message.getField(this, 4) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Uid() { - return pb_1.Message.getField(this, 5) as string; - } - set Uid(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Gid() { - return pb_1.Message.getField(this, 6) as string; - } - set Gid(value: string) { - pb_1.Message.setField(this, 6, value); - } - get Os() { - return pb_1.Message.getField(this, 7) as string; - } - set Os(value: string) { - pb_1.Message.setField(this, 7, value); - } - get Arch() { - return pb_1.Message.getField(this, 8) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Pid() { - return pb_1.Message.getField(this, 9) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 9, value); - } - get Filename() { - return pb_1.Message.getField(this, 10) as string; - } - set Filename(value: string) { - pb_1.Message.setField(this, 10, value); - } - get ActiveC2() { - return pb_1.Message.getField(this, 11) as string; - } - set ActiveC2(value: string) { - pb_1.Message.setField(this, 11, value); - } - get Version() { - return pb_1.Message.getField(this, 12) as string; - } - set Version(value: string) { - pb_1.Message.setField(this, 12, value); - } - get ReconnectInterval() { - return pb_1.Message.getField(this, 13) as number; - } - set ReconnectInterval(value: number) { - pb_1.Message.setField(this, 13, value); - } - get ProxyURL() { - return pb_1.Message.getField(this, 14) as string; - } - set ProxyURL(value: string) { - pb_1.Message.setField(this, 14, value); - } - get ConfigID() { - return pb_1.Message.getField(this, 16) as string; - } - set ConfigID(value: string) { - pb_1.Message.setField(this, 16, value); - } - get PeerID() { - return pb_1.Message.getField(this, 17) as number; - } - set PeerID(value: number) { - pb_1.Message.setField(this, 17, value); - } - static fromObject(data: { - Name?: string; - Hostname?: string; - Uuid?: string; - Username?: string; - Uid?: string; - Gid?: string; - Os?: string; - Arch?: string; - Pid?: number; - Filename?: string; - ActiveC2?: string; - Version?: string; - ReconnectInterval?: number; - ProxyURL?: string; - ConfigID?: string; - PeerID?: number; - }) { - const message = new Register({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Uuid != null) { - message.Uuid = data.Uuid; - } - if (data.Username != null) { - message.Username = data.Username; - } - if (data.Uid != null) { - message.Uid = data.Uid; - } - if (data.Gid != null) { - message.Gid = data.Gid; - } - if (data.Os != null) { - message.Os = data.Os; - } - if (data.Arch != null) { - message.Arch = data.Arch; - } - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Filename != null) { - message.Filename = data.Filename; - } - if (data.ActiveC2 != null) { - message.ActiveC2 = data.ActiveC2; - } - if (data.Version != null) { - message.Version = data.Version; - } - if (data.ReconnectInterval != null) { - message.ReconnectInterval = data.ReconnectInterval; - } - if (data.ProxyURL != null) { - message.ProxyURL = data.ProxyURL; - } - if (data.ConfigID != null) { - message.ConfigID = data.ConfigID; - } - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - return message; - } - toObject() { - const data: { - Name?: string; - Hostname?: string; - Uuid?: string; - Username?: string; - Uid?: string; - Gid?: string; - Os?: string; - Arch?: string; - Pid?: number; - Filename?: string; - ActiveC2?: string; - Version?: string; - ReconnectInterval?: number; - ProxyURL?: string; - ConfigID?: string; - PeerID?: number; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Uuid != null) { - data.Uuid = this.Uuid; - } - if (this.Username != null) { - data.Username = this.Username; - } - if (this.Uid != null) { - data.Uid = this.Uid; - } - if (this.Gid != null) { - data.Gid = this.Gid; - } - if (this.Os != null) { - data.Os = this.Os; - } - if (this.Arch != null) { - data.Arch = this.Arch; - } - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Filename != null) { - data.Filename = this.Filename; - } - if (this.ActiveC2 != null) { - data.ActiveC2 = this.ActiveC2; - } - if (this.Version != null) { - data.Version = this.Version; - } - if (this.ReconnectInterval != null) { - data.ReconnectInterval = this.ReconnectInterval; - } - if (this.ProxyURL != null) { - data.ProxyURL = this.ProxyURL; - } - if (this.ConfigID != null) { - data.ConfigID = this.ConfigID; - } - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(2, this.Hostname); - if (typeof this.Uuid === "string" && this.Uuid.length) - writer.writeString(3, this.Uuid); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(4, this.Username); - if (typeof this.Uid === "string" && this.Uid.length) - writer.writeString(5, this.Uid); - if (typeof this.Gid === "string" && this.Gid.length) - writer.writeString(6, this.Gid); - if (typeof this.Os === "string" && this.Os.length) - writer.writeString(7, this.Os); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(8, this.Arch); - if (this.Pid !== undefined) - writer.writeInt32(9, this.Pid); - if (typeof this.Filename === "string" && this.Filename.length) - writer.writeString(10, this.Filename); - if (typeof this.ActiveC2 === "string" && this.ActiveC2.length) - writer.writeString(11, this.ActiveC2); - if (typeof this.Version === "string" && this.Version.length) - writer.writeString(12, this.Version); - if (this.ReconnectInterval !== undefined) - writer.writeInt64(13, this.ReconnectInterval); - if (typeof this.ProxyURL === "string" && this.ProxyURL.length) - writer.writeString(14, this.ProxyURL); - if (typeof this.ConfigID === "string" && this.ConfigID.length) - writer.writeString(16, this.ConfigID); - if (this.PeerID !== undefined) - writer.writeInt64(17, this.PeerID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Register { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Register(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.Hostname = reader.readString(); - break; - case 3: - message.Uuid = reader.readString(); - break; - case 4: - message.Username = reader.readString(); - break; - case 5: - message.Uid = reader.readString(); - break; - case 6: - message.Gid = reader.readString(); - break; - case 7: - message.Os = reader.readString(); - break; - case 8: - message.Arch = reader.readString(); - break; - case 9: - message.Pid = reader.readInt32(); - break; - case 10: - message.Filename = reader.readString(); - break; - case 11: - message.ActiveC2 = reader.readString(); - break; - case 12: - message.Version = reader.readString(); - break; - case 13: - message.ReconnectInterval = reader.readInt64(); - break; - case 14: - message.ProxyURL = reader.readString(); - break; - case 16: - message.ConfigID = reader.readString(); - break; - case 17: - message.PeerID = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Register { - return Register.deserialize(bytes); - } - } - export class BeaconRegister extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Interval?: number; - Jitter?: number; - Register?: Register; - NextCheckin?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Interval" in data && data.Interval != undefined) { - this.Interval = data.Interval; - } - if ("Jitter" in data && data.Jitter != undefined) { - this.Jitter = data.Jitter; - } - if ("Register" in data && data.Register != undefined) { - this.Register = data.Register; - } - if ("NextCheckin" in data && data.NextCheckin != undefined) { - this.NextCheckin = data.NextCheckin; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Interval() { - return pb_1.Message.getField(this, 2) as number; - } - set Interval(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Jitter() { - return pb_1.Message.getField(this, 3) as number; - } - set Jitter(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Register() { - return pb_1.Message.getWrapperField(this, Register, 4) as Register; - } - set Register(value: Register) { - pb_1.Message.setWrapperField(this, 4, value); - } - get NextCheckin() { - return pb_1.Message.getField(this, 5) as number; - } - set NextCheckin(value: number) { - pb_1.Message.setField(this, 5, value); - } - static fromObject(data: { - ID?: string; - Interval?: number; - Jitter?: number; - Register?: ReturnType; - NextCheckin?: number; - }) { - const message = new BeaconRegister({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Interval != null) { - message.Interval = data.Interval; - } - if (data.Jitter != null) { - message.Jitter = data.Jitter; - } - if (data.Register != null) { - message.Register = Register.fromObject(data.Register); - } - if (data.NextCheckin != null) { - message.NextCheckin = data.NextCheckin; - } - return message; - } - toObject() { - const data: { - ID?: string; - Interval?: number; - Jitter?: number; - Register?: ReturnType; - NextCheckin?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Interval != null) { - data.Interval = this.Interval; - } - if (this.Jitter != null) { - data.Jitter = this.Jitter; - } - if (this.Register != null) { - data.Register = this.Register.toObject(); - } - if (this.NextCheckin != null) { - data.NextCheckin = this.NextCheckin; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (this.Interval !== undefined) - writer.writeInt64(2, this.Interval); - if (this.Jitter !== undefined) - writer.writeInt64(3, this.Jitter); - if (this.Register !== undefined) - writer.writeMessage(4, this.Register, () => this.Register.serialize(writer)); - if (this.NextCheckin !== undefined) - writer.writeInt64(5, this.NextCheckin); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BeaconRegister { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BeaconRegister(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.Interval = reader.readInt64(); - break; - case 3: - message.Jitter = reader.readInt64(); - break; - case 4: - reader.readMessage(message.Register, () => message.Register = Register.deserialize(reader)); - break; - case 5: - message.NextCheckin = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): BeaconRegister { - return BeaconRegister.deserialize(bytes); - } - } - export class SessionRegister extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Register?: Register; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Register" in data && data.Register != undefined) { - this.Register = data.Register; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Register() { - return pb_1.Message.getWrapperField(this, Register, 2) as Register; - } - set Register(value: Register) { - pb_1.Message.setWrapperField(this, 2, value); - } - static fromObject(data: { - ID?: string; - Register?: ReturnType; - }) { - const message = new SessionRegister({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Register != null) { - message.Register = Register.fromObject(data.Register); - } - return message; - } - toObject() { - const data: { - ID?: string; - Register?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Register != null) { - data.Register = this.Register.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (this.Register !== undefined) - writer.writeMessage(2, this.Register, () => this.Register.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SessionRegister { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SessionRegister(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - reader.readMessage(message.Register, () => message.Register = Register.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SessionRegister { - return SessionRegister.deserialize(bytes); - } - } - export class OpenSession extends pb_1.Message { - constructor(data?: any[] | { - C2s?: string[]; - Delay?: number; - Response?: dependency_1.commonpb.Response; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("C2s" in data && data.C2s != undefined) { - this.C2s = data.C2s; - } - if ("Delay" in data && data.Delay != undefined) { - this.Delay = data.Delay; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get C2s() { - return pb_1.Message.getField(this, 1) as string[]; - } - set C2s(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get Delay() { - return pb_1.Message.getField(this, 2) as number; - } - set Delay(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 8) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - C2s?: string[]; - Delay?: number; - Response?: ReturnType; - Request?: ReturnType; - }) { - const message = new OpenSession({}); - if (data.C2s != null) { - message.C2s = data.C2s; - } - if (data.Delay != null) { - message.Delay = data.Delay; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - C2s?: string[]; - Delay?: number; - Response?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.C2s != null) { - data.C2s = this.C2s; - } - if (this.Delay != null) { - data.Delay = this.Delay; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.C2s !== undefined) - writer.writeRepeatedString(1, this.C2s); - if (this.Delay !== undefined) - writer.writeInt64(2, this.Delay); - if (this.Response !== undefined) - writer.writeMessage(8, this.Response, () => this.Response.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): OpenSession { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new OpenSession(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 2: - message.Delay = reader.readInt64(); - break; - case 8: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): OpenSession { - return OpenSession.deserialize(bytes); - } - } - export class CloseSession extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 8) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - Request?: ReturnType; - }) { - const message = new CloseSession({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(8, this.Response, () => this.Response.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CloseSession { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CloseSession(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 8: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CloseSession { - return CloseSession.deserialize(bytes); - } - } - export class Ping extends pb_1.Message { - constructor(data?: any[] | { - Nonce?: number; - Response?: dependency_1.commonpb.Response; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Nonce" in data && data.Nonce != undefined) { - this.Nonce = data.Nonce; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Nonce() { - return pb_1.Message.getField(this, 1) as number; - } - set Nonce(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 8) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Nonce?: number; - Response?: ReturnType; - Request?: ReturnType; - }) { - const message = new Ping({}); - if (data.Nonce != null) { - message.Nonce = data.Nonce; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Nonce?: number; - Response?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.Nonce != null) { - data.Nonce = this.Nonce; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Nonce !== undefined) - writer.writeInt32(1, this.Nonce); - if (this.Response !== undefined) - writer.writeMessage(8, this.Response, () => this.Response.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Ping { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Ping(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Nonce = reader.readInt32(); - break; - case 8: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Ping { - return Ping.deserialize(bytes); - } - } - export class KillReq extends pb_1.Message { - constructor(data?: any[] | { - Force?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Force" in data && data.Force != undefined) { - this.Force = data.Force; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Force() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Force(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Force?: boolean; - Request?: ReturnType; - }) { - const message = new KillReq({}); - if (data.Force != null) { - message.Force = data.Force; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Force?: boolean; - Request?: ReturnType; - } = {}; - if (this.Force != null) { - data.Force = this.Force; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Force !== undefined) - writer.writeBool(1, this.Force); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): KillReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new KillReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Force = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): KillReq { - return KillReq.deserialize(bytes); - } - } - export class PsReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new PsReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PsReq { - return PsReq.deserialize(bytes); - } - } - export class Ps extends pb_1.Message { - constructor(data?: any[] | { - Processes?: dependency_1.commonpb.Process[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Processes" in data && data.Processes != undefined) { - this.Processes = data.Processes; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Processes() { - return pb_1.Message.getRepeatedWrapperField(this, dependency_1.commonpb.Process, 1) as dependency_1.commonpb.Process[]; - } - set Processes(value: dependency_1.commonpb.Process[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Processes?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new Ps({}); - if (data.Processes != null) { - message.Processes = data.Processes.map(item => dependency_1.commonpb.Process.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Processes?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Processes != null) { - data.Processes = this.Processes.map((item: dependency_1.commonpb.Process) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Processes !== undefined) - writer.writeRepeatedMessage(1, this.Processes, (item: dependency_1.commonpb.Process) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Ps { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Ps(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Processes, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.commonpb.Process.deserialize(reader), dependency_1.commonpb.Process)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Ps { - return Ps.deserialize(bytes); - } - } - export class TerminateReq extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Force?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Force" in data && data.Force != undefined) { - this.Force = data.Force; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Force() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Force(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Pid?: number; - Force?: boolean; - Request?: ReturnType; - }) { - const message = new TerminateReq({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Force != null) { - message.Force = data.Force; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Pid?: number; - Force?: boolean; - Request?: ReturnType; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Force != null) { - data.Force = this.Force; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeInt32(1, this.Pid); - if (this.Force !== undefined) - writer.writeBool(2, this.Force); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TerminateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TerminateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readInt32(); - break; - case 2: - message.Force = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): TerminateReq { - return TerminateReq.deserialize(bytes); - } - } - export class Terminate extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Pid?: number; - Response?: ReturnType; - }) { - const message = new Terminate({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Pid?: number; - Response?: ReturnType; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeInt32(1, this.Pid); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Terminate { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Terminate(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Terminate { - return Terminate.deserialize(bytes); - } - } - export class IfconfigReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new IfconfigReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): IfconfigReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new IfconfigReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): IfconfigReq { - return IfconfigReq.deserialize(bytes); - } - } - export class Ifconfig extends pb_1.Message { - constructor(data?: any[] | { - NetInterfaces?: NetInterface[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("NetInterfaces" in data && data.NetInterfaces != undefined) { - this.NetInterfaces = data.NetInterfaces; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get NetInterfaces() { - return pb_1.Message.getRepeatedWrapperField(this, NetInterface, 1) as NetInterface[]; - } - set NetInterfaces(value: NetInterface[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - NetInterfaces?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new Ifconfig({}); - if (data.NetInterfaces != null) { - message.NetInterfaces = data.NetInterfaces.map(item => NetInterface.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - NetInterfaces?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.NetInterfaces != null) { - data.NetInterfaces = this.NetInterfaces.map((item: NetInterface) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.NetInterfaces !== undefined) - writer.writeRepeatedMessage(1, this.NetInterfaces, (item: NetInterface) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Ifconfig { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Ifconfig(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.NetInterfaces, () => pb_1.Message.addToRepeatedWrapperField(message, 1, NetInterface.deserialize(reader), NetInterface)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Ifconfig { - return Ifconfig.deserialize(bytes); - } - } - export class NetInterface extends pb_1.Message { - constructor(data?: any[] | { - Index?: number; - Name?: string; - MAC?: string; - IPAddresses?: string[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Index" in data && data.Index != undefined) { - this.Index = data.Index; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("MAC" in data && data.MAC != undefined) { - this.MAC = data.MAC; - } - if ("IPAddresses" in data && data.IPAddresses != undefined) { - this.IPAddresses = data.IPAddresses; - } - } - } - get Index() { - return pb_1.Message.getField(this, 1) as number; - } - set Index(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - get MAC() { - return pb_1.Message.getField(this, 3) as string; - } - set MAC(value: string) { - pb_1.Message.setField(this, 3, value); - } - get IPAddresses() { - return pb_1.Message.getField(this, 4) as string[]; - } - set IPAddresses(value: string[]) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - Index?: number; - Name?: string; - MAC?: string; - IPAddresses?: string[]; - }) { - const message = new NetInterface({}); - if (data.Index != null) { - message.Index = data.Index; - } - if (data.Name != null) { - message.Name = data.Name; - } - if (data.MAC != null) { - message.MAC = data.MAC; - } - if (data.IPAddresses != null) { - message.IPAddresses = data.IPAddresses; - } - return message; - } - toObject() { - const data: { - Index?: number; - Name?: string; - MAC?: string; - IPAddresses?: string[]; - } = {}; - if (this.Index != null) { - data.Index = this.Index; - } - if (this.Name != null) { - data.Name = this.Name; - } - if (this.MAC != null) { - data.MAC = this.MAC; - } - if (this.IPAddresses != null) { - data.IPAddresses = this.IPAddresses; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Index !== undefined) - writer.writeInt32(1, this.Index); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (typeof this.MAC === "string" && this.MAC.length) - writer.writeString(3, this.MAC); - if (this.IPAddresses !== undefined) - writer.writeRepeatedString(4, this.IPAddresses); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NetInterface { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NetInterface(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Index = reader.readInt32(); - break; - case 2: - message.Name = reader.readString(); - break; - case 3: - message.MAC = reader.readString(); - break; - case 4: - pb_1.Message.addToRepeatedField(message, 4, reader.readString()); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): NetInterface { - return NetInterface.deserialize(bytes); - } - } - export class LsReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Request?: ReturnType; - }) { - const message = new LsReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): LsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new LsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): LsReq { - return LsReq.deserialize(bytes); - } - } - export class Ls extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Exists?: boolean; - Files?: FileInfo[]; - timezone?: string; - timezoneOffset?: number; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Exists" in data && data.Exists != undefined) { - this.Exists = data.Exists; - } - if ("Files" in data && data.Files != undefined) { - this.Files = data.Files; - } - if ("timezone" in data && data.timezone != undefined) { - this.timezone = data.timezone; - } - if ("timezoneOffset" in data && data.timezoneOffset != undefined) { - this.timezoneOffset = data.timezoneOffset; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Exists() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Exists(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Files() { - return pb_1.Message.getRepeatedWrapperField(this, FileInfo, 3) as FileInfo[]; - } - set Files(value: FileInfo[]) { - pb_1.Message.setRepeatedWrapperField(this, 3, value); - } - get timezone() { - return pb_1.Message.getField(this, 4) as string; - } - set timezone(value: string) { - pb_1.Message.setField(this, 4, value); - } - get timezoneOffset() { - return pb_1.Message.getField(this, 5) as number; - } - set timezoneOffset(value: number) { - pb_1.Message.setField(this, 5, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Exists?: boolean; - Files?: ReturnType[]; - timezone?: string; - timezoneOffset?: number; - Response?: ReturnType; - }) { - const message = new Ls({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Exists != null) { - message.Exists = data.Exists; - } - if (data.Files != null) { - message.Files = data.Files.map(item => FileInfo.fromObject(item)); - } - if (data.timezone != null) { - message.timezone = data.timezone; - } - if (data.timezoneOffset != null) { - message.timezoneOffset = data.timezoneOffset; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Exists?: boolean; - Files?: ReturnType[]; - timezone?: string; - timezoneOffset?: number; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Exists != null) { - data.Exists = this.Exists; - } - if (this.Files != null) { - data.Files = this.Files.map((item: FileInfo) => item.toObject()); - } - if (this.timezone != null) { - data.timezone = this.timezone; - } - if (this.timezoneOffset != null) { - data.timezoneOffset = this.timezoneOffset; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Exists !== undefined) - writer.writeBool(2, this.Exists); - if (this.Files !== undefined) - writer.writeRepeatedMessage(3, this.Files, (item: FileInfo) => item.serialize(writer)); - if (typeof this.timezone === "string" && this.timezone.length) - writer.writeString(4, this.timezone); - if (this.timezoneOffset !== undefined) - writer.writeInt32(5, this.timezoneOffset); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Ls { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Ls(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.Exists = reader.readBool(); - break; - case 3: - reader.readMessage(message.Files, () => pb_1.Message.addToRepeatedWrapperField(message, 3, FileInfo.deserialize(reader), FileInfo)); - break; - case 4: - message.timezone = reader.readString(); - break; - case 5: - message.timezoneOffset = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Ls { - return Ls.deserialize(bytes); - } - } - export class FileInfo extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - IsDir?: boolean; - Size?: number; - ModTime?: number; - Mode?: string; - Link?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("IsDir" in data && data.IsDir != undefined) { - this.IsDir = data.IsDir; - } - if ("Size" in data && data.Size != undefined) { - this.Size = data.Size; - } - if ("ModTime" in data && data.ModTime != undefined) { - this.ModTime = data.ModTime; - } - if ("Mode" in data && data.Mode != undefined) { - this.Mode = data.Mode; - } - if ("Link" in data && data.Link != undefined) { - this.Link = data.Link; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get IsDir() { - return pb_1.Message.getField(this, 2) as boolean; - } - set IsDir(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Size() { - return pb_1.Message.getField(this, 3) as number; - } - set Size(value: number) { - pb_1.Message.setField(this, 3, value); - } - get ModTime() { - return pb_1.Message.getField(this, 4) as number; - } - set ModTime(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Mode() { - return pb_1.Message.getField(this, 5) as string; - } - set Mode(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Link() { - return pb_1.Message.getField(this, 6) as string; - } - set Link(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - Name?: string; - IsDir?: boolean; - Size?: number; - ModTime?: number; - Mode?: string; - Link?: string; - }) { - const message = new FileInfo({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.IsDir != null) { - message.IsDir = data.IsDir; - } - if (data.Size != null) { - message.Size = data.Size; - } - if (data.ModTime != null) { - message.ModTime = data.ModTime; - } - if (data.Mode != null) { - message.Mode = data.Mode; - } - if (data.Link != null) { - message.Link = data.Link; - } - return message; - } - toObject() { - const data: { - Name?: string; - IsDir?: boolean; - Size?: number; - ModTime?: number; - Mode?: string; - Link?: string; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.IsDir != null) { - data.IsDir = this.IsDir; - } - if (this.Size != null) { - data.Size = this.Size; - } - if (this.ModTime != null) { - data.ModTime = this.ModTime; - } - if (this.Mode != null) { - data.Mode = this.Mode; - } - if (this.Link != null) { - data.Link = this.Link; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.IsDir !== undefined) - writer.writeBool(2, this.IsDir); - if (this.Size !== undefined) - writer.writeInt64(3, this.Size); - if (this.ModTime !== undefined) - writer.writeInt64(4, this.ModTime); - if (typeof this.Mode === "string" && this.Mode.length) - writer.writeString(5, this.Mode); - if (typeof this.Link === "string" && this.Link.length) - writer.writeString(6, this.Link); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): FileInfo { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new FileInfo(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.IsDir = reader.readBool(); - break; - case 3: - message.Size = reader.readInt64(); - break; - case 4: - message.ModTime = reader.readInt64(); - break; - case 5: - message.Mode = reader.readString(); - break; - case 6: - message.Link = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): FileInfo { - return FileInfo.deserialize(bytes); - } - } - export class CdReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Request?: ReturnType; - }) { - const message = new CdReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CdReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CdReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CdReq { - return CdReq.deserialize(bytes); - } - } - export class PwdReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new PwdReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PwdReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PwdReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PwdReq { - return PwdReq.deserialize(bytes); - } - } - export class Pwd extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Response?: ReturnType; - }) { - const message = new Pwd({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Pwd { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Pwd(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Pwd { - return Pwd.deserialize(bytes); - } - } - export class RmReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Recursive?: boolean; - Force?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Recursive" in data && data.Recursive != undefined) { - this.Recursive = data.Recursive; - } - if ("Force" in data && data.Force != undefined) { - this.Force = data.Force; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Recursive() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Recursive(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Force() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Force(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Recursive?: boolean; - Force?: boolean; - Request?: ReturnType; - }) { - const message = new RmReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Recursive != null) { - message.Recursive = data.Recursive; - } - if (data.Force != null) { - message.Force = data.Force; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Recursive?: boolean; - Force?: boolean; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Recursive != null) { - data.Recursive = this.Recursive; - } - if (this.Force != null) { - data.Force = this.Force; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Recursive !== undefined) - writer.writeBool(2, this.Recursive); - if (this.Force !== undefined) - writer.writeBool(3, this.Force); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RmReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RmReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.Recursive = reader.readBool(); - break; - case 3: - message.Force = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RmReq { - return RmReq.deserialize(bytes); - } - } - export class Rm extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Response?: ReturnType; - }) { - const message = new Rm({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Rm { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Rm(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Rm { - return Rm.deserialize(bytes); - } - } - export class MvReq extends pb_1.Message { - constructor(data?: any[] | { - Src?: string; - Dst?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Src" in data && data.Src != undefined) { - this.Src = data.Src; - } - if ("Dst" in data && data.Dst != undefined) { - this.Dst = data.Dst; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Src() { - return pb_1.Message.getField(this, 1) as string; - } - set Src(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Dst() { - return pb_1.Message.getField(this, 2) as string; - } - set Dst(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Src?: string; - Dst?: string; - Request?: ReturnType; - }) { - const message = new MvReq({}); - if (data.Src != null) { - message.Src = data.Src; - } - if (data.Dst != null) { - message.Dst = data.Dst; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Src?: string; - Dst?: string; - Request?: ReturnType; - } = {}; - if (this.Src != null) { - data.Src = this.Src; - } - if (this.Dst != null) { - data.Dst = this.Dst; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Src === "string" && this.Src.length) - writer.writeString(1, this.Src); - if (typeof this.Dst === "string" && this.Dst.length) - writer.writeString(2, this.Dst); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MvReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MvReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Src = reader.readString(); - break; - case 2: - message.Dst = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MvReq { - return MvReq.deserialize(bytes); - } - } - export class Mv extends pb_1.Message { - constructor(data?: any[] | { - Src?: string; - Dst?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Src" in data && data.Src != undefined) { - this.Src = data.Src; - } - if ("Dst" in data && data.Dst != undefined) { - this.Dst = data.Dst; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Src() { - return pb_1.Message.getField(this, 1) as string; - } - set Src(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Dst() { - return pb_1.Message.getField(this, 2) as string; - } - set Dst(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Src?: string; - Dst?: string; - Response?: ReturnType; - }) { - const message = new Mv({}); - if (data.Src != null) { - message.Src = data.Src; - } - if (data.Dst != null) { - message.Dst = data.Dst; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Src?: string; - Dst?: string; - Response?: ReturnType; - } = {}; - if (this.Src != null) { - data.Src = this.Src; - } - if (this.Dst != null) { - data.Dst = this.Dst; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Src === "string" && this.Src.length) - writer.writeString(1, this.Src); - if (typeof this.Dst === "string" && this.Dst.length) - writer.writeString(2, this.Dst); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Mv { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Mv(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Src = reader.readString(); - break; - case 2: - message.Dst = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Mv { - return Mv.deserialize(bytes); - } - } - export class MkdirReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Request?: ReturnType; - }) { - const message = new MkdirReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MkdirReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MkdirReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MkdirReq { - return MkdirReq.deserialize(bytes); - } - } - export class Mkdir extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Response?: ReturnType; - }) { - const message = new Mkdir({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Mkdir { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Mkdir(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Mkdir { - return Mkdir.deserialize(bytes); - } - } - export class DownloadReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Start?: number; - Stop?: number; - Recurse?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Start" in data && data.Start != undefined) { - this.Start = data.Start; - } - if ("Stop" in data && data.Stop != undefined) { - this.Stop = data.Stop; - } - if ("Recurse" in data && data.Recurse != undefined) { - this.Recurse = data.Recurse; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Start() { - return pb_1.Message.getField(this, 2) as number; - } - set Start(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Stop() { - return pb_1.Message.getField(this, 3) as number; - } - set Stop(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Recurse() { - return pb_1.Message.getField(this, 4) as boolean; - } - set Recurse(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Start?: number; - Stop?: number; - Recurse?: boolean; - Request?: ReturnType; - }) { - const message = new DownloadReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Start != null) { - message.Start = data.Start; - } - if (data.Stop != null) { - message.Stop = data.Stop; - } - if (data.Recurse != null) { - message.Recurse = data.Recurse; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Start?: number; - Stop?: number; - Recurse?: boolean; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Start != null) { - data.Start = this.Start; - } - if (this.Stop != null) { - data.Stop = this.Stop; - } - if (this.Recurse != null) { - data.Recurse = this.Recurse; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Start !== undefined) - writer.writeInt64(2, this.Start); - if (this.Stop !== undefined) - writer.writeInt64(3, this.Stop); - if (this.Recurse !== undefined) - writer.writeBool(4, this.Recurse); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DownloadReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DownloadReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.Start = reader.readInt64(); - break; - case 3: - message.Stop = reader.readInt64(); - break; - case 4: - message.Recurse = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DownloadReq { - return DownloadReq.deserialize(bytes); - } - } - export class Download extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Encoder?: string; - Exists?: boolean; - Start?: number; - Stop?: number; - Data?: Uint8Array; - IsDir?: boolean; - ReadFiles?: number; - UnreadableFiles?: number; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("Exists" in data && data.Exists != undefined) { - this.Exists = data.Exists; - } - if ("Start" in data && data.Start != undefined) { - this.Start = data.Start; - } - if ("Stop" in data && data.Stop != undefined) { - this.Stop = data.Stop; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("IsDir" in data && data.IsDir != undefined) { - this.IsDir = data.IsDir; - } - if ("ReadFiles" in data && data.ReadFiles != undefined) { - this.ReadFiles = data.ReadFiles; - } - if ("UnreadableFiles" in data && data.UnreadableFiles != undefined) { - this.UnreadableFiles = data.UnreadableFiles; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Encoder() { - return pb_1.Message.getField(this, 2) as string; - } - set Encoder(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Exists() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Exists(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get Start() { - return pb_1.Message.getField(this, 4) as number; - } - set Start(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Stop() { - return pb_1.Message.getField(this, 5) as number; - } - set Stop(value: number) { - pb_1.Message.setField(this, 5, value); - } - get Data() { - return pb_1.Message.getField(this, 6) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 6, value); - } - get IsDir() { - return pb_1.Message.getField(this, 7) as boolean; - } - set IsDir(value: boolean) { - pb_1.Message.setField(this, 7, value); - } - get ReadFiles() { - return pb_1.Message.getField(this, 8) as number; - } - set ReadFiles(value: number) { - pb_1.Message.setField(this, 8, value); - } - get UnreadableFiles() { - return pb_1.Message.getField(this, 10) as number; - } - set UnreadableFiles(value: number) { - pb_1.Message.setField(this, 10, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Encoder?: string; - Exists?: boolean; - Start?: number; - Stop?: number; - Data?: Uint8Array; - IsDir?: boolean; - ReadFiles?: number; - UnreadableFiles?: number; - Response?: ReturnType; - }) { - const message = new Download({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.Exists != null) { - message.Exists = data.Exists; - } - if (data.Start != null) { - message.Start = data.Start; - } - if (data.Stop != null) { - message.Stop = data.Stop; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.IsDir != null) { - message.IsDir = data.IsDir; - } - if (data.ReadFiles != null) { - message.ReadFiles = data.ReadFiles; - } - if (data.UnreadableFiles != null) { - message.UnreadableFiles = data.UnreadableFiles; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Encoder?: string; - Exists?: boolean; - Start?: number; - Stop?: number; - Data?: Uint8Array; - IsDir?: boolean; - ReadFiles?: number; - UnreadableFiles?: number; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.Exists != null) { - data.Exists = this.Exists; - } - if (this.Start != null) { - data.Start = this.Start; - } - if (this.Stop != null) { - data.Stop = this.Stop; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.IsDir != null) { - data.IsDir = this.IsDir; - } - if (this.ReadFiles != null) { - data.ReadFiles = this.ReadFiles; - } - if (this.UnreadableFiles != null) { - data.UnreadableFiles = this.UnreadableFiles; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (typeof this.Encoder === "string" && this.Encoder.length) - writer.writeString(2, this.Encoder); - if (this.Exists !== undefined) - writer.writeBool(3, this.Exists); - if (this.Start !== undefined) - writer.writeInt64(4, this.Start); - if (this.Stop !== undefined) - writer.writeInt64(5, this.Stop); - if (this.Data !== undefined) - writer.writeBytes(6, this.Data); - if (this.IsDir !== undefined) - writer.writeBool(7, this.IsDir); - if (this.ReadFiles !== undefined) - writer.writeInt32(8, this.ReadFiles); - if (this.UnreadableFiles !== undefined) - writer.writeInt32(10, this.UnreadableFiles); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Download { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Download(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.Encoder = reader.readString(); - break; - case 3: - message.Exists = reader.readBool(); - break; - case 4: - message.Start = reader.readInt64(); - break; - case 5: - message.Stop = reader.readInt64(); - break; - case 6: - message.Data = reader.readBytes(); - break; - case 7: - message.IsDir = reader.readBool(); - break; - case 8: - message.ReadFiles = reader.readInt32(); - break; - case 10: - message.UnreadableFiles = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Download { - return Download.deserialize(bytes); - } - } - export class UploadReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Encoder?: string; - Data?: Uint8Array; - IsIOC?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("IsIOC" in data && data.IsIOC != undefined) { - this.IsIOC = data.IsIOC; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Encoder() { - return pb_1.Message.getField(this, 2) as string; - } - set Encoder(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Data() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get IsIOC() { - return pb_1.Message.getField(this, 4) as boolean; - } - set IsIOC(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Encoder?: string; - Data?: Uint8Array; - IsIOC?: boolean; - Request?: ReturnType; - }) { - const message = new UploadReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.IsIOC != null) { - message.IsIOC = data.IsIOC; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Encoder?: string; - Data?: Uint8Array; - IsIOC?: boolean; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.IsIOC != null) { - data.IsIOC = this.IsIOC; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (typeof this.Encoder === "string" && this.Encoder.length) - writer.writeString(2, this.Encoder); - if (this.Data !== undefined) - writer.writeBytes(3, this.Data); - if (this.IsIOC !== undefined) - writer.writeBool(4, this.IsIOC); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UploadReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UploadReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.Encoder = reader.readString(); - break; - case 3: - message.Data = reader.readBytes(); - break; - case 4: - message.IsIOC = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): UploadReq { - return UploadReq.deserialize(bytes); - } - } - export class Upload extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Response?: ReturnType; - }) { - const message = new Upload({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Upload { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Upload(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Upload { - return Upload.deserialize(bytes); - } - } - export class ProcessDumpReq extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Timeout?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Timeout" in data && data.Timeout != undefined) { - this.Timeout = data.Timeout; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Timeout() { - return pb_1.Message.getField(this, 2) as number; - } - set Timeout(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Pid?: number; - Timeout?: number; - Request?: ReturnType; - }) { - const message = new ProcessDumpReq({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Timeout != null) { - message.Timeout = data.Timeout; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Pid?: number; - Timeout?: number; - Request?: ReturnType; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Timeout != null) { - data.Timeout = this.Timeout; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeInt32(1, this.Pid); - if (this.Timeout !== undefined) - writer.writeInt32(2, this.Timeout); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ProcessDumpReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ProcessDumpReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readInt32(); - break; - case 2: - message.Timeout = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ProcessDumpReq { - return ProcessDumpReq.deserialize(bytes); - } - } - export class ProcessDump extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - Response?: ReturnType; - }) { - const message = new ProcessDump({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - Response?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ProcessDump { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ProcessDump(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ProcessDump { - return ProcessDump.deserialize(bytes); - } - } - export class RunAsReq extends pb_1.Message { - constructor(data?: any[] | { - Username?: string; - ProcessName?: string; - Args?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("ProcessName" in data && data.ProcessName != undefined) { - this.ProcessName = data.ProcessName; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Username() { - return pb_1.Message.getField(this, 1) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ProcessName() { - return pb_1.Message.getField(this, 2) as string; - } - set ProcessName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Args() { - return pb_1.Message.getField(this, 3) as string; - } - set Args(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Username?: string; - ProcessName?: string; - Args?: string; - Request?: ReturnType; - }) { - const message = new RunAsReq({}); - if (data.Username != null) { - message.Username = data.Username; - } - if (data.ProcessName != null) { - message.ProcessName = data.ProcessName; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Username?: string; - ProcessName?: string; - Args?: string; - Request?: ReturnType; - } = {}; - if (this.Username != null) { - data.Username = this.Username; - } - if (this.ProcessName != null) { - data.ProcessName = this.ProcessName; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(1, this.Username); - if (typeof this.ProcessName === "string" && this.ProcessName.length) - writer.writeString(2, this.ProcessName); - if (typeof this.Args === "string" && this.Args.length) - writer.writeString(3, this.Args); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RunAsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RunAsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Username = reader.readString(); - break; - case 2: - message.ProcessName = reader.readString(); - break; - case 3: - message.Args = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RunAsReq { - return RunAsReq.deserialize(bytes); - } - } - export class RunAs extends pb_1.Message { - constructor(data?: any[] | { - Output?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Output() { - return pb_1.Message.getField(this, 1) as string; - } - set Output(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Output?: string; - Response?: ReturnType; - }) { - const message = new RunAs({}); - if (data.Output != null) { - message.Output = data.Output; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Output?: string; - Response?: ReturnType; - } = {}; - if (this.Output != null) { - data.Output = this.Output; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Output === "string" && this.Output.length) - writer.writeString(1, this.Output); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RunAs { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RunAs(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Output = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RunAs { - return RunAs.deserialize(bytes); - } - } - export class ImpersonateReq extends pb_1.Message { - constructor(data?: any[] | { - Username?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Username() { - return pb_1.Message.getField(this, 1) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Username?: string; - Request?: ReturnType; - }) { - const message = new ImpersonateReq({}); - if (data.Username != null) { - message.Username = data.Username; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Username?: string; - Request?: ReturnType; - } = {}; - if (this.Username != null) { - data.Username = this.Username; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(1, this.Username); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ImpersonateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ImpersonateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Username = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ImpersonateReq { - return ImpersonateReq.deserialize(bytes); - } - } - export class Impersonate extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new Impersonate({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Impersonate { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Impersonate(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Impersonate { - return Impersonate.deserialize(bytes); - } - } - export class RevToSelfReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new RevToSelfReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RevToSelfReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RevToSelfReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RevToSelfReq { - return RevToSelfReq.deserialize(bytes); - } - } - export class RevToSelf extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new RevToSelf({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RevToSelf { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RevToSelf(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RevToSelf { - return RevToSelf.deserialize(bytes); - } - } - export class CurrentTokenOwnerReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new CurrentTokenOwnerReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CurrentTokenOwnerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CurrentTokenOwnerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CurrentTokenOwnerReq { - return CurrentTokenOwnerReq.deserialize(bytes); - } - } - export class CurrentTokenOwner extends pb_1.Message { - constructor(data?: any[] | { - Output?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Output() { - return pb_1.Message.getField(this, 1) as string; - } - set Output(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Output?: string; - Response?: ReturnType; - }) { - const message = new CurrentTokenOwner({}); - if (data.Output != null) { - message.Output = data.Output; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Output?: string; - Response?: ReturnType; - } = {}; - if (this.Output != null) { - data.Output = this.Output; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Output === "string" && this.Output.length) - writer.writeString(1, this.Output); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CurrentTokenOwner { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CurrentTokenOwner(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Output = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CurrentTokenOwner { - return CurrentTokenOwner.deserialize(bytes); - } - } - export class InvokeGetSystemReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - HostingProcess?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("HostingProcess" in data && data.HostingProcess != undefined) { - this.HostingProcess = data.HostingProcess; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get HostingProcess() { - return pb_1.Message.getField(this, 2) as string; - } - set HostingProcess(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - HostingProcess?: string; - Request?: ReturnType; - }) { - const message = new InvokeGetSystemReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.HostingProcess != null) { - message.HostingProcess = data.HostingProcess; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - HostingProcess?: string; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.HostingProcess != null) { - data.HostingProcess = this.HostingProcess; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.HostingProcess === "string" && this.HostingProcess.length) - writer.writeString(2, this.HostingProcess); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InvokeGetSystemReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InvokeGetSystemReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.HostingProcess = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): InvokeGetSystemReq { - return InvokeGetSystemReq.deserialize(bytes); - } - } - export class GetSystem extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new GetSystem({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetSystem { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetSystem(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GetSystem { - return GetSystem.deserialize(bytes); - } - } - export class MakeTokenReq extends pb_1.Message { - constructor(data?: any[] | { - Username?: string; - Password?: string; - Domain?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("Password" in data && data.Password != undefined) { - this.Password = data.Password; - } - if ("Domain" in data && data.Domain != undefined) { - this.Domain = data.Domain; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Username() { - return pb_1.Message.getField(this, 1) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Password() { - return pb_1.Message.getField(this, 2) as string; - } - set Password(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Domain() { - return pb_1.Message.getField(this, 3) as string; - } - set Domain(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Username?: string; - Password?: string; - Domain?: string; - Request?: ReturnType; - }) { - const message = new MakeTokenReq({}); - if (data.Username != null) { - message.Username = data.Username; - } - if (data.Password != null) { - message.Password = data.Password; - } - if (data.Domain != null) { - message.Domain = data.Domain; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Username?: string; - Password?: string; - Domain?: string; - Request?: ReturnType; - } = {}; - if (this.Username != null) { - data.Username = this.Username; - } - if (this.Password != null) { - data.Password = this.Password; - } - if (this.Domain != null) { - data.Domain = this.Domain; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(1, this.Username); - if (typeof this.Password === "string" && this.Password.length) - writer.writeString(2, this.Password); - if (typeof this.Domain === "string" && this.Domain.length) - writer.writeString(3, this.Domain); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MakeTokenReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MakeTokenReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Username = reader.readString(); - break; - case 2: - message.Password = reader.readString(); - break; - case 3: - message.Domain = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MakeTokenReq { - return MakeTokenReq.deserialize(bytes); - } - } - export class MakeToken extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new MakeToken({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): MakeToken { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new MakeToken(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): MakeToken { - return MakeToken.deserialize(bytes); - } - } - export class TaskReq extends pb_1.Message { - constructor(data?: any[] | { - Encoder?: string; - RWXPages?: boolean; - Pid?: number; - Data?: Uint8Array; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Encoder" in data && data.Encoder != undefined) { - this.Encoder = data.Encoder; - } - if ("RWXPages" in data && data.RWXPages != undefined) { - this.RWXPages = data.RWXPages; - } - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Encoder() { - return pb_1.Message.getField(this, 1) as string; - } - set Encoder(value: string) { - pb_1.Message.setField(this, 1, value); - } - get RWXPages() { - return pb_1.Message.getField(this, 2) as boolean; - } - set RWXPages(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Pid() { - return pb_1.Message.getField(this, 3) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Data() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Encoder?: string; - RWXPages?: boolean; - Pid?: number; - Data?: Uint8Array; - Request?: ReturnType; - }) { - const message = new TaskReq({}); - if (data.Encoder != null) { - message.Encoder = data.Encoder; - } - if (data.RWXPages != null) { - message.RWXPages = data.RWXPages; - } - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Encoder?: string; - RWXPages?: boolean; - Pid?: number; - Data?: Uint8Array; - Request?: ReturnType; - } = {}; - if (this.Encoder != null) { - data.Encoder = this.Encoder; - } - if (this.RWXPages != null) { - data.RWXPages = this.RWXPages; - } - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Encoder === "string" && this.Encoder.length) - writer.writeString(1, this.Encoder); - if (this.RWXPages !== undefined) - writer.writeBool(2, this.RWXPages); - if (this.Pid !== undefined) - writer.writeUint32(3, this.Pid); - if (this.Data !== undefined) - writer.writeBytes(4, this.Data); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TaskReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TaskReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Encoder = reader.readString(); - break; - case 2: - message.RWXPages = reader.readBool(); - break; - case 3: - message.Pid = reader.readUint32(); - break; - case 4: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): TaskReq { - return TaskReq.deserialize(bytes); - } - } - export class Task extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new Task({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Task { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Task(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Task { - return Task.deserialize(bytes); - } - } - export class ExecuteAssemblyReq extends pb_1.Message { - constructor(data?: any[] | { - Assembly?: Uint8Array; - Arguments?: string; - Process?: string; - IsDLL?: boolean; - Arch?: string; - ClassName?: string; - Method?: string; - AppDomain?: string; - PPid?: number; - ProcessArgs?: string[]; - InProcess?: boolean; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Assembly" in data && data.Assembly != undefined) { - this.Assembly = data.Assembly; - } - if ("Arguments" in data && data.Arguments != undefined) { - this.Arguments = data.Arguments; - } - if ("Process" in data && data.Process != undefined) { - this.Process = data.Process; - } - if ("IsDLL" in data && data.IsDLL != undefined) { - this.IsDLL = data.IsDLL; - } - if ("Arch" in data && data.Arch != undefined) { - this.Arch = data.Arch; - } - if ("ClassName" in data && data.ClassName != undefined) { - this.ClassName = data.ClassName; - } - if ("Method" in data && data.Method != undefined) { - this.Method = data.Method; - } - if ("AppDomain" in data && data.AppDomain != undefined) { - this.AppDomain = data.AppDomain; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("ProcessArgs" in data && data.ProcessArgs != undefined) { - this.ProcessArgs = data.ProcessArgs; - } - if ("InProcess" in data && data.InProcess != undefined) { - this.InProcess = data.InProcess; - } - if ("Runtime" in data && data.Runtime != undefined) { - this.Runtime = data.Runtime; - } - if ("AmsiBypass" in data && data.AmsiBypass != undefined) { - this.AmsiBypass = data.AmsiBypass; - } - if ("EtwBypass" in data && data.EtwBypass != undefined) { - this.EtwBypass = data.EtwBypass; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Assembly() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Assembly(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Arguments() { - return pb_1.Message.getField(this, 2) as string; - } - set Arguments(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Process() { - return pb_1.Message.getField(this, 3) as string; - } - set Process(value: string) { - pb_1.Message.setField(this, 3, value); - } - get IsDLL() { - return pb_1.Message.getField(this, 4) as boolean; - } - set IsDLL(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get Arch() { - return pb_1.Message.getField(this, 5) as string; - } - set Arch(value: string) { - pb_1.Message.setField(this, 5, value); - } - get ClassName() { - return pb_1.Message.getField(this, 6) as string; - } - set ClassName(value: string) { - pb_1.Message.setField(this, 6, value); - } - get Method() { - return pb_1.Message.getField(this, 7) as string; - } - set Method(value: string) { - pb_1.Message.setField(this, 7, value); - } - get AppDomain() { - return pb_1.Message.getField(this, 8) as string; - } - set AppDomain(value: string) { - pb_1.Message.setField(this, 8, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get ProcessArgs() { - return pb_1.Message.getField(this, 11) as string[]; - } - set ProcessArgs(value: string[]) { - pb_1.Message.setField(this, 11, value); - } - get InProcess() { - return pb_1.Message.getField(this, 12) as boolean; - } - set InProcess(value: boolean) { - pb_1.Message.setField(this, 12, value); - } - get Runtime() { - return pb_1.Message.getField(this, 13) as string; - } - set Runtime(value: string) { - pb_1.Message.setField(this, 13, value); - } - get AmsiBypass() { - return pb_1.Message.getField(this, 14) as boolean; - } - set AmsiBypass(value: boolean) { - pb_1.Message.setField(this, 14, value); - } - get EtwBypass() { - return pb_1.Message.getField(this, 15) as boolean; - } - set EtwBypass(value: boolean) { - pb_1.Message.setField(this, 15, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Assembly?: Uint8Array; - Arguments?: string; - Process?: string; - IsDLL?: boolean; - Arch?: string; - ClassName?: string; - Method?: string; - AppDomain?: string; - PPid?: number; - ProcessArgs?: string[]; - InProcess?: boolean; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: ReturnType; - }) { - const message = new ExecuteAssemblyReq({}); - if (data.Assembly != null) { - message.Assembly = data.Assembly; - } - if (data.Arguments != null) { - message.Arguments = data.Arguments; - } - if (data.Process != null) { - message.Process = data.Process; - } - if (data.IsDLL != null) { - message.IsDLL = data.IsDLL; - } - if (data.Arch != null) { - message.Arch = data.Arch; - } - if (data.ClassName != null) { - message.ClassName = data.ClassName; - } - if (data.Method != null) { - message.Method = data.Method; - } - if (data.AppDomain != null) { - message.AppDomain = data.AppDomain; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.ProcessArgs != null) { - message.ProcessArgs = data.ProcessArgs; - } - if (data.InProcess != null) { - message.InProcess = data.InProcess; - } - if (data.Runtime != null) { - message.Runtime = data.Runtime; - } - if (data.AmsiBypass != null) { - message.AmsiBypass = data.AmsiBypass; - } - if (data.EtwBypass != null) { - message.EtwBypass = data.EtwBypass; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Assembly?: Uint8Array; - Arguments?: string; - Process?: string; - IsDLL?: boolean; - Arch?: string; - ClassName?: string; - Method?: string; - AppDomain?: string; - PPid?: number; - ProcessArgs?: string[]; - InProcess?: boolean; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: ReturnType; - } = {}; - if (this.Assembly != null) { - data.Assembly = this.Assembly; - } - if (this.Arguments != null) { - data.Arguments = this.Arguments; - } - if (this.Process != null) { - data.Process = this.Process; - } - if (this.IsDLL != null) { - data.IsDLL = this.IsDLL; - } - if (this.Arch != null) { - data.Arch = this.Arch; - } - if (this.ClassName != null) { - data.ClassName = this.ClassName; - } - if (this.Method != null) { - data.Method = this.Method; - } - if (this.AppDomain != null) { - data.AppDomain = this.AppDomain; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.ProcessArgs != null) { - data.ProcessArgs = this.ProcessArgs; - } - if (this.InProcess != null) { - data.InProcess = this.InProcess; - } - if (this.Runtime != null) { - data.Runtime = this.Runtime; - } - if (this.AmsiBypass != null) { - data.AmsiBypass = this.AmsiBypass; - } - if (this.EtwBypass != null) { - data.EtwBypass = this.EtwBypass; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Assembly !== undefined) - writer.writeBytes(1, this.Assembly); - if (typeof this.Arguments === "string" && this.Arguments.length) - writer.writeString(2, this.Arguments); - if (typeof this.Process === "string" && this.Process.length) - writer.writeString(3, this.Process); - if (this.IsDLL !== undefined) - writer.writeBool(4, this.IsDLL); - if (typeof this.Arch === "string" && this.Arch.length) - writer.writeString(5, this.Arch); - if (typeof this.ClassName === "string" && this.ClassName.length) - writer.writeString(6, this.ClassName); - if (typeof this.Method === "string" && this.Method.length) - writer.writeString(7, this.Method); - if (typeof this.AppDomain === "string" && this.AppDomain.length) - writer.writeString(8, this.AppDomain); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.ProcessArgs !== undefined) - writer.writeRepeatedString(11, this.ProcessArgs); - if (this.InProcess !== undefined) - writer.writeBool(12, this.InProcess); - if (typeof this.Runtime === "string" && this.Runtime.length) - writer.writeString(13, this.Runtime); - if (this.AmsiBypass !== undefined) - writer.writeBool(14, this.AmsiBypass); - if (this.EtwBypass !== undefined) - writer.writeBool(15, this.EtwBypass); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExecuteAssemblyReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ExecuteAssemblyReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Assembly = reader.readBytes(); - break; - case 2: - message.Arguments = reader.readString(); - break; - case 3: - message.Process = reader.readString(); - break; - case 4: - message.IsDLL = reader.readBool(); - break; - case 5: - message.Arch = reader.readString(); - break; - case 6: - message.ClassName = reader.readString(); - break; - case 7: - message.Method = reader.readString(); - break; - case 8: - message.AppDomain = reader.readString(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 11: - pb_1.Message.addToRepeatedField(message, 11, reader.readString()); - break; - case 12: - message.InProcess = reader.readBool(); - break; - case 13: - message.Runtime = reader.readString(); - break; - case 14: - message.AmsiBypass = reader.readBool(); - break; - case 15: - message.EtwBypass = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ExecuteAssemblyReq { - return ExecuteAssemblyReq.deserialize(bytes); - } - } - export class InvokeExecuteAssemblyReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - process?: string; - PPid?: number; - ProcessArgs?: string[]; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("process" in data && data.process != undefined) { - this.process = data.process; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("ProcessArgs" in data && data.ProcessArgs != undefined) { - this.ProcessArgs = data.ProcessArgs; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get process() { - return pb_1.Message.getField(this, 2) as string; - } - set process(value: string) { - pb_1.Message.setField(this, 2, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get ProcessArgs() { - return pb_1.Message.getField(this, 11) as string[]; - } - set ProcessArgs(value: string[]) { - pb_1.Message.setField(this, 11, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - process?: string; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - }) { - const message = new InvokeExecuteAssemblyReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.process != null) { - message.process = data.process; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.ProcessArgs != null) { - message.ProcessArgs = data.ProcessArgs; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - process?: string; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.process != null) { - data.process = this.process; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.ProcessArgs != null) { - data.ProcessArgs = this.ProcessArgs; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.process === "string" && this.process.length) - writer.writeString(2, this.process); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.ProcessArgs !== undefined) - writer.writeRepeatedString(11, this.ProcessArgs); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InvokeExecuteAssemblyReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InvokeExecuteAssemblyReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.process = reader.readString(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 11: - pb_1.Message.addToRepeatedField(message, 11, reader.readString()); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): InvokeExecuteAssemblyReq { - return InvokeExecuteAssemblyReq.deserialize(bytes); - } - } - export class InvokeInProcExecuteAssemblyReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - Arguments?: string[]; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Arguments" in data && data.Arguments != undefined) { - this.Arguments = data.Arguments; - } - if ("Runtime" in data && data.Runtime != undefined) { - this.Runtime = data.Runtime; - } - if ("AmsiBypass" in data && data.AmsiBypass != undefined) { - this.AmsiBypass = data.AmsiBypass; - } - if ("EtwBypass" in data && data.EtwBypass != undefined) { - this.EtwBypass = data.EtwBypass; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Arguments() { - return pb_1.Message.getField(this, 2) as string[]; - } - set Arguments(value: string[]) { - pb_1.Message.setField(this, 2, value); - } - get Runtime() { - return pb_1.Message.getField(this, 3) as string; - } - set Runtime(value: string) { - pb_1.Message.setField(this, 3, value); - } - get AmsiBypass() { - return pb_1.Message.getField(this, 4) as boolean; - } - set AmsiBypass(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get EtwBypass() { - return pb_1.Message.getField(this, 5) as boolean; - } - set EtwBypass(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - Arguments?: string[]; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: ReturnType; - }) { - const message = new InvokeInProcExecuteAssemblyReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Arguments != null) { - message.Arguments = data.Arguments; - } - if (data.Runtime != null) { - message.Runtime = data.Runtime; - } - if (data.AmsiBypass != null) { - message.AmsiBypass = data.AmsiBypass; - } - if (data.EtwBypass != null) { - message.EtwBypass = data.EtwBypass; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - Arguments?: string[]; - Runtime?: string; - AmsiBypass?: boolean; - EtwBypass?: boolean; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Arguments != null) { - data.Arguments = this.Arguments; - } - if (this.Runtime != null) { - data.Runtime = this.Runtime; - } - if (this.AmsiBypass != null) { - data.AmsiBypass = this.AmsiBypass; - } - if (this.EtwBypass != null) { - data.EtwBypass = this.EtwBypass; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (this.Arguments !== undefined) - writer.writeRepeatedString(2, this.Arguments); - if (typeof this.Runtime === "string" && this.Runtime.length) - writer.writeString(3, this.Runtime); - if (this.AmsiBypass !== undefined) - writer.writeBool(4, this.AmsiBypass); - if (this.EtwBypass !== undefined) - writer.writeBool(5, this.EtwBypass); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InvokeInProcExecuteAssemblyReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InvokeInProcExecuteAssemblyReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; - case 3: - message.Runtime = reader.readString(); - break; - case 4: - message.AmsiBypass = reader.readBool(); - break; - case 5: - message.EtwBypass = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): InvokeInProcExecuteAssemblyReq { - return InvokeInProcExecuteAssemblyReq.deserialize(bytes); - } - } - export class ExecuteAssembly extends pb_1.Message { - constructor(data?: any[] | { - Output?: Uint8Array; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Output() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Output(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Output?: Uint8Array; - Response?: ReturnType; - }) { - const message = new ExecuteAssembly({}); - if (data.Output != null) { - message.Output = data.Output; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Output?: Uint8Array; - Response?: ReturnType; - } = {}; - if (this.Output != null) { - data.Output = this.Output; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Output !== undefined) - writer.writeBytes(1, this.Output); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExecuteAssembly { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ExecuteAssembly(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Output = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ExecuteAssembly { - return ExecuteAssembly.deserialize(bytes); - } - } - export class InvokeMigrateReq extends pb_1.Message { - constructor(data?: any[] | { - Pid?: number; - Data?: Uint8Array; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Pid() { - return pb_1.Message.getField(this, 1) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Data() { - return pb_1.Message.getField(this, 2) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Pid?: number; - Data?: Uint8Array; - Request?: ReturnType; - }) { - const message = new InvokeMigrateReq({}); - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Pid?: number; - Data?: Uint8Array; - Request?: ReturnType; - } = {}; - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Pid !== undefined) - writer.writeUint32(1, this.Pid); - if (this.Data !== undefined) - writer.writeBytes(2, this.Data); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InvokeMigrateReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InvokeMigrateReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Pid = reader.readUint32(); - break; - case 2: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): InvokeMigrateReq { - return InvokeMigrateReq.deserialize(bytes); - } - } - export class Migrate extends pb_1.Message { - constructor(data?: any[] | { - Success?: boolean; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Success" in data && data.Success != undefined) { - this.Success = data.Success; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Success() { - return pb_1.Message.getField(this, 1) as boolean; - } - set Success(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Success?: boolean; - Response?: ReturnType; - }) { - const message = new Migrate({}); - if (data.Success != null) { - message.Success = data.Success; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Success?: boolean; - Response?: ReturnType; - } = {}; - if (this.Success != null) { - data.Success = this.Success; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Success !== undefined) - writer.writeBool(1, this.Success); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Migrate { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Migrate(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Success = reader.readBool(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Migrate { - return Migrate.deserialize(bytes); - } - } - export class ExecuteReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - PPid?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("Stdout" in data && data.Stdout != undefined) { - this.Stdout = data.Stdout; - } - if ("Stderr" in data && data.Stderr != undefined) { - this.Stderr = data.Stderr; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Args() { - return pb_1.Message.getField(this, 2) as string[]; - } - set Args(value: string[]) { - pb_1.Message.setField(this, 2, value); - } - get Output() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Output(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get Stdout() { - return pb_1.Message.getField(this, 4) as string; - } - set Stdout(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Stderr() { - return pb_1.Message.getField(this, 5) as string; - } - set Stderr(value: string) { - pb_1.Message.setField(this, 5, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - PPid?: number; - Request?: ReturnType; - }) { - const message = new ExecuteReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.Output != null) { - message.Output = data.Output; - } - if (data.Stdout != null) { - message.Stdout = data.Stdout; - } - if (data.Stderr != null) { - message.Stderr = data.Stderr; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - PPid?: number; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.Output != null) { - data.Output = this.Output; - } - if (this.Stdout != null) { - data.Stdout = this.Stdout; - } - if (this.Stderr != null) { - data.Stderr = this.Stderr; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Args !== undefined) - writer.writeRepeatedString(2, this.Args); - if (this.Output !== undefined) - writer.writeBool(3, this.Output); - if (typeof this.Stdout === "string" && this.Stdout.length) - writer.writeString(4, this.Stdout); - if (typeof this.Stderr === "string" && this.Stderr.length) - writer.writeString(5, this.Stderr); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExecuteReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ExecuteReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; - case 3: - message.Output = reader.readBool(); - break; - case 4: - message.Stdout = reader.readString(); - break; - case 5: - message.Stderr = reader.readString(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ExecuteReq { - return ExecuteReq.deserialize(bytes); - } - } - export class ExecuteWindowsReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - UseToken?: boolean; - PPid?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [2], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("Stdout" in data && data.Stdout != undefined) { - this.Stdout = data.Stdout; - } - if ("Stderr" in data && data.Stderr != undefined) { - this.Stderr = data.Stderr; - } - if ("UseToken" in data && data.UseToken != undefined) { - this.UseToken = data.UseToken; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Args() { - return pb_1.Message.getField(this, 2) as string[]; - } - set Args(value: string[]) { - pb_1.Message.setField(this, 2, value); - } - get Output() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Output(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get Stdout() { - return pb_1.Message.getField(this, 4) as string; - } - set Stdout(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Stderr() { - return pb_1.Message.getField(this, 5) as string; - } - set Stderr(value: string) { - pb_1.Message.setField(this, 5, value); - } - get UseToken() { - return pb_1.Message.getField(this, 6) as boolean; - } - set UseToken(value: boolean) { - pb_1.Message.setField(this, 6, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - UseToken?: boolean; - PPid?: number; - Request?: ReturnType; - }) { - const message = new ExecuteWindowsReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.Output != null) { - message.Output = data.Output; - } - if (data.Stdout != null) { - message.Stdout = data.Stdout; - } - if (data.Stderr != null) { - message.Stderr = data.Stderr; - } - if (data.UseToken != null) { - message.UseToken = data.UseToken; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - Args?: string[]; - Output?: boolean; - Stdout?: string; - Stderr?: string; - UseToken?: boolean; - PPid?: number; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.Output != null) { - data.Output = this.Output; - } - if (this.Stdout != null) { - data.Stdout = this.Stdout; - } - if (this.Stderr != null) { - data.Stderr = this.Stderr; - } - if (this.UseToken != null) { - data.UseToken = this.UseToken; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.Args !== undefined) - writer.writeRepeatedString(2, this.Args); - if (this.Output !== undefined) - writer.writeBool(3, this.Output); - if (typeof this.Stdout === "string" && this.Stdout.length) - writer.writeString(4, this.Stdout); - if (typeof this.Stderr === "string" && this.Stderr.length) - writer.writeString(5, this.Stderr); - if (this.UseToken !== undefined) - writer.writeBool(6, this.UseToken); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ExecuteWindowsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ExecuteWindowsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - pb_1.Message.addToRepeatedField(message, 2, reader.readString()); - break; - case 3: - message.Output = reader.readBool(); - break; - case 4: - message.Stdout = reader.readString(); - break; - case 5: - message.Stderr = reader.readString(); - break; - case 6: - message.UseToken = reader.readBool(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ExecuteWindowsReq { - return ExecuteWindowsReq.deserialize(bytes); - } - } - export class Execute extends pb_1.Message { - constructor(data?: any[] | { - Status?: number; - Stdout?: Uint8Array; - Stderr?: Uint8Array; - Pid?: number; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Status" in data && data.Status != undefined) { - this.Status = data.Status; - } - if ("Stdout" in data && data.Stdout != undefined) { - this.Stdout = data.Stdout; - } - if ("Stderr" in data && data.Stderr != undefined) { - this.Stderr = data.Stderr; - } - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Status() { - return pb_1.Message.getField(this, 1) as number; - } - set Status(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Stdout() { - return pb_1.Message.getField(this, 2) as Uint8Array; - } - set Stdout(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - get Stderr() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set Stderr(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get Pid() { - return pb_1.Message.getField(this, 4) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Status?: number; - Stdout?: Uint8Array; - Stderr?: Uint8Array; - Pid?: number; - Response?: ReturnType; - }) { - const message = new Execute({}); - if (data.Status != null) { - message.Status = data.Status; - } - if (data.Stdout != null) { - message.Stdout = data.Stdout; - } - if (data.Stderr != null) { - message.Stderr = data.Stderr; - } - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Status?: number; - Stdout?: Uint8Array; - Stderr?: Uint8Array; - Pid?: number; - Response?: ReturnType; - } = {}; - if (this.Status != null) { - data.Status = this.Status; - } - if (this.Stdout != null) { - data.Stdout = this.Stdout; - } - if (this.Stderr != null) { - data.Stderr = this.Stderr; - } - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Status !== undefined) - writer.writeUint32(1, this.Status); - if (this.Stdout !== undefined) - writer.writeBytes(2, this.Stdout); - if (this.Stderr !== undefined) - writer.writeBytes(3, this.Stderr); - if (this.Pid !== undefined) - writer.writeUint32(4, this.Pid); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Execute { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Execute(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Status = reader.readUint32(); - break; - case 2: - message.Stdout = reader.readBytes(); - break; - case 3: - message.Stderr = reader.readBytes(); - break; - case 4: - message.Pid = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Execute { - return Execute.deserialize(bytes); - } - } - export class SideloadReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - isDLL?: boolean; - isUnicode?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("ProcessName" in data && data.ProcessName != undefined) { - this.ProcessName = data.ProcessName; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("EntryPoint" in data && data.EntryPoint != undefined) { - this.EntryPoint = data.EntryPoint; - } - if ("Kill" in data && data.Kill != undefined) { - this.Kill = data.Kill; - } - if ("isDLL" in data && data.isDLL != undefined) { - this.isDLL = data.isDLL; - } - if ("isUnicode" in data && data.isUnicode != undefined) { - this.isUnicode = data.isUnicode; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("ProcessArgs" in data && data.ProcessArgs != undefined) { - this.ProcessArgs = data.ProcessArgs; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get ProcessName() { - return pb_1.Message.getField(this, 2) as string; - } - set ProcessName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Args() { - return pb_1.Message.getField(this, 3) as string; - } - set Args(value: string) { - pb_1.Message.setField(this, 3, value); - } - get EntryPoint() { - return pb_1.Message.getField(this, 4) as string; - } - set EntryPoint(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Kill() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Kill(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get isDLL() { - return pb_1.Message.getField(this, 6) as boolean; - } - set isDLL(value: boolean) { - pb_1.Message.setField(this, 6, value); - } - get isUnicode() { - return pb_1.Message.getField(this, 7) as boolean; - } - set isUnicode(value: boolean) { - pb_1.Message.setField(this, 7, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get ProcessArgs() { - return pb_1.Message.getField(this, 11) as string[]; - } - set ProcessArgs(value: string[]) { - pb_1.Message.setField(this, 11, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - isDLL?: boolean; - isUnicode?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - }) { - const message = new SideloadReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.ProcessName != null) { - message.ProcessName = data.ProcessName; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.EntryPoint != null) { - message.EntryPoint = data.EntryPoint; - } - if (data.Kill != null) { - message.Kill = data.Kill; - } - if (data.isDLL != null) { - message.isDLL = data.isDLL; - } - if (data.isUnicode != null) { - message.isUnicode = data.isUnicode; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.ProcessArgs != null) { - message.ProcessArgs = data.ProcessArgs; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - isDLL?: boolean; - isUnicode?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.ProcessName != null) { - data.ProcessName = this.ProcessName; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.EntryPoint != null) { - data.EntryPoint = this.EntryPoint; - } - if (this.Kill != null) { - data.Kill = this.Kill; - } - if (this.isDLL != null) { - data.isDLL = this.isDLL; - } - if (this.isUnicode != null) { - data.isUnicode = this.isUnicode; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.ProcessArgs != null) { - data.ProcessArgs = this.ProcessArgs; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.ProcessName === "string" && this.ProcessName.length) - writer.writeString(2, this.ProcessName); - if (typeof this.Args === "string" && this.Args.length) - writer.writeString(3, this.Args); - if (typeof this.EntryPoint === "string" && this.EntryPoint.length) - writer.writeString(4, this.EntryPoint); - if (this.Kill !== undefined) - writer.writeBool(5, this.Kill); - if (this.isDLL !== undefined) - writer.writeBool(6, this.isDLL); - if (this.isUnicode !== undefined) - writer.writeBool(7, this.isUnicode); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.ProcessArgs !== undefined) - writer.writeRepeatedString(11, this.ProcessArgs); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SideloadReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SideloadReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.ProcessName = reader.readString(); - break; - case 3: - message.Args = reader.readString(); - break; - case 4: - message.EntryPoint = reader.readString(); - break; - case 5: - message.Kill = reader.readBool(); - break; - case 6: - message.isDLL = reader.readBool(); - break; - case 7: - message.isUnicode = reader.readBool(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 11: - pb_1.Message.addToRepeatedField(message, 11, reader.readString()); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SideloadReq { - return SideloadReq.deserialize(bytes); - } - } - export class Sideload extends pb_1.Message { - constructor(data?: any[] | { - Result?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Result" in data && data.Result != undefined) { - this.Result = data.Result; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Result() { - return pb_1.Message.getField(this, 1) as string; - } - set Result(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Result?: string; - Response?: ReturnType; - }) { - const message = new Sideload({}); - if (data.Result != null) { - message.Result = data.Result; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Result?: string; - Response?: ReturnType; - } = {}; - if (this.Result != null) { - data.Result = this.Result; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Result === "string" && this.Result.length) - writer.writeString(1, this.Result); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Sideload { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Sideload(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Result = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Sideload { - return Sideload.deserialize(bytes); - } - } - export class InvokeSpawnDllReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("ProcessName" in data && data.ProcessName != undefined) { - this.ProcessName = data.ProcessName; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("EntryPoint" in data && data.EntryPoint != undefined) { - this.EntryPoint = data.EntryPoint; - } - if ("Kill" in data && data.Kill != undefined) { - this.Kill = data.Kill; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("ProcessArgs" in data && data.ProcessArgs != undefined) { - this.ProcessArgs = data.ProcessArgs; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get ProcessName() { - return pb_1.Message.getField(this, 2) as string; - } - set ProcessName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Args() { - return pb_1.Message.getField(this, 3) as string; - } - set Args(value: string) { - pb_1.Message.setField(this, 3, value); - } - get EntryPoint() { - return pb_1.Message.getField(this, 4) as string; - } - set EntryPoint(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Kill() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Kill(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get ProcessArgs() { - return pb_1.Message.getField(this, 11) as string[]; - } - set ProcessArgs(value: string[]) { - pb_1.Message.setField(this, 11, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - }) { - const message = new InvokeSpawnDllReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.ProcessName != null) { - message.ProcessName = data.ProcessName; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.EntryPoint != null) { - message.EntryPoint = data.EntryPoint; - } - if (data.Kill != null) { - message.Kill = data.Kill; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.ProcessArgs != null) { - message.ProcessArgs = data.ProcessArgs; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - ProcessName?: string; - Args?: string; - EntryPoint?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.ProcessName != null) { - data.ProcessName = this.ProcessName; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.EntryPoint != null) { - data.EntryPoint = this.EntryPoint; - } - if (this.Kill != null) { - data.Kill = this.Kill; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.ProcessArgs != null) { - data.ProcessArgs = this.ProcessArgs; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.ProcessName === "string" && this.ProcessName.length) - writer.writeString(2, this.ProcessName); - if (typeof this.Args === "string" && this.Args.length) - writer.writeString(3, this.Args); - if (typeof this.EntryPoint === "string" && this.EntryPoint.length) - writer.writeString(4, this.EntryPoint); - if (this.Kill !== undefined) - writer.writeBool(5, this.Kill); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.ProcessArgs !== undefined) - writer.writeRepeatedString(11, this.ProcessArgs); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): InvokeSpawnDllReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new InvokeSpawnDllReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.ProcessName = reader.readString(); - break; - case 3: - message.Args = reader.readString(); - break; - case 4: - message.EntryPoint = reader.readString(); - break; - case 5: - message.Kill = reader.readBool(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 11: - pb_1.Message.addToRepeatedField(message, 11, reader.readString()); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): InvokeSpawnDllReq { - return InvokeSpawnDllReq.deserialize(bytes); - } - } - export class SpawnDllReq extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - ProcessName?: string; - Offset?: number; - Args?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [11], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("ProcessName" in data && data.ProcessName != undefined) { - this.ProcessName = data.ProcessName; - } - if ("Offset" in data && data.Offset != undefined) { - this.Offset = data.Offset; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("Kill" in data && data.Kill != undefined) { - this.Kill = data.Kill; - } - if ("PPid" in data && data.PPid != undefined) { - this.PPid = data.PPid; - } - if ("ProcessArgs" in data && data.ProcessArgs != undefined) { - this.ProcessArgs = data.ProcessArgs; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get ProcessName() { - return pb_1.Message.getField(this, 2) as string; - } - set ProcessName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Offset() { - return pb_1.Message.getField(this, 3) as number; - } - set Offset(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Args() { - return pb_1.Message.getField(this, 4) as string; - } - set Args(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Kill() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Kill(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get PPid() { - return pb_1.Message.getField(this, 10) as number; - } - set PPid(value: number) { - pb_1.Message.setField(this, 10, value); - } - get ProcessArgs() { - return pb_1.Message.getField(this, 11) as string[]; - } - set ProcessArgs(value: string[]) { - pb_1.Message.setField(this, 11, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - ProcessName?: string; - Offset?: number; - Args?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - }) { - const message = new SpawnDllReq({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.ProcessName != null) { - message.ProcessName = data.ProcessName; - } - if (data.Offset != null) { - message.Offset = data.Offset; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.Kill != null) { - message.Kill = data.Kill; - } - if (data.PPid != null) { - message.PPid = data.PPid; - } - if (data.ProcessArgs != null) { - message.ProcessArgs = data.ProcessArgs; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - ProcessName?: string; - Offset?: number; - Args?: string; - Kill?: boolean; - PPid?: number; - ProcessArgs?: string[]; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.ProcessName != null) { - data.ProcessName = this.ProcessName; - } - if (this.Offset != null) { - data.Offset = this.Offset; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.Kill != null) { - data.Kill = this.Kill; - } - if (this.PPid != null) { - data.PPid = this.PPid; - } - if (this.ProcessArgs != null) { - data.ProcessArgs = this.ProcessArgs; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (typeof this.ProcessName === "string" && this.ProcessName.length) - writer.writeString(2, this.ProcessName); - if (this.Offset !== undefined) - writer.writeUint32(3, this.Offset); - if (typeof this.Args === "string" && this.Args.length) - writer.writeString(4, this.Args); - if (this.Kill !== undefined) - writer.writeBool(5, this.Kill); - if (this.PPid !== undefined) - writer.writeUint32(10, this.PPid); - if (this.ProcessArgs !== undefined) - writer.writeRepeatedString(11, this.ProcessArgs); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SpawnDllReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SpawnDllReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.ProcessName = reader.readString(); - break; - case 3: - message.Offset = reader.readUint32(); - break; - case 4: - message.Args = reader.readString(); - break; - case 5: - message.Kill = reader.readBool(); - break; - case 10: - message.PPid = reader.readUint32(); - break; - case 11: - pb_1.Message.addToRepeatedField(message, 11, reader.readString()); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SpawnDllReq { - return SpawnDllReq.deserialize(bytes); - } - } - export class SpawnDll extends pb_1.Message { - constructor(data?: any[] | { - Result?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Result" in data && data.Result != undefined) { - this.Result = data.Result; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Result() { - return pb_1.Message.getField(this, 1) as string; - } - set Result(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Result?: string; - Response?: ReturnType; - }) { - const message = new SpawnDll({}); - if (data.Result != null) { - message.Result = data.Result; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Result?: string; - Response?: ReturnType; - } = {}; - if (this.Result != null) { - data.Result = this.Result; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Result === "string" && this.Result.length) - writer.writeString(1, this.Result); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SpawnDll { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SpawnDll(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Result = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SpawnDll { - return SpawnDll.deserialize(bytes); - } - } - export class NetstatReq extends pb_1.Message { - constructor(data?: any[] | { - TCP?: boolean; - UDP?: boolean; - IP4?: boolean; - IP6?: boolean; - Listening?: boolean; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("TCP" in data && data.TCP != undefined) { - this.TCP = data.TCP; - } - if ("UDP" in data && data.UDP != undefined) { - this.UDP = data.UDP; - } - if ("IP4" in data && data.IP4 != undefined) { - this.IP4 = data.IP4; - } - if ("IP6" in data && data.IP6 != undefined) { - this.IP6 = data.IP6; - } - if ("Listening" in data && data.Listening != undefined) { - this.Listening = data.Listening; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get TCP() { - return pb_1.Message.getField(this, 1) as boolean; - } - set TCP(value: boolean) { - pb_1.Message.setField(this, 1, value); - } - get UDP() { - return pb_1.Message.getField(this, 2) as boolean; - } - set UDP(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get IP4() { - return pb_1.Message.getField(this, 3) as boolean; - } - set IP4(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get IP6() { - return pb_1.Message.getField(this, 5) as boolean; - } - set IP6(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get Listening() { - return pb_1.Message.getField(this, 6) as boolean; - } - set Listening(value: boolean) { - pb_1.Message.setField(this, 6, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - TCP?: boolean; - UDP?: boolean; - IP4?: boolean; - IP6?: boolean; - Listening?: boolean; - Request?: ReturnType; - }) { - const message = new NetstatReq({}); - if (data.TCP != null) { - message.TCP = data.TCP; - } - if (data.UDP != null) { - message.UDP = data.UDP; - } - if (data.IP4 != null) { - message.IP4 = data.IP4; - } - if (data.IP6 != null) { - message.IP6 = data.IP6; - } - if (data.Listening != null) { - message.Listening = data.Listening; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - TCP?: boolean; - UDP?: boolean; - IP4?: boolean; - IP6?: boolean; - Listening?: boolean; - Request?: ReturnType; - } = {}; - if (this.TCP != null) { - data.TCP = this.TCP; - } - if (this.UDP != null) { - data.UDP = this.UDP; - } - if (this.IP4 != null) { - data.IP4 = this.IP4; - } - if (this.IP6 != null) { - data.IP6 = this.IP6; - } - if (this.Listening != null) { - data.Listening = this.Listening; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.TCP !== undefined) - writer.writeBool(1, this.TCP); - if (this.UDP !== undefined) - writer.writeBool(2, this.UDP); - if (this.IP4 !== undefined) - writer.writeBool(3, this.IP4); - if (this.IP6 !== undefined) - writer.writeBool(5, this.IP6); - if (this.Listening !== undefined) - writer.writeBool(6, this.Listening); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NetstatReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NetstatReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.TCP = reader.readBool(); - break; - case 2: - message.UDP = reader.readBool(); - break; - case 3: - message.IP4 = reader.readBool(); - break; - case 5: - message.IP6 = reader.readBool(); - break; - case 6: - message.Listening = reader.readBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): NetstatReq { - return NetstatReq.deserialize(bytes); - } - } - export class SockTabEntry extends pb_1.Message { - constructor(data?: any[] | { - LocalAddr?: SockTabEntry.SockAddr; - RemoteAddr?: SockTabEntry.SockAddr; - SkState?: string; - UID?: number; - Process?: dependency_1.commonpb.Process; - Protocol?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("LocalAddr" in data && data.LocalAddr != undefined) { - this.LocalAddr = data.LocalAddr; - } - if ("RemoteAddr" in data && data.RemoteAddr != undefined) { - this.RemoteAddr = data.RemoteAddr; - } - if ("SkState" in data && data.SkState != undefined) { - this.SkState = data.SkState; - } - if ("UID" in data && data.UID != undefined) { - this.UID = data.UID; - } - if ("Process" in data && data.Process != undefined) { - this.Process = data.Process; - } - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - } - } - get LocalAddr() { - return pb_1.Message.getWrapperField(this, SockTabEntry.SockAddr, 1) as SockTabEntry.SockAddr; - } - set LocalAddr(value: SockTabEntry.SockAddr) { - pb_1.Message.setWrapperField(this, 1, value); - } - get RemoteAddr() { - return pb_1.Message.getWrapperField(this, SockTabEntry.SockAddr, 2) as SockTabEntry.SockAddr; - } - set RemoteAddr(value: SockTabEntry.SockAddr) { - pb_1.Message.setWrapperField(this, 2, value); - } - get SkState() { - return pb_1.Message.getField(this, 3) as string; - } - set SkState(value: string) { - pb_1.Message.setField(this, 3, value); - } - get UID() { - return pb_1.Message.getField(this, 4) as number; - } - set UID(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Process() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Process, 5) as dependency_1.commonpb.Process; - } - set Process(value: dependency_1.commonpb.Process) { - pb_1.Message.setWrapperField(this, 5, value); - } - get Protocol() { - return pb_1.Message.getField(this, 6) as string; - } - set Protocol(value: string) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - LocalAddr?: ReturnType; - RemoteAddr?: ReturnType; - SkState?: string; - UID?: number; - Process?: ReturnType; - Protocol?: string; - }) { - const message = new SockTabEntry({}); - if (data.LocalAddr != null) { - message.LocalAddr = SockTabEntry.SockAddr.fromObject(data.LocalAddr); - } - if (data.RemoteAddr != null) { - message.RemoteAddr = SockTabEntry.SockAddr.fromObject(data.RemoteAddr); - } - if (data.SkState != null) { - message.SkState = data.SkState; - } - if (data.UID != null) { - message.UID = data.UID; - } - if (data.Process != null) { - message.Process = dependency_1.commonpb.Process.fromObject(data.Process); - } - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - return message; - } - toObject() { - const data: { - LocalAddr?: ReturnType; - RemoteAddr?: ReturnType; - SkState?: string; - UID?: number; - Process?: ReturnType; - Protocol?: string; - } = {}; - if (this.LocalAddr != null) { - data.LocalAddr = this.LocalAddr.toObject(); - } - if (this.RemoteAddr != null) { - data.RemoteAddr = this.RemoteAddr.toObject(); - } - if (this.SkState != null) { - data.SkState = this.SkState; - } - if (this.UID != null) { - data.UID = this.UID; - } - if (this.Process != null) { - data.Process = this.Process.toObject(); - } - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.LocalAddr !== undefined) - writer.writeMessage(1, this.LocalAddr, () => this.LocalAddr.serialize(writer)); - if (this.RemoteAddr !== undefined) - writer.writeMessage(2, this.RemoteAddr, () => this.RemoteAddr.serialize(writer)); - if (typeof this.SkState === "string" && this.SkState.length) - writer.writeString(3, this.SkState); - if (this.UID !== undefined) - writer.writeUint32(4, this.UID); - if (this.Process !== undefined) - writer.writeMessage(5, this.Process, () => this.Process.serialize(writer)); - if (typeof this.Protocol === "string" && this.Protocol.length) - writer.writeString(6, this.Protocol); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SockTabEntry { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SockTabEntry(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.LocalAddr, () => message.LocalAddr = SockTabEntry.SockAddr.deserialize(reader)); - break; - case 2: - reader.readMessage(message.RemoteAddr, () => message.RemoteAddr = SockTabEntry.SockAddr.deserialize(reader)); - break; - case 3: - message.SkState = reader.readString(); - break; - case 4: - message.UID = reader.readUint32(); - break; - case 5: - reader.readMessage(message.Process, () => message.Process = dependency_1.commonpb.Process.deserialize(reader)); - break; - case 6: - message.Protocol = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SockTabEntry { - return SockTabEntry.deserialize(bytes); - } - } - export namespace SockTabEntry { - export class SockAddr extends pb_1.Message { - constructor(data?: any[] | { - Ip?: string; - Port?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Ip" in data && data.Ip != undefined) { - this.Ip = data.Ip; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - } - } - get Ip() { - return pb_1.Message.getField(this, 1) as string; - } - set Ip(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Port() { - return pb_1.Message.getField(this, 2) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - Ip?: string; - Port?: number; - }) { - const message = new SockAddr({}); - if (data.Ip != null) { - message.Ip = data.Ip; - } - if (data.Port != null) { - message.Port = data.Port; - } - return message; - } - toObject() { - const data: { - Ip?: string; - Port?: number; - } = {}; - if (this.Ip != null) { - data.Ip = this.Ip; - } - if (this.Port != null) { - data.Port = this.Port; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Ip === "string" && this.Ip.length) - writer.writeString(1, this.Ip); - if (this.Port !== undefined) - writer.writeUint32(2, this.Port); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SockAddr { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SockAddr(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Ip = reader.readString(); - break; - case 2: - message.Port = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SockAddr { - return SockAddr.deserialize(bytes); - } - } - } - export class Netstat extends pb_1.Message { - constructor(data?: any[] | { - Entries?: SockTabEntry[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Entries" in data && data.Entries != undefined) { - this.Entries = data.Entries; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Entries() { - return pb_1.Message.getRepeatedWrapperField(this, SockTabEntry, 1) as SockTabEntry[]; - } - set Entries(value: SockTabEntry[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Entries?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new Netstat({}); - if (data.Entries != null) { - message.Entries = data.Entries.map(item => SockTabEntry.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Entries?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Entries != null) { - data.Entries = this.Entries.map((item: SockTabEntry) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Entries !== undefined) - writer.writeRepeatedMessage(1, this.Entries, (item: SockTabEntry) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Netstat { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Netstat(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Entries, () => pb_1.Message.addToRepeatedWrapperField(message, 1, SockTabEntry.deserialize(reader), SockTabEntry)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Netstat { - return Netstat.deserialize(bytes); - } - } - export class EnvReq extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Name?: string; - Request?: ReturnType; - }) { - const message = new EnvReq({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Name?: string; - Request?: ReturnType; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EnvReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new EnvReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): EnvReq { - return EnvReq.deserialize(bytes); - } - } - export class EnvInfo extends pb_1.Message { - constructor(data?: any[] | { - Variables?: dependency_1.commonpb.EnvVar[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Variables" in data && data.Variables != undefined) { - this.Variables = data.Variables; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Variables() { - return pb_1.Message.getRepeatedWrapperField(this, dependency_1.commonpb.EnvVar, 1) as dependency_1.commonpb.EnvVar[]; - } - set Variables(value: dependency_1.commonpb.EnvVar[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Variables?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new EnvInfo({}); - if (data.Variables != null) { - message.Variables = data.Variables.map(item => dependency_1.commonpb.EnvVar.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Variables?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Variables != null) { - data.Variables = this.Variables.map((item: dependency_1.commonpb.EnvVar) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Variables !== undefined) - writer.writeRepeatedMessage(1, this.Variables, (item: dependency_1.commonpb.EnvVar) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): EnvInfo { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new EnvInfo(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Variables, () => pb_1.Message.addToRepeatedWrapperField(message, 1, dependency_1.commonpb.EnvVar.deserialize(reader), dependency_1.commonpb.EnvVar)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): EnvInfo { - return EnvInfo.deserialize(bytes); - } - } - export class SetEnvReq extends pb_1.Message { - constructor(data?: any[] | { - Variable?: dependency_1.commonpb.EnvVar; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Variable" in data && data.Variable != undefined) { - this.Variable = data.Variable; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Variable() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.EnvVar, 1) as dependency_1.commonpb.EnvVar; - } - set Variable(value: dependency_1.commonpb.EnvVar) { - pb_1.Message.setWrapperField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Variable?: ReturnType; - Request?: ReturnType; - }) { - const message = new SetEnvReq({}); - if (data.Variable != null) { - message.Variable = dependency_1.commonpb.EnvVar.fromObject(data.Variable); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Variable?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.Variable != null) { - data.Variable = this.Variable.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Variable !== undefined) - writer.writeMessage(1, this.Variable, () => this.Variable.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SetEnvReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SetEnvReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Variable, () => message.Variable = dependency_1.commonpb.EnvVar.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SetEnvReq { - return SetEnvReq.deserialize(bytes); - } - } - export class SetEnv extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new SetEnv({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SetEnv { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SetEnv(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SetEnv { - return SetEnv.deserialize(bytes); - } - } - export class UnsetEnvReq extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Name?: string; - Request?: ReturnType; - }) { - const message = new UnsetEnvReq({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Name?: string; - Request?: ReturnType; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UnsetEnvReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UnsetEnvReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): UnsetEnvReq { - return UnsetEnvReq.deserialize(bytes); - } - } - export class UnsetEnv extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new UnsetEnv({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): UnsetEnv { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new UnsetEnv(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): UnsetEnv { - return UnsetEnv.deserialize(bytes); - } - } - export class DNSSessionInit extends pb_1.Message { - constructor(data?: any[] | { - Key?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - } - } - get Key() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Key(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Key?: Uint8Array; - }) { - const message = new DNSSessionInit({}); - if (data.Key != null) { - message.Key = data.Key; - } - return message; - } - toObject() { - const data: { - Key?: Uint8Array; - } = {}; - if (this.Key != null) { - data.Key = this.Key; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Key !== undefined) - writer.writeBytes(1, this.Key); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSSessionInit { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSSessionInit(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Key = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSSessionInit { - return DNSSessionInit.deserialize(bytes); - } - } - export class DNSPoll extends pb_1.Message { - constructor(data?: any[] | { - blocks?: DNSBlockHeader[]; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("blocks" in data && data.blocks != undefined) { - this.blocks = data.blocks; - } - } - } - get blocks() { - return pb_1.Message.getRepeatedWrapperField(this, DNSBlockHeader, 1) as DNSBlockHeader[]; - } - set blocks(value: DNSBlockHeader[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - static fromObject(data: { - blocks?: ReturnType[]; - }) { - const message = new DNSPoll({}); - if (data.blocks != null) { - message.blocks = data.blocks.map(item => DNSBlockHeader.fromObject(item)); - } - return message; - } - toObject() { - const data: { - blocks?: ReturnType[]; - } = {}; - if (this.blocks != null) { - data.blocks = this.blocks.map((item: DNSBlockHeader) => item.toObject()); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.blocks !== undefined) - writer.writeRepeatedMessage(1, this.blocks, (item: DNSBlockHeader) => item.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSPoll { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSPoll(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.blocks, () => pb_1.Message.addToRepeatedWrapperField(message, 1, DNSBlockHeader.deserialize(reader), DNSBlockHeader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSPoll { - return DNSPoll.deserialize(bytes); - } - } - export class DNSBlockHeader extends pb_1.Message { - constructor(data?: any[] | { - ID?: string; - Size?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Size" in data && data.Size != undefined) { - this.Size = data.Size; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as string; - } - set ID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Size() { - return pb_1.Message.getField(this, 2) as number; - } - set Size(value: number) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - ID?: string; - Size?: number; - }) { - const message = new DNSBlockHeader({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Size != null) { - message.Size = data.Size; - } - return message; - } - toObject() { - const data: { - ID?: string; - Size?: number; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Size != null) { - data.Size = this.Size; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ID === "string" && this.ID.length) - writer.writeString(1, this.ID); - if (this.Size !== undefined) - writer.writeUint32(2, this.Size); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): DNSBlockHeader { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new DNSBlockHeader(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readString(); - break; - case 2: - message.Size = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): DNSBlockHeader { - return DNSBlockHeader.deserialize(bytes); - } - } - export class HTTPSessionInit extends pb_1.Message { - constructor(data?: any[] | { - Key?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - } - } - get Key() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Key(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Key?: Uint8Array; - }) { - const message = new HTTPSessionInit({}); - if (data.Key != null) { - message.Key = data.Key; - } - return message; - } - toObject() { - const data: { - Key?: Uint8Array; - } = {}; - if (this.Key != null) { - data.Key = this.Key; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Key !== undefined) - writer.writeBytes(1, this.Key); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): HTTPSessionInit { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new HTTPSessionInit(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Key = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): HTTPSessionInit { - return HTTPSessionInit.deserialize(bytes); - } - } - export class ScreenshotReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new ScreenshotReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ScreenshotReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ScreenshotReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ScreenshotReq { - return ScreenshotReq.deserialize(bytes); - } - } - export class Screenshot extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - Response?: ReturnType; - }) { - const message = new Screenshot({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - Response?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Screenshot { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Screenshot(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Screenshot { - return Screenshot.deserialize(bytes); - } - } - export class StartServiceReq extends pb_1.Message { - constructor(data?: any[] | { - ServiceName?: string; - ServiceDescription?: string; - BinPath?: string; - Hostname?: string; - Arguments?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ServiceName" in data && data.ServiceName != undefined) { - this.ServiceName = data.ServiceName; - } - if ("ServiceDescription" in data && data.ServiceDescription != undefined) { - this.ServiceDescription = data.ServiceDescription; - } - if ("BinPath" in data && data.BinPath != undefined) { - this.BinPath = data.BinPath; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Arguments" in data && data.Arguments != undefined) { - this.Arguments = data.Arguments; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ServiceName() { - return pb_1.Message.getField(this, 1) as string; - } - set ServiceName(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ServiceDescription() { - return pb_1.Message.getField(this, 2) as string; - } - set ServiceDescription(value: string) { - pb_1.Message.setField(this, 2, value); - } - get BinPath() { - return pb_1.Message.getField(this, 3) as string; - } - set BinPath(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Arguments() { - return pb_1.Message.getField(this, 5) as string; - } - set Arguments(value: string) { - pb_1.Message.setField(this, 5, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ServiceName?: string; - ServiceDescription?: string; - BinPath?: string; - Hostname?: string; - Arguments?: string; - Request?: ReturnType; - }) { - const message = new StartServiceReq({}); - if (data.ServiceName != null) { - message.ServiceName = data.ServiceName; - } - if (data.ServiceDescription != null) { - message.ServiceDescription = data.ServiceDescription; - } - if (data.BinPath != null) { - message.BinPath = data.BinPath; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Arguments != null) { - message.Arguments = data.Arguments; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ServiceName?: string; - ServiceDescription?: string; - BinPath?: string; - Hostname?: string; - Arguments?: string; - Request?: ReturnType; - } = {}; - if (this.ServiceName != null) { - data.ServiceName = this.ServiceName; - } - if (this.ServiceDescription != null) { - data.ServiceDescription = this.ServiceDescription; - } - if (this.BinPath != null) { - data.BinPath = this.BinPath; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Arguments != null) { - data.Arguments = this.Arguments; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ServiceName === "string" && this.ServiceName.length) - writer.writeString(1, this.ServiceName); - if (typeof this.ServiceDescription === "string" && this.ServiceDescription.length) - writer.writeString(2, this.ServiceDescription); - if (typeof this.BinPath === "string" && this.BinPath.length) - writer.writeString(3, this.BinPath); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (typeof this.Arguments === "string" && this.Arguments.length) - writer.writeString(5, this.Arguments); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StartServiceReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StartServiceReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ServiceName = reader.readString(); - break; - case 2: - message.ServiceDescription = reader.readString(); - break; - case 3: - message.BinPath = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 5: - message.Arguments = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): StartServiceReq { - return StartServiceReq.deserialize(bytes); - } - } - export class ServiceInfo extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new ServiceInfo({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ServiceInfo { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ServiceInfo(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ServiceInfo { - return ServiceInfo.deserialize(bytes); - } - } - export class ServiceInfoReq extends pb_1.Message { - constructor(data?: any[] | { - ServiceName?: string; - Hostname?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ServiceName" in data && data.ServiceName != undefined) { - this.ServiceName = data.ServiceName; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - } - } - get ServiceName() { - return pb_1.Message.getField(this, 1) as string; - } - set ServiceName(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Hostname() { - return pb_1.Message.getField(this, 2) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - ServiceName?: string; - Hostname?: string; - }) { - const message = new ServiceInfoReq({}); - if (data.ServiceName != null) { - message.ServiceName = data.ServiceName; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - return message; - } - toObject() { - const data: { - ServiceName?: string; - Hostname?: string; - } = {}; - if (this.ServiceName != null) { - data.ServiceName = this.ServiceName; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.ServiceName === "string" && this.ServiceName.length) - writer.writeString(1, this.ServiceName); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(2, this.Hostname); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ServiceInfoReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ServiceInfoReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ServiceName = reader.readString(); - break; - case 2: - message.Hostname = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ServiceInfoReq { - return ServiceInfoReq.deserialize(bytes); - } - } - export class StopServiceReq extends pb_1.Message { - constructor(data?: any[] | { - ServiceInfo?: ServiceInfoReq; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ServiceInfo" in data && data.ServiceInfo != undefined) { - this.ServiceInfo = data.ServiceInfo; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ServiceInfo() { - return pb_1.Message.getWrapperField(this, ServiceInfoReq, 1) as ServiceInfoReq; - } - set ServiceInfo(value: ServiceInfoReq) { - pb_1.Message.setWrapperField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ServiceInfo?: ReturnType; - Request?: ReturnType; - }) { - const message = new StopServiceReq({}); - if (data.ServiceInfo != null) { - message.ServiceInfo = ServiceInfoReq.fromObject(data.ServiceInfo); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ServiceInfo?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.ServiceInfo != null) { - data.ServiceInfo = this.ServiceInfo.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ServiceInfo !== undefined) - writer.writeMessage(1, this.ServiceInfo, () => this.ServiceInfo.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): StopServiceReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new StopServiceReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.ServiceInfo, () => message.ServiceInfo = ServiceInfoReq.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): StopServiceReq { - return StopServiceReq.deserialize(bytes); - } - } - export class RemoveServiceReq extends pb_1.Message { - constructor(data?: any[] | { - ServiceInfo?: ServiceInfoReq; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ServiceInfo" in data && data.ServiceInfo != undefined) { - this.ServiceInfo = data.ServiceInfo; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ServiceInfo() { - return pb_1.Message.getWrapperField(this, ServiceInfoReq, 1) as ServiceInfoReq; - } - set ServiceInfo(value: ServiceInfoReq) { - pb_1.Message.setWrapperField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ServiceInfo?: ReturnType; - Request?: ReturnType; - }) { - const message = new RemoveServiceReq({}); - if (data.ServiceInfo != null) { - message.ServiceInfo = ServiceInfoReq.fromObject(data.ServiceInfo); - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ServiceInfo?: ReturnType; - Request?: ReturnType; - } = {}; - if (this.ServiceInfo != null) { - data.ServiceInfo = this.ServiceInfo.toObject(); - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ServiceInfo !== undefined) - writer.writeMessage(1, this.ServiceInfo, () => this.ServiceInfo.serialize(writer)); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RemoveServiceReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RemoveServiceReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.ServiceInfo, () => message.ServiceInfo = ServiceInfoReq.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RemoveServiceReq { - return RemoveServiceReq.deserialize(bytes); - } - } - export class BackdoorReq extends pb_1.Message { - constructor(data?: any[] | { - FilePath?: string; - ProfileName?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("FilePath" in data && data.FilePath != undefined) { - this.FilePath = data.FilePath; - } - if ("ProfileName" in data && data.ProfileName != undefined) { - this.ProfileName = data.ProfileName; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get FilePath() { - return pb_1.Message.getField(this, 1) as string; - } - set FilePath(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ProfileName() { - return pb_1.Message.getField(this, 2) as string; - } - set ProfileName(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - FilePath?: string; - ProfileName?: string; - Request?: ReturnType; - }) { - const message = new BackdoorReq({}); - if (data.FilePath != null) { - message.FilePath = data.FilePath; - } - if (data.ProfileName != null) { - message.ProfileName = data.ProfileName; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - FilePath?: string; - ProfileName?: string; - Request?: ReturnType; - } = {}; - if (this.FilePath != null) { - data.FilePath = this.FilePath; - } - if (this.ProfileName != null) { - data.ProfileName = this.ProfileName; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.FilePath === "string" && this.FilePath.length) - writer.writeString(1, this.FilePath); - if (typeof this.ProfileName === "string" && this.ProfileName.length) - writer.writeString(2, this.ProfileName); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): BackdoorReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new BackdoorReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.FilePath = reader.readString(); - break; - case 2: - message.ProfileName = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): BackdoorReq { - return BackdoorReq.deserialize(bytes); - } - } - export class Backdoor extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new Backdoor({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Backdoor { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Backdoor(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Backdoor { - return Backdoor.deserialize(bytes); - } - } - export class RegistryReadReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Key() { - return pb_1.Message.getField(this, 3) as string; - } - set Key(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - }) { - const message = new RegistryReadReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Key === "string" && this.Key.length) - writer.writeString(3, this.Key); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryReadReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryReadReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 3: - message.Key = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryReadReq { - return RegistryReadReq.deserialize(bytes); - } - } - export class RegistryRead extends pb_1.Message { - constructor(data?: any[] | { - Value?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Value" in data && data.Value != undefined) { - this.Value = data.Value; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Value() { - return pb_1.Message.getField(this, 1) as string; - } - set Value(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Value?: string; - Response?: ReturnType; - }) { - const message = new RegistryRead({}); - if (data.Value != null) { - message.Value = data.Value; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Value?: string; - Response?: ReturnType; - } = {}; - if (this.Value != null) { - data.Value = this.Value; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Value === "string" && this.Value.length) - writer.writeString(1, this.Value); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryRead { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryRead(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Value = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryRead { - return RegistryRead.deserialize(bytes); - } - } - export class RegistryWriteReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - StringValue?: string; - ByteValue?: Uint8Array; - DWordValue?: number; - QWordValue?: number; - Type?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("StringValue" in data && data.StringValue != undefined) { - this.StringValue = data.StringValue; - } - if ("ByteValue" in data && data.ByteValue != undefined) { - this.ByteValue = data.ByteValue; - } - if ("DWordValue" in data && data.DWordValue != undefined) { - this.DWordValue = data.DWordValue; - } - if ("QWordValue" in data && data.QWordValue != undefined) { - this.QWordValue = data.QWordValue; - } - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Key() { - return pb_1.Message.getField(this, 3) as string; - } - set Key(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get StringValue() { - return pb_1.Message.getField(this, 5) as string; - } - set StringValue(value: string) { - pb_1.Message.setField(this, 5, value); - } - get ByteValue() { - return pb_1.Message.getField(this, 6) as Uint8Array; - } - set ByteValue(value: Uint8Array) { - pb_1.Message.setField(this, 6, value); - } - get DWordValue() { - return pb_1.Message.getField(this, 7) as number; - } - set DWordValue(value: number) { - pb_1.Message.setField(this, 7, value); - } - get QWordValue() { - return pb_1.Message.getField(this, 8) as number; - } - set QWordValue(value: number) { - pb_1.Message.setField(this, 8, value); - } - get Type() { - return pb_1.Message.getField(this, 10) as number; - } - set Type(value: number) { - pb_1.Message.setField(this, 10, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - StringValue?: string; - ByteValue?: Uint8Array; - DWordValue?: number; - QWordValue?: number; - Type?: number; - Request?: ReturnType; - }) { - const message = new RegistryWriteReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.StringValue != null) { - message.StringValue = data.StringValue; - } - if (data.ByteValue != null) { - message.ByteValue = data.ByteValue; - } - if (data.DWordValue != null) { - message.DWordValue = data.DWordValue; - } - if (data.QWordValue != null) { - message.QWordValue = data.QWordValue; - } - if (data.Type != null) { - message.Type = data.Type; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - StringValue?: string; - ByteValue?: Uint8Array; - DWordValue?: number; - QWordValue?: number; - Type?: number; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.StringValue != null) { - data.StringValue = this.StringValue; - } - if (this.ByteValue != null) { - data.ByteValue = this.ByteValue; - } - if (this.DWordValue != null) { - data.DWordValue = this.DWordValue; - } - if (this.QWordValue != null) { - data.QWordValue = this.QWordValue; - } - if (this.Type != null) { - data.Type = this.Type; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Key === "string" && this.Key.length) - writer.writeString(3, this.Key); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (typeof this.StringValue === "string" && this.StringValue.length) - writer.writeString(5, this.StringValue); - if (this.ByteValue !== undefined) - writer.writeBytes(6, this.ByteValue); - if (this.DWordValue !== undefined) - writer.writeUint32(7, this.DWordValue); - if (this.QWordValue !== undefined) - writer.writeUint64(8, this.QWordValue); - if (this.Type !== undefined) - writer.writeUint32(10, this.Type); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryWriteReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryWriteReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 3: - message.Key = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 5: - message.StringValue = reader.readString(); - break; - case 6: - message.ByteValue = reader.readBytes(); - break; - case 7: - message.DWordValue = reader.readUint32(); - break; - case 8: - message.QWordValue = reader.readUint64(); - break; - case 10: - message.Type = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryWriteReq { - return RegistryWriteReq.deserialize(bytes); - } - } - export class RegistryWrite extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new RegistryWrite({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryWrite { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryWrite(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryWrite { - return RegistryWrite.deserialize(bytes); - } - } - export class RegistryCreateKeyReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Key() { - return pb_1.Message.getField(this, 3) as string; - } - set Key(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - }) { - const message = new RegistryCreateKeyReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Key === "string" && this.Key.length) - writer.writeString(3, this.Key); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryCreateKeyReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryCreateKeyReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 3: - message.Key = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryCreateKeyReq { - return RegistryCreateKeyReq.deserialize(bytes); - } - } - export class RegistryCreateKey extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new RegistryCreateKey({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryCreateKey { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryCreateKey(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryCreateKey { - return RegistryCreateKey.deserialize(bytes); - } - } - export class RegistryDeleteKeyReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Key" in data && data.Key != undefined) { - this.Key = data.Key; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Key() { - return pb_1.Message.getField(this, 3) as string; - } - set Key(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - }) { - const message = new RegistryDeleteKeyReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Key != null) { - message.Key = data.Key; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Key?: string; - Hostname?: string; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Key != null) { - data.Key = this.Key; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Key === "string" && this.Key.length) - writer.writeString(3, this.Key); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryDeleteKeyReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryDeleteKeyReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 3: - message.Key = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryDeleteKeyReq { - return RegistryDeleteKeyReq.deserialize(bytes); - } - } - export class RegistryDeleteKey extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new RegistryDeleteKey({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryDeleteKey { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryDeleteKey(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryDeleteKey { - return RegistryDeleteKey.deserialize(bytes); - } - } - export class RegistrySubKeyListReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: ReturnType; - }) { - const message = new RegistrySubKeyListReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistrySubKeyListReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistrySubKeyListReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistrySubKeyListReq { - return RegistrySubKeyListReq.deserialize(bytes); - } - } - export class RegistrySubKeyList extends pb_1.Message { - constructor(data?: any[] | { - Subkeys?: string[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Subkeys" in data && data.Subkeys != undefined) { - this.Subkeys = data.Subkeys; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Subkeys() { - return pb_1.Message.getField(this, 1) as string[]; - } - set Subkeys(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Subkeys?: string[]; - Response?: ReturnType; - }) { - const message = new RegistrySubKeyList({}); - if (data.Subkeys != null) { - message.Subkeys = data.Subkeys; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Subkeys?: string[]; - Response?: ReturnType; - } = {}; - if (this.Subkeys != null) { - data.Subkeys = this.Subkeys; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Subkeys !== undefined) - writer.writeRepeatedString(1, this.Subkeys); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistrySubKeyList { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistrySubKeyList(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistrySubKeyList { - return RegistrySubKeyList.deserialize(bytes); - } - } - export class RegistryListValuesReq extends pb_1.Message { - constructor(data?: any[] | { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Hive" in data && data.Hive != undefined) { - this.Hive = data.Hive; - } - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Hive() { - return pb_1.Message.getField(this, 1) as string; - } - set Hive(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Path() { - return pb_1.Message.getField(this, 2) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Hostname() { - return pb_1.Message.getField(this, 4) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: ReturnType; - }) { - const message = new RegistryListValuesReq({}); - if (data.Hive != null) { - message.Hive = data.Hive; - } - if (data.Path != null) { - message.Path = data.Path; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Hive?: string; - Path?: string; - Hostname?: string; - Request?: ReturnType; - } = {}; - if (this.Hive != null) { - data.Hive = this.Hive; - } - if (this.Path != null) { - data.Path = this.Path; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Hive === "string" && this.Hive.length) - writer.writeString(1, this.Hive); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(2, this.Path); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(4, this.Hostname); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryListValuesReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryListValuesReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Hive = reader.readString(); - break; - case 2: - message.Path = reader.readString(); - break; - case 4: - message.Hostname = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryListValuesReq { - return RegistryListValuesReq.deserialize(bytes); - } - } - export class RegistryValuesList extends pb_1.Message { - constructor(data?: any[] | { - ValueNames?: string[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ValueNames" in data && data.ValueNames != undefined) { - this.ValueNames = data.ValueNames; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get ValueNames() { - return pb_1.Message.getField(this, 1) as string[]; - } - set ValueNames(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ValueNames?: string[]; - Response?: ReturnType; - }) { - const message = new RegistryValuesList({}); - if (data.ValueNames != null) { - message.ValueNames = data.ValueNames; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - ValueNames?: string[]; - Response?: ReturnType; - } = {}; - if (this.ValueNames != null) { - data.ValueNames = this.ValueNames; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ValueNames !== undefined) - writer.writeRepeatedString(1, this.ValueNames); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegistryValuesList { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegistryValuesList(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegistryValuesList { - return RegistryValuesList.deserialize(bytes); - } - } - export class Tunnel extends pb_1.Message { - constructor(data?: any[] | { - TunnelID?: string; - SessionID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - } - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get SessionID() { - return pb_1.Message.getField(this, 9) as string; - } - set SessionID(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - TunnelID?: string; - SessionID?: string; - }) { - const message = new Tunnel({}); - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - return message; - } - toObject() { - const data: { - TunnelID?: string; - SessionID?: string; - } = {}; - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (typeof this.SessionID === "string" && this.SessionID.length) - writer.writeString(9, this.SessionID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Tunnel { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Tunnel(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - message.SessionID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Tunnel { - return Tunnel.deserialize(bytes); - } - } - export class TunnelData extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - Closed?: boolean; - Sequence?: number; - Ack?: number; - Resend?: boolean; - TunnelID?: string; - SessionID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("Closed" in data && data.Closed != undefined) { - this.Closed = data.Closed; - } - if ("Sequence" in data && data.Sequence != undefined) { - this.Sequence = data.Sequence; - } - if ("Ack" in data && data.Ack != undefined) { - this.Ack = data.Ack; - } - if ("Resend" in data && data.Resend != undefined) { - this.Resend = data.Resend; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get Closed() { - return pb_1.Message.getField(this, 2) as boolean; - } - set Closed(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Sequence() { - return pb_1.Message.getField(this, 3) as number; - } - set Sequence(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Ack() { - return pb_1.Message.getField(this, 4) as number; - } - set Ack(value: number) { - pb_1.Message.setField(this, 4, value); - } - get Resend() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Resend(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get SessionID() { - return pb_1.Message.getField(this, 9) as string; - } - set SessionID(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - Closed?: boolean; - Sequence?: number; - Ack?: number; - Resend?: boolean; - TunnelID?: string; - SessionID?: string; - }) { - const message = new TunnelData({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.Closed != null) { - message.Closed = data.Closed; - } - if (data.Sequence != null) { - message.Sequence = data.Sequence; - } - if (data.Ack != null) { - message.Ack = data.Ack; - } - if (data.Resend != null) { - message.Resend = data.Resend; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - Closed?: boolean; - Sequence?: number; - Ack?: number; - Resend?: boolean; - TunnelID?: string; - SessionID?: string; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.Closed != null) { - data.Closed = this.Closed; - } - if (this.Sequence != null) { - data.Sequence = this.Sequence; - } - if (this.Ack != null) { - data.Ack = this.Ack; - } - if (this.Resend != null) { - data.Resend = this.Resend; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (this.Closed !== undefined) - writer.writeBool(2, this.Closed); - if (this.Sequence !== undefined) - writer.writeUint64(3, this.Sequence); - if (this.Ack !== undefined) - writer.writeUint64(4, this.Ack); - if (this.Resend !== undefined) - writer.writeBool(5, this.Resend); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (typeof this.SessionID === "string" && this.SessionID.length) - writer.writeString(9, this.SessionID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): TunnelData { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new TunnelData(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.Closed = reader.readBool(); - break; - case 3: - message.Sequence = reader.readUint64(); - break; - case 4: - message.Ack = reader.readUint64(); - break; - case 5: - message.Resend = reader.readBool(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - message.SessionID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): TunnelData { - return TunnelData.deserialize(bytes); - } - } - export class ShellReq extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("EnablePTY" in data && data.EnablePTY != undefined) { - this.EnablePTY = data.EnablePTY; - } - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get EnablePTY() { - return pb_1.Message.getField(this, 2) as boolean; - } - set EnablePTY(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Pid() { - return pb_1.Message.getField(this, 3) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 3, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Request?: ReturnType; - }) { - const message = new ShellReq({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.EnablePTY != null) { - message.EnablePTY = data.EnablePTY; - } - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Request?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.EnablePTY != null) { - data.EnablePTY = this.EnablePTY; - } - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.EnablePTY !== undefined) - writer.writeBool(2, this.EnablePTY); - if (this.Pid !== undefined) - writer.writeUint32(3, this.Pid); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ShellReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ShellReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.EnablePTY = reader.readBool(); - break; - case 3: - message.Pid = reader.readUint32(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ShellReq { - return ShellReq.deserialize(bytes); - } - } - export class Shell extends pb_1.Message { - constructor(data?: any[] | { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Path" in data && data.Path != undefined) { - this.Path = data.Path; - } - if ("EnablePTY" in data && data.EnablePTY != undefined) { - this.EnablePTY = data.EnablePTY; - } - if ("Pid" in data && data.Pid != undefined) { - this.Pid = data.Pid; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Path() { - return pb_1.Message.getField(this, 1) as string; - } - set Path(value: string) { - pb_1.Message.setField(this, 1, value); - } - get EnablePTY() { - return pb_1.Message.getField(this, 2) as boolean; - } - set EnablePTY(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Pid() { - return pb_1.Message.getField(this, 3) as number; - } - set Pid(value: number) { - pb_1.Message.setField(this, 3, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Response?: ReturnType; - }) { - const message = new Shell({}); - if (data.Path != null) { - message.Path = data.Path; - } - if (data.EnablePTY != null) { - message.EnablePTY = data.EnablePTY; - } - if (data.Pid != null) { - message.Pid = data.Pid; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Path?: string; - EnablePTY?: boolean; - Pid?: number; - TunnelID?: string; - Response?: ReturnType; - } = {}; - if (this.Path != null) { - data.Path = this.Path; - } - if (this.EnablePTY != null) { - data.EnablePTY = this.EnablePTY; - } - if (this.Pid != null) { - data.Pid = this.Pid; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Path === "string" && this.Path.length) - writer.writeString(1, this.Path); - if (this.EnablePTY !== undefined) - writer.writeBool(2, this.EnablePTY); - if (this.Pid !== undefined) - writer.writeUint32(3, this.Pid); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Shell { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Shell(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Path = reader.readString(); - break; - case 2: - message.EnablePTY = reader.readBool(); - break; - case 3: - message.Pid = reader.readUint32(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Shell { - return Shell.deserialize(bytes); - } - } - export class PortfwdReq extends pb_1.Message { - constructor(data?: any[] | { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Port() { - return pb_1.Message.getField(this, 1) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Protocol() { - return pb_1.Message.getField(this, 2) as number; - } - set Protocol(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Host() { - return pb_1.Message.getField(this, 3) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 3, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Request?: ReturnType; - }) { - const message = new PortfwdReq({}); - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Request?: ReturnType; - } = {}; - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Port !== undefined) - writer.writeUint32(1, this.Port); - if (this.Protocol !== undefined) - writer.writeInt32(2, this.Protocol); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(3, this.Host); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PortfwdReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PortfwdReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Port = reader.readUint32(); - break; - case 2: - message.Protocol = reader.readInt32(); - break; - case 3: - message.Host = reader.readString(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PortfwdReq { - return PortfwdReq.deserialize(bytes); - } - } - export class Portfwd extends pb_1.Message { - constructor(data?: any[] | { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Protocol" in data && data.Protocol != undefined) { - this.Protocol = data.Protocol; - } - if ("Host" in data && data.Host != undefined) { - this.Host = data.Host; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Port() { - return pb_1.Message.getField(this, 1) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Protocol() { - return pb_1.Message.getField(this, 2) as number; - } - set Protocol(value: number) { - pb_1.Message.setField(this, 2, value); - } - get Host() { - return pb_1.Message.getField(this, 3) as string; - } - set Host(value: string) { - pb_1.Message.setField(this, 3, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Response?: ReturnType; - }) { - const message = new Portfwd({}); - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Protocol != null) { - message.Protocol = data.Protocol; - } - if (data.Host != null) { - message.Host = data.Host; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Port?: number; - Protocol?: number; - Host?: string; - TunnelID?: string; - Response?: ReturnType; - } = {}; - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Protocol != null) { - data.Protocol = this.Protocol; - } - if (this.Host != null) { - data.Host = this.Host; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Port !== undefined) - writer.writeUint32(1, this.Port); - if (this.Protocol !== undefined) - writer.writeInt32(2, this.Protocol); - if (typeof this.Host === "string" && this.Host.length) - writer.writeString(3, this.Host); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Portfwd { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Portfwd(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Port = reader.readUint32(); - break; - case 2: - message.Protocol = reader.readInt32(); - break; - case 3: - message.Host = reader.readString(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Portfwd { - return Portfwd.deserialize(bytes); - } - } - export class Socks extends pb_1.Message { - constructor(data?: any[] | { - TunnelID?: string; - SessionID?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("SessionID" in data && data.SessionID != undefined) { - this.SessionID = data.SessionID; - } - } - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get SessionID() { - return pb_1.Message.getField(this, 9) as string; - } - set SessionID(value: string) { - pb_1.Message.setField(this, 9, value); - } - static fromObject(data: { - TunnelID?: string; - SessionID?: string; - }) { - const message = new Socks({}); - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.SessionID != null) { - message.SessionID = data.SessionID; - } - return message; - } - toObject() { - const data: { - TunnelID?: string; - SessionID?: string; - } = {}; - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.SessionID != null) { - data.SessionID = this.SessionID; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (typeof this.SessionID === "string" && this.SessionID.length) - writer.writeString(9, this.SessionID); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Socks { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Socks(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - message.SessionID = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Socks { - return Socks.deserialize(bytes); - } - } - export class SocksData extends pb_1.Message { - constructor(data?: any[] | { - Data?: Uint8Array; - CloseConn?: boolean; - Username?: string; - Password?: string; - Sequence?: number; - TunnelID?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("CloseConn" in data && data.CloseConn != undefined) { - this.CloseConn = data.CloseConn; - } - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("Password" in data && data.Password != undefined) { - this.Password = data.Password; - } - if ("Sequence" in data && data.Sequence != undefined) { - this.Sequence = data.Sequence; - } - if ("TunnelID" in data && data.TunnelID != undefined) { - this.TunnelID = data.TunnelID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Data() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get CloseConn() { - return pb_1.Message.getField(this, 2) as boolean; - } - set CloseConn(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Username() { - return pb_1.Message.getField(this, 3) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Password() { - return pb_1.Message.getField(this, 4) as string; - } - set Password(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Sequence() { - return pb_1.Message.getField(this, 5) as number; - } - set Sequence(value: number) { - pb_1.Message.setField(this, 5, value); - } - get TunnelID() { - return pb_1.Message.getField(this, 8) as string; - } - set TunnelID(value: string) { - pb_1.Message.setField(this, 8, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Data?: Uint8Array; - CloseConn?: boolean; - Username?: string; - Password?: string; - Sequence?: number; - TunnelID?: string; - Request?: ReturnType; - }) { - const message = new SocksData({}); - if (data.Data != null) { - message.Data = data.Data; - } - if (data.CloseConn != null) { - message.CloseConn = data.CloseConn; - } - if (data.Username != null) { - message.Username = data.Username; - } - if (data.Password != null) { - message.Password = data.Password; - } - if (data.Sequence != null) { - message.Sequence = data.Sequence; - } - if (data.TunnelID != null) { - message.TunnelID = data.TunnelID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Data?: Uint8Array; - CloseConn?: boolean; - Username?: string; - Password?: string; - Sequence?: number; - TunnelID?: string; - Request?: ReturnType; - } = {}; - if (this.Data != null) { - data.Data = this.Data; - } - if (this.CloseConn != null) { - data.CloseConn = this.CloseConn; - } - if (this.Username != null) { - data.Username = this.Username; - } - if (this.Password != null) { - data.Password = this.Password; - } - if (this.Sequence != null) { - data.Sequence = this.Sequence; - } - if (this.TunnelID != null) { - data.TunnelID = this.TunnelID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Data !== undefined) - writer.writeBytes(1, this.Data); - if (this.CloseConn !== undefined) - writer.writeBool(2, this.CloseConn); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(3, this.Username); - if (typeof this.Password === "string" && this.Password.length) - writer.writeString(4, this.Password); - if (this.Sequence !== undefined) - writer.writeUint64(5, this.Sequence); - if (this.TunnelID !== undefined) - writer.writeUint64String(8, this.TunnelID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SocksData { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SocksData(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Data = reader.readBytes(); - break; - case 2: - message.CloseConn = reader.readBool(); - break; - case 3: - message.Username = reader.readString(); - break; - case 4: - message.Password = reader.readString(); - break; - case 5: - message.Sequence = reader.readUint64(); - break; - case 8: - message.TunnelID = reader.readUint64String(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SocksData { - return SocksData.deserialize(bytes); - } - } - export class PivotStartListenerReq extends pb_1.Message { - constructor(data?: any[] | { - Type?: PivotType; - BindAddress?: string; - Options?: boolean[]; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [3], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("BindAddress" in data && data.BindAddress != undefined) { - this.BindAddress = data.BindAddress; - } - if ("Options" in data && data.Options != undefined) { - this.Options = data.Options; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Type() { - return pb_1.Message.getField(this, 1) as PivotType; - } - set Type(value: PivotType) { - pb_1.Message.setField(this, 1, value); - } - get BindAddress() { - return pb_1.Message.getField(this, 2) as string; - } - set BindAddress(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Options() { - return pb_1.Message.getField(this, 3) as boolean[]; - } - set Options(value: boolean[]) { - pb_1.Message.setField(this, 3, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Type?: PivotType; - BindAddress?: string; - Options?: boolean[]; - Request?: ReturnType; - }) { - const message = new PivotStartListenerReq({}); - if (data.Type != null) { - message.Type = data.Type; - } - if (data.BindAddress != null) { - message.BindAddress = data.BindAddress; - } - if (data.Options != null) { - message.Options = data.Options; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Type?: PivotType; - BindAddress?: string; - Options?: boolean[]; - Request?: ReturnType; - } = {}; - if (this.Type != null) { - data.Type = this.Type; - } - if (this.BindAddress != null) { - data.BindAddress = this.BindAddress; - } - if (this.Options != null) { - data.Options = this.Options; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Type !== undefined) - writer.writeEnum(1, this.Type); - if (typeof this.BindAddress === "string" && this.BindAddress.length) - writer.writeString(2, this.BindAddress); - if (this.Options !== undefined) - writer.writePackedBool(3, this.Options); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotStartListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotStartListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Type = reader.readEnum(); - break; - case 2: - message.BindAddress = reader.readString(); - break; - case 3: - message.Options = reader.readPackedBool(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotStartListenerReq { - return PivotStartListenerReq.deserialize(bytes); - } - } - export class PivotStopListenerReq extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ID?: number; - Request?: ReturnType; - }) { - const message = new PivotStopListenerReq({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ID?: number; - Request?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotStopListenerReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotStopListenerReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotStopListenerReq { - return PivotStopListenerReq.deserialize(bytes); - } - } - export class PivotListener extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Type?: PivotType; - BindAddress?: string; - Pivots?: NetConnPivot[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [4], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("BindAddress" in data && data.BindAddress != undefined) { - this.BindAddress = data.BindAddress; - } - if ("Pivots" in data && data.Pivots != undefined) { - this.Pivots = data.Pivots; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Type() { - return pb_1.Message.getField(this, 2) as PivotType; - } - set Type(value: PivotType) { - pb_1.Message.setField(this, 2, value); - } - get BindAddress() { - return pb_1.Message.getField(this, 3) as string; - } - set BindAddress(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Pivots() { - return pb_1.Message.getRepeatedWrapperField(this, NetConnPivot, 4) as NetConnPivot[]; - } - set Pivots(value: NetConnPivot[]) { - pb_1.Message.setRepeatedWrapperField(this, 4, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ID?: number; - Type?: PivotType; - BindAddress?: string; - Pivots?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new PivotListener({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Type != null) { - message.Type = data.Type; - } - if (data.BindAddress != null) { - message.BindAddress = data.BindAddress; - } - if (data.Pivots != null) { - message.Pivots = data.Pivots.map(item => NetConnPivot.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - ID?: number; - Type?: PivotType; - BindAddress?: string; - Pivots?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Type != null) { - data.Type = this.Type; - } - if (this.BindAddress != null) { - data.BindAddress = this.BindAddress; - } - if (this.Pivots != null) { - data.Pivots = this.Pivots.map((item: NetConnPivot) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeUint32(1, this.ID); - if (this.Type !== undefined) - writer.writeEnum(2, this.Type); - if (typeof this.BindAddress === "string" && this.BindAddress.length) - writer.writeString(3, this.BindAddress); - if (this.Pivots !== undefined) - writer.writeRepeatedMessage(4, this.Pivots, (item: NetConnPivot) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotListener { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotListener(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readUint32(); - break; - case 2: - message.Type = reader.readEnum(); - break; - case 3: - message.BindAddress = reader.readString(); - break; - case 4: - reader.readMessage(message.Pivots, () => pb_1.Message.addToRepeatedWrapperField(message, 4, NetConnPivot.deserialize(reader), NetConnPivot)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotListener { - return PivotListener.deserialize(bytes); - } - } - export class PivotHello extends pb_1.Message { - constructor(data?: any[] | { - PublicKey?: Uint8Array; - PeerID?: string; - PublicKeySignature?: string; - SessionKey?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PublicKey" in data && data.PublicKey != undefined) { - this.PublicKey = data.PublicKey; - } - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - if ("PublicKeySignature" in data && data.PublicKeySignature != undefined) { - this.PublicKeySignature = data.PublicKeySignature; - } - if ("SessionKey" in data && data.SessionKey != undefined) { - this.SessionKey = data.SessionKey; - } - } - } - get PublicKey() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set PublicKey(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get PeerID() { - return pb_1.Message.getField(this, 2) as string; - } - set PeerID(value: string) { - pb_1.Message.setField(this, 2, value); - } - get PublicKeySignature() { - return pb_1.Message.getField(this, 3) as string; - } - set PublicKeySignature(value: string) { - pb_1.Message.setField(this, 3, value); - } - get SessionKey() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set SessionKey(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - static fromObject(data: { - PublicKey?: Uint8Array; - PeerID?: string; - PublicKeySignature?: string; - SessionKey?: Uint8Array; - }) { - const message = new PivotHello({}); - if (data.PublicKey != null) { - message.PublicKey = data.PublicKey; - } - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - if (data.PublicKeySignature != null) { - message.PublicKeySignature = data.PublicKeySignature; - } - if (data.SessionKey != null) { - message.SessionKey = data.SessionKey; - } - return message; - } - toObject() { - const data: { - PublicKey?: Uint8Array; - PeerID?: string; - PublicKeySignature?: string; - SessionKey?: Uint8Array; - } = {}; - if (this.PublicKey != null) { - data.PublicKey = this.PublicKey; - } - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - if (this.PublicKeySignature != null) { - data.PublicKeySignature = this.PublicKeySignature; - } - if (this.SessionKey != null) { - data.SessionKey = this.SessionKey; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PublicKey !== undefined) - writer.writeBytes(1, this.PublicKey); - if (this.PeerID !== undefined) - writer.writeInt64String(2, this.PeerID); - if (typeof this.PublicKeySignature === "string" && this.PublicKeySignature.length) - writer.writeString(3, this.PublicKeySignature); - if (this.SessionKey !== undefined) - writer.writeBytes(4, this.SessionKey); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotHello { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotHello(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PublicKey = reader.readBytes(); - break; - case 2: - message.PeerID = reader.readInt64String(); - break; - case 3: - message.PublicKeySignature = reader.readString(); - break; - case 4: - message.SessionKey = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotHello { - return PivotHello.deserialize(bytes); - } - } - export class PivotServerKeyExchange extends pb_1.Message { - constructor(data?: any[] | { - OriginID?: number; - SessionKey?: Uint8Array; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("OriginID" in data && data.OriginID != undefined) { - this.OriginID = data.OriginID; - } - if ("SessionKey" in data && data.SessionKey != undefined) { - this.SessionKey = data.SessionKey; - } - } - } - get OriginID() { - return pb_1.Message.getField(this, 1) as number; - } - set OriginID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get SessionKey() { - return pb_1.Message.getField(this, 2) as Uint8Array; - } - set SessionKey(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - OriginID?: number; - SessionKey?: Uint8Array; - }) { - const message = new PivotServerKeyExchange({}); - if (data.OriginID != null) { - message.OriginID = data.OriginID; - } - if (data.SessionKey != null) { - message.SessionKey = data.SessionKey; - } - return message; - } - toObject() { - const data: { - OriginID?: number; - SessionKey?: Uint8Array; - } = {}; - if (this.OriginID != null) { - data.OriginID = this.OriginID; - } - if (this.SessionKey != null) { - data.SessionKey = this.SessionKey; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.OriginID !== undefined) - writer.writeInt64(1, this.OriginID); - if (this.SessionKey !== undefined) - writer.writeBytes(2, this.SessionKey); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotServerKeyExchange { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotServerKeyExchange(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.OriginID = reader.readInt64(); - break; - case 2: - message.SessionKey = reader.readBytes(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotServerKeyExchange { - return PivotServerKeyExchange.deserialize(bytes); - } - } - export class PivotPeer extends pb_1.Message { - constructor(data?: any[] | { - PeerID?: string; - Name?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - } - } - get PeerID() { - return pb_1.Message.getField(this, 1) as string; - } - set PeerID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Name() { - return pb_1.Message.getField(this, 2) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - PeerID?: string; - Name?: string; - }) { - const message = new PivotPeer({}); - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - if (data.Name != null) { - message.Name = data.Name; - } - return message; - } - toObject() { - const data: { - PeerID?: string; - Name?: string; - } = {}; - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - if (this.Name != null) { - data.Name = this.Name; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PeerID !== undefined) - writer.writeInt64String(1, this.PeerID); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(2, this.Name); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotPeer { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotPeer(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PeerID = reader.readInt64String(); - break; - case 2: - message.Name = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotPeer { - return PivotPeer.deserialize(bytes); - } - } - export class PivotPeerEnvelope extends pb_1.Message { - constructor(data?: any[] | { - Peers?: PivotPeer[]; - Type?: number; - PivotSessionID?: Uint8Array; - Data?: Uint8Array; - PeerFailureAt?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Peers" in data && data.Peers != undefined) { - this.Peers = data.Peers; - } - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("PivotSessionID" in data && data.PivotSessionID != undefined) { - this.PivotSessionID = data.PivotSessionID; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("PeerFailureAt" in data && data.PeerFailureAt != undefined) { - this.PeerFailureAt = data.PeerFailureAt; - } - } - } - get Peers() { - return pb_1.Message.getRepeatedWrapperField(this, PivotPeer, 1) as PivotPeer[]; - } - set Peers(value: PivotPeer[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Type() { - return pb_1.Message.getField(this, 2) as number; - } - set Type(value: number) { - pb_1.Message.setField(this, 2, value); - } - get PivotSessionID() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set PivotSessionID(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get Data() { - return pb_1.Message.getField(this, 4) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 4, value); - } - get PeerFailureAt() { - return pb_1.Message.getField(this, 5) as number; - } - set PeerFailureAt(value: number) { - pb_1.Message.setField(this, 5, value); - } - static fromObject(data: { - Peers?: ReturnType[]; - Type?: number; - PivotSessionID?: Uint8Array; - Data?: Uint8Array; - PeerFailureAt?: number; - }) { - const message = new PivotPeerEnvelope({}); - if (data.Peers != null) { - message.Peers = data.Peers.map(item => PivotPeer.fromObject(item)); - } - if (data.Type != null) { - message.Type = data.Type; - } - if (data.PivotSessionID != null) { - message.PivotSessionID = data.PivotSessionID; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.PeerFailureAt != null) { - message.PeerFailureAt = data.PeerFailureAt; - } - return message; - } - toObject() { - const data: { - Peers?: ReturnType[]; - Type?: number; - PivotSessionID?: Uint8Array; - Data?: Uint8Array; - PeerFailureAt?: number; - } = {}; - if (this.Peers != null) { - data.Peers = this.Peers.map((item: PivotPeer) => item.toObject()); - } - if (this.Type != null) { - data.Type = this.Type; - } - if (this.PivotSessionID != null) { - data.PivotSessionID = this.PivotSessionID; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.PeerFailureAt != null) { - data.PeerFailureAt = this.PeerFailureAt; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Peers !== undefined) - writer.writeRepeatedMessage(1, this.Peers, (item: PivotPeer) => item.serialize(writer)); - if (this.Type !== undefined) - writer.writeUint32(2, this.Type); - if (this.PivotSessionID !== undefined) - writer.writeBytes(3, this.PivotSessionID); - if (this.Data !== undefined) - writer.writeBytes(4, this.Data); - if (this.PeerFailureAt !== undefined) - writer.writeInt64(5, this.PeerFailureAt); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotPeerEnvelope { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotPeerEnvelope(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Peers, () => pb_1.Message.addToRepeatedWrapperField(message, 1, PivotPeer.deserialize(reader), PivotPeer)); - break; - case 2: - message.Type = reader.readUint32(); - break; - case 3: - message.PivotSessionID = reader.readBytes(); - break; - case 4: - message.Data = reader.readBytes(); - break; - case 5: - message.PeerFailureAt = reader.readInt64(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotPeerEnvelope { - return PivotPeerEnvelope.deserialize(bytes); - } - } - export class PivotPing extends pb_1.Message { - constructor(data?: any[] | { - Nonce?: number; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Nonce" in data && data.Nonce != undefined) { - this.Nonce = data.Nonce; - } - } - } - get Nonce() { - return pb_1.Message.getField(this, 1) as number; - } - set Nonce(value: number) { - pb_1.Message.setField(this, 1, value); - } - static fromObject(data: { - Nonce?: number; - }) { - const message = new PivotPing({}); - if (data.Nonce != null) { - message.Nonce = data.Nonce; - } - return message; - } - toObject() { - const data: { - Nonce?: number; - } = {}; - if (this.Nonce != null) { - data.Nonce = this.Nonce; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Nonce !== undefined) - writer.writeUint32(1, this.Nonce); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotPing { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotPing(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Nonce = reader.readUint32(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotPing { - return PivotPing.deserialize(bytes); - } - } - export class NetConnPivot extends pb_1.Message { - constructor(data?: any[] | { - PeerID?: string; - RemoteAddress?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - if ("RemoteAddress" in data && data.RemoteAddress != undefined) { - this.RemoteAddress = data.RemoteAddress; - } - } - } - get PeerID() { - return pb_1.Message.getField(this, 1) as string; - } - set PeerID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get RemoteAddress() { - return pb_1.Message.getField(this, 2) as string; - } - set RemoteAddress(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - PeerID?: string; - RemoteAddress?: string; - }) { - const message = new NetConnPivot({}); - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - if (data.RemoteAddress != null) { - message.RemoteAddress = data.RemoteAddress; - } - return message; - } - toObject() { - const data: { - PeerID?: string; - RemoteAddress?: string; - } = {}; - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - if (this.RemoteAddress != null) { - data.RemoteAddress = this.RemoteAddress; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PeerID !== undefined) - writer.writeInt64String(1, this.PeerID); - if (typeof this.RemoteAddress === "string" && this.RemoteAddress.length) - writer.writeString(2, this.RemoteAddress); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): NetConnPivot { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new NetConnPivot(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PeerID = reader.readInt64String(); - break; - case 2: - message.RemoteAddress = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): NetConnPivot { - return NetConnPivot.deserialize(bytes); - } - } - export class PivotPeerFailure extends pb_1.Message { - constructor(data?: any[] | { - PeerID?: string; - Type?: PeerFailureType; - Err?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PeerID" in data && data.PeerID != undefined) { - this.PeerID = data.PeerID; - } - if ("Type" in data && data.Type != undefined) { - this.Type = data.Type; - } - if ("Err" in data && data.Err != undefined) { - this.Err = data.Err; - } - } - } - get PeerID() { - return pb_1.Message.getField(this, 1) as string; - } - set PeerID(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Type() { - return pb_1.Message.getField(this, 2) as PeerFailureType; - } - set Type(value: PeerFailureType) { - pb_1.Message.setField(this, 2, value); - } - get Err() { - return pb_1.Message.getField(this, 3) as string; - } - set Err(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - PeerID?: string; - Type?: PeerFailureType; - Err?: string; - }) { - const message = new PivotPeerFailure({}); - if (data.PeerID != null) { - message.PeerID = data.PeerID; - } - if (data.Type != null) { - message.Type = data.Type; - } - if (data.Err != null) { - message.Err = data.Err; - } - return message; - } - toObject() { - const data: { - PeerID?: string; - Type?: PeerFailureType; - Err?: string; - } = {}; - if (this.PeerID != null) { - data.PeerID = this.PeerID; - } - if (this.Type != null) { - data.Type = this.Type; - } - if (this.Err != null) { - data.Err = this.Err; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PeerID !== undefined) - writer.writeInt64String(1, this.PeerID); - if (this.Type !== undefined) - writer.writeEnum(2, this.Type); - if (typeof this.Err === "string" && this.Err.length) - writer.writeString(3, this.Err); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotPeerFailure { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotPeerFailure(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PeerID = reader.readInt64String(); - break; - case 2: - message.Type = reader.readEnum(); - break; - case 3: - message.Err = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotPeerFailure { - return PivotPeerFailure.deserialize(bytes); - } - } - export class PivotListenersReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new PivotListenersReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotListenersReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotListenersReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotListenersReq { - return PivotListenersReq.deserialize(bytes); - } - } - export class PivotListeners extends pb_1.Message { - constructor(data?: any[] | { - Listeners?: PivotListener[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Listeners" in data && data.Listeners != undefined) { - this.Listeners = data.Listeners; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Listeners() { - return pb_1.Message.getRepeatedWrapperField(this, PivotListener, 1) as PivotListener[]; - } - set Listeners(value: PivotListener[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Listeners?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new PivotListeners({}); - if (data.Listeners != null) { - message.Listeners = data.Listeners.map(item => PivotListener.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Listeners?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Listeners != null) { - data.Listeners = this.Listeners.map((item: PivotListener) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Listeners !== undefined) - writer.writeRepeatedMessage(1, this.Listeners, (item: PivotListener) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PivotListeners { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PivotListeners(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Listeners, () => pb_1.Message.addToRepeatedWrapperField(message, 1, PivotListener.deserialize(reader), PivotListener)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PivotListeners { - return PivotListeners.deserialize(bytes); - } - } - export class WGPortForwardStartReq extends pb_1.Message { - constructor(data?: any[] | { - LocalPort?: number; - RemoteAddress?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("LocalPort" in data && data.LocalPort != undefined) { - this.LocalPort = data.LocalPort; - } - if ("RemoteAddress" in data && data.RemoteAddress != undefined) { - this.RemoteAddress = data.RemoteAddress; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get LocalPort() { - return pb_1.Message.getField(this, 1) as number; - } - set LocalPort(value: number) { - pb_1.Message.setField(this, 1, value); - } - get RemoteAddress() { - return pb_1.Message.getField(this, 2) as string; - } - set RemoteAddress(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - LocalPort?: number; - RemoteAddress?: string; - Request?: ReturnType; - }) { - const message = new WGPortForwardStartReq({}); - if (data.LocalPort != null) { - message.LocalPort = data.LocalPort; - } - if (data.RemoteAddress != null) { - message.RemoteAddress = data.RemoteAddress; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - LocalPort?: number; - RemoteAddress?: string; - Request?: ReturnType; - } = {}; - if (this.LocalPort != null) { - data.LocalPort = this.LocalPort; - } - if (this.RemoteAddress != null) { - data.RemoteAddress = this.RemoteAddress; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.LocalPort !== undefined) - writer.writeInt32(1, this.LocalPort); - if (typeof this.RemoteAddress === "string" && this.RemoteAddress.length) - writer.writeString(2, this.RemoteAddress); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGPortForwardStartReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGPortForwardStartReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.LocalPort = reader.readInt32(); - break; - case 2: - message.RemoteAddress = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGPortForwardStartReq { - return WGPortForwardStartReq.deserialize(bytes); - } - } - export class WGPortForward extends pb_1.Message { - constructor(data?: any[] | { - Forwarder?: WGTCPForwarder; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Forwarder" in data && data.Forwarder != undefined) { - this.Forwarder = data.Forwarder; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Forwarder() { - return pb_1.Message.getWrapperField(this, WGTCPForwarder, 1) as WGTCPForwarder; - } - set Forwarder(value: WGTCPForwarder) { - pb_1.Message.setWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Forwarder?: ReturnType; - Response?: ReturnType; - }) { - const message = new WGPortForward({}); - if (data.Forwarder != null) { - message.Forwarder = WGTCPForwarder.fromObject(data.Forwarder); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Forwarder?: ReturnType; - Response?: ReturnType; - } = {}; - if (this.Forwarder != null) { - data.Forwarder = this.Forwarder.toObject(); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Forwarder !== undefined) - writer.writeMessage(1, this.Forwarder, () => this.Forwarder.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGPortForward { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGPortForward(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Forwarder, () => message.Forwarder = WGTCPForwarder.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGPortForward { - return WGPortForward.deserialize(bytes); - } - } - export class WGPortForwardStopReq extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ID?: number; - Request?: ReturnType; - }) { - const message = new WGPortForwardStopReq({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ID?: number; - Request?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeInt32(1, this.ID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGPortForwardStopReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGPortForwardStopReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGPortForwardStopReq { - return WGPortForwardStopReq.deserialize(bytes); - } - } - export class WGSocksStartReq extends pb_1.Message { - constructor(data?: any[] | { - Port?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Port() { - return pb_1.Message.getField(this, 1) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Port?: number; - Request?: ReturnType; - }) { - const message = new WGSocksStartReq({}); - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Port?: number; - Request?: ReturnType; - } = {}; - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Port !== undefined) - writer.writeInt32(1, this.Port); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocksStartReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocksStartReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Port = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocksStartReq { - return WGSocksStartReq.deserialize(bytes); - } - } - export class WGSocks extends pb_1.Message { - constructor(data?: any[] | { - Server?: WGSocksServer; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Server" in data && data.Server != undefined) { - this.Server = data.Server; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Server() { - return pb_1.Message.getWrapperField(this, WGSocksServer, 1) as WGSocksServer; - } - set Server(value: WGSocksServer) { - pb_1.Message.setWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Server?: ReturnType; - Response?: ReturnType; - }) { - const message = new WGSocks({}); - if (data.Server != null) { - message.Server = WGSocksServer.fromObject(data.Server); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Server?: ReturnType; - Response?: ReturnType; - } = {}; - if (this.Server != null) { - data.Server = this.Server.toObject(); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Server !== undefined) - writer.writeMessage(1, this.Server, () => this.Server.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocks { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocks(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Server, () => message.Server = WGSocksServer.deserialize(reader)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocks { - return WGSocks.deserialize(bytes); - } - } - export class WGSocksStopReq extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ID?: number; - Request?: ReturnType; - }) { - const message = new WGSocksStopReq({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ID?: number; - Request?: ReturnType; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeInt32(1, this.ID); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocksStopReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocksStopReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readInt32(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocksStopReq { - return WGSocksStopReq.deserialize(bytes); - } - } - export class WGTCPForwardersReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new WGTCPForwardersReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGTCPForwardersReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGTCPForwardersReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGTCPForwardersReq { - return WGTCPForwardersReq.deserialize(bytes); - } - } - export class WGSocksServersReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new WGSocksServersReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocksServersReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocksServersReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocksServersReq { - return WGSocksServersReq.deserialize(bytes); - } - } - export class WGTCPForwarder extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - LocalAddr?: string; - RemoteAddr?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("LocalAddr" in data && data.LocalAddr != undefined) { - this.LocalAddr = data.LocalAddr; - } - if ("RemoteAddr" in data && data.RemoteAddr != undefined) { - this.RemoteAddr = data.RemoteAddr; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get LocalAddr() { - return pb_1.Message.getField(this, 2) as string; - } - set LocalAddr(value: string) { - pb_1.Message.setField(this, 2, value); - } - get RemoteAddr() { - return pb_1.Message.getField(this, 3) as string; - } - set RemoteAddr(value: string) { - pb_1.Message.setField(this, 3, value); - } - static fromObject(data: { - ID?: number; - LocalAddr?: string; - RemoteAddr?: string; - }) { - const message = new WGTCPForwarder({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.LocalAddr != null) { - message.LocalAddr = data.LocalAddr; - } - if (data.RemoteAddr != null) { - message.RemoteAddr = data.RemoteAddr; - } - return message; - } - toObject() { - const data: { - ID?: number; - LocalAddr?: string; - RemoteAddr?: string; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.LocalAddr != null) { - data.LocalAddr = this.LocalAddr; - } - if (this.RemoteAddr != null) { - data.RemoteAddr = this.RemoteAddr; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeInt32(1, this.ID); - if (typeof this.LocalAddr === "string" && this.LocalAddr.length) - writer.writeString(2, this.LocalAddr); - if (typeof this.RemoteAddr === "string" && this.RemoteAddr.length) - writer.writeString(3, this.RemoteAddr); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGTCPForwarder { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGTCPForwarder(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readInt32(); - break; - case 2: - message.LocalAddr = reader.readString(); - break; - case 3: - message.RemoteAddr = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGTCPForwarder { - return WGTCPForwarder.deserialize(bytes); - } - } - export class WGSocksServer extends pb_1.Message { - constructor(data?: any[] | { - ID?: number; - LocalAddr?: string; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ID" in data && data.ID != undefined) { - this.ID = data.ID; - } - if ("LocalAddr" in data && data.LocalAddr != undefined) { - this.LocalAddr = data.LocalAddr; - } - } - } - get ID() { - return pb_1.Message.getField(this, 1) as number; - } - set ID(value: number) { - pb_1.Message.setField(this, 1, value); - } - get LocalAddr() { - return pb_1.Message.getField(this, 2) as string; - } - set LocalAddr(value: string) { - pb_1.Message.setField(this, 2, value); - } - static fromObject(data: { - ID?: number; - LocalAddr?: string; - }) { - const message = new WGSocksServer({}); - if (data.ID != null) { - message.ID = data.ID; - } - if (data.LocalAddr != null) { - message.LocalAddr = data.LocalAddr; - } - return message; - } - toObject() { - const data: { - ID?: number; - LocalAddr?: string; - } = {}; - if (this.ID != null) { - data.ID = this.ID; - } - if (this.LocalAddr != null) { - data.LocalAddr = this.LocalAddr; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ID !== undefined) - writer.writeInt32(1, this.ID); - if (typeof this.LocalAddr === "string" && this.LocalAddr.length) - writer.writeString(2, this.LocalAddr); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocksServer { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocksServer(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ID = reader.readInt32(); - break; - case 2: - message.LocalAddr = reader.readString(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocksServer { - return WGSocksServer.deserialize(bytes); - } - } - export class WGSocksServers extends pb_1.Message { - constructor(data?: any[] | { - Servers?: WGSocksServer[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Servers" in data && data.Servers != undefined) { - this.Servers = data.Servers; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Servers() { - return pb_1.Message.getRepeatedWrapperField(this, WGSocksServer, 1) as WGSocksServer[]; - } - set Servers(value: WGSocksServer[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Servers?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new WGSocksServers({}); - if (data.Servers != null) { - message.Servers = data.Servers.map(item => WGSocksServer.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Servers?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Servers != null) { - data.Servers = this.Servers.map((item: WGSocksServer) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Servers !== undefined) - writer.writeRepeatedMessage(1, this.Servers, (item: WGSocksServer) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGSocksServers { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGSocksServers(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Servers, () => pb_1.Message.addToRepeatedWrapperField(message, 1, WGSocksServer.deserialize(reader), WGSocksServer)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGSocksServers { - return WGSocksServers.deserialize(bytes); - } - } - export class WGTCPForwarders extends pb_1.Message { - constructor(data?: any[] | { - Forwarders?: WGTCPForwarder[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Forwarders" in data && data.Forwarders != undefined) { - this.Forwarders = data.Forwarders; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Forwarders() { - return pb_1.Message.getRepeatedWrapperField(this, WGTCPForwarder, 1) as WGTCPForwarder[]; - } - set Forwarders(value: WGTCPForwarder[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Forwarders?: ReturnType[]; - Response?: ReturnType; - }) { - const message = new WGTCPForwarders({}); - if (data.Forwarders != null) { - message.Forwarders = data.Forwarders.map(item => WGTCPForwarder.fromObject(item)); - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Forwarders?: ReturnType[]; - Response?: ReturnType; - } = {}; - if (this.Forwarders != null) { - data.Forwarders = this.Forwarders.map((item: WGTCPForwarder) => item.toObject()); - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Forwarders !== undefined) - writer.writeRepeatedMessage(1, this.Forwarders, (item: WGTCPForwarder) => item.serialize(writer)); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WGTCPForwarders { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WGTCPForwarders(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.Forwarders, () => pb_1.Message.addToRepeatedWrapperField(message, 1, WGTCPForwarder.deserialize(reader), WGTCPForwarder)); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WGTCPForwarders { - return WGTCPForwarders.deserialize(bytes); - } - } - export class ReconfigureReq extends pb_1.Message { - constructor(data?: any[] | { - ReconnectInterval?: number; - BeaconInterval?: number; - BeaconJitter?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("ReconnectInterval" in data && data.ReconnectInterval != undefined) { - this.ReconnectInterval = data.ReconnectInterval; - } - if ("BeaconInterval" in data && data.BeaconInterval != undefined) { - this.BeaconInterval = data.BeaconInterval; - } - if ("BeaconJitter" in data && data.BeaconJitter != undefined) { - this.BeaconJitter = data.BeaconJitter; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get ReconnectInterval() { - return pb_1.Message.getField(this, 1) as number; - } - set ReconnectInterval(value: number) { - pb_1.Message.setField(this, 1, value); - } - get BeaconInterval() { - return pb_1.Message.getField(this, 2) as number; - } - set BeaconInterval(value: number) { - pb_1.Message.setField(this, 2, value); - } - get BeaconJitter() { - return pb_1.Message.getField(this, 3) as number; - } - set BeaconJitter(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - ReconnectInterval?: number; - BeaconInterval?: number; - BeaconJitter?: number; - Request?: ReturnType; - }) { - const message = new ReconfigureReq({}); - if (data.ReconnectInterval != null) { - message.ReconnectInterval = data.ReconnectInterval; - } - if (data.BeaconInterval != null) { - message.BeaconInterval = data.BeaconInterval; - } - if (data.BeaconJitter != null) { - message.BeaconJitter = data.BeaconJitter; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - ReconnectInterval?: number; - BeaconInterval?: number; - BeaconJitter?: number; - Request?: ReturnType; - } = {}; - if (this.ReconnectInterval != null) { - data.ReconnectInterval = this.ReconnectInterval; - } - if (this.BeaconInterval != null) { - data.BeaconInterval = this.BeaconInterval; - } - if (this.BeaconJitter != null) { - data.BeaconJitter = this.BeaconJitter; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.ReconnectInterval !== undefined) - writer.writeInt64(1, this.ReconnectInterval); - if (this.BeaconInterval !== undefined) - writer.writeInt64(2, this.BeaconInterval); - if (this.BeaconJitter !== undefined) - writer.writeInt64(3, this.BeaconJitter); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ReconfigureReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ReconfigureReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.ReconnectInterval = reader.readInt64(); - break; - case 2: - message.BeaconInterval = reader.readInt64(); - break; - case 3: - message.BeaconJitter = reader.readInt64(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ReconfigureReq { - return ReconfigureReq.deserialize(bytes); - } - } - export class Reconfigure extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new Reconfigure({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): Reconfigure { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new Reconfigure(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): Reconfigure { - return Reconfigure.deserialize(bytes); - } - } - export class PollIntervalReq extends pb_1.Message { - constructor(data?: any[] | { - PollInterval?: number; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PollInterval" in data && data.PollInterval != undefined) { - this.PollInterval = data.PollInterval; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get PollInterval() { - return pb_1.Message.getField(this, 1) as number; - } - set PollInterval(value: number) { - pb_1.Message.setField(this, 1, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - PollInterval?: number; - Request?: ReturnType; - }) { - const message = new PollIntervalReq({}); - if (data.PollInterval != null) { - message.PollInterval = data.PollInterval; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - PollInterval?: number; - Request?: ReturnType; - } = {}; - if (this.PollInterval != null) { - data.PollInterval = this.PollInterval; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PollInterval !== undefined) - writer.writeInt64(1, this.PollInterval); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PollIntervalReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PollIntervalReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.PollInterval = reader.readInt64(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PollIntervalReq { - return PollIntervalReq.deserialize(bytes); - } - } - export class PollInterval extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new PollInterval({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): PollInterval { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new PollInterval(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): PollInterval { - return PollInterval.deserialize(bytes); - } - } - export class SSHCommandReq extends pb_1.Message { - constructor(data?: any[] | { - Username?: string; - Hostname?: string; - Port?: number; - Command?: string; - Password?: string; - PrivKey?: Uint8Array; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Username" in data && data.Username != undefined) { - this.Username = data.Username; - } - if ("Hostname" in data && data.Hostname != undefined) { - this.Hostname = data.Hostname; - } - if ("Port" in data && data.Port != undefined) { - this.Port = data.Port; - } - if ("Command" in data && data.Command != undefined) { - this.Command = data.Command; - } - if ("Password" in data && data.Password != undefined) { - this.Password = data.Password; - } - if ("PrivKey" in data && data.PrivKey != undefined) { - this.PrivKey = data.PrivKey; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Username() { - return pb_1.Message.getField(this, 1) as string; - } - set Username(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Hostname() { - return pb_1.Message.getField(this, 2) as string; - } - set Hostname(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Port() { - return pb_1.Message.getField(this, 3) as number; - } - set Port(value: number) { - pb_1.Message.setField(this, 3, value); - } - get Command() { - return pb_1.Message.getField(this, 4) as string; - } - set Command(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Password() { - return pb_1.Message.getField(this, 5) as string; - } - set Password(value: string) { - pb_1.Message.setField(this, 5, value); - } - get PrivKey() { - return pb_1.Message.getField(this, 6) as Uint8Array; - } - set PrivKey(value: Uint8Array) { - pb_1.Message.setField(this, 6, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Username?: string; - Hostname?: string; - Port?: number; - Command?: string; - Password?: string; - PrivKey?: Uint8Array; - Request?: ReturnType; - }) { - const message = new SSHCommandReq({}); - if (data.Username != null) { - message.Username = data.Username; - } - if (data.Hostname != null) { - message.Hostname = data.Hostname; - } - if (data.Port != null) { - message.Port = data.Port; - } - if (data.Command != null) { - message.Command = data.Command; - } - if (data.Password != null) { - message.Password = data.Password; - } - if (data.PrivKey != null) { - message.PrivKey = data.PrivKey; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Username?: string; - Hostname?: string; - Port?: number; - Command?: string; - Password?: string; - PrivKey?: Uint8Array; - Request?: ReturnType; - } = {}; - if (this.Username != null) { - data.Username = this.Username; - } - if (this.Hostname != null) { - data.Hostname = this.Hostname; - } - if (this.Port != null) { - data.Port = this.Port; - } - if (this.Command != null) { - data.Command = this.Command; - } - if (this.Password != null) { - data.Password = this.Password; - } - if (this.PrivKey != null) { - data.PrivKey = this.PrivKey; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Username === "string" && this.Username.length) - writer.writeString(1, this.Username); - if (typeof this.Hostname === "string" && this.Hostname.length) - writer.writeString(2, this.Hostname); - if (this.Port !== undefined) - writer.writeUint32(3, this.Port); - if (typeof this.Command === "string" && this.Command.length) - writer.writeString(4, this.Command); - if (typeof this.Password === "string" && this.Password.length) - writer.writeString(5, this.Password); - if (this.PrivKey !== undefined) - writer.writeBytes(6, this.PrivKey); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SSHCommandReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SSHCommandReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Username = reader.readString(); - break; - case 2: - message.Hostname = reader.readString(); - break; - case 3: - message.Port = reader.readUint32(); - break; - case 4: - message.Command = reader.readString(); - break; - case 5: - message.Password = reader.readString(); - break; - case 6: - message.PrivKey = reader.readBytes(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SSHCommandReq { - return SSHCommandReq.deserialize(bytes); - } - } - export class SSHCommand extends pb_1.Message { - constructor(data?: any[] | { - StdOut?: string; - StdErr?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("StdOut" in data && data.StdOut != undefined) { - this.StdOut = data.StdOut; - } - if ("StdErr" in data && data.StdErr != undefined) { - this.StdErr = data.StdErr; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get StdOut() { - return pb_1.Message.getField(this, 1) as string; - } - set StdOut(value: string) { - pb_1.Message.setField(this, 1, value); - } - get StdErr() { - return pb_1.Message.getField(this, 2) as string; - } - set StdErr(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - StdOut?: string; - StdErr?: string; - Response?: ReturnType; - }) { - const message = new SSHCommand({}); - if (data.StdOut != null) { - message.StdOut = data.StdOut; - } - if (data.StdErr != null) { - message.StdErr = data.StdErr; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - StdOut?: string; - StdErr?: string; - Response?: ReturnType; - } = {}; - if (this.StdOut != null) { - data.StdOut = this.StdOut; - } - if (this.StdErr != null) { - data.StdErr = this.StdErr; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.StdOut === "string" && this.StdOut.length) - writer.writeString(1, this.StdOut); - if (typeof this.StdErr === "string" && this.StdErr.length) - writer.writeString(2, this.StdErr); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): SSHCommand { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new SSHCommand(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.StdOut = reader.readString(); - break; - case 2: - message.StdErr = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): SSHCommand { - return SSHCommand.deserialize(bytes); - } - } - export class GetPrivsReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new GetPrivsReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetPrivsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetPrivsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GetPrivsReq { - return GetPrivsReq.deserialize(bytes); - } - } - export class WindowsPrivilegeEntry extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Description?: string; - Enabled?: boolean; - EnabledByDefault?: boolean; - Removed?: boolean; - UsedForAccess?: boolean; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Description" in data && data.Description != undefined) { - this.Description = data.Description; - } - if ("Enabled" in data && data.Enabled != undefined) { - this.Enabled = data.Enabled; - } - if ("EnabledByDefault" in data && data.EnabledByDefault != undefined) { - this.EnabledByDefault = data.EnabledByDefault; - } - if ("Removed" in data && data.Removed != undefined) { - this.Removed = data.Removed; - } - if ("UsedForAccess" in data && data.UsedForAccess != undefined) { - this.UsedForAccess = data.UsedForAccess; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Description() { - return pb_1.Message.getField(this, 2) as string; - } - set Description(value: string) { - pb_1.Message.setField(this, 2, value); - } - get Enabled() { - return pb_1.Message.getField(this, 3) as boolean; - } - set Enabled(value: boolean) { - pb_1.Message.setField(this, 3, value); - } - get EnabledByDefault() { - return pb_1.Message.getField(this, 4) as boolean; - } - set EnabledByDefault(value: boolean) { - pb_1.Message.setField(this, 4, value); - } - get Removed() { - return pb_1.Message.getField(this, 5) as boolean; - } - set Removed(value: boolean) { - pb_1.Message.setField(this, 5, value); - } - get UsedForAccess() { - return pb_1.Message.getField(this, 6) as boolean; - } - set UsedForAccess(value: boolean) { - pb_1.Message.setField(this, 6, value); - } - static fromObject(data: { - Name?: string; - Description?: string; - Enabled?: boolean; - EnabledByDefault?: boolean; - Removed?: boolean; - UsedForAccess?: boolean; - }) { - const message = new WindowsPrivilegeEntry({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Description != null) { - message.Description = data.Description; - } - if (data.Enabled != null) { - message.Enabled = data.Enabled; - } - if (data.EnabledByDefault != null) { - message.EnabledByDefault = data.EnabledByDefault; - } - if (data.Removed != null) { - message.Removed = data.Removed; - } - if (data.UsedForAccess != null) { - message.UsedForAccess = data.UsedForAccess; - } - return message; - } - toObject() { - const data: { - Name?: string; - Description?: string; - Enabled?: boolean; - EnabledByDefault?: boolean; - Removed?: boolean; - UsedForAccess?: boolean; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Description != null) { - data.Description = this.Description; - } - if (this.Enabled != null) { - data.Enabled = this.Enabled; - } - if (this.EnabledByDefault != null) { - data.EnabledByDefault = this.EnabledByDefault; - } - if (this.Removed != null) { - data.Removed = this.Removed; - } - if (this.UsedForAccess != null) { - data.UsedForAccess = this.UsedForAccess; - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (typeof this.Description === "string" && this.Description.length) - writer.writeString(2, this.Description); - if (this.Enabled !== undefined) - writer.writeBool(3, this.Enabled); - if (this.EnabledByDefault !== undefined) - writer.writeBool(4, this.EnabledByDefault); - if (this.Removed !== undefined) - writer.writeBool(5, this.Removed); - if (this.UsedForAccess !== undefined) - writer.writeBool(6, this.UsedForAccess); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): WindowsPrivilegeEntry { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new WindowsPrivilegeEntry(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.Description = reader.readString(); - break; - case 3: - message.Enabled = reader.readBool(); - break; - case 4: - message.EnabledByDefault = reader.readBool(); - break; - case 5: - message.Removed = reader.readBool(); - break; - case 6: - message.UsedForAccess = reader.readBool(); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): WindowsPrivilegeEntry { - return WindowsPrivilegeEntry.deserialize(bytes); - } - } - export class GetPrivs extends pb_1.Message { - constructor(data?: any[] | { - PrivInfo?: WindowsPrivilegeEntry[]; - ProcessIntegrity?: string; - ProcessName?: string; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("PrivInfo" in data && data.PrivInfo != undefined) { - this.PrivInfo = data.PrivInfo; - } - if ("ProcessIntegrity" in data && data.ProcessIntegrity != undefined) { - this.ProcessIntegrity = data.ProcessIntegrity; - } - if ("ProcessName" in data && data.ProcessName != undefined) { - this.ProcessName = data.ProcessName; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get PrivInfo() { - return pb_1.Message.getRepeatedWrapperField(this, WindowsPrivilegeEntry, 1) as WindowsPrivilegeEntry[]; - } - set PrivInfo(value: WindowsPrivilegeEntry[]) { - pb_1.Message.setRepeatedWrapperField(this, 1, value); - } - get ProcessIntegrity() { - return pb_1.Message.getField(this, 2) as string; - } - set ProcessIntegrity(value: string) { - pb_1.Message.setField(this, 2, value); - } - get ProcessName() { - return pb_1.Message.getField(this, 3) as string; - } - set ProcessName(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - PrivInfo?: ReturnType[]; - ProcessIntegrity?: string; - ProcessName?: string; - Response?: ReturnType; - }) { - const message = new GetPrivs({}); - if (data.PrivInfo != null) { - message.PrivInfo = data.PrivInfo.map(item => WindowsPrivilegeEntry.fromObject(item)); - } - if (data.ProcessIntegrity != null) { - message.ProcessIntegrity = data.ProcessIntegrity; - } - if (data.ProcessName != null) { - message.ProcessName = data.ProcessName; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - PrivInfo?: ReturnType[]; - ProcessIntegrity?: string; - ProcessName?: string; - Response?: ReturnType; - } = {}; - if (this.PrivInfo != null) { - data.PrivInfo = this.PrivInfo.map((item: WindowsPrivilegeEntry) => item.toObject()); - } - if (this.ProcessIntegrity != null) { - data.ProcessIntegrity = this.ProcessIntegrity; - } - if (this.ProcessName != null) { - data.ProcessName = this.ProcessName; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.PrivInfo !== undefined) - writer.writeRepeatedMessage(1, this.PrivInfo, (item: WindowsPrivilegeEntry) => item.serialize(writer)); - if (typeof this.ProcessIntegrity === "string" && this.ProcessIntegrity.length) - writer.writeString(2, this.ProcessIntegrity); - if (typeof this.ProcessName === "string" && this.ProcessName.length) - writer.writeString(3, this.ProcessName); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): GetPrivs { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new GetPrivs(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - reader.readMessage(message.PrivInfo, () => pb_1.Message.addToRepeatedWrapperField(message, 1, WindowsPrivilegeEntry.deserialize(reader), WindowsPrivilegeEntry)); - break; - case 2: - message.ProcessIntegrity = reader.readString(); - break; - case 3: - message.ProcessName = reader.readString(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): GetPrivs { - return GetPrivs.deserialize(bytes); - } - } - export class RegisterExtensionReq extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - Data?: Uint8Array; - OS?: string; - Init?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("Data" in data && data.Data != undefined) { - this.Data = data.Data; - } - if ("OS" in data && data.OS != undefined) { - this.OS = data.OS; - } - if ("Init" in data && data.Init != undefined) { - this.Init = data.Init; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get Data() { - return pb_1.Message.getField(this, 2) as Uint8Array; - } - set Data(value: Uint8Array) { - pb_1.Message.setField(this, 2, value); - } - get OS() { - return pb_1.Message.getField(this, 3) as string; - } - set OS(value: string) { - pb_1.Message.setField(this, 3, value); - } - get Init() { - return pb_1.Message.getField(this, 4) as string; - } - set Init(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Name?: string; - Data?: Uint8Array; - OS?: string; - Init?: string; - Request?: ReturnType; - }) { - const message = new RegisterExtensionReq({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.Data != null) { - message.Data = data.Data; - } - if (data.OS != null) { - message.OS = data.OS; - } - if (data.Init != null) { - message.Init = data.Init; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Name?: string; - Data?: Uint8Array; - OS?: string; - Init?: string; - Request?: ReturnType; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.Data != null) { - data.Data = this.Data; - } - if (this.OS != null) { - data.OS = this.OS; - } - if (this.Init != null) { - data.Init = this.Init; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.Data !== undefined) - writer.writeBytes(2, this.Data); - if (typeof this.OS === "string" && this.OS.length) - writer.writeString(3, this.OS); - if (typeof this.Init === "string" && this.Init.length) - writer.writeString(4, this.Init); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegisterExtensionReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegisterExtensionReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.Data = reader.readBytes(); - break; - case 3: - message.OS = reader.readString(); - break; - case 4: - message.Init = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegisterExtensionReq { - return RegisterExtensionReq.deserialize(bytes); - } - } - export class RegisterExtension extends pb_1.Message { - constructor(data?: any[] | { - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Response?: ReturnType; - }) { - const message = new RegisterExtension({}); - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Response?: ReturnType; - } = {}; - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): RegisterExtension { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new RegisterExtension(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): RegisterExtension { - return RegisterExtension.deserialize(bytes); - } - } - export class CallExtensionReq extends pb_1.Message { - constructor(data?: any[] | { - Name?: string; - ServerStore?: boolean; - Args?: Uint8Array; - Export?: string; - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Name" in data && data.Name != undefined) { - this.Name = data.Name; - } - if ("ServerStore" in data && data.ServerStore != undefined) { - this.ServerStore = data.ServerStore; - } - if ("Args" in data && data.Args != undefined) { - this.Args = data.Args; - } - if ("Export" in data && data.Export != undefined) { - this.Export = data.Export; - } - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Name() { - return pb_1.Message.getField(this, 1) as string; - } - set Name(value: string) { - pb_1.Message.setField(this, 1, value); - } - get ServerStore() { - return pb_1.Message.getField(this, 2) as boolean; - } - set ServerStore(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Args() { - return pb_1.Message.getField(this, 3) as Uint8Array; - } - set Args(value: Uint8Array) { - pb_1.Message.setField(this, 3, value); - } - get Export() { - return pb_1.Message.getField(this, 4) as string; - } - set Export(value: string) { - pb_1.Message.setField(this, 4, value); - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Name?: string; - ServerStore?: boolean; - Args?: Uint8Array; - Export?: string; - Request?: ReturnType; - }) { - const message = new CallExtensionReq({}); - if (data.Name != null) { - message.Name = data.Name; - } - if (data.ServerStore != null) { - message.ServerStore = data.ServerStore; - } - if (data.Args != null) { - message.Args = data.Args; - } - if (data.Export != null) { - message.Export = data.Export; - } - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Name?: string; - ServerStore?: boolean; - Args?: Uint8Array; - Export?: string; - Request?: ReturnType; - } = {}; - if (this.Name != null) { - data.Name = this.Name; - } - if (this.ServerStore != null) { - data.ServerStore = this.ServerStore; - } - if (this.Args != null) { - data.Args = this.Args; - } - if (this.Export != null) { - data.Export = this.Export; - } - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (typeof this.Name === "string" && this.Name.length) - writer.writeString(1, this.Name); - if (this.ServerStore !== undefined) - writer.writeBool(2, this.ServerStore); - if (this.Args !== undefined) - writer.writeBytes(3, this.Args); - if (typeof this.Export === "string" && this.Export.length) - writer.writeString(4, this.Export); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CallExtensionReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CallExtensionReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Name = reader.readString(); - break; - case 2: - message.ServerStore = reader.readBool(); - break; - case 3: - message.Args = reader.readBytes(); - break; - case 4: - message.Export = reader.readString(); - break; - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CallExtensionReq { - return CallExtensionReq.deserialize(bytes); - } - } - export class CallExtension extends pb_1.Message { - constructor(data?: any[] | { - Output?: Uint8Array; - ServerStore?: boolean; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Output" in data && data.Output != undefined) { - this.Output = data.Output; - } - if ("ServerStore" in data && data.ServerStore != undefined) { - this.ServerStore = data.ServerStore; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Output() { - return pb_1.Message.getField(this, 1) as Uint8Array; - } - set Output(value: Uint8Array) { - pb_1.Message.setField(this, 1, value); - } - get ServerStore() { - return pb_1.Message.getField(this, 2) as boolean; - } - set ServerStore(value: boolean) { - pb_1.Message.setField(this, 2, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Output?: Uint8Array; - ServerStore?: boolean; - Response?: ReturnType; - }) { - const message = new CallExtension({}); - if (data.Output != null) { - message.Output = data.Output; - } - if (data.ServerStore != null) { - message.ServerStore = data.ServerStore; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Output?: Uint8Array; - ServerStore?: boolean; - Response?: ReturnType; - } = {}; - if (this.Output != null) { - data.Output = this.Output; - } - if (this.ServerStore != null) { - data.ServerStore = this.ServerStore; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Output !== undefined) - writer.writeBytes(1, this.Output); - if (this.ServerStore !== undefined) - writer.writeBool(2, this.ServerStore); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): CallExtension { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new CallExtension(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - message.Output = reader.readBytes(); - break; - case 2: - message.ServerStore = reader.readBool(); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): CallExtension { - return CallExtension.deserialize(bytes); - } - } - export class ListExtensionsReq extends pb_1.Message { - constructor(data?: any[] | { - Request?: dependency_1.commonpb.Request; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Request" in data && data.Request != undefined) { - this.Request = data.Request; - } - } - } - get Request() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Request, 9) as dependency_1.commonpb.Request; - } - set Request(value: dependency_1.commonpb.Request) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Request?: ReturnType; - }) { - const message = new ListExtensionsReq({}); - if (data.Request != null) { - message.Request = dependency_1.commonpb.Request.fromObject(data.Request); - } - return message; - } - toObject() { - const data: { - Request?: ReturnType; - } = {}; - if (this.Request != null) { - data.Request = this.Request.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Request !== undefined) - writer.writeMessage(9, this.Request, () => this.Request.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListExtensionsReq { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListExtensionsReq(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 9: - reader.readMessage(message.Request, () => message.Request = dependency_1.commonpb.Request.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ListExtensionsReq { - return ListExtensionsReq.deserialize(bytes); - } - } - export class ListExtensions extends pb_1.Message { - constructor(data?: any[] | { - Names?: string[]; - Response?: dependency_1.commonpb.Response; - }) { - super(); - pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [1], []); - if (!Array.isArray(data) && typeof data == "object") { - if ("Names" in data && data.Names != undefined) { - this.Names = data.Names; - } - if ("Response" in data && data.Response != undefined) { - this.Response = data.Response; - } - } - } - get Names() { - return pb_1.Message.getField(this, 1) as string[]; - } - set Names(value: string[]) { - pb_1.Message.setField(this, 1, value); - } - get Response() { - return pb_1.Message.getWrapperField(this, dependency_1.commonpb.Response, 9) as dependency_1.commonpb.Response; - } - set Response(value: dependency_1.commonpb.Response) { - pb_1.Message.setWrapperField(this, 9, value); - } - static fromObject(data: { - Names?: string[]; - Response?: ReturnType; - }) { - const message = new ListExtensions({}); - if (data.Names != null) { - message.Names = data.Names; - } - if (data.Response != null) { - message.Response = dependency_1.commonpb.Response.fromObject(data.Response); - } - return message; - } - toObject() { - const data: { - Names?: string[]; - Response?: ReturnType; - } = {}; - if (this.Names != null) { - data.Names = this.Names; - } - if (this.Response != null) { - data.Response = this.Response.toObject(); - } - return data; - } - serialize(): Uint8Array; - serialize(w: pb_1.BinaryWriter): void; - serialize(w?: pb_1.BinaryWriter): Uint8Array | void { - const writer = w || new pb_1.BinaryWriter(); - if (this.Names !== undefined) - writer.writeRepeatedString(1, this.Names); - if (this.Response !== undefined) - writer.writeMessage(9, this.Response, () => this.Response.serialize(writer)); - if (!w) - return writer.getResultBuffer(); - } - static deserialize(bytes: Uint8Array | pb_1.BinaryReader): ListExtensions { - const reader = bytes instanceof pb_1.BinaryReader ? bytes : new pb_1.BinaryReader(bytes), message = new ListExtensions(); - while (reader.nextField()) { - if (reader.isEndGroup()) - break; - switch (reader.getFieldNumber()) { - case 1: - pb_1.Message.addToRepeatedField(message, 1, reader.readString()); - break; - case 9: - reader.readMessage(message.Response, () => message.Response = dependency_1.commonpb.Response.deserialize(reader)); - break; - default: reader.skipField(); - } - } - return message; - } - serializeBinary(): Uint8Array { - return this.serialize(); - } - static deserializeBinary(bytes: Uint8Array): ListExtensions { - return ListExtensions.deserialize(bytes); - } - } +// Code generated by protoc-gen-ts_proto. DO NOT EDIT. +// versions: +// protoc-gen-ts_proto v2.11.2 +// protoc v3.15.8 +// source: sliverpb/sliver.proto + +/* eslint-disable */ +import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire"; +import { EnvVar, Process, Request, Response } from "../commonpb/common"; + +export const protobufPackage = "sliverpb"; + +/** Registry - Registry related messages */ +export enum RegistryType { + Unknown = 0, + Binary = 1, + String = 2, + DWORD = 3, + QWORD = 4, + UNRECOGNIZED = -1, +} + +export function registryTypeFromJSON(object: any): RegistryType { + switch (object) { + case 0: + case "Unknown": + return RegistryType.Unknown; + case 1: + case "Binary": + return RegistryType.Binary; + case 2: + case "String": + return RegistryType.String; + case 3: + case "DWORD": + return RegistryType.DWORD; + case 4: + case "QWORD": + return RegistryType.QWORD; + case -1: + case "UNRECOGNIZED": + default: + return RegistryType.UNRECOGNIZED; + } +} + +export function registryTypeToJSON(object: RegistryType): string { + switch (object) { + case RegistryType.Unknown: + return "Unknown"; + case RegistryType.Binary: + return "Binary"; + case RegistryType.String: + return "String"; + case RegistryType.DWORD: + return "DWORD"; + case RegistryType.QWORD: + return "QWORD"; + case RegistryType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum PivotType { + TCP = 0, + UDP = 1, + NamedPipe = 2, + UNRECOGNIZED = -1, +} + +export function pivotTypeFromJSON(object: any): PivotType { + switch (object) { + case 0: + case "TCP": + return PivotType.TCP; + case 1: + case "UDP": + return PivotType.UDP; + case 2: + case "NamedPipe": + return PivotType.NamedPipe; + case -1: + case "UNRECOGNIZED": + default: + return PivotType.UNRECOGNIZED; + } +} + +export function pivotTypeToJSON(object: PivotType): string { + switch (object) { + case PivotType.TCP: + return "TCP"; + case PivotType.UDP: + return "UDP"; + case PivotType.NamedPipe: + return "NamedPipe"; + case PivotType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +export enum PeerFailureType { + SEND_FAILURE = 0, + DISCONNECT = 1, + UNRECOGNIZED = -1, +} + +export function peerFailureTypeFromJSON(object: any): PeerFailureType { + switch (object) { + case 0: + case "SEND_FAILURE": + return PeerFailureType.SEND_FAILURE; + case 1: + case "DISCONNECT": + return PeerFailureType.DISCONNECT; + case -1: + case "UNRECOGNIZED": + default: + return PeerFailureType.UNRECOGNIZED; + } +} + +export function peerFailureTypeToJSON(object: PeerFailureType): string { + switch (object) { + case PeerFailureType.SEND_FAILURE: + return "SEND_FAILURE"; + case PeerFailureType.DISCONNECT: + return "DISCONNECT"; + case PeerFailureType.UNRECOGNIZED: + default: + return "UNRECOGNIZED"; + } +} + +/** + * Envelope - Used to encode implant<->server messages since we + * cannot use gRPC due to the various transports used. + */ +export interface Envelope { + /** Envelope ID used to track request/response */ + ID: string; + /** Message type */ + Type: number; + /** Actual message data */ + Data: Buffer; + /** Set if the implant did not understand the message */ + UnknownMessageType: boolean; +} + +/** BeaconTasks - DO NOT CONFUSE WITH clientpb.BeaconTasks */ +export interface BeaconTasks { + ID: string; + Tasks: Envelope[]; + NextCheckin: string; +} + +/** Register - First message the implant sends to the server */ +export interface Register { + Name: string; + Hostname: string; + Uuid: string; + Username: string; + Uid: string; + Gid: string; + Os: string; + Arch: string; + Pid: number; + Filename: string; + ActiveC2: string; + Version: string; + ReconnectInterval: string; + ProxyURL: string; + ConfigID: string; + PeerID: string; + Locale: string; +} + +export interface BeaconRegister { + ID: string; + Interval: string; + Jitter: string; + Register?: Register | undefined; + NextCheckin: string; +} + +export interface SessionRegister { + ID: string; + Register?: Register | undefined; +} + +export interface OpenSession { + C2s: string[]; + Delay: string; + Response?: Response | undefined; + Request?: Request | undefined; +} + +export interface CloseSession { + Response?: Response | undefined; + Request?: Request | undefined; +} + +/** + * Ping - Not ICMP, just sends a rount trip message to an implant to + * see if it's still responding. + */ +export interface Ping { + Nonce: number; + /** Ping is special */ + Response?: Response | undefined; + Request?: Request | undefined; +} + +/** KillSessionReq - Request the implant to kill a session */ +export interface KillReq { + Force: boolean; + Request?: Request | undefined; +} + +/** PsReq - Request the implant to list processes of a remote session. */ +export interface PsReq { + FullInfo: boolean; + Request?: Request | undefined; +} + +export interface Ps { + Processes: Process[]; + Response?: Response | undefined; +} + +/** TerminateReq - Request the implant terminate a remote processes */ +export interface TerminateReq { + Pid: number; + Force: boolean; + Request?: Request | undefined; +} + +export interface Terminate { + Pid: number; + Response?: Response | undefined; +} + +/** IfconfigReq - Request the implant to list network interfaces */ +export interface IfconfigReq { + Request?: Request | undefined; +} + +export interface Ifconfig { + NetInterfaces: NetInterface[]; + Response?: Response | undefined; +} + +export interface NetInterface { + Index: number; + Name: string; + MAC: string; + IPAddresses: string[]; +} + +export interface LsReq { + Path: string; + Request?: Request | undefined; +} + +export interface Ls { + Path: string; + Exists: boolean; + Files: FileInfo[]; + timezone: string; + timezoneOffset: number; + Response?: Response | undefined; +} + +export interface FileInfo { + Name: string; + IsDir: boolean; + Size: string; + ModTime: string; + Mode: string; + Link: string; + Uid: string; + Gid: string; +} + +export interface CdReq { + Path: string; + Request?: Request | undefined; +} + +export interface PwdReq { + Request?: Request | undefined; +} + +export interface Pwd { + Path: string; + Response?: Response | undefined; +} + +export interface RmReq { + Path: string; + Recursive: boolean; + Force: boolean; + Request?: Request | undefined; +} + +export interface Rm { + Path: string; + Response?: Response | undefined; +} + +export interface MvReq { + Src: string; + Dst: string; + Request?: Request | undefined; +} + +export interface Mv { + Src: string; + Dst: string; + Response?: Response | undefined; +} + +export interface CpReq { + Src: string; + Dst: string; + Request?: Request | undefined; +} + +export interface Cp { + Src: string; + Dst: string; + BytesWritten: string; + Response?: Response | undefined; +} + +export interface MkdirReq { + Path: string; + Request?: Request | undefined; +} + +export interface Mkdir { + Path: string; + Response?: Response | undefined; +} + +export interface DownloadReq { + Path: string; + Start: string; + Stop: string; + Recurse: boolean; + MaxBytes: string; + MaxLines: string; + RestrictedToFile: boolean; + Request?: Request | undefined; +} + +export interface Download { + Path: string; + Encoder: string; + Exists: boolean; + Start: string; + Stop: string; + Data: Buffer; + IsDir: boolean; + ReadFiles: number; + UnreadableFiles: number; + Response?: Response | undefined; +} + +export interface UploadReq { + Path: string; + Encoder: string; + Data: Buffer; + IsIOC: boolean; + FileName: string; + IsDirectory: boolean; + Overwrite: boolean; + Request?: Request | undefined; +} + +export interface Upload { + Path: string; + WrittenFiles: number; + UnwriteableFiles: number; + Response?: Response | undefined; +} + +export interface GrepReq { + SearchPattern: string; + Path: string; + Recursive: boolean; + LinesBefore: number; + LinesAfter: number; + Request?: Request | undefined; +} + +export interface GrepLinePosition { + Start: number; + End: number; +} + +export interface GrepResult { + LineNumber: string; + Positions: GrepLinePosition[]; + Line: string; + LinesBefore: string[]; + LinesAfter: string[]; +} + +export interface GrepResultsForFile { + FileResults: GrepResult[]; + IsBinary: boolean; +} + +export interface Grep { + Results: { [key: string]: GrepResultsForFile }; + SearchPathAbsolute: string; + Response?: Response | undefined; +} + +export interface Grep_ResultsEntry { + key: string; + value?: GrepResultsForFile | undefined; +} + +export interface MountReq { + Request?: Request | undefined; +} + +export interface MountInfo { + VolumeName: string; + VolumeType: string; + MountPoint: string; + Label: string; + FileSystem: string; + UsedSpace: string; + FreeSpace: string; + TotalSpace: string; + MountOptions: string; +} + +export interface Mount { + Info: MountInfo[]; + Response?: Response | undefined; +} + +export interface ProcessDumpReq { + Pid: number; + Timeout: number; + Request?: Request | undefined; +} + +export interface ProcessDump { + Data: Buffer; + Response?: Response | undefined; +} + +export interface RunAsReq { + Username: string; + ProcessName: string; + Args: string; + Domain: string; + Password: string; + HideWindow: boolean; + NetOnly: boolean; + Request?: Request | undefined; +} + +export interface RunAs { + Output: string; + Response?: Response | undefined; +} + +export interface ImpersonateReq { + Username: string; + Request?: Request | undefined; +} + +export interface Impersonate { + Response?: Response | undefined; +} + +export interface RevToSelfReq { + Request?: Request | undefined; +} + +export interface RevToSelf { + Response?: Response | undefined; +} + +export interface CurrentTokenOwnerReq { + Request?: Request | undefined; +} + +export interface CurrentTokenOwner { + Output: string; + Response?: Response | undefined; +} + +/** + * InvokeGetSystemReq - Implant-side version of GetSystemReq, this message + * contains the .Data based on the client's req.Config + */ +export interface InvokeGetSystemReq { + Data: Buffer; + HostingProcess: string; + Request?: Request | undefined; +} + +/** GetSystem - The result of a InvokeGetSystemReq attempt */ +export interface GetSystem { + Response?: Response | undefined; +} + +export interface MakeTokenReq { + Username: string; + Password: string; + Domain: string; + LogonType: number; + Request?: Request | undefined; +} + +export interface MakeToken { + Response?: Response | undefined; +} + +export interface TaskReq { + Encoder: string; + RWXPages: boolean; + Pid: number; + Data: Buffer; + Request?: Request | undefined; +} + +export interface Task { + Response?: Response | undefined; +} + +export interface ExecuteAssemblyReq { + Assembly: Buffer; + Arguments: string[]; + Process: string; + IsDLL: boolean; + Arch: string; + ClassName: string; + Method: string; + AppDomain: string; + PPid: number; + ProcessArgs: string[]; + /** In process specific fields */ + InProcess: boolean; + Runtime: string; + AmsiBypass: boolean; + EtwBypass: boolean; + Request?: Request | undefined; +} + +export interface InvokeExecuteAssemblyReq { + Data: Buffer; + process: string; + PPid: number; + ProcessArgs: string[]; + Request?: Request | undefined; +} + +export interface InvokeInProcExecuteAssemblyReq { + Data: Buffer; + Arguments: string[]; + Runtime: string; + AmsiBypass: boolean; + EtwBypass: boolean; + Request?: Request | undefined; +} + +export interface ExecuteAssembly { + Output: Buffer; + Response?: Response | undefined; +} + +export interface InvokeMigrateReq { + Pid: number; + Data: Buffer; + ProcName: string; + Request?: Request | undefined; +} + +export interface Migrate { + Success: boolean; + Pid: number; + Response?: Response | undefined; +} + +export interface ExecuteReq { + Path: string; + Args: string[]; + Output: boolean; + Stdout: string; + Stderr: string; + EnvInheritance: boolean; + Env: { [key: string]: string }; + Background: boolean; + PPid: number; + Request?: Request | undefined; +} + +export interface ExecuteReq_EnvEntry { + key: string; + value: string; +} + +export interface ExecuteWindowsReq { + Path: string; + Args: string[]; + Output: boolean; + Stdout: string; + Stderr: string; + UseToken: boolean; + HideWindow: boolean; + Background: boolean; + PPid: number; + Request?: Request | undefined; +} + +export interface Execute { + Status: number; + Stdout: Buffer; + Stderr: Buffer; + Pid: number; + Response?: Response | undefined; +} + +export interface ExecuteChildrenReq { + Request?: Request | undefined; +} + +export interface ExecuteChild { + Pid: number; + Path: string; + Args: string[]; + StartTime: string; + Exited: boolean; + ExitCode: number; + ExitTime: string; + Stdout: string; + Stderr: string; + Error: string; +} + +export interface ExecuteChildren { + Children: ExecuteChild[]; + Response?: Response | undefined; +} + +export interface SideloadReq { + Data: Buffer; + ProcessName: string; + Args: string[]; + EntryPoint: string; + Kill: boolean; + isDLL: boolean; + isUnicode: boolean; + PPid: number; + ProcessArgs: string[]; + Request?: Request | undefined; +} + +export interface Sideload { + Result: string; + Response?: Response | undefined; +} + +export interface InvokeSpawnDllReq { + Data: Buffer; + ProcessName: string; + Args: string[]; + EntryPoint: string; + Kill: boolean; + PPid: number; + ProcessArgs: string[]; + Request?: Request | undefined; +} + +export interface SpawnDllReq { + Data: Buffer; + ProcessName: string; + Offset: number; + Args: string[]; + Kill: boolean; + PPid: number; + ProcessArgs: string[]; + Request?: Request | undefined; +} + +export interface SpawnDll { + Result: string; + Response?: Response | undefined; +} + +export interface NetstatReq { + TCP: boolean; + UDP: boolean; + IP4: boolean; + IP6: boolean; + Listening: boolean; + Request?: Request | undefined; +} + +export interface SockTabEntry { + LocalAddr?: SockTabEntry_SockAddr | undefined; + RemoteAddr?: SockTabEntry_SockAddr | undefined; + SkState: string; + UID: number; + Process?: Process | undefined; + Protocol: string; +} + +export interface SockTabEntry_SockAddr { + Ip: string; + Port: number; +} + +export interface Netstat { + Entries: SockTabEntry[]; + Response?: Response | undefined; +} + +export interface EnvReq { + Name: string; + Request?: Request | undefined; +} + +export interface EnvInfo { + Variables: EnvVar[]; + Response?: Response | undefined; +} + +export interface SetEnvReq { + Variable?: EnvVar | undefined; + Request?: Request | undefined; +} + +export interface SetEnv { + Response?: Response | undefined; +} + +export interface UnsetEnvReq { + Name: string; + Request?: Request | undefined; +} + +export interface UnsetEnv { + Response?: Response | undefined; +} + +/** HTTP Sepecific message */ +export interface HTTPSessionInit { + Key: Buffer; +} + +/** ScreenshotReq - Request the implant take a screenshot */ +export interface ScreenshotReq { + Request?: Request | undefined; +} + +export interface Screenshot { + Data: Buffer; + Response?: Response | undefined; +} + +export interface StartServiceReq { + ServiceName: string; + ServiceDescription: string; + BinPath: string; + Hostname: string; + Arguments: string; + Request?: Request | undefined; +} + +export interface ServiceInfo { + Response?: Response | undefined; +} + +export interface ServiceInfoReq { + ServiceName: string; + Hostname: string; +} + +export interface StopServiceReq { + ServiceInfo?: ServiceInfoReq | undefined; + Request?: Request | undefined; +} + +export interface RemoveServiceReq { + ServiceInfo?: ServiceInfoReq | undefined; + Request?: Request | undefined; +} + +export interface RegistryReadReq { + Hive: string; + Path: string; + Key: string; + Hostname: string; + Request?: Request | undefined; +} + +export interface RegistryRead { + Value: string; + Response?: Response | undefined; +} + +export interface RegistryWriteReq { + Hive: string; + Path: string; + Key: string; + Hostname: string; + StringValue: string; + ByteValue: Buffer; + DWordValue: number; + QWordValue: string; + Type: number; + Request?: Request | undefined; +} + +export interface RegistryWrite { + Response?: Response | undefined; +} + +export interface RegistryCreateKeyReq { + Hive: string; + Path: string; + Key: string; + Hostname: string; + Request?: Request | undefined; +} + +export interface RegistryCreateKey { + Response?: Response | undefined; +} + +export interface RegistryDeleteKeyReq { + Hive: string; + Path: string; + Key: string; + Hostname: string; + Request?: Request | undefined; +} + +export interface RegistryDeleteKey { + Response?: Response | undefined; +} + +export interface RegistrySubKeyListReq { + Hive: string; + Path: string; + /** Keep the same ID as the other registry operations */ + Hostname: string; + Request?: Request | undefined; +} + +export interface RegistrySubKeyList { + Subkeys: string[]; + Response?: Response | undefined; +} + +export interface RegistryListValuesReq { + Hive: string; + Path: string; + /** Keep the same ID as the other registry operations */ + Hostname: string; + Request?: Request | undefined; +} + +export interface RegistryValuesList { + ValueNames: string[]; + Response?: Response | undefined; +} + +export interface RegistryReadHiveReq { + RootHive: string; + RequestedHive: string; + Request?: Request | undefined; +} + +export interface RegistryReadHive { + Data: Buffer; + Encoder: string; + Response?: Response | undefined; +} + +/** Tunnel - Tunnel related messages */ +export interface Tunnel { + TunnelID: string; + SessionID: string; +} + +export interface TunnelData { + Data: Buffer; + Closed: boolean; + Sequence: string; + Ack: string; + Resend: boolean; + CreateReverse: boolean; + rportfwd?: RPortfwd | undefined; + TunnelID: string; + SessionID: string; +} + +/** ShellReq - Request the implant open a realtime shell tunnel */ +export interface ShellReq { + Path: string; + EnablePTY: boolean; + Pid: number; + Rows: number; + Cols: number; + /** Bind to this tunnel */ + TunnelID: string; + Request?: Request | undefined; +} + +/** Shell - Request the implant open a realtime shell tunnel */ +export interface Shell { + Path: string; + EnablePTY: boolean; + Pid: number; + TunnelID: string; + Response?: Response | undefined; +} + +export interface ShellResizeReq { + Rows: number; + Cols: number; + TunnelID: string; + Request?: Request | undefined; +} + +export interface PortfwdReq { + Port: number; + Protocol: number; + Host: string; + /** Bind to this tunnel */ + TunnelID: string; + Request?: Request | undefined; +} + +export interface Portfwd { + Port: number; + Protocol: number; + Host: string; + /** Bind to this tunnel */ + TunnelID: string; + Response?: Response | undefined; +} + +export interface Socks { + TunnelID: string; + SessionID: string; +} + +export interface SocksData { + Data: Buffer; + CloseConn: boolean; + Username: string; + Password: string; + Sequence: string; + TunnelID: string; + Request?: Request | undefined; +} + +export interface PivotStartListenerReq { + Type: PivotType; + BindAddress: string; + Options: boolean[]; + Request?: Request | undefined; +} + +export interface PivotStopListenerReq { + ID: number; + Request?: Request | undefined; +} + +export interface PivotListener { + ID: number; + Type: PivotType; + BindAddress: string; + Pivots: NetConnPivot[]; + Response?: Response | undefined; +} + +export interface PivotHello { + PublicKey: Buffer; + PeerID: string; + PublicKeySignature: string; + SessionKey: Buffer; +} + +export interface PivotServerKeyExchange { + OriginID: string; + SessionKey: Buffer; +} + +export interface PivotPeer { + PeerID: string; + Name: string; +} + +export interface PivotPeerEnvelope { + Peers: PivotPeer[]; + Type: number; + PivotSessionID: Buffer; + Data: Buffer; + PeerFailureAt: string; +} + +export interface PivotPing { + Nonce: number; +} + +export interface NetConnPivot { + PeerID: string; + RemoteAddress: string; +} + +export interface PivotPeerFailure { + PeerID: string; + Type: PeerFailureType; + Err: string; +} + +export interface PivotListenersReq { + Request?: Request | undefined; +} + +export interface PivotListeners { + Listeners: PivotListener[]; + Response?: Response | undefined; +} + +export interface WGPortForwardStartReq { + LocalPort: number; + RemoteAddress: string; + Request?: Request | undefined; +} + +export interface WGPortForward { + Forwarder?: WGTCPForwarder | undefined; + Response?: Response | undefined; +} + +export interface WGPortForwardStopReq { + ID: number; + Request?: Request | undefined; +} + +export interface WGSocksStartReq { + Port: number; + Request?: Request | undefined; +} + +export interface WGSocks { + Server?: WGSocksServer | undefined; + Response?: Response | undefined; +} + +export interface WGSocksStopReq { + ID: number; + Request?: Request | undefined; +} + +export interface WGTCPForwardersReq { + Request?: Request | undefined; +} + +export interface WGSocksServersReq { + Request?: Request | undefined; +} + +export interface WGTCPForwarder { + ID: number; + LocalAddr: string; + RemoteAddr: string; +} + +export interface WGSocksServer { + ID: number; + LocalAddr: string; +} + +export interface WGSocksServers { + Servers: WGSocksServer[]; + Response?: Response | undefined; +} + +export interface WGTCPForwarders { + Forwarders: WGTCPForwarder[]; + Response?: Response | undefined; +} + +/** ReconfigureReq - Request the implant to reconfigure itself */ +export interface ReconfigureReq { + ReconnectInterval: string; + BeaconInterval: string; + BeaconJitter: string; + Request?: Request | undefined; +} + +export interface Reconfigure { + Response?: Response | undefined; +} + +/** PollIntervalReq - Request the implant to update it's poll intervbal */ +export interface PollIntervalReq { + PollInterval: string; + Request?: Request | undefined; +} + +export interface PollInterval { + Response?: Response | undefined; +} + +export interface SSHCommandReq { + Username: string; + Hostname: string; + Port: number; + Command: string; + Password: string; + PrivKey: Buffer; + Krb5Conf: string; + Keytab: Buffer; + Realm: string; + Request?: Request | undefined; +} + +export interface SSHCommand { + StdOut: string; + StdErr: string; + Response?: Response | undefined; +} + +export interface GetPrivsReq { + Request?: Request | undefined; +} + +export interface WindowsPrivilegeEntry { + Name: string; + Description: string; + Enabled: boolean; + EnabledByDefault: boolean; + Removed: boolean; + UsedForAccess: boolean; +} + +export interface GetPrivs { + PrivInfo: WindowsPrivilegeEntry[]; + ProcessIntegrity: string; + ProcessName: string; + Response?: Response | undefined; +} + +export interface RegisterExtensionReq { + Name: string; + Data: Buffer; + OS: string; + Init: string; + Request?: Request | undefined; +} + +export interface RegisterExtension { + Response?: Response | undefined; +} + +export interface CallExtensionReq { + Name: string; + ServerStore: boolean; + Args: Buffer; + Export: string; + Request?: Request | undefined; +} + +export interface CallExtension { + Output: Buffer; + ServerStore: boolean; + Response?: Response | undefined; +} + +export interface ListExtensionsReq { + Request?: Request | undefined; +} + +export interface ListExtensions { + Names: string[]; + Response?: Response | undefined; +} + +export interface RportFwdStopListenerReq { + ID: number; + Request?: Request | undefined; +} + +export interface RportFwdStartListenerReq { + BindAddress: string; + BindPort: number; + ForwardPort: number; + ForwardAddress: string; + Request?: Request | undefined; +} + +export interface RportFwdListener { + ID: number; + BindAddress: string; + BindPort: number; + ForwardAddress: string; + ForwardPort: number; + Response?: Response | undefined; +} + +export interface RportFwdListeners { + Listeners: RportFwdListener[]; + Response?: Response | undefined; +} + +export interface RportFwdListenersReq { + Request?: Request | undefined; +} + +export interface RPortfwd { + Port: number; + Protocol: number; + Host: string; + /** Bind to this tunnel */ + TunnelID: string; + Response?: Response | undefined; +} + +export interface RPortfwdReq { + Port: number; + Protocol: number; + Host: string; + /** Bind to this tunnel */ + TunnelID: string; + Request?: Request | undefined; +} + +export interface ChmodReq { + Path: string; + FileMode: string; + Recursive: boolean; + Request?: Request | undefined; +} + +export interface Chmod { + Path: string; + Response?: Response | undefined; +} + +export interface ChownReq { + Path: string; + Uid: string; + Gid: string; + Recursive: boolean; + Request?: Request | undefined; +} + +export interface Chown { + Path: string; + Response?: Response | undefined; +} + +export interface ChtimesReq { + Path: string; + ATime: string; + MTime: string; + Request?: Request | undefined; +} + +export interface Chtimes { + Path: string; + Response?: Response | undefined; +} + +export interface MemfilesListReq { + Request?: Request | undefined; +} + +export interface MemfilesAddReq { + Request?: Request | undefined; +} + +export interface MemfilesAdd { + Fd: string; + Response?: Response | undefined; +} + +export interface MemfilesRmReq { + Fd: string; + Request?: Request | undefined; +} + +export interface MemfilesRm { + Fd: string; + Response?: Response | undefined; +} + +export interface RegisterWasmExtensionReq { + Name: string; + WasmGz: Buffer; + Request?: Request | undefined; +} + +export interface RegisterWasmExtension { + Response?: Response | undefined; +} + +export interface DeregisterWasmExtensionReq { + Name: string; + Request?: Request | undefined; +} + +export interface ListWasmExtensionsReq { + Request?: Request | undefined; +} + +export interface ListWasmExtensions { + Names: string[]; + Response?: Response | undefined; +} + +export interface ExecWasmExtensionReq { + Name: string; + Args: string[]; + Interactive: boolean; + MemFS: { [key: string]: Buffer }; + /** Bind to this tunnel */ + TunnelID: string; + Request?: Request | undefined; +} + +export interface ExecWasmExtensionReq_MemFSEntry { + key: string; + value: Buffer; +} + +export interface ExecWasmExtension { + Stdout: Buffer; + Stderr: Buffer; + ExitCode: number; + Response?: Response | undefined; +} + +export interface ServicesReq { + Hostname: string; + Request?: Request | undefined; +} + +export interface ServiceDetailReq { + ServiceInfo?: ServiceInfoReq | undefined; + Request?: Request | undefined; +} + +export interface ServiceDetails { + Name: string; + DisplayName: string; + Description: string; + Status: number; + StartupType: number; + BinPath: string; + Account: string; +} + +export interface Services { + Details: ServiceDetails[]; + Error: string; + Response?: Response | undefined; +} + +export interface ServiceDetail { + Detail?: ServiceDetails | undefined; + Message: string; + Response?: Response | undefined; +} + +export interface StartServiceByNameReq { + ServiceInfo?: ServiceInfoReq | undefined; + Request?: Request | undefined; +} + +function createBaseEnvelope(): Envelope { + return { ID: "0", Type: 0, Data: Buffer.alloc(0), UnknownMessageType: false }; +} + +export const Envelope: MessageFns = { + encode(message: Envelope, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "0") { + writer.uint32(8).int64(message.ID); + } + if (message.Type !== 0) { + writer.uint32(16).uint32(message.Type); + } + if (message.Data.length !== 0) { + writer.uint32(26).bytes(message.Data); + } + if (message.UnknownMessageType !== false) { + writer.uint32(32).bool(message.UnknownMessageType); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Envelope { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnvelope(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Type = reader.uint32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.UnknownMessageType = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Envelope { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "0", + Type: isSet(object.Type) ? globalThis.Number(object.Type) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + UnknownMessageType: isSet(object.UnknownMessageType) ? globalThis.Boolean(object.UnknownMessageType) : false, + }; + }, + + toJSON(message: Envelope): unknown { + const obj: any = {}; + if (message.ID !== "0") { + obj.ID = message.ID; + } + if (message.Type !== 0) { + obj.Type = Math.round(message.Type); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.UnknownMessageType !== false) { + obj.UnknownMessageType = message.UnknownMessageType; + } + return obj; + }, + + create(base?: DeepPartial): Envelope { + return Envelope.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Envelope { + const message = createBaseEnvelope(); + message.ID = object.ID ?? "0"; + message.Type = object.Type ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + message.UnknownMessageType = object.UnknownMessageType ?? false; + return message; + }, +}; + +function createBaseBeaconTasks(): BeaconTasks { + return { ID: "", Tasks: [], NextCheckin: "0" }; +} + +export const BeaconTasks: MessageFns = { + encode(message: BeaconTasks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + for (const v of message.Tasks) { + Envelope.encode(v!, writer.uint32(18).fork()).join(); + } + if (message.NextCheckin !== "0") { + writer.uint32(24).int64(message.NextCheckin); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BeaconTasks { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeaconTasks(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Tasks.push(Envelope.decode(reader, reader.uint32())); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.NextCheckin = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BeaconTasks { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Tasks: globalThis.Array.isArray(object?.Tasks) ? object.Tasks.map((e: any) => Envelope.fromJSON(e)) : [], + NextCheckin: isSet(object.NextCheckin) ? globalThis.String(object.NextCheckin) : "0", + }; + }, + + toJSON(message: BeaconTasks): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Tasks?.length) { + obj.Tasks = message.Tasks.map((e) => Envelope.toJSON(e)); + } + if (message.NextCheckin !== "0") { + obj.NextCheckin = message.NextCheckin; + } + return obj; + }, + + create(base?: DeepPartial): BeaconTasks { + return BeaconTasks.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BeaconTasks { + const message = createBaseBeaconTasks(); + message.ID = object.ID ?? ""; + message.Tasks = object.Tasks?.map((e) => Envelope.fromPartial(e)) || []; + message.NextCheckin = object.NextCheckin ?? "0"; + return message; + }, +}; + +function createBaseRegister(): Register { + return { + Name: "", + Hostname: "", + Uuid: "", + Username: "", + Uid: "", + Gid: "", + Os: "", + Arch: "", + Pid: 0, + Filename: "", + ActiveC2: "", + Version: "", + ReconnectInterval: "0", + ProxyURL: "", + ConfigID: "", + PeerID: "0", + Locale: "", + }; +} + +export const Register: MessageFns = { + encode(message: Register, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Hostname !== "") { + writer.uint32(18).string(message.Hostname); + } + if (message.Uuid !== "") { + writer.uint32(26).string(message.Uuid); + } + if (message.Username !== "") { + writer.uint32(34).string(message.Username); + } + if (message.Uid !== "") { + writer.uint32(42).string(message.Uid); + } + if (message.Gid !== "") { + writer.uint32(50).string(message.Gid); + } + if (message.Os !== "") { + writer.uint32(58).string(message.Os); + } + if (message.Arch !== "") { + writer.uint32(66).string(message.Arch); + } + if (message.Pid !== 0) { + writer.uint32(72).int32(message.Pid); + } + if (message.Filename !== "") { + writer.uint32(82).string(message.Filename); + } + if (message.ActiveC2 !== "") { + writer.uint32(90).string(message.ActiveC2); + } + if (message.Version !== "") { + writer.uint32(98).string(message.Version); + } + if (message.ReconnectInterval !== "0") { + writer.uint32(104).int64(message.ReconnectInterval); + } + if (message.ProxyURL !== "") { + writer.uint32(114).string(message.ProxyURL); + } + if (message.ConfigID !== "") { + writer.uint32(130).string(message.ConfigID); + } + if (message.PeerID !== "0") { + writer.uint32(136).int64(message.PeerID); + } + if (message.Locale !== "") { + writer.uint32(146).string(message.Locale); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Register { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegister(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Uuid = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Username = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Uid = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Gid = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Os = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Arch = reader.string(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.Filename = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ActiveC2 = reader.string(); + continue; + } + case 12: { + if (tag !== 98) { + break; + } + + message.Version = reader.string(); + continue; + } + case 13: { + if (tag !== 104) { + break; + } + + message.ReconnectInterval = reader.int64().toString(); + continue; + } + case 14: { + if (tag !== 114) { + break; + } + + message.ProxyURL = reader.string(); + continue; + } + case 16: { + if (tag !== 130) { + break; + } + + message.ConfigID = reader.string(); + continue; + } + case 17: { + if (tag !== 136) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 18: { + if (tag !== 146) { + break; + } + + message.Locale = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Register { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Uuid: isSet(object.Uuid) ? globalThis.String(object.Uuid) : "", + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Uid: isSet(object.Uid) ? globalThis.String(object.Uid) : "", + Gid: isSet(object.Gid) ? globalThis.String(object.Gid) : "", + Os: isSet(object.Os) ? globalThis.String(object.Os) : "", + Arch: isSet(object.Arch) ? globalThis.String(object.Arch) : "", + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Filename: isSet(object.Filename) ? globalThis.String(object.Filename) : "", + ActiveC2: isSet(object.ActiveC2) ? globalThis.String(object.ActiveC2) : "", + Version: isSet(object.Version) ? globalThis.String(object.Version) : "", + ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", + ProxyURL: isSet(object.ProxyURL) ? globalThis.String(object.ProxyURL) : "", + ConfigID: isSet(object.ConfigID) ? globalThis.String(object.ConfigID) : "", + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + Locale: isSet(object.Locale) ? globalThis.String(object.Locale) : "", + }; + }, + + toJSON(message: Register): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Uuid !== "") { + obj.Uuid = message.Uuid; + } + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Uid !== "") { + obj.Uid = message.Uid; + } + if (message.Gid !== "") { + obj.Gid = message.Gid; + } + if (message.Os !== "") { + obj.Os = message.Os; + } + if (message.Arch !== "") { + obj.Arch = message.Arch; + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Filename !== "") { + obj.Filename = message.Filename; + } + if (message.ActiveC2 !== "") { + obj.ActiveC2 = message.ActiveC2; + } + if (message.Version !== "") { + obj.Version = message.Version; + } + if (message.ReconnectInterval !== "0") { + obj.ReconnectInterval = message.ReconnectInterval; + } + if (message.ProxyURL !== "") { + obj.ProxyURL = message.ProxyURL; + } + if (message.ConfigID !== "") { + obj.ConfigID = message.ConfigID; + } + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.Locale !== "") { + obj.Locale = message.Locale; + } + return obj; + }, + + create(base?: DeepPartial): Register { + return Register.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Register { + const message = createBaseRegister(); + message.Name = object.Name ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Uuid = object.Uuid ?? ""; + message.Username = object.Username ?? ""; + message.Uid = object.Uid ?? ""; + message.Gid = object.Gid ?? ""; + message.Os = object.Os ?? ""; + message.Arch = object.Arch ?? ""; + message.Pid = object.Pid ?? 0; + message.Filename = object.Filename ?? ""; + message.ActiveC2 = object.ActiveC2 ?? ""; + message.Version = object.Version ?? ""; + message.ReconnectInterval = object.ReconnectInterval ?? "0"; + message.ProxyURL = object.ProxyURL ?? ""; + message.ConfigID = object.ConfigID ?? ""; + message.PeerID = object.PeerID ?? "0"; + message.Locale = object.Locale ?? ""; + return message; + }, +}; + +function createBaseBeaconRegister(): BeaconRegister { + return { ID: "", Interval: "0", Jitter: "0", Register: undefined, NextCheckin: "0" }; +} + +export const BeaconRegister: MessageFns = { + encode(message: BeaconRegister, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Interval !== "0") { + writer.uint32(16).int64(message.Interval); + } + if (message.Jitter !== "0") { + writer.uint32(24).int64(message.Jitter); + } + if (message.Register !== undefined) { + Register.encode(message.Register, writer.uint32(34).fork()).join(); + } + if (message.NextCheckin !== "0") { + writer.uint32(40).int64(message.NextCheckin); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): BeaconRegister { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseBeaconRegister(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Interval = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Jitter = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Register = Register.decode(reader, reader.uint32()); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.NextCheckin = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): BeaconRegister { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Interval: isSet(object.Interval) ? globalThis.String(object.Interval) : "0", + Jitter: isSet(object.Jitter) ? globalThis.String(object.Jitter) : "0", + Register: isSet(object.Register) ? Register.fromJSON(object.Register) : undefined, + NextCheckin: isSet(object.NextCheckin) ? globalThis.String(object.NextCheckin) : "0", + }; + }, + + toJSON(message: BeaconRegister): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Interval !== "0") { + obj.Interval = message.Interval; + } + if (message.Jitter !== "0") { + obj.Jitter = message.Jitter; + } + if (message.Register !== undefined) { + obj.Register = Register.toJSON(message.Register); + } + if (message.NextCheckin !== "0") { + obj.NextCheckin = message.NextCheckin; + } + return obj; + }, + + create(base?: DeepPartial): BeaconRegister { + return BeaconRegister.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): BeaconRegister { + const message = createBaseBeaconRegister(); + message.ID = object.ID ?? ""; + message.Interval = object.Interval ?? "0"; + message.Jitter = object.Jitter ?? "0"; + message.Register = (object.Register !== undefined && object.Register !== null) + ? Register.fromPartial(object.Register) + : undefined; + message.NextCheckin = object.NextCheckin ?? "0"; + return message; + }, +}; + +function createBaseSessionRegister(): SessionRegister { + return { ID: "", Register: undefined }; +} + +export const SessionRegister: MessageFns = { + encode(message: SessionRegister, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== "") { + writer.uint32(10).string(message.ID); + } + if (message.Register !== undefined) { + Register.encode(message.Register, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SessionRegister { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSessionRegister(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Register = Register.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SessionRegister { + return { + ID: isSet(object.ID) ? globalThis.String(object.ID) : "", + Register: isSet(object.Register) ? Register.fromJSON(object.Register) : undefined, + }; + }, + + toJSON(message: SessionRegister): unknown { + const obj: any = {}; + if (message.ID !== "") { + obj.ID = message.ID; + } + if (message.Register !== undefined) { + obj.Register = Register.toJSON(message.Register); + } + return obj; + }, + + create(base?: DeepPartial): SessionRegister { + return SessionRegister.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SessionRegister { + const message = createBaseSessionRegister(); + message.ID = object.ID ?? ""; + message.Register = (object.Register !== undefined && object.Register !== null) + ? Register.fromPartial(object.Register) + : undefined; + return message; + }, +}; + +function createBaseOpenSession(): OpenSession { + return { C2s: [], Delay: "0", Response: undefined, Request: undefined }; +} + +export const OpenSession: MessageFns = { + encode(message: OpenSession, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.C2s) { + writer.uint32(10).string(v!); + } + if (message.Delay !== "0") { + writer.uint32(16).int64(message.Delay); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(66).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): OpenSession { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseOpenSession(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.C2s.push(reader.string()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Delay = reader.int64().toString(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): OpenSession { + return { + C2s: globalThis.Array.isArray(object?.C2s) ? object.C2s.map((e: any) => globalThis.String(e)) : [], + Delay: isSet(object.Delay) ? globalThis.String(object.Delay) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: OpenSession): unknown { + const obj: any = {}; + if (message.C2s?.length) { + obj.C2s = message.C2s; + } + if (message.Delay !== "0") { + obj.Delay = message.Delay; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): OpenSession { + return OpenSession.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): OpenSession { + const message = createBaseOpenSession(); + message.C2s = object.C2s?.map((e) => e) || []; + message.Delay = object.Delay ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCloseSession(): CloseSession { + return { Response: undefined, Request: undefined }; +} + +export const CloseSession: MessageFns = { + encode(message: CloseSession, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(66).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CloseSession { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCloseSession(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 8: { + if (tag !== 66) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CloseSession { + return { + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: CloseSession): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CloseSession { + return CloseSession.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CloseSession { + const message = createBaseCloseSession(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePing(): Ping { + return { Nonce: 0, Response: undefined, Request: undefined }; +} + +export const Ping: MessageFns = { + encode(message: Ping, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Nonce !== 0) { + writer.uint32(8).int32(message.Nonce); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(66).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Ping { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePing(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Nonce = reader.int32(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Ping { + return { + Nonce: isSet(object.Nonce) ? globalThis.Number(object.Nonce) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: Ping): unknown { + const obj: any = {}; + if (message.Nonce !== 0) { + obj.Nonce = Math.round(message.Nonce); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): Ping { + return Ping.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Ping { + const message = createBasePing(); + message.Nonce = object.Nonce ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseKillReq(): KillReq { + return { Force: false, Request: undefined }; +} + +export const KillReq: MessageFns = { + encode(message: KillReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Force !== false) { + writer.uint32(8).bool(message.Force); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): KillReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseKillReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Force = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): KillReq { + return { + Force: isSet(object.Force) ? globalThis.Boolean(object.Force) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: KillReq): unknown { + const obj: any = {}; + if (message.Force !== false) { + obj.Force = message.Force; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): KillReq { + return KillReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): KillReq { + const message = createBaseKillReq(); + message.Force = object.Force ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePsReq(): PsReq { + return { FullInfo: false, Request: undefined }; +} + +export const PsReq: MessageFns = { + encode(message: PsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.FullInfo !== false) { + writer.uint32(8).bool(message.FullInfo); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.FullInfo = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PsReq { + return { + FullInfo: isSet(object.FullInfo) ? globalThis.Boolean(object.FullInfo) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: PsReq): unknown { + const obj: any = {}; + if (message.FullInfo !== false) { + obj.FullInfo = message.FullInfo; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PsReq { + return PsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PsReq { + const message = createBasePsReq(); + message.FullInfo = object.FullInfo ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePs(): Ps { + return { Processes: [], Response: undefined }; +} + +export const Ps: MessageFns = { + encode(message: Ps, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Processes) { + Process.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Ps { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Processes.push(Process.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Ps { + return { + Processes: globalThis.Array.isArray(object?.Processes) + ? object.Processes.map((e: any) => Process.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Ps): unknown { + const obj: any = {}; + if (message.Processes?.length) { + obj.Processes = message.Processes.map((e) => Process.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Ps { + return Ps.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Ps { + const message = createBasePs(); + message.Processes = object.Processes?.map((e) => Process.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseTerminateReq(): TerminateReq { + return { Pid: 0, Force: false, Request: undefined }; +} + +export const TerminateReq: MessageFns = { + encode(message: TerminateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).int32(message.Pid); + } + if (message.Force !== false) { + writer.uint32(16).bool(message.Force); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TerminateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTerminateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Force = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TerminateReq { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Force: isSet(object.Force) ? globalThis.Boolean(object.Force) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: TerminateReq): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Force !== false) { + obj.Force = message.Force; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): TerminateReq { + return TerminateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TerminateReq { + const message = createBaseTerminateReq(); + message.Pid = object.Pid ?? 0; + message.Force = object.Force ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseTerminate(): Terminate { + return { Pid: 0, Response: undefined }; +} + +export const Terminate: MessageFns = { + encode(message: Terminate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).int32(message.Pid); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Terminate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTerminate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Terminate { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Terminate): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Terminate { + return Terminate.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Terminate { + const message = createBaseTerminate(); + message.Pid = object.Pid ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseIfconfigReq(): IfconfigReq { + return { Request: undefined }; +} + +export const IfconfigReq: MessageFns = { + encode(message: IfconfigReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): IfconfigReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIfconfigReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): IfconfigReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: IfconfigReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): IfconfigReq { + return IfconfigReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): IfconfigReq { + const message = createBaseIfconfigReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseIfconfig(): Ifconfig { + return { NetInterfaces: [], Response: undefined }; +} + +export const Ifconfig: MessageFns = { + encode(message: Ifconfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.NetInterfaces) { + NetInterface.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Ifconfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseIfconfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.NetInterfaces.push(NetInterface.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Ifconfig { + return { + NetInterfaces: globalThis.Array.isArray(object?.NetInterfaces) + ? object.NetInterfaces.map((e: any) => NetInterface.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Ifconfig): unknown { + const obj: any = {}; + if (message.NetInterfaces?.length) { + obj.NetInterfaces = message.NetInterfaces.map((e) => NetInterface.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Ifconfig { + return Ifconfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Ifconfig { + const message = createBaseIfconfig(); + message.NetInterfaces = object.NetInterfaces?.map((e) => NetInterface.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseNetInterface(): NetInterface { + return { Index: 0, Name: "", MAC: "", IPAddresses: [] }; +} + +export const NetInterface: MessageFns = { + encode(message: NetInterface, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Index !== 0) { + writer.uint32(8).int32(message.Index); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + if (message.MAC !== "") { + writer.uint32(26).string(message.MAC); + } + for (const v of message.IPAddresses) { + writer.uint32(34).string(v!); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): NetInterface { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetInterface(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Index = reader.int32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.MAC = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.IPAddresses.push(reader.string()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): NetInterface { + return { + Index: isSet(object.Index) ? globalThis.Number(object.Index) : 0, + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + MAC: isSet(object.MAC) ? globalThis.String(object.MAC) : "", + IPAddresses: globalThis.Array.isArray(object?.IPAddresses) + ? object.IPAddresses.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: NetInterface): unknown { + const obj: any = {}; + if (message.Index !== 0) { + obj.Index = Math.round(message.Index); + } + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.MAC !== "") { + obj.MAC = message.MAC; + } + if (message.IPAddresses?.length) { + obj.IPAddresses = message.IPAddresses; + } + return obj; + }, + + create(base?: DeepPartial): NetInterface { + return NetInterface.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): NetInterface { + const message = createBaseNetInterface(); + message.Index = object.Index ?? 0; + message.Name = object.Name ?? ""; + message.MAC = object.MAC ?? ""; + message.IPAddresses = object.IPAddresses?.map((e) => e) || []; + return message; + }, +}; + +function createBaseLsReq(): LsReq { + return { Path: "", Request: undefined }; +} + +export const LsReq: MessageFns = { + encode(message: LsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): LsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): LsReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: LsReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): LsReq { + return LsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): LsReq { + const message = createBaseLsReq(); + message.Path = object.Path ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseLs(): Ls { + return { Path: "", Exists: false, Files: [], timezone: "", timezoneOffset: 0, Response: undefined }; +} + +export const Ls: MessageFns = { + encode(message: Ls, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Exists !== false) { + writer.uint32(16).bool(message.Exists); + } + for (const v of message.Files) { + FileInfo.encode(v!, writer.uint32(26).fork()).join(); + } + if (message.timezone !== "") { + writer.uint32(34).string(message.timezone); + } + if (message.timezoneOffset !== 0) { + writer.uint32(40).int32(message.timezoneOffset); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Ls { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseLs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Exists = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Files.push(FileInfo.decode(reader, reader.uint32())); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.timezone = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.timezoneOffset = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Ls { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Exists: isSet(object.Exists) ? globalThis.Boolean(object.Exists) : false, + Files: globalThis.Array.isArray(object?.Files) ? object.Files.map((e: any) => FileInfo.fromJSON(e)) : [], + timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "", + timezoneOffset: isSet(object.timezoneOffset) ? globalThis.Number(object.timezoneOffset) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Ls): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Exists !== false) { + obj.Exists = message.Exists; + } + if (message.Files?.length) { + obj.Files = message.Files.map((e) => FileInfo.toJSON(e)); + } + if (message.timezone !== "") { + obj.timezone = message.timezone; + } + if (message.timezoneOffset !== 0) { + obj.timezoneOffset = Math.round(message.timezoneOffset); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Ls { + return Ls.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Ls { + const message = createBaseLs(); + message.Path = object.Path ?? ""; + message.Exists = object.Exists ?? false; + message.Files = object.Files?.map((e) => FileInfo.fromPartial(e)) || []; + message.timezone = object.timezone ?? ""; + message.timezoneOffset = object.timezoneOffset ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseFileInfo(): FileInfo { + return { Name: "", IsDir: false, Size: "0", ModTime: "0", Mode: "", Link: "", Uid: "", Gid: "" }; +} + +export const FileInfo: MessageFns = { + encode(message: FileInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.IsDir !== false) { + writer.uint32(16).bool(message.IsDir); + } + if (message.Size !== "0") { + writer.uint32(24).int64(message.Size); + } + if (message.ModTime !== "0") { + writer.uint32(32).int64(message.ModTime); + } + if (message.Mode !== "") { + writer.uint32(42).string(message.Mode); + } + if (message.Link !== "") { + writer.uint32(50).string(message.Link); + } + if (message.Uid !== "") { + writer.uint32(58).string(message.Uid); + } + if (message.Gid !== "") { + writer.uint32(66).string(message.Gid); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): FileInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseFileInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.IsDir = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Size = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.ModTime = reader.int64().toString(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Mode = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Link = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Uid = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Gid = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): FileInfo { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + IsDir: isSet(object.IsDir) ? globalThis.Boolean(object.IsDir) : false, + Size: isSet(object.Size) ? globalThis.String(object.Size) : "0", + ModTime: isSet(object.ModTime) ? globalThis.String(object.ModTime) : "0", + Mode: isSet(object.Mode) ? globalThis.String(object.Mode) : "", + Link: isSet(object.Link) ? globalThis.String(object.Link) : "", + Uid: isSet(object.Uid) ? globalThis.String(object.Uid) : "", + Gid: isSet(object.Gid) ? globalThis.String(object.Gid) : "", + }; + }, + + toJSON(message: FileInfo): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.IsDir !== false) { + obj.IsDir = message.IsDir; + } + if (message.Size !== "0") { + obj.Size = message.Size; + } + if (message.ModTime !== "0") { + obj.ModTime = message.ModTime; + } + if (message.Mode !== "") { + obj.Mode = message.Mode; + } + if (message.Link !== "") { + obj.Link = message.Link; + } + if (message.Uid !== "") { + obj.Uid = message.Uid; + } + if (message.Gid !== "") { + obj.Gid = message.Gid; + } + return obj; + }, + + create(base?: DeepPartial): FileInfo { + return FileInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): FileInfo { + const message = createBaseFileInfo(); + message.Name = object.Name ?? ""; + message.IsDir = object.IsDir ?? false; + message.Size = object.Size ?? "0"; + message.ModTime = object.ModTime ?? "0"; + message.Mode = object.Mode ?? ""; + message.Link = object.Link ?? ""; + message.Uid = object.Uid ?? ""; + message.Gid = object.Gid ?? ""; + return message; + }, +}; + +function createBaseCdReq(): CdReq { + return { Path: "", Request: undefined }; +} + +export const CdReq: MessageFns = { + encode(message: CdReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CdReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCdReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CdReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: CdReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CdReq { + return CdReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CdReq { + const message = createBaseCdReq(); + message.Path = object.Path ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePwdReq(): PwdReq { + return { Request: undefined }; +} + +export const PwdReq: MessageFns = { + encode(message: PwdReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PwdReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePwdReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PwdReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: PwdReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PwdReq { + return PwdReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PwdReq { + const message = createBasePwdReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePwd(): Pwd { + return { Path: "", Response: undefined }; +} + +export const Pwd: MessageFns = { + encode(message: Pwd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Pwd { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePwd(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Pwd { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Pwd): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Pwd { + return Pwd.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Pwd { + const message = createBasePwd(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRmReq(): RmReq { + return { Path: "", Recursive: false, Force: false, Request: undefined }; +} + +export const RmReq: MessageFns = { + encode(message: RmReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Recursive !== false) { + writer.uint32(16).bool(message.Recursive); + } + if (message.Force !== false) { + writer.uint32(24).bool(message.Force); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RmReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRmReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Recursive = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Force = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RmReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Recursive: isSet(object.Recursive) ? globalThis.Boolean(object.Recursive) : false, + Force: isSet(object.Force) ? globalThis.Boolean(object.Force) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RmReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Recursive !== false) { + obj.Recursive = message.Recursive; + } + if (message.Force !== false) { + obj.Force = message.Force; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RmReq { + return RmReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RmReq { + const message = createBaseRmReq(); + message.Path = object.Path ?? ""; + message.Recursive = object.Recursive ?? false; + message.Force = object.Force ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRm(): Rm { + return { Path: "", Response: undefined }; +} + +export const Rm: MessageFns = { + encode(message: Rm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Rm { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRm(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Rm { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Rm): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Rm { + return Rm.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Rm { + const message = createBaseRm(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseMvReq(): MvReq { + return { Src: "", Dst: "", Request: undefined }; +} + +export const MvReq: MessageFns = { + encode(message: MvReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Src !== "") { + writer.uint32(10).string(message.Src); + } + if (message.Dst !== "") { + writer.uint32(18).string(message.Dst); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MvReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMvReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Src = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Dst = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MvReq { + return { + Src: isSet(object.Src) ? globalThis.String(object.Src) : "", + Dst: isSet(object.Dst) ? globalThis.String(object.Dst) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MvReq): unknown { + const obj: any = {}; + if (message.Src !== "") { + obj.Src = message.Src; + } + if (message.Dst !== "") { + obj.Dst = message.Dst; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MvReq { + return MvReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MvReq { + const message = createBaseMvReq(); + message.Src = object.Src ?? ""; + message.Dst = object.Dst ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMv(): Mv { + return { Src: "", Dst: "", Response: undefined }; +} + +export const Mv: MessageFns = { + encode(message: Mv, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Src !== "") { + writer.uint32(10).string(message.Src); + } + if (message.Dst !== "") { + writer.uint32(18).string(message.Dst); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Mv { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMv(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Src = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Dst = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Mv { + return { + Src: isSet(object.Src) ? globalThis.String(object.Src) : "", + Dst: isSet(object.Dst) ? globalThis.String(object.Dst) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Mv): unknown { + const obj: any = {}; + if (message.Src !== "") { + obj.Src = message.Src; + } + if (message.Dst !== "") { + obj.Dst = message.Dst; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Mv { + return Mv.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Mv { + const message = createBaseMv(); + message.Src = object.Src ?? ""; + message.Dst = object.Dst ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseCpReq(): CpReq { + return { Src: "", Dst: "", Request: undefined }; +} + +export const CpReq: MessageFns = { + encode(message: CpReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Src !== "") { + writer.uint32(10).string(message.Src); + } + if (message.Dst !== "") { + writer.uint32(18).string(message.Dst); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CpReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCpReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Src = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Dst = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CpReq { + return { + Src: isSet(object.Src) ? globalThis.String(object.Src) : "", + Dst: isSet(object.Dst) ? globalThis.String(object.Dst) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: CpReq): unknown { + const obj: any = {}; + if (message.Src !== "") { + obj.Src = message.Src; + } + if (message.Dst !== "") { + obj.Dst = message.Dst; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CpReq { + return CpReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CpReq { + const message = createBaseCpReq(); + message.Src = object.Src ?? ""; + message.Dst = object.Dst ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCp(): Cp { + return { Src: "", Dst: "", BytesWritten: "0", Response: undefined }; +} + +export const Cp: MessageFns = { + encode(message: Cp, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Src !== "") { + writer.uint32(10).string(message.Src); + } + if (message.Dst !== "") { + writer.uint32(18).string(message.Dst); + } + if (message.BytesWritten !== "0") { + writer.uint32(24).int64(message.BytesWritten); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Cp { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCp(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Src = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Dst = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.BytesWritten = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Cp { + return { + Src: isSet(object.Src) ? globalThis.String(object.Src) : "", + Dst: isSet(object.Dst) ? globalThis.String(object.Dst) : "", + BytesWritten: isSet(object.BytesWritten) ? globalThis.String(object.BytesWritten) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Cp): unknown { + const obj: any = {}; + if (message.Src !== "") { + obj.Src = message.Src; + } + if (message.Dst !== "") { + obj.Dst = message.Dst; + } + if (message.BytesWritten !== "0") { + obj.BytesWritten = message.BytesWritten; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Cp { + return Cp.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Cp { + const message = createBaseCp(); + message.Src = object.Src ?? ""; + message.Dst = object.Dst ?? ""; + message.BytesWritten = object.BytesWritten ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseMkdirReq(): MkdirReq { + return { Path: "", Request: undefined }; +} + +export const MkdirReq: MessageFns = { + encode(message: MkdirReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MkdirReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMkdirReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MkdirReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MkdirReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MkdirReq { + return MkdirReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MkdirReq { + const message = createBaseMkdirReq(); + message.Path = object.Path ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMkdir(): Mkdir { + return { Path: "", Response: undefined }; +} + +export const Mkdir: MessageFns = { + encode(message: Mkdir, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Mkdir { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMkdir(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Mkdir { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Mkdir): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Mkdir { + return Mkdir.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Mkdir { + const message = createBaseMkdir(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseDownloadReq(): DownloadReq { + return { + Path: "", + Start: "0", + Stop: "0", + Recurse: false, + MaxBytes: "0", + MaxLines: "0", + RestrictedToFile: false, + Request: undefined, + }; +} + +export const DownloadReq: MessageFns = { + encode(message: DownloadReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Start !== "0") { + writer.uint32(16).int64(message.Start); + } + if (message.Stop !== "0") { + writer.uint32(24).int64(message.Stop); + } + if (message.Recurse !== false) { + writer.uint32(32).bool(message.Recurse); + } + if (message.MaxBytes !== "0") { + writer.uint32(40).int64(message.MaxBytes); + } + if (message.MaxLines !== "0") { + writer.uint32(48).int64(message.MaxLines); + } + if (message.RestrictedToFile !== false) { + writer.uint32(56).bool(message.RestrictedToFile); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DownloadReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDownloadReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Start = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Stop = reader.int64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Recurse = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.MaxBytes = reader.int64().toString(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.MaxLines = reader.int64().toString(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.RestrictedToFile = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DownloadReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Start: isSet(object.Start) ? globalThis.String(object.Start) : "0", + Stop: isSet(object.Stop) ? globalThis.String(object.Stop) : "0", + Recurse: isSet(object.Recurse) ? globalThis.Boolean(object.Recurse) : false, + MaxBytes: isSet(object.MaxBytes) ? globalThis.String(object.MaxBytes) : "0", + MaxLines: isSet(object.MaxLines) ? globalThis.String(object.MaxLines) : "0", + RestrictedToFile: isSet(object.RestrictedToFile) ? globalThis.Boolean(object.RestrictedToFile) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: DownloadReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Start !== "0") { + obj.Start = message.Start; + } + if (message.Stop !== "0") { + obj.Stop = message.Stop; + } + if (message.Recurse !== false) { + obj.Recurse = message.Recurse; + } + if (message.MaxBytes !== "0") { + obj.MaxBytes = message.MaxBytes; + } + if (message.MaxLines !== "0") { + obj.MaxLines = message.MaxLines; + } + if (message.RestrictedToFile !== false) { + obj.RestrictedToFile = message.RestrictedToFile; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): DownloadReq { + return DownloadReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DownloadReq { + const message = createBaseDownloadReq(); + message.Path = object.Path ?? ""; + message.Start = object.Start ?? "0"; + message.Stop = object.Stop ?? "0"; + message.Recurse = object.Recurse ?? false; + message.MaxBytes = object.MaxBytes ?? "0"; + message.MaxLines = object.MaxLines ?? "0"; + message.RestrictedToFile = object.RestrictedToFile ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseDownload(): Download { + return { + Path: "", + Encoder: "", + Exists: false, + Start: "0", + Stop: "0", + Data: Buffer.alloc(0), + IsDir: false, + ReadFiles: 0, + UnreadableFiles: 0, + Response: undefined, + }; +} + +export const Download: MessageFns = { + encode(message: Download, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Encoder !== "") { + writer.uint32(18).string(message.Encoder); + } + if (message.Exists !== false) { + writer.uint32(24).bool(message.Exists); + } + if (message.Start !== "0") { + writer.uint32(32).int64(message.Start); + } + if (message.Stop !== "0") { + writer.uint32(40).int64(message.Stop); + } + if (message.Data.length !== 0) { + writer.uint32(50).bytes(message.Data); + } + if (message.IsDir !== false) { + writer.uint32(56).bool(message.IsDir); + } + if (message.ReadFiles !== 0) { + writer.uint32(64).int32(message.ReadFiles); + } + if (message.UnreadableFiles !== 0) { + writer.uint32(80).int32(message.UnreadableFiles); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Download { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDownload(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Exists = reader.bool(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Start = reader.int64().toString(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Stop = reader.int64().toString(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.IsDir = reader.bool(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.ReadFiles = reader.int32(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.UnreadableFiles = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Download { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + Exists: isSet(object.Exists) ? globalThis.Boolean(object.Exists) : false, + Start: isSet(object.Start) ? globalThis.String(object.Start) : "0", + Stop: isSet(object.Stop) ? globalThis.String(object.Stop) : "0", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + IsDir: isSet(object.IsDir) ? globalThis.Boolean(object.IsDir) : false, + ReadFiles: isSet(object.ReadFiles) ? globalThis.Number(object.ReadFiles) : 0, + UnreadableFiles: isSet(object.UnreadableFiles) ? globalThis.Number(object.UnreadableFiles) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Download): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.Exists !== false) { + obj.Exists = message.Exists; + } + if (message.Start !== "0") { + obj.Start = message.Start; + } + if (message.Stop !== "0") { + obj.Stop = message.Stop; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.IsDir !== false) { + obj.IsDir = message.IsDir; + } + if (message.ReadFiles !== 0) { + obj.ReadFiles = Math.round(message.ReadFiles); + } + if (message.UnreadableFiles !== 0) { + obj.UnreadableFiles = Math.round(message.UnreadableFiles); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Download { + return Download.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Download { + const message = createBaseDownload(); + message.Path = object.Path ?? ""; + message.Encoder = object.Encoder ?? ""; + message.Exists = object.Exists ?? false; + message.Start = object.Start ?? "0"; + message.Stop = object.Stop ?? "0"; + message.Data = object.Data ?? Buffer.alloc(0); + message.IsDir = object.IsDir ?? false; + message.ReadFiles = object.ReadFiles ?? 0; + message.UnreadableFiles = object.UnreadableFiles ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseUploadReq(): UploadReq { + return { + Path: "", + Encoder: "", + Data: Buffer.alloc(0), + IsIOC: false, + FileName: "", + IsDirectory: false, + Overwrite: false, + Request: undefined, + }; +} + +export const UploadReq: MessageFns = { + encode(message: UploadReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Encoder !== "") { + writer.uint32(18).string(message.Encoder); + } + if (message.Data.length !== 0) { + writer.uint32(26).bytes(message.Data); + } + if (message.IsIOC !== false) { + writer.uint32(32).bool(message.IsIOC); + } + if (message.FileName !== "") { + writer.uint32(42).string(message.FileName); + } + if (message.IsDirectory !== false) { + writer.uint32(48).bool(message.IsDirectory); + } + if (message.Overwrite !== false) { + writer.uint32(56).bool(message.Overwrite); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): UploadReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUploadReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.IsIOC = reader.bool(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.FileName = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.IsDirectory = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.Overwrite = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): UploadReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + IsIOC: isSet(object.IsIOC) ? globalThis.Boolean(object.IsIOC) : false, + FileName: isSet(object.FileName) ? globalThis.String(object.FileName) : "", + IsDirectory: isSet(object.IsDirectory) ? globalThis.Boolean(object.IsDirectory) : false, + Overwrite: isSet(object.Overwrite) ? globalThis.Boolean(object.Overwrite) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: UploadReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.IsIOC !== false) { + obj.IsIOC = message.IsIOC; + } + if (message.FileName !== "") { + obj.FileName = message.FileName; + } + if (message.IsDirectory !== false) { + obj.IsDirectory = message.IsDirectory; + } + if (message.Overwrite !== false) { + obj.Overwrite = message.Overwrite; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): UploadReq { + return UploadReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): UploadReq { + const message = createBaseUploadReq(); + message.Path = object.Path ?? ""; + message.Encoder = object.Encoder ?? ""; + message.Data = object.Data ?? Buffer.alloc(0); + message.IsIOC = object.IsIOC ?? false; + message.FileName = object.FileName ?? ""; + message.IsDirectory = object.IsDirectory ?? false; + message.Overwrite = object.Overwrite ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseUpload(): Upload { + return { Path: "", WrittenFiles: 0, UnwriteableFiles: 0, Response: undefined }; +} + +export const Upload: MessageFns = { + encode(message: Upload, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.WrittenFiles !== 0) { + writer.uint32(16).int32(message.WrittenFiles); + } + if (message.UnwriteableFiles !== 0) { + writer.uint32(24).int32(message.UnwriteableFiles); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Upload { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUpload(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.WrittenFiles = reader.int32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.UnwriteableFiles = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Upload { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + WrittenFiles: isSet(object.WrittenFiles) ? globalThis.Number(object.WrittenFiles) : 0, + UnwriteableFiles: isSet(object.UnwriteableFiles) ? globalThis.Number(object.UnwriteableFiles) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Upload): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.WrittenFiles !== 0) { + obj.WrittenFiles = Math.round(message.WrittenFiles); + } + if (message.UnwriteableFiles !== 0) { + obj.UnwriteableFiles = Math.round(message.UnwriteableFiles); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Upload { + return Upload.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Upload { + const message = createBaseUpload(); + message.Path = object.Path ?? ""; + message.WrittenFiles = object.WrittenFiles ?? 0; + message.UnwriteableFiles = object.UnwriteableFiles ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseGrepReq(): GrepReq { + return { SearchPattern: "", Path: "", Recursive: false, LinesBefore: 0, LinesAfter: 0, Request: undefined }; +} + +export const GrepReq: MessageFns = { + encode(message: GrepReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.SearchPattern !== "") { + writer.uint32(10).string(message.SearchPattern); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Recursive !== false) { + writer.uint32(24).bool(message.Recursive); + } + if (message.LinesBefore !== 0) { + writer.uint32(32).int32(message.LinesBefore); + } + if (message.LinesAfter !== 0) { + writer.uint32(40).int32(message.LinesAfter); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GrepReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrepReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.SearchPattern = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Recursive = reader.bool(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.LinesBefore = reader.int32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.LinesAfter = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GrepReq { + return { + SearchPattern: isSet(object.SearchPattern) ? globalThis.String(object.SearchPattern) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Recursive: isSet(object.Recursive) ? globalThis.Boolean(object.Recursive) : false, + LinesBefore: isSet(object.LinesBefore) ? globalThis.Number(object.LinesBefore) : 0, + LinesAfter: isSet(object.LinesAfter) ? globalThis.Number(object.LinesAfter) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: GrepReq): unknown { + const obj: any = {}; + if (message.SearchPattern !== "") { + obj.SearchPattern = message.SearchPattern; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Recursive !== false) { + obj.Recursive = message.Recursive; + } + if (message.LinesBefore !== 0) { + obj.LinesBefore = Math.round(message.LinesBefore); + } + if (message.LinesAfter !== 0) { + obj.LinesAfter = Math.round(message.LinesAfter); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): GrepReq { + return GrepReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GrepReq { + const message = createBaseGrepReq(); + message.SearchPattern = object.SearchPattern ?? ""; + message.Path = object.Path ?? ""; + message.Recursive = object.Recursive ?? false; + message.LinesBefore = object.LinesBefore ?? 0; + message.LinesAfter = object.LinesAfter ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseGrepLinePosition(): GrepLinePosition { + return { Start: 0, End: 0 }; +} + +export const GrepLinePosition: MessageFns = { + encode(message: GrepLinePosition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Start !== 0) { + writer.uint32(8).int32(message.Start); + } + if (message.End !== 0) { + writer.uint32(16).int32(message.End); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GrepLinePosition { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrepLinePosition(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Start = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.End = reader.int32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GrepLinePosition { + return { + Start: isSet(object.Start) ? globalThis.Number(object.Start) : 0, + End: isSet(object.End) ? globalThis.Number(object.End) : 0, + }; + }, + + toJSON(message: GrepLinePosition): unknown { + const obj: any = {}; + if (message.Start !== 0) { + obj.Start = Math.round(message.Start); + } + if (message.End !== 0) { + obj.End = Math.round(message.End); + } + return obj; + }, + + create(base?: DeepPartial): GrepLinePosition { + return GrepLinePosition.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GrepLinePosition { + const message = createBaseGrepLinePosition(); + message.Start = object.Start ?? 0; + message.End = object.End ?? 0; + return message; + }, +}; + +function createBaseGrepResult(): GrepResult { + return { LineNumber: "0", Positions: [], Line: "", LinesBefore: [], LinesAfter: [] }; +} + +export const GrepResult: MessageFns = { + encode(message: GrepResult, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.LineNumber !== "0") { + writer.uint32(8).int64(message.LineNumber); + } + for (const v of message.Positions) { + GrepLinePosition.encode(v!, writer.uint32(18).fork()).join(); + } + if (message.Line !== "") { + writer.uint32(26).string(message.Line); + } + for (const v of message.LinesBefore) { + writer.uint32(34).string(v!); + } + for (const v of message.LinesAfter) { + writer.uint32(42).string(v!); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GrepResult { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrepResult(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.LineNumber = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Positions.push(GrepLinePosition.decode(reader, reader.uint32())); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Line = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.LinesBefore.push(reader.string()); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.LinesAfter.push(reader.string()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GrepResult { + return { + LineNumber: isSet(object.LineNumber) ? globalThis.String(object.LineNumber) : "0", + Positions: globalThis.Array.isArray(object?.Positions) + ? object.Positions.map((e: any) => GrepLinePosition.fromJSON(e)) + : [], + Line: isSet(object.Line) ? globalThis.String(object.Line) : "", + LinesBefore: globalThis.Array.isArray(object?.LinesBefore) + ? object.LinesBefore.map((e: any) => globalThis.String(e)) + : [], + LinesAfter: globalThis.Array.isArray(object?.LinesAfter) + ? object.LinesAfter.map((e: any) => globalThis.String(e)) + : [], + }; + }, + + toJSON(message: GrepResult): unknown { + const obj: any = {}; + if (message.LineNumber !== "0") { + obj.LineNumber = message.LineNumber; + } + if (message.Positions?.length) { + obj.Positions = message.Positions.map((e) => GrepLinePosition.toJSON(e)); + } + if (message.Line !== "") { + obj.Line = message.Line; + } + if (message.LinesBefore?.length) { + obj.LinesBefore = message.LinesBefore; + } + if (message.LinesAfter?.length) { + obj.LinesAfter = message.LinesAfter; + } + return obj; + }, + + create(base?: DeepPartial): GrepResult { + return GrepResult.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GrepResult { + const message = createBaseGrepResult(); + message.LineNumber = object.LineNumber ?? "0"; + message.Positions = object.Positions?.map((e) => GrepLinePosition.fromPartial(e)) || []; + message.Line = object.Line ?? ""; + message.LinesBefore = object.LinesBefore?.map((e) => e) || []; + message.LinesAfter = object.LinesAfter?.map((e) => e) || []; + return message; + }, +}; + +function createBaseGrepResultsForFile(): GrepResultsForFile { + return { FileResults: [], IsBinary: false }; +} + +export const GrepResultsForFile: MessageFns = { + encode(message: GrepResultsForFile, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.FileResults) { + GrepResult.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.IsBinary !== false) { + writer.uint32(16).bool(message.IsBinary); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GrepResultsForFile { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrepResultsForFile(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.FileResults.push(GrepResult.decode(reader, reader.uint32())); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.IsBinary = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GrepResultsForFile { + return { + FileResults: globalThis.Array.isArray(object?.FileResults) + ? object.FileResults.map((e: any) => GrepResult.fromJSON(e)) + : [], + IsBinary: isSet(object.IsBinary) ? globalThis.Boolean(object.IsBinary) : false, + }; + }, + + toJSON(message: GrepResultsForFile): unknown { + const obj: any = {}; + if (message.FileResults?.length) { + obj.FileResults = message.FileResults.map((e) => GrepResult.toJSON(e)); + } + if (message.IsBinary !== false) { + obj.IsBinary = message.IsBinary; + } + return obj; + }, + + create(base?: DeepPartial): GrepResultsForFile { + return GrepResultsForFile.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GrepResultsForFile { + const message = createBaseGrepResultsForFile(); + message.FileResults = object.FileResults?.map((e) => GrepResult.fromPartial(e)) || []; + message.IsBinary = object.IsBinary ?? false; + return message; + }, +}; + +function createBaseGrep(): Grep { + return { Results: {}, SearchPathAbsolute: "", Response: undefined }; +} + +export const Grep: MessageFns = { + encode(message: Grep, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + globalThis.Object.entries(message.Results).forEach(([key, value]: [string, GrepResultsForFile]) => { + Grep_ResultsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).join(); + }); + if (message.SearchPathAbsolute !== "") { + writer.uint32(18).string(message.SearchPathAbsolute); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Grep { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrep(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + const entry1 = Grep_ResultsEntry.decode(reader, reader.uint32()); + if (entry1.value !== undefined) { + message.Results[entry1.key] = entry1.value; + } + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.SearchPathAbsolute = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Grep { + return { + Results: isObject(object.Results) + ? (globalThis.Object.entries(object.Results) as [string, any][]).reduce( + (acc: { [key: string]: GrepResultsForFile }, [key, value]: [string, any]) => { + acc[key] = GrepResultsForFile.fromJSON(value); + return acc; + }, + {}, + ) + : {}, + SearchPathAbsolute: isSet(object.SearchPathAbsolute) ? globalThis.String(object.SearchPathAbsolute) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Grep): unknown { + const obj: any = {}; + if (message.Results) { + const entries = globalThis.Object.entries(message.Results) as [string, GrepResultsForFile][]; + if (entries.length > 0) { + obj.Results = {}; + entries.forEach(([k, v]) => { + obj.Results[k] = GrepResultsForFile.toJSON(v); + }); + } + } + if (message.SearchPathAbsolute !== "") { + obj.SearchPathAbsolute = message.SearchPathAbsolute; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Grep { + return Grep.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Grep { + const message = createBaseGrep(); + message.Results = (globalThis.Object.entries(object.Results ?? {}) as [string, GrepResultsForFile][]).reduce( + (acc: { [key: string]: GrepResultsForFile }, [key, value]: [string, GrepResultsForFile]) => { + if (value !== undefined) { + acc[key] = GrepResultsForFile.fromPartial(value); + } + return acc; + }, + {}, + ); + message.SearchPathAbsolute = object.SearchPathAbsolute ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseGrep_ResultsEntry(): Grep_ResultsEntry { + return { key: "", value: undefined }; +} + +export const Grep_ResultsEntry: MessageFns = { + encode(message: Grep_ResultsEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== undefined) { + GrepResultsForFile.encode(message.value, writer.uint32(18).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Grep_ResultsEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGrep_ResultsEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = GrepResultsForFile.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Grep_ResultsEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? GrepResultsForFile.fromJSON(object.value) : undefined, + }; + }, + + toJSON(message: Grep_ResultsEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== undefined) { + obj.value = GrepResultsForFile.toJSON(message.value); + } + return obj; + }, + + create(base?: DeepPartial): Grep_ResultsEntry { + return Grep_ResultsEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Grep_ResultsEntry { + const message = createBaseGrep_ResultsEntry(); + message.key = object.key ?? ""; + message.value = (object.value !== undefined && object.value !== null) + ? GrepResultsForFile.fromPartial(object.value) + : undefined; + return message; + }, +}; + +function createBaseMountReq(): MountReq { + return { Request: undefined }; +} + +export const MountReq: MessageFns = { + encode(message: MountReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MountReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMountReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MountReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: MountReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MountReq { + return MountReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MountReq { + const message = createBaseMountReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMountInfo(): MountInfo { + return { + VolumeName: "", + VolumeType: "", + MountPoint: "", + Label: "", + FileSystem: "", + UsedSpace: "0", + FreeSpace: "0", + TotalSpace: "0", + MountOptions: "", + }; +} + +export const MountInfo: MessageFns = { + encode(message: MountInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.VolumeName !== "") { + writer.uint32(10).string(message.VolumeName); + } + if (message.VolumeType !== "") { + writer.uint32(18).string(message.VolumeType); + } + if (message.MountPoint !== "") { + writer.uint32(26).string(message.MountPoint); + } + if (message.Label !== "") { + writer.uint32(34).string(message.Label); + } + if (message.FileSystem !== "") { + writer.uint32(42).string(message.FileSystem); + } + if (message.UsedSpace !== "0") { + writer.uint32(48).uint64(message.UsedSpace); + } + if (message.FreeSpace !== "0") { + writer.uint32(56).uint64(message.FreeSpace); + } + if (message.TotalSpace !== "0") { + writer.uint32(64).uint64(message.TotalSpace); + } + if (message.MountOptions !== "") { + writer.uint32(74).string(message.MountOptions); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MountInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMountInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.VolumeName = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.VolumeType = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.MountPoint = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Label = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.FileSystem = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.UsedSpace = reader.uint64().toString(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.FreeSpace = reader.uint64().toString(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TotalSpace = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.MountOptions = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MountInfo { + return { + VolumeName: isSet(object.VolumeName) ? globalThis.String(object.VolumeName) : "", + VolumeType: isSet(object.VolumeType) ? globalThis.String(object.VolumeType) : "", + MountPoint: isSet(object.MountPoint) ? globalThis.String(object.MountPoint) : "", + Label: isSet(object.Label) ? globalThis.String(object.Label) : "", + FileSystem: isSet(object.FileSystem) ? globalThis.String(object.FileSystem) : "", + UsedSpace: isSet(object.UsedSpace) ? globalThis.String(object.UsedSpace) : "0", + FreeSpace: isSet(object.FreeSpace) ? globalThis.String(object.FreeSpace) : "0", + TotalSpace: isSet(object.TotalSpace) ? globalThis.String(object.TotalSpace) : "0", + MountOptions: isSet(object.MountOptions) ? globalThis.String(object.MountOptions) : "", + }; + }, + + toJSON(message: MountInfo): unknown { + const obj: any = {}; + if (message.VolumeName !== "") { + obj.VolumeName = message.VolumeName; + } + if (message.VolumeType !== "") { + obj.VolumeType = message.VolumeType; + } + if (message.MountPoint !== "") { + obj.MountPoint = message.MountPoint; + } + if (message.Label !== "") { + obj.Label = message.Label; + } + if (message.FileSystem !== "") { + obj.FileSystem = message.FileSystem; + } + if (message.UsedSpace !== "0") { + obj.UsedSpace = message.UsedSpace; + } + if (message.FreeSpace !== "0") { + obj.FreeSpace = message.FreeSpace; + } + if (message.TotalSpace !== "0") { + obj.TotalSpace = message.TotalSpace; + } + if (message.MountOptions !== "") { + obj.MountOptions = message.MountOptions; + } + return obj; + }, + + create(base?: DeepPartial): MountInfo { + return MountInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MountInfo { + const message = createBaseMountInfo(); + message.VolumeName = object.VolumeName ?? ""; + message.VolumeType = object.VolumeType ?? ""; + message.MountPoint = object.MountPoint ?? ""; + message.Label = object.Label ?? ""; + message.FileSystem = object.FileSystem ?? ""; + message.UsedSpace = object.UsedSpace ?? "0"; + message.FreeSpace = object.FreeSpace ?? "0"; + message.TotalSpace = object.TotalSpace ?? "0"; + message.MountOptions = object.MountOptions ?? ""; + return message; + }, +}; + +function createBaseMount(): Mount { + return { Info: [], Response: undefined }; +} + +export const Mount: MessageFns = { + encode(message: Mount, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Info) { + MountInfo.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Mount { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMount(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Info.push(MountInfo.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Mount { + return { + Info: globalThis.Array.isArray(object?.Info) ? object.Info.map((e: any) => MountInfo.fromJSON(e)) : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Mount): unknown { + const obj: any = {}; + if (message.Info?.length) { + obj.Info = message.Info.map((e) => MountInfo.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Mount { + return Mount.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Mount { + const message = createBaseMount(); + message.Info = object.Info?.map((e) => MountInfo.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseProcessDumpReq(): ProcessDumpReq { + return { Pid: 0, Timeout: 0, Request: undefined }; +} + +export const ProcessDumpReq: MessageFns = { + encode(message: ProcessDumpReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).int32(message.Pid); + } + if (message.Timeout !== 0) { + writer.uint32(16).int32(message.Timeout); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ProcessDumpReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProcessDumpReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Timeout = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ProcessDumpReq { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Timeout: isSet(object.Timeout) ? globalThis.Number(object.Timeout) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ProcessDumpReq): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Timeout !== 0) { + obj.Timeout = Math.round(message.Timeout); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ProcessDumpReq { + return ProcessDumpReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ProcessDumpReq { + const message = createBaseProcessDumpReq(); + message.Pid = object.Pid ?? 0; + message.Timeout = object.Timeout ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseProcessDump(): ProcessDump { + return { Data: Buffer.alloc(0), Response: undefined }; +} + +export const ProcessDump: MessageFns = { + encode(message: ProcessDump, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ProcessDump { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseProcessDump(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ProcessDump { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ProcessDump): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ProcessDump { + return ProcessDump.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ProcessDump { + const message = createBaseProcessDump(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRunAsReq(): RunAsReq { + return { + Username: "", + ProcessName: "", + Args: "", + Domain: "", + Password: "", + HideWindow: false, + NetOnly: false, + Request: undefined, + }; +} + +export const RunAsReq: MessageFns = { + encode(message: RunAsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Username !== "") { + writer.uint32(10).string(message.Username); + } + if (message.ProcessName !== "") { + writer.uint32(18).string(message.ProcessName); + } + if (message.Args !== "") { + writer.uint32(26).string(message.Args); + } + if (message.Domain !== "") { + writer.uint32(34).string(message.Domain); + } + if (message.Password !== "") { + writer.uint32(42).string(message.Password); + } + if (message.HideWindow !== false) { + writer.uint32(48).bool(message.HideWindow); + } + if (message.NetOnly !== false) { + writer.uint32(56).bool(message.NetOnly); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RunAsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRunAsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Username = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProcessName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Args = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Domain = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Password = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.HideWindow = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.NetOnly = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RunAsReq { + return { + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + ProcessName: isSet(object.ProcessName) ? globalThis.String(object.ProcessName) : "", + Args: isSet(object.Args) ? globalThis.String(object.Args) : "", + Domain: isSet(object.Domain) ? globalThis.String(object.Domain) : "", + Password: isSet(object.Password) ? globalThis.String(object.Password) : "", + HideWindow: isSet(object.HideWindow) ? globalThis.Boolean(object.HideWindow) : false, + NetOnly: isSet(object.NetOnly) ? globalThis.Boolean(object.NetOnly) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RunAsReq): unknown { + const obj: any = {}; + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.ProcessName !== "") { + obj.ProcessName = message.ProcessName; + } + if (message.Args !== "") { + obj.Args = message.Args; + } + if (message.Domain !== "") { + obj.Domain = message.Domain; + } + if (message.Password !== "") { + obj.Password = message.Password; + } + if (message.HideWindow !== false) { + obj.HideWindow = message.HideWindow; + } + if (message.NetOnly !== false) { + obj.NetOnly = message.NetOnly; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RunAsReq { + return RunAsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RunAsReq { + const message = createBaseRunAsReq(); + message.Username = object.Username ?? ""; + message.ProcessName = object.ProcessName ?? ""; + message.Args = object.Args ?? ""; + message.Domain = object.Domain ?? ""; + message.Password = object.Password ?? ""; + message.HideWindow = object.HideWindow ?? false; + message.NetOnly = object.NetOnly ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRunAs(): RunAs { + return { Output: "", Response: undefined }; +} + +export const RunAs: MessageFns = { + encode(message: RunAs, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Output !== "") { + writer.uint32(10).string(message.Output); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RunAs { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRunAs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Output = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RunAs { + return { + Output: isSet(object.Output) ? globalThis.String(object.Output) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RunAs): unknown { + const obj: any = {}; + if (message.Output !== "") { + obj.Output = message.Output; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RunAs { + return RunAs.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RunAs { + const message = createBaseRunAs(); + message.Output = object.Output ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseImpersonateReq(): ImpersonateReq { + return { Username: "", Request: undefined }; +} + +export const ImpersonateReq: MessageFns = { + encode(message: ImpersonateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Username !== "") { + writer.uint32(10).string(message.Username); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ImpersonateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImpersonateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Username = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ImpersonateReq { + return { + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ImpersonateReq): unknown { + const obj: any = {}; + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ImpersonateReq { + return ImpersonateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ImpersonateReq { + const message = createBaseImpersonateReq(); + message.Username = object.Username ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseImpersonate(): Impersonate { + return { Response: undefined }; +} + +export const Impersonate: MessageFns = { + encode(message: Impersonate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Impersonate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseImpersonate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Impersonate { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: Impersonate): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Impersonate { + return Impersonate.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Impersonate { + const message = createBaseImpersonate(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRevToSelfReq(): RevToSelfReq { + return { Request: undefined }; +} + +export const RevToSelfReq: MessageFns = { + encode(message: RevToSelfReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RevToSelfReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRevToSelfReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RevToSelfReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: RevToSelfReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RevToSelfReq { + return RevToSelfReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RevToSelfReq { + const message = createBaseRevToSelfReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRevToSelf(): RevToSelf { + return { Response: undefined }; +} + +export const RevToSelf: MessageFns = { + encode(message: RevToSelf, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RevToSelf { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRevToSelf(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RevToSelf { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RevToSelf): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RevToSelf { + return RevToSelf.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RevToSelf { + const message = createBaseRevToSelf(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseCurrentTokenOwnerReq(): CurrentTokenOwnerReq { + return { Request: undefined }; +} + +export const CurrentTokenOwnerReq: MessageFns = { + encode(message: CurrentTokenOwnerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CurrentTokenOwnerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCurrentTokenOwnerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CurrentTokenOwnerReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: CurrentTokenOwnerReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CurrentTokenOwnerReq { + return CurrentTokenOwnerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CurrentTokenOwnerReq { + const message = createBaseCurrentTokenOwnerReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCurrentTokenOwner(): CurrentTokenOwner { + return { Output: "", Response: undefined }; +} + +export const CurrentTokenOwner: MessageFns = { + encode(message: CurrentTokenOwner, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Output !== "") { + writer.uint32(10).string(message.Output); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CurrentTokenOwner { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCurrentTokenOwner(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Output = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CurrentTokenOwner { + return { + Output: isSet(object.Output) ? globalThis.String(object.Output) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: CurrentTokenOwner): unknown { + const obj: any = {}; + if (message.Output !== "") { + obj.Output = message.Output; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): CurrentTokenOwner { + return CurrentTokenOwner.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CurrentTokenOwner { + const message = createBaseCurrentTokenOwner(); + message.Output = object.Output ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseInvokeGetSystemReq(): InvokeGetSystemReq { + return { Data: Buffer.alloc(0), HostingProcess: "", Request: undefined }; +} + +export const InvokeGetSystemReq: MessageFns = { + encode(message: InvokeGetSystemReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.HostingProcess !== "") { + writer.uint32(18).string(message.HostingProcess); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): InvokeGetSystemReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInvokeGetSystemReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.HostingProcess = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): InvokeGetSystemReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + HostingProcess: isSet(object.HostingProcess) ? globalThis.String(object.HostingProcess) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: InvokeGetSystemReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.HostingProcess !== "") { + obj.HostingProcess = message.HostingProcess; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): InvokeGetSystemReq { + return InvokeGetSystemReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InvokeGetSystemReq { + const message = createBaseInvokeGetSystemReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.HostingProcess = object.HostingProcess ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseGetSystem(): GetSystem { + return { Response: undefined }; +} + +export const GetSystem: MessageFns = { + encode(message: GetSystem, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GetSystem { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetSystem(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetSystem { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: GetSystem): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): GetSystem { + return GetSystem.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetSystem { + const message = createBaseGetSystem(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseMakeTokenReq(): MakeTokenReq { + return { Username: "", Password: "", Domain: "", LogonType: 0, Request: undefined }; +} + +export const MakeTokenReq: MessageFns = { + encode(message: MakeTokenReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Username !== "") { + writer.uint32(10).string(message.Username); + } + if (message.Password !== "") { + writer.uint32(18).string(message.Password); + } + if (message.Domain !== "") { + writer.uint32(26).string(message.Domain); + } + if (message.LogonType !== 0) { + writer.uint32(32).uint32(message.LogonType); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MakeTokenReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMakeTokenReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Username = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Password = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Domain = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.LogonType = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MakeTokenReq { + return { + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Password: isSet(object.Password) ? globalThis.String(object.Password) : "", + Domain: isSet(object.Domain) ? globalThis.String(object.Domain) : "", + LogonType: isSet(object.LogonType) ? globalThis.Number(object.LogonType) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MakeTokenReq): unknown { + const obj: any = {}; + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Password !== "") { + obj.Password = message.Password; + } + if (message.Domain !== "") { + obj.Domain = message.Domain; + } + if (message.LogonType !== 0) { + obj.LogonType = Math.round(message.LogonType); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MakeTokenReq { + return MakeTokenReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MakeTokenReq { + const message = createBaseMakeTokenReq(); + message.Username = object.Username ?? ""; + message.Password = object.Password ?? ""; + message.Domain = object.Domain ?? ""; + message.LogonType = object.LogonType ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMakeToken(): MakeToken { + return { Response: undefined }; +} + +export const MakeToken: MessageFns = { + encode(message: MakeToken, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MakeToken { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMakeToken(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MakeToken { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: MakeToken): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): MakeToken { + return MakeToken.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MakeToken { + const message = createBaseMakeToken(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseTaskReq(): TaskReq { + return { Encoder: "", RWXPages: false, Pid: 0, Data: Buffer.alloc(0), Request: undefined }; +} + +export const TaskReq: MessageFns = { + encode(message: TaskReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Encoder !== "") { + writer.uint32(10).string(message.Encoder); + } + if (message.RWXPages !== false) { + writer.uint32(16).bool(message.RWXPages); + } + if (message.Pid !== 0) { + writer.uint32(24).uint32(message.Pid); + } + if (message.Data.length !== 0) { + writer.uint32(34).bytes(message.Data); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TaskReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTaskReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.RWXPages = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TaskReq { + return { + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + RWXPages: isSet(object.RWXPages) ? globalThis.Boolean(object.RWXPages) : false, + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: TaskReq): unknown { + const obj: any = {}; + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.RWXPages !== false) { + obj.RWXPages = message.RWXPages; + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): TaskReq { + return TaskReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TaskReq { + const message = createBaseTaskReq(); + message.Encoder = object.Encoder ?? ""; + message.RWXPages = object.RWXPages ?? false; + message.Pid = object.Pid ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseTask(): Task { + return { Response: undefined }; +} + +export const Task: MessageFns = { + encode(message: Task, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Task { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTask(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Task { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: Task): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Task { + return Task.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Task { + const message = createBaseTask(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseExecuteAssemblyReq(): ExecuteAssemblyReq { + return { + Assembly: Buffer.alloc(0), + Arguments: [], + Process: "", + IsDLL: false, + Arch: "", + ClassName: "", + Method: "", + AppDomain: "", + PPid: 0, + ProcessArgs: [], + InProcess: false, + Runtime: "", + AmsiBypass: false, + EtwBypass: false, + Request: undefined, + }; +} + +export const ExecuteAssemblyReq: MessageFns = { + encode(message: ExecuteAssemblyReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Assembly.length !== 0) { + writer.uint32(10).bytes(message.Assembly); + } + for (const v of message.Arguments) { + writer.uint32(18).string(v!); + } + if (message.Process !== "") { + writer.uint32(26).string(message.Process); + } + if (message.IsDLL !== false) { + writer.uint32(32).bool(message.IsDLL); + } + if (message.Arch !== "") { + writer.uint32(42).string(message.Arch); + } + if (message.ClassName !== "") { + writer.uint32(50).string(message.ClassName); + } + if (message.Method !== "") { + writer.uint32(58).string(message.Method); + } + if (message.AppDomain !== "") { + writer.uint32(66).string(message.AppDomain); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + for (const v of message.ProcessArgs) { + writer.uint32(90).string(v!); + } + if (message.InProcess !== false) { + writer.uint32(96).bool(message.InProcess); + } + if (message.Runtime !== "") { + writer.uint32(106).string(message.Runtime); + } + if (message.AmsiBypass !== false) { + writer.uint32(112).bool(message.AmsiBypass); + } + if (message.EtwBypass !== false) { + writer.uint32(120).bool(message.EtwBypass); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteAssemblyReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteAssemblyReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Assembly = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Arguments.push(reader.string()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Process = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.IsDLL = reader.bool(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Arch = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.ClassName = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Method = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.AppDomain = reader.string(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ProcessArgs.push(reader.string()); + continue; + } + case 12: { + if (tag !== 96) { + break; + } + + message.InProcess = reader.bool(); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.Runtime = reader.string(); + continue; + } + case 14: { + if (tag !== 112) { + break; + } + + message.AmsiBypass = reader.bool(); + continue; + } + case 15: { + if (tag !== 120) { + break; + } + + message.EtwBypass = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteAssemblyReq { + return { + Assembly: isSet(object.Assembly) ? Buffer.from(bytesFromBase64(object.Assembly)) : Buffer.alloc(0), + Arguments: globalThis.Array.isArray(object?.Arguments) + ? object.Arguments.map((e: any) => globalThis.String(e)) + : [], + Process: isSet(object.Process) ? globalThis.String(object.Process) : "", + IsDLL: isSet(object.IsDLL) ? globalThis.Boolean(object.IsDLL) : false, + Arch: isSet(object.Arch) ? globalThis.String(object.Arch) : "", + ClassName: isSet(object.ClassName) ? globalThis.String(object.ClassName) : "", + Method: isSet(object.Method) ? globalThis.String(object.Method) : "", + AppDomain: isSet(object.AppDomain) ? globalThis.String(object.AppDomain) : "", + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + ProcessArgs: globalThis.Array.isArray(object?.ProcessArgs) + ? object.ProcessArgs.map((e: any) => globalThis.String(e)) + : [], + InProcess: isSet(object.InProcess) ? globalThis.Boolean(object.InProcess) : false, + Runtime: isSet(object.Runtime) ? globalThis.String(object.Runtime) : "", + AmsiBypass: isSet(object.AmsiBypass) ? globalThis.Boolean(object.AmsiBypass) : false, + EtwBypass: isSet(object.EtwBypass) ? globalThis.Boolean(object.EtwBypass) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ExecuteAssemblyReq): unknown { + const obj: any = {}; + if (message.Assembly.length !== 0) { + obj.Assembly = base64FromBytes(message.Assembly); + } + if (message.Arguments?.length) { + obj.Arguments = message.Arguments; + } + if (message.Process !== "") { + obj.Process = message.Process; + } + if (message.IsDLL !== false) { + obj.IsDLL = message.IsDLL; + } + if (message.Arch !== "") { + obj.Arch = message.Arch; + } + if (message.ClassName !== "") { + obj.ClassName = message.ClassName; + } + if (message.Method !== "") { + obj.Method = message.Method; + } + if (message.AppDomain !== "") { + obj.AppDomain = message.AppDomain; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.ProcessArgs?.length) { + obj.ProcessArgs = message.ProcessArgs; + } + if (message.InProcess !== false) { + obj.InProcess = message.InProcess; + } + if (message.Runtime !== "") { + obj.Runtime = message.Runtime; + } + if (message.AmsiBypass !== false) { + obj.AmsiBypass = message.AmsiBypass; + } + if (message.EtwBypass !== false) { + obj.EtwBypass = message.EtwBypass; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteAssemblyReq { + return ExecuteAssemblyReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteAssemblyReq { + const message = createBaseExecuteAssemblyReq(); + message.Assembly = object.Assembly ?? Buffer.alloc(0); + message.Arguments = object.Arguments?.map((e) => e) || []; + message.Process = object.Process ?? ""; + message.IsDLL = object.IsDLL ?? false; + message.Arch = object.Arch ?? ""; + message.ClassName = object.ClassName ?? ""; + message.Method = object.Method ?? ""; + message.AppDomain = object.AppDomain ?? ""; + message.PPid = object.PPid ?? 0; + message.ProcessArgs = object.ProcessArgs?.map((e) => e) || []; + message.InProcess = object.InProcess ?? false; + message.Runtime = object.Runtime ?? ""; + message.AmsiBypass = object.AmsiBypass ?? false; + message.EtwBypass = object.EtwBypass ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseInvokeExecuteAssemblyReq(): InvokeExecuteAssemblyReq { + return { Data: Buffer.alloc(0), process: "", PPid: 0, ProcessArgs: [], Request: undefined }; +} + +export const InvokeExecuteAssemblyReq: MessageFns = { + encode(message: InvokeExecuteAssemblyReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.process !== "") { + writer.uint32(18).string(message.process); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + for (const v of message.ProcessArgs) { + writer.uint32(90).string(v!); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): InvokeExecuteAssemblyReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInvokeExecuteAssemblyReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.process = reader.string(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ProcessArgs.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): InvokeExecuteAssemblyReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + process: isSet(object.process) ? globalThis.String(object.process) : "", + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + ProcessArgs: globalThis.Array.isArray(object?.ProcessArgs) + ? object.ProcessArgs.map((e: any) => globalThis.String(e)) + : [], + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: InvokeExecuteAssemblyReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.process !== "") { + obj.process = message.process; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.ProcessArgs?.length) { + obj.ProcessArgs = message.ProcessArgs; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): InvokeExecuteAssemblyReq { + return InvokeExecuteAssemblyReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InvokeExecuteAssemblyReq { + const message = createBaseInvokeExecuteAssemblyReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.process = object.process ?? ""; + message.PPid = object.PPid ?? 0; + message.ProcessArgs = object.ProcessArgs?.map((e) => e) || []; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseInvokeInProcExecuteAssemblyReq(): InvokeInProcExecuteAssemblyReq { + return { Data: Buffer.alloc(0), Arguments: [], Runtime: "", AmsiBypass: false, EtwBypass: false, Request: undefined }; +} + +export const InvokeInProcExecuteAssemblyReq: MessageFns = { + encode(message: InvokeInProcExecuteAssemblyReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + for (const v of message.Arguments) { + writer.uint32(18).string(v!); + } + if (message.Runtime !== "") { + writer.uint32(26).string(message.Runtime); + } + if (message.AmsiBypass !== false) { + writer.uint32(32).bool(message.AmsiBypass); + } + if (message.EtwBypass !== false) { + writer.uint32(40).bool(message.EtwBypass); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): InvokeInProcExecuteAssemblyReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInvokeInProcExecuteAssemblyReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Arguments.push(reader.string()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Runtime = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.AmsiBypass = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.EtwBypass = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): InvokeInProcExecuteAssemblyReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Arguments: globalThis.Array.isArray(object?.Arguments) + ? object.Arguments.map((e: any) => globalThis.String(e)) + : [], + Runtime: isSet(object.Runtime) ? globalThis.String(object.Runtime) : "", + AmsiBypass: isSet(object.AmsiBypass) ? globalThis.Boolean(object.AmsiBypass) : false, + EtwBypass: isSet(object.EtwBypass) ? globalThis.Boolean(object.EtwBypass) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: InvokeInProcExecuteAssemblyReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Arguments?.length) { + obj.Arguments = message.Arguments; + } + if (message.Runtime !== "") { + obj.Runtime = message.Runtime; + } + if (message.AmsiBypass !== false) { + obj.AmsiBypass = message.AmsiBypass; + } + if (message.EtwBypass !== false) { + obj.EtwBypass = message.EtwBypass; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): InvokeInProcExecuteAssemblyReq { + return InvokeInProcExecuteAssemblyReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InvokeInProcExecuteAssemblyReq { + const message = createBaseInvokeInProcExecuteAssemblyReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Arguments = object.Arguments?.map((e) => e) || []; + message.Runtime = object.Runtime ?? ""; + message.AmsiBypass = object.AmsiBypass ?? false; + message.EtwBypass = object.EtwBypass ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseExecuteAssembly(): ExecuteAssembly { + return { Output: Buffer.alloc(0), Response: undefined }; +} + +export const ExecuteAssembly: MessageFns = { + encode(message: ExecuteAssembly, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Output.length !== 0) { + writer.uint32(10).bytes(message.Output); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteAssembly { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteAssembly(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Output = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteAssembly { + return { + Output: isSet(object.Output) ? Buffer.from(bytesFromBase64(object.Output)) : Buffer.alloc(0), + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ExecuteAssembly): unknown { + const obj: any = {}; + if (message.Output.length !== 0) { + obj.Output = base64FromBytes(message.Output); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteAssembly { + return ExecuteAssembly.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteAssembly { + const message = createBaseExecuteAssembly(); + message.Output = object.Output ?? Buffer.alloc(0); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseInvokeMigrateReq(): InvokeMigrateReq { + return { Pid: 0, Data: Buffer.alloc(0), ProcName: "", Request: undefined }; +} + +export const InvokeMigrateReq: MessageFns = { + encode(message: InvokeMigrateReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).uint32(message.Pid); + } + if (message.Data.length !== 0) { + writer.uint32(18).bytes(message.Data); + } + if (message.ProcName !== "") { + writer.uint32(26).string(message.ProcName); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): InvokeMigrateReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInvokeMigrateReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ProcName = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): InvokeMigrateReq { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + ProcName: isSet(object.ProcName) ? globalThis.String(object.ProcName) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: InvokeMigrateReq): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.ProcName !== "") { + obj.ProcName = message.ProcName; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): InvokeMigrateReq { + return InvokeMigrateReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InvokeMigrateReq { + const message = createBaseInvokeMigrateReq(); + message.Pid = object.Pid ?? 0; + message.Data = object.Data ?? Buffer.alloc(0); + message.ProcName = object.ProcName ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMigrate(): Migrate { + return { Success: false, Pid: 0, Response: undefined }; +} + +export const Migrate: MessageFns = { + encode(message: Migrate, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Success !== false) { + writer.uint32(8).bool(message.Success); + } + if (message.Pid !== 0) { + writer.uint32(16).uint32(message.Pid); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Migrate { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMigrate(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Success = reader.bool(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Migrate { + return { + Success: isSet(object.Success) ? globalThis.Boolean(object.Success) : false, + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Migrate): unknown { + const obj: any = {}; + if (message.Success !== false) { + obj.Success = message.Success; + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Migrate { + return Migrate.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Migrate { + const message = createBaseMigrate(); + message.Success = object.Success ?? false; + message.Pid = object.Pid ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseExecuteReq(): ExecuteReq { + return { + Path: "", + Args: [], + Output: false, + Stdout: "", + Stderr: "", + EnvInheritance: false, + Env: {}, + Background: false, + PPid: 0, + Request: undefined, + }; +} + +export const ExecuteReq: MessageFns = { + encode(message: ExecuteReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + for (const v of message.Args) { + writer.uint32(18).string(v!); + } + if (message.Output !== false) { + writer.uint32(24).bool(message.Output); + } + if (message.Stdout !== "") { + writer.uint32(34).string(message.Stdout); + } + if (message.Stderr !== "") { + writer.uint32(42).string(message.Stderr); + } + if (message.EnvInheritance !== false) { + writer.uint32(48).bool(message.EnvInheritance); + } + globalThis.Object.entries(message.Env).forEach(([key, value]: [string, string]) => { + ExecuteReq_EnvEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).join(); + }); + if (message.Background !== false) { + writer.uint32(64).bool(message.Background); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Output = reader.bool(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Stdout = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Stderr = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.EnvInheritance = reader.bool(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + const entry7 = ExecuteReq_EnvEntry.decode(reader, reader.uint32()); + if (entry7.value !== undefined) { + message.Env[entry7.key] = entry7.value; + } + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.Background = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + Output: isSet(object.Output) ? globalThis.Boolean(object.Output) : false, + Stdout: isSet(object.Stdout) ? globalThis.String(object.Stdout) : "", + Stderr: isSet(object.Stderr) ? globalThis.String(object.Stderr) : "", + EnvInheritance: isSet(object.EnvInheritance) ? globalThis.Boolean(object.EnvInheritance) : false, + Env: isObject(object.Env) + ? (globalThis.Object.entries(object.Env) as [string, any][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, any]) => { + acc[key] = globalThis.String(value); + return acc; + }, + {}, + ) + : {}, + Background: isSet(object.Background) ? globalThis.Boolean(object.Background) : false, + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ExecuteReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.Output !== false) { + obj.Output = message.Output; + } + if (message.Stdout !== "") { + obj.Stdout = message.Stdout; + } + if (message.Stderr !== "") { + obj.Stderr = message.Stderr; + } + if (message.EnvInheritance !== false) { + obj.EnvInheritance = message.EnvInheritance; + } + if (message.Env) { + const entries = globalThis.Object.entries(message.Env) as [string, string][]; + if (entries.length > 0) { + obj.Env = {}; + entries.forEach(([k, v]) => { + obj.Env[k] = v; + }); + } + } + if (message.Background !== false) { + obj.Background = message.Background; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteReq { + return ExecuteReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteReq { + const message = createBaseExecuteReq(); + message.Path = object.Path ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.Output = object.Output ?? false; + message.Stdout = object.Stdout ?? ""; + message.Stderr = object.Stderr ?? ""; + message.EnvInheritance = object.EnvInheritance ?? false; + message.Env = (globalThis.Object.entries(object.Env ?? {}) as [string, string][]).reduce( + (acc: { [key: string]: string }, [key, value]: [string, string]) => { + if (value !== undefined) { + acc[key] = globalThis.String(value); + } + return acc; + }, + {}, + ); + message.Background = object.Background ?? false; + message.PPid = object.PPid ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseExecuteReq_EnvEntry(): ExecuteReq_EnvEntry { + return { key: "", value: "" }; +} + +export const ExecuteReq_EnvEntry: MessageFns = { + encode(message: ExecuteReq_EnvEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value !== "") { + writer.uint32(18).string(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteReq_EnvEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteReq_EnvEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteReq_EnvEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? globalThis.String(object.value) : "", + }; + }, + + toJSON(message: ExecuteReq_EnvEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value !== "") { + obj.value = message.value; + } + return obj; + }, + + create(base?: DeepPartial): ExecuteReq_EnvEntry { + return ExecuteReq_EnvEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteReq_EnvEntry { + const message = createBaseExecuteReq_EnvEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? ""; + return message; + }, +}; + +function createBaseExecuteWindowsReq(): ExecuteWindowsReq { + return { + Path: "", + Args: [], + Output: false, + Stdout: "", + Stderr: "", + UseToken: false, + HideWindow: false, + Background: false, + PPid: 0, + Request: undefined, + }; +} + +export const ExecuteWindowsReq: MessageFns = { + encode(message: ExecuteWindowsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + for (const v of message.Args) { + writer.uint32(18).string(v!); + } + if (message.Output !== false) { + writer.uint32(24).bool(message.Output); + } + if (message.Stdout !== "") { + writer.uint32(34).string(message.Stdout); + } + if (message.Stderr !== "") { + writer.uint32(42).string(message.Stderr); + } + if (message.UseToken !== false) { + writer.uint32(48).bool(message.UseToken); + } + if (message.HideWindow !== false) { + writer.uint32(56).bool(message.HideWindow); + } + if (message.Background !== false) { + writer.uint32(64).bool(message.Background); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteWindowsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteWindowsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Output = reader.bool(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Stdout = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Stderr = reader.string(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.UseToken = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.HideWindow = reader.bool(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.Background = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteWindowsReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + Output: isSet(object.Output) ? globalThis.Boolean(object.Output) : false, + Stdout: isSet(object.Stdout) ? globalThis.String(object.Stdout) : "", + Stderr: isSet(object.Stderr) ? globalThis.String(object.Stderr) : "", + UseToken: isSet(object.UseToken) ? globalThis.Boolean(object.UseToken) : false, + HideWindow: isSet(object.HideWindow) ? globalThis.Boolean(object.HideWindow) : false, + Background: isSet(object.Background) ? globalThis.Boolean(object.Background) : false, + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ExecuteWindowsReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.Output !== false) { + obj.Output = message.Output; + } + if (message.Stdout !== "") { + obj.Stdout = message.Stdout; + } + if (message.Stderr !== "") { + obj.Stderr = message.Stderr; + } + if (message.UseToken !== false) { + obj.UseToken = message.UseToken; + } + if (message.HideWindow !== false) { + obj.HideWindow = message.HideWindow; + } + if (message.Background !== false) { + obj.Background = message.Background; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteWindowsReq { + return ExecuteWindowsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteWindowsReq { + const message = createBaseExecuteWindowsReq(); + message.Path = object.Path ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.Output = object.Output ?? false; + message.Stdout = object.Stdout ?? ""; + message.Stderr = object.Stderr ?? ""; + message.UseToken = object.UseToken ?? false; + message.HideWindow = object.HideWindow ?? false; + message.Background = object.Background ?? false; + message.PPid = object.PPid ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseExecute(): Execute { + return { Status: 0, Stdout: Buffer.alloc(0), Stderr: Buffer.alloc(0), Pid: 0, Response: undefined }; +} + +export const Execute: MessageFns = { + encode(message: Execute, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Status !== 0) { + writer.uint32(8).uint32(message.Status); + } + if (message.Stdout.length !== 0) { + writer.uint32(18).bytes(message.Stdout); + } + if (message.Stderr.length !== 0) { + writer.uint32(26).bytes(message.Stderr); + } + if (message.Pid !== 0) { + writer.uint32(32).uint32(message.Pid); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Execute { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecute(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Status = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Stdout = Buffer.from(reader.bytes()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Stderr = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Execute { + return { + Status: isSet(object.Status) ? globalThis.Number(object.Status) : 0, + Stdout: isSet(object.Stdout) ? Buffer.from(bytesFromBase64(object.Stdout)) : Buffer.alloc(0), + Stderr: isSet(object.Stderr) ? Buffer.from(bytesFromBase64(object.Stderr)) : Buffer.alloc(0), + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Execute): unknown { + const obj: any = {}; + if (message.Status !== 0) { + obj.Status = Math.round(message.Status); + } + if (message.Stdout.length !== 0) { + obj.Stdout = base64FromBytes(message.Stdout); + } + if (message.Stderr.length !== 0) { + obj.Stderr = base64FromBytes(message.Stderr); + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Execute { + return Execute.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Execute { + const message = createBaseExecute(); + message.Status = object.Status ?? 0; + message.Stdout = object.Stdout ?? Buffer.alloc(0); + message.Stderr = object.Stderr ?? Buffer.alloc(0); + message.Pid = object.Pid ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseExecuteChildrenReq(): ExecuteChildrenReq { + return { Request: undefined }; +} + +export const ExecuteChildrenReq: MessageFns = { + encode(message: ExecuteChildrenReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteChildrenReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteChildrenReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteChildrenReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: ExecuteChildrenReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteChildrenReq { + return ExecuteChildrenReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteChildrenReq { + const message = createBaseExecuteChildrenReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseExecuteChild(): ExecuteChild { + return { + Pid: 0, + Path: "", + Args: [], + StartTime: "0", + Exited: false, + ExitCode: 0, + ExitTime: "0", + Stdout: "", + Stderr: "", + Error: "", + }; +} + +export const ExecuteChild: MessageFns = { + encode(message: ExecuteChild, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Pid !== 0) { + writer.uint32(8).int32(message.Pid); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + for (const v of message.Args) { + writer.uint32(26).string(v!); + } + if (message.StartTime !== "0") { + writer.uint32(32).int64(message.StartTime); + } + if (message.Exited !== false) { + writer.uint32(40).bool(message.Exited); + } + if (message.ExitCode !== 0) { + writer.uint32(48).int32(message.ExitCode); + } + if (message.ExitTime !== "0") { + writer.uint32(56).int64(message.ExitTime); + } + if (message.Stdout !== "") { + writer.uint32(66).string(message.Stdout); + } + if (message.Stderr !== "") { + writer.uint32(90).string(message.Stderr); + } + if (message.Error !== "") { + writer.uint32(98).string(message.Error); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteChild { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteChild(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Pid = reader.int32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.StartTime = reader.int64().toString(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Exited = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.ExitCode = reader.int32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.ExitTime = reader.int64().toString(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Stdout = reader.string(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.Stderr = reader.string(); + continue; + } + case 12: { + if (tag !== 98) { + break; + } + + message.Error = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteChild { + return { + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + StartTime: isSet(object.StartTime) ? globalThis.String(object.StartTime) : "0", + Exited: isSet(object.Exited) ? globalThis.Boolean(object.Exited) : false, + ExitCode: isSet(object.ExitCode) ? globalThis.Number(object.ExitCode) : 0, + ExitTime: isSet(object.ExitTime) ? globalThis.String(object.ExitTime) : "0", + Stdout: isSet(object.Stdout) ? globalThis.String(object.Stdout) : "", + Stderr: isSet(object.Stderr) ? globalThis.String(object.Stderr) : "", + Error: isSet(object.Error) ? globalThis.String(object.Error) : "", + }; + }, + + toJSON(message: ExecuteChild): unknown { + const obj: any = {}; + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.StartTime !== "0") { + obj.StartTime = message.StartTime; + } + if (message.Exited !== false) { + obj.Exited = message.Exited; + } + if (message.ExitCode !== 0) { + obj.ExitCode = Math.round(message.ExitCode); + } + if (message.ExitTime !== "0") { + obj.ExitTime = message.ExitTime; + } + if (message.Stdout !== "") { + obj.Stdout = message.Stdout; + } + if (message.Stderr !== "") { + obj.Stderr = message.Stderr; + } + if (message.Error !== "") { + obj.Error = message.Error; + } + return obj; + }, + + create(base?: DeepPartial): ExecuteChild { + return ExecuteChild.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteChild { + const message = createBaseExecuteChild(); + message.Pid = object.Pid ?? 0; + message.Path = object.Path ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.StartTime = object.StartTime ?? "0"; + message.Exited = object.Exited ?? false; + message.ExitCode = object.ExitCode ?? 0; + message.ExitTime = object.ExitTime ?? "0"; + message.Stdout = object.Stdout ?? ""; + message.Stderr = object.Stderr ?? ""; + message.Error = object.Error ?? ""; + return message; + }, +}; + +function createBaseExecuteChildren(): ExecuteChildren { + return { Children: [], Response: undefined }; +} + +export const ExecuteChildren: MessageFns = { + encode(message: ExecuteChildren, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Children) { + ExecuteChild.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecuteChildren { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecuteChildren(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Children.push(ExecuteChild.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecuteChildren { + return { + Children: globalThis.Array.isArray(object?.Children) + ? object.Children.map((e: any) => ExecuteChild.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ExecuteChildren): unknown { + const obj: any = {}; + if (message.Children?.length) { + obj.Children = message.Children.map((e) => ExecuteChild.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ExecuteChildren { + return ExecuteChildren.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecuteChildren { + const message = createBaseExecuteChildren(); + message.Children = object.Children?.map((e) => ExecuteChild.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseSideloadReq(): SideloadReq { + return { + Data: Buffer.alloc(0), + ProcessName: "", + Args: [], + EntryPoint: "", + Kill: false, + isDLL: false, + isUnicode: false, + PPid: 0, + ProcessArgs: [], + Request: undefined, + }; +} + +export const SideloadReq: MessageFns = { + encode(message: SideloadReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.ProcessName !== "") { + writer.uint32(18).string(message.ProcessName); + } + for (const v of message.Args) { + writer.uint32(26).string(v!); + } + if (message.EntryPoint !== "") { + writer.uint32(34).string(message.EntryPoint); + } + if (message.Kill !== false) { + writer.uint32(40).bool(message.Kill); + } + if (message.isDLL !== false) { + writer.uint32(48).bool(message.isDLL); + } + if (message.isUnicode !== false) { + writer.uint32(56).bool(message.isUnicode); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + for (const v of message.ProcessArgs) { + writer.uint32(90).string(v!); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SideloadReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSideloadReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProcessName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.EntryPoint = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Kill = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.isDLL = reader.bool(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.isUnicode = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ProcessArgs.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SideloadReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + ProcessName: isSet(object.ProcessName) ? globalThis.String(object.ProcessName) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + EntryPoint: isSet(object.EntryPoint) ? globalThis.String(object.EntryPoint) : "", + Kill: isSet(object.Kill) ? globalThis.Boolean(object.Kill) : false, + isDLL: isSet(object.isDLL) ? globalThis.Boolean(object.isDLL) : false, + isUnicode: isSet(object.isUnicode) ? globalThis.Boolean(object.isUnicode) : false, + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + ProcessArgs: globalThis.Array.isArray(object?.ProcessArgs) + ? object.ProcessArgs.map((e: any) => globalThis.String(e)) + : [], + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: SideloadReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.ProcessName !== "") { + obj.ProcessName = message.ProcessName; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.EntryPoint !== "") { + obj.EntryPoint = message.EntryPoint; + } + if (message.Kill !== false) { + obj.Kill = message.Kill; + } + if (message.isDLL !== false) { + obj.isDLL = message.isDLL; + } + if (message.isUnicode !== false) { + obj.isUnicode = message.isUnicode; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.ProcessArgs?.length) { + obj.ProcessArgs = message.ProcessArgs; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): SideloadReq { + return SideloadReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SideloadReq { + const message = createBaseSideloadReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.ProcessName = object.ProcessName ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.EntryPoint = object.EntryPoint ?? ""; + message.Kill = object.Kill ?? false; + message.isDLL = object.isDLL ?? false; + message.isUnicode = object.isUnicode ?? false; + message.PPid = object.PPid ?? 0; + message.ProcessArgs = object.ProcessArgs?.map((e) => e) || []; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSideload(): Sideload { + return { Result: "", Response: undefined }; +} + +export const Sideload: MessageFns = { + encode(message: Sideload, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Result !== "") { + writer.uint32(10).string(message.Result); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Sideload { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSideload(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Result = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Sideload { + return { + Result: isSet(object.Result) ? globalThis.String(object.Result) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Sideload): unknown { + const obj: any = {}; + if (message.Result !== "") { + obj.Result = message.Result; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Sideload { + return Sideload.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Sideload { + const message = createBaseSideload(); + message.Result = object.Result ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseInvokeSpawnDllReq(): InvokeSpawnDllReq { + return { + Data: Buffer.alloc(0), + ProcessName: "", + Args: [], + EntryPoint: "", + Kill: false, + PPid: 0, + ProcessArgs: [], + Request: undefined, + }; +} + +export const InvokeSpawnDllReq: MessageFns = { + encode(message: InvokeSpawnDllReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.ProcessName !== "") { + writer.uint32(18).string(message.ProcessName); + } + for (const v of message.Args) { + writer.uint32(26).string(v!); + } + if (message.EntryPoint !== "") { + writer.uint32(34).string(message.EntryPoint); + } + if (message.Kill !== false) { + writer.uint32(40).bool(message.Kill); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + for (const v of message.ProcessArgs) { + writer.uint32(90).string(v!); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): InvokeSpawnDllReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseInvokeSpawnDllReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProcessName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.EntryPoint = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Kill = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ProcessArgs.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): InvokeSpawnDllReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + ProcessName: isSet(object.ProcessName) ? globalThis.String(object.ProcessName) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + EntryPoint: isSet(object.EntryPoint) ? globalThis.String(object.EntryPoint) : "", + Kill: isSet(object.Kill) ? globalThis.Boolean(object.Kill) : false, + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + ProcessArgs: globalThis.Array.isArray(object?.ProcessArgs) + ? object.ProcessArgs.map((e: any) => globalThis.String(e)) + : [], + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: InvokeSpawnDllReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.ProcessName !== "") { + obj.ProcessName = message.ProcessName; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.EntryPoint !== "") { + obj.EntryPoint = message.EntryPoint; + } + if (message.Kill !== false) { + obj.Kill = message.Kill; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.ProcessArgs?.length) { + obj.ProcessArgs = message.ProcessArgs; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): InvokeSpawnDllReq { + return InvokeSpawnDllReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): InvokeSpawnDllReq { + const message = createBaseInvokeSpawnDllReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.ProcessName = object.ProcessName ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.EntryPoint = object.EntryPoint ?? ""; + message.Kill = object.Kill ?? false; + message.PPid = object.PPid ?? 0; + message.ProcessArgs = object.ProcessArgs?.map((e) => e) || []; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSpawnDllReq(): SpawnDllReq { + return { + Data: Buffer.alloc(0), + ProcessName: "", + Offset: 0, + Args: [], + Kill: false, + PPid: 0, + ProcessArgs: [], + Request: undefined, + }; +} + +export const SpawnDllReq: MessageFns = { + encode(message: SpawnDllReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.ProcessName !== "") { + writer.uint32(18).string(message.ProcessName); + } + if (message.Offset !== 0) { + writer.uint32(24).uint32(message.Offset); + } + for (const v of message.Args) { + writer.uint32(34).string(v!); + } + if (message.Kill !== false) { + writer.uint32(40).bool(message.Kill); + } + if (message.PPid !== 0) { + writer.uint32(80).uint32(message.PPid); + } + for (const v of message.ProcessArgs) { + writer.uint32(90).string(v!); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SpawnDllReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSpawnDllReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProcessName = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Offset = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Kill = reader.bool(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.PPid = reader.uint32(); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ProcessArgs.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SpawnDllReq { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + ProcessName: isSet(object.ProcessName) ? globalThis.String(object.ProcessName) : "", + Offset: isSet(object.Offset) ? globalThis.Number(object.Offset) : 0, + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + Kill: isSet(object.Kill) ? globalThis.Boolean(object.Kill) : false, + PPid: isSet(object.PPid) ? globalThis.Number(object.PPid) : 0, + ProcessArgs: globalThis.Array.isArray(object?.ProcessArgs) + ? object.ProcessArgs.map((e: any) => globalThis.String(e)) + : [], + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: SpawnDllReq): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.ProcessName !== "") { + obj.ProcessName = message.ProcessName; + } + if (message.Offset !== 0) { + obj.Offset = Math.round(message.Offset); + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.Kill !== false) { + obj.Kill = message.Kill; + } + if (message.PPid !== 0) { + obj.PPid = Math.round(message.PPid); + } + if (message.ProcessArgs?.length) { + obj.ProcessArgs = message.ProcessArgs; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): SpawnDllReq { + return SpawnDllReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SpawnDllReq { + const message = createBaseSpawnDllReq(); + message.Data = object.Data ?? Buffer.alloc(0); + message.ProcessName = object.ProcessName ?? ""; + message.Offset = object.Offset ?? 0; + message.Args = object.Args?.map((e) => e) || []; + message.Kill = object.Kill ?? false; + message.PPid = object.PPid ?? 0; + message.ProcessArgs = object.ProcessArgs?.map((e) => e) || []; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSpawnDll(): SpawnDll { + return { Result: "", Response: undefined }; +} + +export const SpawnDll: MessageFns = { + encode(message: SpawnDll, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Result !== "") { + writer.uint32(10).string(message.Result); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SpawnDll { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSpawnDll(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Result = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SpawnDll { + return { + Result: isSet(object.Result) ? globalThis.String(object.Result) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: SpawnDll): unknown { + const obj: any = {}; + if (message.Result !== "") { + obj.Result = message.Result; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): SpawnDll { + return SpawnDll.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SpawnDll { + const message = createBaseSpawnDll(); + message.Result = object.Result ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseNetstatReq(): NetstatReq { + return { TCP: false, UDP: false, IP4: false, IP6: false, Listening: false, Request: undefined }; +} + +export const NetstatReq: MessageFns = { + encode(message: NetstatReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.TCP !== false) { + writer.uint32(8).bool(message.TCP); + } + if (message.UDP !== false) { + writer.uint32(16).bool(message.UDP); + } + if (message.IP4 !== false) { + writer.uint32(24).bool(message.IP4); + } + if (message.IP6 !== false) { + writer.uint32(40).bool(message.IP6); + } + if (message.Listening !== false) { + writer.uint32(48).bool(message.Listening); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): NetstatReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetstatReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.TCP = reader.bool(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.UDP = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.IP4 = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.IP6 = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Listening = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): NetstatReq { + return { + TCP: isSet(object.TCP) ? globalThis.Boolean(object.TCP) : false, + UDP: isSet(object.UDP) ? globalThis.Boolean(object.UDP) : false, + IP4: isSet(object.IP4) ? globalThis.Boolean(object.IP4) : false, + IP6: isSet(object.IP6) ? globalThis.Boolean(object.IP6) : false, + Listening: isSet(object.Listening) ? globalThis.Boolean(object.Listening) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: NetstatReq): unknown { + const obj: any = {}; + if (message.TCP !== false) { + obj.TCP = message.TCP; + } + if (message.UDP !== false) { + obj.UDP = message.UDP; + } + if (message.IP4 !== false) { + obj.IP4 = message.IP4; + } + if (message.IP6 !== false) { + obj.IP6 = message.IP6; + } + if (message.Listening !== false) { + obj.Listening = message.Listening; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): NetstatReq { + return NetstatReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): NetstatReq { + const message = createBaseNetstatReq(); + message.TCP = object.TCP ?? false; + message.UDP = object.UDP ?? false; + message.IP4 = object.IP4 ?? false; + message.IP6 = object.IP6 ?? false; + message.Listening = object.Listening ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSockTabEntry(): SockTabEntry { + return { LocalAddr: undefined, RemoteAddr: undefined, SkState: "", UID: 0, Process: undefined, Protocol: "" }; +} + +export const SockTabEntry: MessageFns = { + encode(message: SockTabEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.LocalAddr !== undefined) { + SockTabEntry_SockAddr.encode(message.LocalAddr, writer.uint32(10).fork()).join(); + } + if (message.RemoteAddr !== undefined) { + SockTabEntry_SockAddr.encode(message.RemoteAddr, writer.uint32(18).fork()).join(); + } + if (message.SkState !== "") { + writer.uint32(26).string(message.SkState); + } + if (message.UID !== 0) { + writer.uint32(32).uint32(message.UID); + } + if (message.Process !== undefined) { + Process.encode(message.Process, writer.uint32(42).fork()).join(); + } + if (message.Protocol !== "") { + writer.uint32(50).string(message.Protocol); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SockTabEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSockTabEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.LocalAddr = SockTabEntry_SockAddr.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.RemoteAddr = SockTabEntry_SockAddr.decode(reader, reader.uint32()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.SkState = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.UID = reader.uint32(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Process = Process.decode(reader, reader.uint32()); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.Protocol = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SockTabEntry { + return { + LocalAddr: isSet(object.LocalAddr) ? SockTabEntry_SockAddr.fromJSON(object.LocalAddr) : undefined, + RemoteAddr: isSet(object.RemoteAddr) ? SockTabEntry_SockAddr.fromJSON(object.RemoteAddr) : undefined, + SkState: isSet(object.SkState) ? globalThis.String(object.SkState) : "", + UID: isSet(object.UID) ? globalThis.Number(object.UID) : 0, + Process: isSet(object.Process) ? Process.fromJSON(object.Process) : undefined, + Protocol: isSet(object.Protocol) ? globalThis.String(object.Protocol) : "", + }; + }, + + toJSON(message: SockTabEntry): unknown { + const obj: any = {}; + if (message.LocalAddr !== undefined) { + obj.LocalAddr = SockTabEntry_SockAddr.toJSON(message.LocalAddr); + } + if (message.RemoteAddr !== undefined) { + obj.RemoteAddr = SockTabEntry_SockAddr.toJSON(message.RemoteAddr); + } + if (message.SkState !== "") { + obj.SkState = message.SkState; + } + if (message.UID !== 0) { + obj.UID = Math.round(message.UID); + } + if (message.Process !== undefined) { + obj.Process = Process.toJSON(message.Process); + } + if (message.Protocol !== "") { + obj.Protocol = message.Protocol; + } + return obj; + }, + + create(base?: DeepPartial): SockTabEntry { + return SockTabEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SockTabEntry { + const message = createBaseSockTabEntry(); + message.LocalAddr = (object.LocalAddr !== undefined && object.LocalAddr !== null) + ? SockTabEntry_SockAddr.fromPartial(object.LocalAddr) + : undefined; + message.RemoteAddr = (object.RemoteAddr !== undefined && object.RemoteAddr !== null) + ? SockTabEntry_SockAddr.fromPartial(object.RemoteAddr) + : undefined; + message.SkState = object.SkState ?? ""; + message.UID = object.UID ?? 0; + message.Process = (object.Process !== undefined && object.Process !== null) + ? Process.fromPartial(object.Process) + : undefined; + message.Protocol = object.Protocol ?? ""; + return message; + }, +}; + +function createBaseSockTabEntry_SockAddr(): SockTabEntry_SockAddr { + return { Ip: "", Port: 0 }; +} + +export const SockTabEntry_SockAddr: MessageFns = { + encode(message: SockTabEntry_SockAddr, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Ip !== "") { + writer.uint32(10).string(message.Ip); + } + if (message.Port !== 0) { + writer.uint32(16).uint32(message.Port); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SockTabEntry_SockAddr { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSockTabEntry_SockAddr(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Ip = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Port = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SockTabEntry_SockAddr { + return { + Ip: isSet(object.Ip) ? globalThis.String(object.Ip) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + }; + }, + + toJSON(message: SockTabEntry_SockAddr): unknown { + const obj: any = {}; + if (message.Ip !== "") { + obj.Ip = message.Ip; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + return obj; + }, + + create(base?: DeepPartial): SockTabEntry_SockAddr { + return SockTabEntry_SockAddr.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SockTabEntry_SockAddr { + const message = createBaseSockTabEntry_SockAddr(); + message.Ip = object.Ip ?? ""; + message.Port = object.Port ?? 0; + return message; + }, +}; + +function createBaseNetstat(): Netstat { + return { Entries: [], Response: undefined }; +} + +export const Netstat: MessageFns = { + encode(message: Netstat, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Entries) { + SockTabEntry.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Netstat { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetstat(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Entries.push(SockTabEntry.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Netstat { + return { + Entries: globalThis.Array.isArray(object?.Entries) + ? object.Entries.map((e: any) => SockTabEntry.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Netstat): unknown { + const obj: any = {}; + if (message.Entries?.length) { + obj.Entries = message.Entries.map((e) => SockTabEntry.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Netstat { + return Netstat.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Netstat { + const message = createBaseNetstat(); + message.Entries = object.Entries?.map((e) => SockTabEntry.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseEnvReq(): EnvReq { + return { Name: "", Request: undefined }; +} + +export const EnvReq: MessageFns = { + encode(message: EnvReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): EnvReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnvReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): EnvReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: EnvReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): EnvReq { + return EnvReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): EnvReq { + const message = createBaseEnvReq(); + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseEnvInfo(): EnvInfo { + return { Variables: [], Response: undefined }; +} + +export const EnvInfo: MessageFns = { + encode(message: EnvInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Variables) { + EnvVar.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): EnvInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseEnvInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Variables.push(EnvVar.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): EnvInfo { + return { + Variables: globalThis.Array.isArray(object?.Variables) + ? object.Variables.map((e: any) => EnvVar.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: EnvInfo): unknown { + const obj: any = {}; + if (message.Variables?.length) { + obj.Variables = message.Variables.map((e) => EnvVar.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): EnvInfo { + return EnvInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): EnvInfo { + const message = createBaseEnvInfo(); + message.Variables = object.Variables?.map((e) => EnvVar.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseSetEnvReq(): SetEnvReq { + return { Variable: undefined, Request: undefined }; +} + +export const SetEnvReq: MessageFns = { + encode(message: SetEnvReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Variable !== undefined) { + EnvVar.encode(message.Variable, writer.uint32(10).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SetEnvReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSetEnvReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Variable = EnvVar.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SetEnvReq { + return { + Variable: isSet(object.Variable) ? EnvVar.fromJSON(object.Variable) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: SetEnvReq): unknown { + const obj: any = {}; + if (message.Variable !== undefined) { + obj.Variable = EnvVar.toJSON(message.Variable); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): SetEnvReq { + return SetEnvReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SetEnvReq { + const message = createBaseSetEnvReq(); + message.Variable = (object.Variable !== undefined && object.Variable !== null) + ? EnvVar.fromPartial(object.Variable) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSetEnv(): SetEnv { + return { Response: undefined }; +} + +export const SetEnv: MessageFns = { + encode(message: SetEnv, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SetEnv { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSetEnv(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SetEnv { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: SetEnv): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): SetEnv { + return SetEnv.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SetEnv { + const message = createBaseSetEnv(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseUnsetEnvReq(): UnsetEnvReq { + return { Name: "", Request: undefined }; +} + +export const UnsetEnvReq: MessageFns = { + encode(message: UnsetEnvReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): UnsetEnvReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnsetEnvReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): UnsetEnvReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: UnsetEnvReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): UnsetEnvReq { + return UnsetEnvReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): UnsetEnvReq { + const message = createBaseUnsetEnvReq(); + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseUnsetEnv(): UnsetEnv { + return { Response: undefined }; +} + +export const UnsetEnv: MessageFns = { + encode(message: UnsetEnv, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): UnsetEnv { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseUnsetEnv(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): UnsetEnv { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: UnsetEnv): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): UnsetEnv { + return UnsetEnv.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): UnsetEnv { + const message = createBaseUnsetEnv(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseHTTPSessionInit(): HTTPSessionInit { + return { Key: Buffer.alloc(0) }; +} + +export const HTTPSessionInit: MessageFns = { + encode(message: HTTPSessionInit, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Key.length !== 0) { + writer.uint32(10).bytes(message.Key); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): HTTPSessionInit { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseHTTPSessionInit(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Key = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): HTTPSessionInit { + return { Key: isSet(object.Key) ? Buffer.from(bytesFromBase64(object.Key)) : Buffer.alloc(0) }; + }, + + toJSON(message: HTTPSessionInit): unknown { + const obj: any = {}; + if (message.Key.length !== 0) { + obj.Key = base64FromBytes(message.Key); + } + return obj; + }, + + create(base?: DeepPartial): HTTPSessionInit { + return HTTPSessionInit.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): HTTPSessionInit { + const message = createBaseHTTPSessionInit(); + message.Key = object.Key ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseScreenshotReq(): ScreenshotReq { + return { Request: undefined }; +} + +export const ScreenshotReq: MessageFns = { + encode(message: ScreenshotReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ScreenshotReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseScreenshotReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ScreenshotReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: ScreenshotReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ScreenshotReq { + return ScreenshotReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ScreenshotReq { + const message = createBaseScreenshotReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseScreenshot(): Screenshot { + return { Data: Buffer.alloc(0), Response: undefined }; +} + +export const Screenshot: MessageFns = { + encode(message: Screenshot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Screenshot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseScreenshot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Screenshot { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Screenshot): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Screenshot { + return Screenshot.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Screenshot { + const message = createBaseScreenshot(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseStartServiceReq(): StartServiceReq { + return { ServiceName: "", ServiceDescription: "", BinPath: "", Hostname: "", Arguments: "", Request: undefined }; +} + +export const StartServiceReq: MessageFns = { + encode(message: StartServiceReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceName !== "") { + writer.uint32(10).string(message.ServiceName); + } + if (message.ServiceDescription !== "") { + writer.uint32(18).string(message.ServiceDescription); + } + if (message.BinPath !== "") { + writer.uint32(26).string(message.BinPath); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Arguments !== "") { + writer.uint32(42).string(message.Arguments); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): StartServiceReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStartServiceReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceName = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ServiceDescription = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.BinPath = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Arguments = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): StartServiceReq { + return { + ServiceName: isSet(object.ServiceName) ? globalThis.String(object.ServiceName) : "", + ServiceDescription: isSet(object.ServiceDescription) ? globalThis.String(object.ServiceDescription) : "", + BinPath: isSet(object.BinPath) ? globalThis.String(object.BinPath) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Arguments: isSet(object.Arguments) ? globalThis.String(object.Arguments) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: StartServiceReq): unknown { + const obj: any = {}; + if (message.ServiceName !== "") { + obj.ServiceName = message.ServiceName; + } + if (message.ServiceDescription !== "") { + obj.ServiceDescription = message.ServiceDescription; + } + if (message.BinPath !== "") { + obj.BinPath = message.BinPath; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Arguments !== "") { + obj.Arguments = message.Arguments; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): StartServiceReq { + return StartServiceReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StartServiceReq { + const message = createBaseStartServiceReq(); + message.ServiceName = object.ServiceName ?? ""; + message.ServiceDescription = object.ServiceDescription ?? ""; + message.BinPath = object.BinPath ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Arguments = object.Arguments ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseServiceInfo(): ServiceInfo { + return { Response: undefined }; +} + +export const ServiceInfo: MessageFns = { + encode(message: ServiceInfo, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServiceInfo { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceInfo(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceInfo { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: ServiceInfo): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ServiceInfo { + return ServiceInfo.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceInfo { + const message = createBaseServiceInfo(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseServiceInfoReq(): ServiceInfoReq { + return { ServiceName: "", Hostname: "" }; +} + +export const ServiceInfoReq: MessageFns = { + encode(message: ServiceInfoReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceName !== "") { + writer.uint32(10).string(message.ServiceName); + } + if (message.Hostname !== "") { + writer.uint32(18).string(message.Hostname); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServiceInfoReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceInfoReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceName = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Hostname = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceInfoReq { + return { + ServiceName: isSet(object.ServiceName) ? globalThis.String(object.ServiceName) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + }; + }, + + toJSON(message: ServiceInfoReq): unknown { + const obj: any = {}; + if (message.ServiceName !== "") { + obj.ServiceName = message.ServiceName; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + return obj; + }, + + create(base?: DeepPartial): ServiceInfoReq { + return ServiceInfoReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceInfoReq { + const message = createBaseServiceInfoReq(); + message.ServiceName = object.ServiceName ?? ""; + message.Hostname = object.Hostname ?? ""; + return message; + }, +}; + +function createBaseStopServiceReq(): StopServiceReq { + return { ServiceInfo: undefined, Request: undefined }; +} + +export const StopServiceReq: MessageFns = { + encode(message: StopServiceReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceInfo !== undefined) { + ServiceInfoReq.encode(message.ServiceInfo, writer.uint32(10).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): StopServiceReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStopServiceReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceInfo = ServiceInfoReq.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): StopServiceReq { + return { + ServiceInfo: isSet(object.ServiceInfo) ? ServiceInfoReq.fromJSON(object.ServiceInfo) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: StopServiceReq): unknown { + const obj: any = {}; + if (message.ServiceInfo !== undefined) { + obj.ServiceInfo = ServiceInfoReq.toJSON(message.ServiceInfo); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): StopServiceReq { + return StopServiceReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StopServiceReq { + const message = createBaseStopServiceReq(); + message.ServiceInfo = (object.ServiceInfo !== undefined && object.ServiceInfo !== null) + ? ServiceInfoReq.fromPartial(object.ServiceInfo) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRemoveServiceReq(): RemoveServiceReq { + return { ServiceInfo: undefined, Request: undefined }; +} + +export const RemoveServiceReq: MessageFns = { + encode(message: RemoveServiceReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceInfo !== undefined) { + ServiceInfoReq.encode(message.ServiceInfo, writer.uint32(10).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RemoveServiceReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRemoveServiceReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceInfo = ServiceInfoReq.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RemoveServiceReq { + return { + ServiceInfo: isSet(object.ServiceInfo) ? ServiceInfoReq.fromJSON(object.ServiceInfo) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RemoveServiceReq): unknown { + const obj: any = {}; + if (message.ServiceInfo !== undefined) { + obj.ServiceInfo = ServiceInfoReq.toJSON(message.ServiceInfo); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RemoveServiceReq { + return RemoveServiceReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RemoveServiceReq { + const message = createBaseRemoveServiceReq(); + message.ServiceInfo = (object.ServiceInfo !== undefined && object.ServiceInfo !== null) + ? ServiceInfoReq.fromPartial(object.ServiceInfo) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryReadReq(): RegistryReadReq { + return { Hive: "", Path: "", Key: "", Hostname: "", Request: undefined }; +} + +export const RegistryReadReq: MessageFns = { + encode(message: RegistryReadReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Key !== "") { + writer.uint32(26).string(message.Key); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryReadReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryReadReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Key = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryReadReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Key: isSet(object.Key) ? globalThis.String(object.Key) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryReadReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Key !== "") { + obj.Key = message.Key; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryReadReq { + return RegistryReadReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryReadReq { + const message = createBaseRegistryReadReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Key = object.Key ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryRead(): RegistryRead { + return { Value: "", Response: undefined }; +} + +export const RegistryRead: MessageFns = { + encode(message: RegistryRead, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Value !== "") { + writer.uint32(10).string(message.Value); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryRead { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryRead(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Value = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryRead { + return { + Value: isSet(object.Value) ? globalThis.String(object.Value) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RegistryRead): unknown { + const obj: any = {}; + if (message.Value !== "") { + obj.Value = message.Value; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryRead { + return RegistryRead.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryRead { + const message = createBaseRegistryRead(); + message.Value = object.Value ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistryWriteReq(): RegistryWriteReq { + return { + Hive: "", + Path: "", + Key: "", + Hostname: "", + StringValue: "", + ByteValue: Buffer.alloc(0), + DWordValue: 0, + QWordValue: "0", + Type: 0, + Request: undefined, + }; +} + +export const RegistryWriteReq: MessageFns = { + encode(message: RegistryWriteReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Key !== "") { + writer.uint32(26).string(message.Key); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.StringValue !== "") { + writer.uint32(42).string(message.StringValue); + } + if (message.ByteValue.length !== 0) { + writer.uint32(50).bytes(message.ByteValue); + } + if (message.DWordValue !== 0) { + writer.uint32(56).uint32(message.DWordValue); + } + if (message.QWordValue !== "0") { + writer.uint32(64).uint64(message.QWordValue); + } + if (message.Type !== 0) { + writer.uint32(80).uint32(message.Type); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryWriteReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryWriteReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Key = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.StringValue = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.ByteValue = Buffer.from(reader.bytes()); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.DWordValue = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.QWordValue = reader.uint64().toString(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.Type = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryWriteReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Key: isSet(object.Key) ? globalThis.String(object.Key) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + StringValue: isSet(object.StringValue) ? globalThis.String(object.StringValue) : "", + ByteValue: isSet(object.ByteValue) ? Buffer.from(bytesFromBase64(object.ByteValue)) : Buffer.alloc(0), + DWordValue: isSet(object.DWordValue) ? globalThis.Number(object.DWordValue) : 0, + QWordValue: isSet(object.QWordValue) ? globalThis.String(object.QWordValue) : "0", + Type: isSet(object.Type) ? globalThis.Number(object.Type) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryWriteReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Key !== "") { + obj.Key = message.Key; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.StringValue !== "") { + obj.StringValue = message.StringValue; + } + if (message.ByteValue.length !== 0) { + obj.ByteValue = base64FromBytes(message.ByteValue); + } + if (message.DWordValue !== 0) { + obj.DWordValue = Math.round(message.DWordValue); + } + if (message.QWordValue !== "0") { + obj.QWordValue = message.QWordValue; + } + if (message.Type !== 0) { + obj.Type = Math.round(message.Type); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryWriteReq { + return RegistryWriteReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryWriteReq { + const message = createBaseRegistryWriteReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Key = object.Key ?? ""; + message.Hostname = object.Hostname ?? ""; + message.StringValue = object.StringValue ?? ""; + message.ByteValue = object.ByteValue ?? Buffer.alloc(0); + message.DWordValue = object.DWordValue ?? 0; + message.QWordValue = object.QWordValue ?? "0"; + message.Type = object.Type ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryWrite(): RegistryWrite { + return { Response: undefined }; +} + +export const RegistryWrite: MessageFns = { + encode(message: RegistryWrite, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryWrite { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryWrite(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryWrite { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RegistryWrite): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryWrite { + return RegistryWrite.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryWrite { + const message = createBaseRegistryWrite(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistryCreateKeyReq(): RegistryCreateKeyReq { + return { Hive: "", Path: "", Key: "", Hostname: "", Request: undefined }; +} + +export const RegistryCreateKeyReq: MessageFns = { + encode(message: RegistryCreateKeyReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Key !== "") { + writer.uint32(26).string(message.Key); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryCreateKeyReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryCreateKeyReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Key = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryCreateKeyReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Key: isSet(object.Key) ? globalThis.String(object.Key) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryCreateKeyReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Key !== "") { + obj.Key = message.Key; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryCreateKeyReq { + return RegistryCreateKeyReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryCreateKeyReq { + const message = createBaseRegistryCreateKeyReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Key = object.Key ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryCreateKey(): RegistryCreateKey { + return { Response: undefined }; +} + +export const RegistryCreateKey: MessageFns = { + encode(message: RegistryCreateKey, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryCreateKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryCreateKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryCreateKey { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RegistryCreateKey): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryCreateKey { + return RegistryCreateKey.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryCreateKey { + const message = createBaseRegistryCreateKey(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistryDeleteKeyReq(): RegistryDeleteKeyReq { + return { Hive: "", Path: "", Key: "", Hostname: "", Request: undefined }; +} + +export const RegistryDeleteKeyReq: MessageFns = { + encode(message: RegistryDeleteKeyReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Key !== "") { + writer.uint32(26).string(message.Key); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryDeleteKeyReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryDeleteKeyReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Key = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryDeleteKeyReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Key: isSet(object.Key) ? globalThis.String(object.Key) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryDeleteKeyReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Key !== "") { + obj.Key = message.Key; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryDeleteKeyReq { + return RegistryDeleteKeyReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryDeleteKeyReq { + const message = createBaseRegistryDeleteKeyReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Key = object.Key ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryDeleteKey(): RegistryDeleteKey { + return { Response: undefined }; +} + +export const RegistryDeleteKey: MessageFns = { + encode(message: RegistryDeleteKey, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryDeleteKey { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryDeleteKey(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryDeleteKey { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RegistryDeleteKey): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryDeleteKey { + return RegistryDeleteKey.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryDeleteKey { + const message = createBaseRegistryDeleteKey(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistrySubKeyListReq(): RegistrySubKeyListReq { + return { Hive: "", Path: "", Hostname: "", Request: undefined }; +} + +export const RegistrySubKeyListReq: MessageFns = { + encode(message: RegistrySubKeyListReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistrySubKeyListReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistrySubKeyListReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistrySubKeyListReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistrySubKeyListReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistrySubKeyListReq { + return RegistrySubKeyListReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistrySubKeyListReq { + const message = createBaseRegistrySubKeyListReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistrySubKeyList(): RegistrySubKeyList { + return { Subkeys: [], Response: undefined }; +} + +export const RegistrySubKeyList: MessageFns = { + encode(message: RegistrySubKeyList, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Subkeys) { + writer.uint32(10).string(v!); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistrySubKeyList { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistrySubKeyList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Subkeys.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistrySubKeyList { + return { + Subkeys: globalThis.Array.isArray(object?.Subkeys) ? object.Subkeys.map((e: any) => globalThis.String(e)) : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RegistrySubKeyList): unknown { + const obj: any = {}; + if (message.Subkeys?.length) { + obj.Subkeys = message.Subkeys; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistrySubKeyList { + return RegistrySubKeyList.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistrySubKeyList { + const message = createBaseRegistrySubKeyList(); + message.Subkeys = object.Subkeys?.map((e) => e) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistryListValuesReq(): RegistryListValuesReq { + return { Hive: "", Path: "", Hostname: "", Request: undefined }; +} + +export const RegistryListValuesReq: MessageFns = { + encode(message: RegistryListValuesReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hive !== "") { + writer.uint32(10).string(message.Hive); + } + if (message.Path !== "") { + writer.uint32(18).string(message.Path); + } + if (message.Hostname !== "") { + writer.uint32(34).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryListValuesReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryListValuesReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Path = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryListValuesReq { + return { + Hive: isSet(object.Hive) ? globalThis.String(object.Hive) : "", + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryListValuesReq): unknown { + const obj: any = {}; + if (message.Hive !== "") { + obj.Hive = message.Hive; + } + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryListValuesReq { + return RegistryListValuesReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryListValuesReq { + const message = createBaseRegistryListValuesReq(); + message.Hive = object.Hive ?? ""; + message.Path = object.Path ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryValuesList(): RegistryValuesList { + return { ValueNames: [], Response: undefined }; +} + +export const RegistryValuesList: MessageFns = { + encode(message: RegistryValuesList, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.ValueNames) { + writer.uint32(10).string(v!); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryValuesList { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryValuesList(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ValueNames.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryValuesList { + return { + ValueNames: globalThis.Array.isArray(object?.ValueNames) + ? object.ValueNames.map((e: any) => globalThis.String(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RegistryValuesList): unknown { + const obj: any = {}; + if (message.ValueNames?.length) { + obj.ValueNames = message.ValueNames; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryValuesList { + return RegistryValuesList.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryValuesList { + const message = createBaseRegistryValuesList(); + message.ValueNames = object.ValueNames?.map((e) => e) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegistryReadHiveReq(): RegistryReadHiveReq { + return { RootHive: "", RequestedHive: "", Request: undefined }; +} + +export const RegistryReadHiveReq: MessageFns = { + encode(message: RegistryReadHiveReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.RootHive !== "") { + writer.uint32(10).string(message.RootHive); + } + if (message.RequestedHive !== "") { + writer.uint32(18).string(message.RequestedHive); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryReadHiveReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryReadHiveReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.RootHive = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.RequestedHive = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryReadHiveReq { + return { + RootHive: isSet(object.RootHive) ? globalThis.String(object.RootHive) : "", + RequestedHive: isSet(object.RequestedHive) ? globalThis.String(object.RequestedHive) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegistryReadHiveReq): unknown { + const obj: any = {}; + if (message.RootHive !== "") { + obj.RootHive = message.RootHive; + } + if (message.RequestedHive !== "") { + obj.RequestedHive = message.RequestedHive; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegistryReadHiveReq { + return RegistryReadHiveReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryReadHiveReq { + const message = createBaseRegistryReadHiveReq(); + message.RootHive = object.RootHive ?? ""; + message.RequestedHive = object.RequestedHive ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegistryReadHive(): RegistryReadHive { + return { Data: Buffer.alloc(0), Encoder: "", Response: undefined }; +} + +export const RegistryReadHive: MessageFns = { + encode(message: RegistryReadHive, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.Encoder !== "") { + writer.uint32(18).string(message.Encoder); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegistryReadHive { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegistryReadHive(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Encoder = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegistryReadHive { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Encoder: isSet(object.Encoder) ? globalThis.String(object.Encoder) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RegistryReadHive): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Encoder !== "") { + obj.Encoder = message.Encoder; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegistryReadHive { + return RegistryReadHive.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegistryReadHive { + const message = createBaseRegistryReadHive(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Encoder = object.Encoder ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseTunnel(): Tunnel { + return { TunnelID: "0", SessionID: "" }; +} + +export const Tunnel: MessageFns = { + encode(message: Tunnel, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.SessionID !== "") { + writer.uint32(74).string(message.SessionID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Tunnel { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTunnel(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.SessionID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Tunnel { + return { + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + SessionID: isSet(object.SessionID) ? globalThis.String(object.SessionID) : "", + }; + }, + + toJSON(message: Tunnel): unknown { + const obj: any = {}; + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.SessionID !== "") { + obj.SessionID = message.SessionID; + } + return obj; + }, + + create(base?: DeepPartial): Tunnel { + return Tunnel.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Tunnel { + const message = createBaseTunnel(); + message.TunnelID = object.TunnelID ?? "0"; + message.SessionID = object.SessionID ?? ""; + return message; + }, +}; + +function createBaseTunnelData(): TunnelData { + return { + Data: Buffer.alloc(0), + Closed: false, + Sequence: "0", + Ack: "0", + Resend: false, + CreateReverse: false, + rportfwd: undefined, + TunnelID: "0", + SessionID: "", + }; +} + +export const TunnelData: MessageFns = { + encode(message: TunnelData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.Closed !== false) { + writer.uint32(16).bool(message.Closed); + } + if (message.Sequence !== "0") { + writer.uint32(24).uint64(message.Sequence); + } + if (message.Ack !== "0") { + writer.uint32(32).uint64(message.Ack); + } + if (message.Resend !== false) { + writer.uint32(40).bool(message.Resend); + } + if (message.CreateReverse !== false) { + writer.uint32(48).bool(message.CreateReverse); + } + if (message.rportfwd !== undefined) { + RPortfwd.encode(message.rportfwd, writer.uint32(58).fork()).join(); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.SessionID !== "") { + writer.uint32(74).string(message.SessionID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): TunnelData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseTunnelData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Closed = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Sequence = reader.uint64().toString(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Ack = reader.uint64().toString(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Resend = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.CreateReverse = reader.bool(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.rportfwd = RPortfwd.decode(reader, reader.uint32()); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.SessionID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): TunnelData { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + Closed: isSet(object.Closed) ? globalThis.Boolean(object.Closed) : false, + Sequence: isSet(object.Sequence) ? globalThis.String(object.Sequence) : "0", + Ack: isSet(object.Ack) ? globalThis.String(object.Ack) : "0", + Resend: isSet(object.Resend) ? globalThis.Boolean(object.Resend) : false, + CreateReverse: isSet(object.CreateReverse) ? globalThis.Boolean(object.CreateReverse) : false, + rportfwd: isSet(object.rportfwd) ? RPortfwd.fromJSON(object.rportfwd) : undefined, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + SessionID: isSet(object.SessionID) ? globalThis.String(object.SessionID) : "", + }; + }, + + toJSON(message: TunnelData): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.Closed !== false) { + obj.Closed = message.Closed; + } + if (message.Sequence !== "0") { + obj.Sequence = message.Sequence; + } + if (message.Ack !== "0") { + obj.Ack = message.Ack; + } + if (message.Resend !== false) { + obj.Resend = message.Resend; + } + if (message.CreateReverse !== false) { + obj.CreateReverse = message.CreateReverse; + } + if (message.rportfwd !== undefined) { + obj.rportfwd = RPortfwd.toJSON(message.rportfwd); + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.SessionID !== "") { + obj.SessionID = message.SessionID; + } + return obj; + }, + + create(base?: DeepPartial): TunnelData { + return TunnelData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): TunnelData { + const message = createBaseTunnelData(); + message.Data = object.Data ?? Buffer.alloc(0); + message.Closed = object.Closed ?? false; + message.Sequence = object.Sequence ?? "0"; + message.Ack = object.Ack ?? "0"; + message.Resend = object.Resend ?? false; + message.CreateReverse = object.CreateReverse ?? false; + message.rportfwd = (object.rportfwd !== undefined && object.rportfwd !== null) + ? RPortfwd.fromPartial(object.rportfwd) + : undefined; + message.TunnelID = object.TunnelID ?? "0"; + message.SessionID = object.SessionID ?? ""; + return message; + }, +}; + +function createBaseShellReq(): ShellReq { + return { Path: "", EnablePTY: false, Pid: 0, Rows: 0, Cols: 0, TunnelID: "0", Request: undefined }; +} + +export const ShellReq: MessageFns = { + encode(message: ShellReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.EnablePTY !== false) { + writer.uint32(16).bool(message.EnablePTY); + } + if (message.Pid !== 0) { + writer.uint32(24).uint32(message.Pid); + } + if (message.Rows !== 0) { + writer.uint32(32).uint32(message.Rows); + } + if (message.Cols !== 0) { + writer.uint32(40).uint32(message.Cols); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.EnablePTY = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Rows = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Cols = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + EnablePTY: isSet(object.EnablePTY) ? globalThis.Boolean(object.EnablePTY) : false, + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + Rows: isSet(object.Rows) ? globalThis.Number(object.Rows) : 0, + Cols: isSet(object.Cols) ? globalThis.Number(object.Cols) : 0, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ShellReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.EnablePTY !== false) { + obj.EnablePTY = message.EnablePTY; + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.Rows !== 0) { + obj.Rows = Math.round(message.Rows); + } + if (message.Cols !== 0) { + obj.Cols = Math.round(message.Cols); + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ShellReq { + return ShellReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellReq { + const message = createBaseShellReq(); + message.Path = object.Path ?? ""; + message.EnablePTY = object.EnablePTY ?? false; + message.Pid = object.Pid ?? 0; + message.Rows = object.Rows ?? 0; + message.Cols = object.Cols ?? 0; + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseShell(): Shell { + return { Path: "", EnablePTY: false, Pid: 0, TunnelID: "0", Response: undefined }; +} + +export const Shell: MessageFns = { + encode(message: Shell, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.EnablePTY !== false) { + writer.uint32(16).bool(message.EnablePTY); + } + if (message.Pid !== 0) { + writer.uint32(24).uint32(message.Pid); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Shell { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShell(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.EnablePTY = reader.bool(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Pid = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Shell { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + EnablePTY: isSet(object.EnablePTY) ? globalThis.Boolean(object.EnablePTY) : false, + Pid: isSet(object.Pid) ? globalThis.Number(object.Pid) : 0, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Shell): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.EnablePTY !== false) { + obj.EnablePTY = message.EnablePTY; + } + if (message.Pid !== 0) { + obj.Pid = Math.round(message.Pid); + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Shell { + return Shell.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Shell { + const message = createBaseShell(); + message.Path = object.Path ?? ""; + message.EnablePTY = object.EnablePTY ?? false; + message.Pid = object.Pid ?? 0; + message.TunnelID = object.TunnelID ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseShellResizeReq(): ShellResizeReq { + return { Rows: 0, Cols: 0, TunnelID: "0", Request: undefined }; +} + +export const ShellResizeReq: MessageFns = { + encode(message: ShellResizeReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Rows !== 0) { + writer.uint32(8).uint32(message.Rows); + } + if (message.Cols !== 0) { + writer.uint32(16).uint32(message.Cols); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ShellResizeReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseShellResizeReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Rows = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Cols = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ShellResizeReq { + return { + Rows: isSet(object.Rows) ? globalThis.Number(object.Rows) : 0, + Cols: isSet(object.Cols) ? globalThis.Number(object.Cols) : 0, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ShellResizeReq): unknown { + const obj: any = {}; + if (message.Rows !== 0) { + obj.Rows = Math.round(message.Rows); + } + if (message.Cols !== 0) { + obj.Cols = Math.round(message.Cols); + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ShellResizeReq { + return ShellResizeReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ShellResizeReq { + const message = createBaseShellResizeReq(); + message.Rows = object.Rows ?? 0; + message.Cols = object.Cols ?? 0; + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePortfwdReq(): PortfwdReq { + return { Port: 0, Protocol: 0, Host: "", TunnelID: "0", Request: undefined }; +} + +export const PortfwdReq: MessageFns = { + encode(message: PortfwdReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Port !== 0) { + writer.uint32(8).uint32(message.Port); + } + if (message.Protocol !== 0) { + writer.uint32(16).int32(message.Protocol); + } + if (message.Host !== "") { + writer.uint32(26).string(message.Host); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PortfwdReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePortfwdReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Protocol = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Host = reader.string(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PortfwdReq { + return { + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Protocol: isSet(object.Protocol) ? globalThis.Number(object.Protocol) : 0, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: PortfwdReq): unknown { + const obj: any = {}; + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Protocol !== 0) { + obj.Protocol = Math.round(message.Protocol); + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PortfwdReq { + return PortfwdReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PortfwdReq { + const message = createBasePortfwdReq(); + message.Port = object.Port ?? 0; + message.Protocol = object.Protocol ?? 0; + message.Host = object.Host ?? ""; + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePortfwd(): Portfwd { + return { Port: 0, Protocol: 0, Host: "", TunnelID: "0", Response: undefined }; +} + +export const Portfwd: MessageFns = { + encode(message: Portfwd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Port !== 0) { + writer.uint32(8).uint32(message.Port); + } + if (message.Protocol !== 0) { + writer.uint32(16).int32(message.Protocol); + } + if (message.Host !== "") { + writer.uint32(26).string(message.Host); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Portfwd { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePortfwd(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Protocol = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Host = reader.string(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Portfwd { + return { + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Protocol: isSet(object.Protocol) ? globalThis.Number(object.Protocol) : 0, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Portfwd): unknown { + const obj: any = {}; + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Protocol !== 0) { + obj.Protocol = Math.round(message.Protocol); + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Portfwd { + return Portfwd.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Portfwd { + const message = createBasePortfwd(); + message.Port = object.Port ?? 0; + message.Protocol = object.Protocol ?? 0; + message.Host = object.Host ?? ""; + message.TunnelID = object.TunnelID ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseSocks(): Socks { + return { TunnelID: "0", SessionID: "" }; +} + +export const Socks: MessageFns = { + encode(message: Socks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.SessionID !== "") { + writer.uint32(74).string(message.SessionID); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Socks { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSocks(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.SessionID = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Socks { + return { + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + SessionID: isSet(object.SessionID) ? globalThis.String(object.SessionID) : "", + }; + }, + + toJSON(message: Socks): unknown { + const obj: any = {}; + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.SessionID !== "") { + obj.SessionID = message.SessionID; + } + return obj; + }, + + create(base?: DeepPartial): Socks { + return Socks.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Socks { + const message = createBaseSocks(); + message.TunnelID = object.TunnelID ?? "0"; + message.SessionID = object.SessionID ?? ""; + return message; + }, +}; + +function createBaseSocksData(): SocksData { + return { + Data: Buffer.alloc(0), + CloseConn: false, + Username: "", + Password: "", + Sequence: "0", + TunnelID: "0", + Request: undefined, + }; +} + +export const SocksData: MessageFns = { + encode(message: SocksData, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Data.length !== 0) { + writer.uint32(10).bytes(message.Data); + } + if (message.CloseConn !== false) { + writer.uint32(16).bool(message.CloseConn); + } + if (message.Username !== "") { + writer.uint32(26).string(message.Username); + } + if (message.Password !== "") { + writer.uint32(34).string(message.Password); + } + if (message.Sequence !== "0") { + writer.uint32(40).uint64(message.Sequence); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SocksData { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSocksData(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.CloseConn = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Username = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Password = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Sequence = reader.uint64().toString(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SocksData { + return { + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + CloseConn: isSet(object.CloseConn) ? globalThis.Boolean(object.CloseConn) : false, + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Password: isSet(object.Password) ? globalThis.String(object.Password) : "", + Sequence: isSet(object.Sequence) ? globalThis.String(object.Sequence) : "0", + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: SocksData): unknown { + const obj: any = {}; + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.CloseConn !== false) { + obj.CloseConn = message.CloseConn; + } + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Password !== "") { + obj.Password = message.Password; + } + if (message.Sequence !== "0") { + obj.Sequence = message.Sequence; + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): SocksData { + return SocksData.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SocksData { + const message = createBaseSocksData(); + message.Data = object.Data ?? Buffer.alloc(0); + message.CloseConn = object.CloseConn ?? false; + message.Username = object.Username ?? ""; + message.Password = object.Password ?? ""; + message.Sequence = object.Sequence ?? "0"; + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePivotStartListenerReq(): PivotStartListenerReq { + return { Type: 0, BindAddress: "", Options: [], Request: undefined }; +} + +export const PivotStartListenerReq: MessageFns = { + encode(message: PivotStartListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Type !== 0) { + writer.uint32(8).int32(message.Type); + } + if (message.BindAddress !== "") { + writer.uint32(18).string(message.BindAddress); + } + writer.uint32(26).fork(); + for (const v of message.Options) { + writer.bool(v); + } + writer.join(); + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotStartListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotStartListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Type = reader.int32() as any; + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.BindAddress = reader.string(); + continue; + } + case 3: { + if (tag === 24) { + message.Options.push(reader.bool()); + + continue; + } + + if (tag === 26) { + const end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) { + message.Options.push(reader.bool()); + } + + continue; + } + + break; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotStartListenerReq { + return { + Type: isSet(object.Type) ? pivotTypeFromJSON(object.Type) : 0, + BindAddress: isSet(object.BindAddress) ? globalThis.String(object.BindAddress) : "", + Options: globalThis.Array.isArray(object?.Options) ? object.Options.map((e: any) => globalThis.Boolean(e)) : [], + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: PivotStartListenerReq): unknown { + const obj: any = {}; + if (message.Type !== 0) { + obj.Type = pivotTypeToJSON(message.Type); + } + if (message.BindAddress !== "") { + obj.BindAddress = message.BindAddress; + } + if (message.Options?.length) { + obj.Options = message.Options; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PivotStartListenerReq { + return PivotStartListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotStartListenerReq { + const message = createBasePivotStartListenerReq(); + message.Type = object.Type ?? 0; + message.BindAddress = object.BindAddress ?? ""; + message.Options = object.Options?.map((e) => e) || []; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePivotStopListenerReq(): PivotStopListenerReq { + return { ID: 0, Request: undefined }; +} + +export const PivotStopListenerReq: MessageFns = { + encode(message: PivotStopListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotStopListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotStopListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotStopListenerReq { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: PivotStopListenerReq): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PivotStopListenerReq { + return PivotStopListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotStopListenerReq { + const message = createBasePivotStopListenerReq(); + message.ID = object.ID ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePivotListener(): PivotListener { + return { ID: 0, Type: 0, BindAddress: "", Pivots: [], Response: undefined }; +} + +export const PivotListener: MessageFns = { + encode(message: PivotListener, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Type !== 0) { + writer.uint32(16).int32(message.Type); + } + if (message.BindAddress !== "") { + writer.uint32(26).string(message.BindAddress); + } + for (const v of message.Pivots) { + NetConnPivot.encode(v!, writer.uint32(34).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotListener { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotListener(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Type = reader.int32() as any; + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.BindAddress = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Pivots.push(NetConnPivot.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotListener { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Type: isSet(object.Type) ? pivotTypeFromJSON(object.Type) : 0, + BindAddress: isSet(object.BindAddress) ? globalThis.String(object.BindAddress) : "", + Pivots: globalThis.Array.isArray(object?.Pivots) ? object.Pivots.map((e: any) => NetConnPivot.fromJSON(e)) : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: PivotListener): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Type !== 0) { + obj.Type = pivotTypeToJSON(message.Type); + } + if (message.BindAddress !== "") { + obj.BindAddress = message.BindAddress; + } + if (message.Pivots?.length) { + obj.Pivots = message.Pivots.map((e) => NetConnPivot.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): PivotListener { + return PivotListener.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotListener { + const message = createBasePivotListener(); + message.ID = object.ID ?? 0; + message.Type = object.Type ?? 0; + message.BindAddress = object.BindAddress ?? ""; + message.Pivots = object.Pivots?.map((e) => NetConnPivot.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBasePivotHello(): PivotHello { + return { PublicKey: Buffer.alloc(0), PeerID: "0", PublicKeySignature: "", SessionKey: Buffer.alloc(0) }; +} + +export const PivotHello: MessageFns = { + encode(message: PivotHello, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PublicKey.length !== 0) { + writer.uint32(10).bytes(message.PublicKey); + } + if (message.PeerID !== "0") { + writer.uint32(16).int64(message.PeerID); + } + if (message.PublicKeySignature !== "") { + writer.uint32(26).string(message.PublicKeySignature); + } + if (message.SessionKey.length !== 0) { + writer.uint32(34).bytes(message.SessionKey); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotHello { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotHello(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.PublicKey = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.PublicKeySignature = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.SessionKey = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotHello { + return { + PublicKey: isSet(object.PublicKey) ? Buffer.from(bytesFromBase64(object.PublicKey)) : Buffer.alloc(0), + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + PublicKeySignature: isSet(object.PublicKeySignature) ? globalThis.String(object.PublicKeySignature) : "", + SessionKey: isSet(object.SessionKey) ? Buffer.from(bytesFromBase64(object.SessionKey)) : Buffer.alloc(0), + }; + }, + + toJSON(message: PivotHello): unknown { + const obj: any = {}; + if (message.PublicKey.length !== 0) { + obj.PublicKey = base64FromBytes(message.PublicKey); + } + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.PublicKeySignature !== "") { + obj.PublicKeySignature = message.PublicKeySignature; + } + if (message.SessionKey.length !== 0) { + obj.SessionKey = base64FromBytes(message.SessionKey); + } + return obj; + }, + + create(base?: DeepPartial): PivotHello { + return PivotHello.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotHello { + const message = createBasePivotHello(); + message.PublicKey = object.PublicKey ?? Buffer.alloc(0); + message.PeerID = object.PeerID ?? "0"; + message.PublicKeySignature = object.PublicKeySignature ?? ""; + message.SessionKey = object.SessionKey ?? Buffer.alloc(0); + return message; + }, +}; + +function createBasePivotServerKeyExchange(): PivotServerKeyExchange { + return { OriginID: "0", SessionKey: Buffer.alloc(0) }; +} + +export const PivotServerKeyExchange: MessageFns = { + encode(message: PivotServerKeyExchange, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.OriginID !== "0") { + writer.uint32(8).int64(message.OriginID); + } + if (message.SessionKey.length !== 0) { + writer.uint32(18).bytes(message.SessionKey); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotServerKeyExchange { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotServerKeyExchange(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.OriginID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.SessionKey = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotServerKeyExchange { + return { + OriginID: isSet(object.OriginID) ? globalThis.String(object.OriginID) : "0", + SessionKey: isSet(object.SessionKey) ? Buffer.from(bytesFromBase64(object.SessionKey)) : Buffer.alloc(0), + }; + }, + + toJSON(message: PivotServerKeyExchange): unknown { + const obj: any = {}; + if (message.OriginID !== "0") { + obj.OriginID = message.OriginID; + } + if (message.SessionKey.length !== 0) { + obj.SessionKey = base64FromBytes(message.SessionKey); + } + return obj; + }, + + create(base?: DeepPartial): PivotServerKeyExchange { + return PivotServerKeyExchange.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotServerKeyExchange { + const message = createBasePivotServerKeyExchange(); + message.OriginID = object.OriginID ?? "0"; + message.SessionKey = object.SessionKey ?? Buffer.alloc(0); + return message; + }, +}; + +function createBasePivotPeer(): PivotPeer { + return { PeerID: "0", Name: "" }; +} + +export const PivotPeer: MessageFns = { + encode(message: PivotPeer, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PeerID !== "0") { + writer.uint32(8).int64(message.PeerID); + } + if (message.Name !== "") { + writer.uint32(18).string(message.Name); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotPeer { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotPeer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Name = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotPeer { + return { + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + }; + }, + + toJSON(message: PivotPeer): unknown { + const obj: any = {}; + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.Name !== "") { + obj.Name = message.Name; + } + return obj; + }, + + create(base?: DeepPartial): PivotPeer { + return PivotPeer.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotPeer { + const message = createBasePivotPeer(); + message.PeerID = object.PeerID ?? "0"; + message.Name = object.Name ?? ""; + return message; + }, +}; + +function createBasePivotPeerEnvelope(): PivotPeerEnvelope { + return { Peers: [], Type: 0, PivotSessionID: Buffer.alloc(0), Data: Buffer.alloc(0), PeerFailureAt: "0" }; +} + +export const PivotPeerEnvelope: MessageFns = { + encode(message: PivotPeerEnvelope, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Peers) { + PivotPeer.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Type !== 0) { + writer.uint32(16).uint32(message.Type); + } + if (message.PivotSessionID.length !== 0) { + writer.uint32(26).bytes(message.PivotSessionID); + } + if (message.Data.length !== 0) { + writer.uint32(34).bytes(message.Data); + } + if (message.PeerFailureAt !== "0") { + writer.uint32(40).int64(message.PeerFailureAt); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotPeerEnvelope { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotPeerEnvelope(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Peers.push(PivotPeer.decode(reader, reader.uint32())); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Type = reader.uint32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.PivotSessionID = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.PeerFailureAt = reader.int64().toString(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotPeerEnvelope { + return { + Peers: globalThis.Array.isArray(object?.Peers) ? object.Peers.map((e: any) => PivotPeer.fromJSON(e)) : [], + Type: isSet(object.Type) ? globalThis.Number(object.Type) : 0, + PivotSessionID: isSet(object.PivotSessionID) + ? Buffer.from(bytesFromBase64(object.PivotSessionID)) + : Buffer.alloc(0), + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + PeerFailureAt: isSet(object.PeerFailureAt) ? globalThis.String(object.PeerFailureAt) : "0", + }; + }, + + toJSON(message: PivotPeerEnvelope): unknown { + const obj: any = {}; + if (message.Peers?.length) { + obj.Peers = message.Peers.map((e) => PivotPeer.toJSON(e)); + } + if (message.Type !== 0) { + obj.Type = Math.round(message.Type); + } + if (message.PivotSessionID.length !== 0) { + obj.PivotSessionID = base64FromBytes(message.PivotSessionID); + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.PeerFailureAt !== "0") { + obj.PeerFailureAt = message.PeerFailureAt; + } + return obj; + }, + + create(base?: DeepPartial): PivotPeerEnvelope { + return PivotPeerEnvelope.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotPeerEnvelope { + const message = createBasePivotPeerEnvelope(); + message.Peers = object.Peers?.map((e) => PivotPeer.fromPartial(e)) || []; + message.Type = object.Type ?? 0; + message.PivotSessionID = object.PivotSessionID ?? Buffer.alloc(0); + message.Data = object.Data ?? Buffer.alloc(0); + message.PeerFailureAt = object.PeerFailureAt ?? "0"; + return message; + }, +}; + +function createBasePivotPing(): PivotPing { + return { Nonce: 0 }; +} + +export const PivotPing: MessageFns = { + encode(message: PivotPing, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Nonce !== 0) { + writer.uint32(8).uint32(message.Nonce); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotPing { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotPing(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Nonce = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotPing { + return { Nonce: isSet(object.Nonce) ? globalThis.Number(object.Nonce) : 0 }; + }, + + toJSON(message: PivotPing): unknown { + const obj: any = {}; + if (message.Nonce !== 0) { + obj.Nonce = Math.round(message.Nonce); + } + return obj; + }, + + create(base?: DeepPartial): PivotPing { + return PivotPing.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotPing { + const message = createBasePivotPing(); + message.Nonce = object.Nonce ?? 0; + return message; + }, +}; + +function createBaseNetConnPivot(): NetConnPivot { + return { PeerID: "0", RemoteAddress: "" }; +} + +export const NetConnPivot: MessageFns = { + encode(message: NetConnPivot, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PeerID !== "0") { + writer.uint32(8).int64(message.PeerID); + } + if (message.RemoteAddress !== "") { + writer.uint32(18).string(message.RemoteAddress); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): NetConnPivot { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseNetConnPivot(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.RemoteAddress = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): NetConnPivot { + return { + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + RemoteAddress: isSet(object.RemoteAddress) ? globalThis.String(object.RemoteAddress) : "", + }; + }, + + toJSON(message: NetConnPivot): unknown { + const obj: any = {}; + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.RemoteAddress !== "") { + obj.RemoteAddress = message.RemoteAddress; + } + return obj; + }, + + create(base?: DeepPartial): NetConnPivot { + return NetConnPivot.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): NetConnPivot { + const message = createBaseNetConnPivot(); + message.PeerID = object.PeerID ?? "0"; + message.RemoteAddress = object.RemoteAddress ?? ""; + return message; + }, +}; + +function createBasePivotPeerFailure(): PivotPeerFailure { + return { PeerID: "0", Type: 0, Err: "" }; +} + +export const PivotPeerFailure: MessageFns = { + encode(message: PivotPeerFailure, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PeerID !== "0") { + writer.uint32(8).int64(message.PeerID); + } + if (message.Type !== 0) { + writer.uint32(16).int32(message.Type); + } + if (message.Err !== "") { + writer.uint32(26).string(message.Err); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotPeerFailure { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotPeerFailure(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.PeerID = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Type = reader.int32() as any; + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Err = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotPeerFailure { + return { + PeerID: isSet(object.PeerID) ? globalThis.String(object.PeerID) : "0", + Type: isSet(object.Type) ? peerFailureTypeFromJSON(object.Type) : 0, + Err: isSet(object.Err) ? globalThis.String(object.Err) : "", + }; + }, + + toJSON(message: PivotPeerFailure): unknown { + const obj: any = {}; + if (message.PeerID !== "0") { + obj.PeerID = message.PeerID; + } + if (message.Type !== 0) { + obj.Type = peerFailureTypeToJSON(message.Type); + } + if (message.Err !== "") { + obj.Err = message.Err; + } + return obj; + }, + + create(base?: DeepPartial): PivotPeerFailure { + return PivotPeerFailure.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotPeerFailure { + const message = createBasePivotPeerFailure(); + message.PeerID = object.PeerID ?? "0"; + message.Type = object.Type ?? 0; + message.Err = object.Err ?? ""; + return message; + }, +}; + +function createBasePivotListenersReq(): PivotListenersReq { + return { Request: undefined }; +} + +export const PivotListenersReq: MessageFns = { + encode(message: PivotListenersReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotListenersReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotListenersReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotListenersReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: PivotListenersReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PivotListenersReq { + return PivotListenersReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotListenersReq { + const message = createBasePivotListenersReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePivotListeners(): PivotListeners { + return { Listeners: [], Response: undefined }; +} + +export const PivotListeners: MessageFns = { + encode(message: PivotListeners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Listeners) { + PivotListener.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PivotListeners { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePivotListeners(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Listeners.push(PivotListener.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PivotListeners { + return { + Listeners: globalThis.Array.isArray(object?.Listeners) + ? object.Listeners.map((e: any) => PivotListener.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: PivotListeners): unknown { + const obj: any = {}; + if (message.Listeners?.length) { + obj.Listeners = message.Listeners.map((e) => PivotListener.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): PivotListeners { + return PivotListeners.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PivotListeners { + const message = createBasePivotListeners(); + message.Listeners = object.Listeners?.map((e) => PivotListener.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseWGPortForwardStartReq(): WGPortForwardStartReq { + return { LocalPort: 0, RemoteAddress: "", Request: undefined }; +} + +export const WGPortForwardStartReq: MessageFns = { + encode(message: WGPortForwardStartReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.LocalPort !== 0) { + writer.uint32(8).int32(message.LocalPort); + } + if (message.RemoteAddress !== "") { + writer.uint32(18).string(message.RemoteAddress); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGPortForwardStartReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGPortForwardStartReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.LocalPort = reader.int32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.RemoteAddress = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGPortForwardStartReq { + return { + LocalPort: isSet(object.LocalPort) ? globalThis.Number(object.LocalPort) : 0, + RemoteAddress: isSet(object.RemoteAddress) ? globalThis.String(object.RemoteAddress) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: WGPortForwardStartReq): unknown { + const obj: any = {}; + if (message.LocalPort !== 0) { + obj.LocalPort = Math.round(message.LocalPort); + } + if (message.RemoteAddress !== "") { + obj.RemoteAddress = message.RemoteAddress; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGPortForwardStartReq { + return WGPortForwardStartReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGPortForwardStartReq { + const message = createBaseWGPortForwardStartReq(); + message.LocalPort = object.LocalPort ?? 0; + message.RemoteAddress = object.RemoteAddress ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGPortForward(): WGPortForward { + return { Forwarder: undefined, Response: undefined }; +} + +export const WGPortForward: MessageFns = { + encode(message: WGPortForward, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Forwarder !== undefined) { + WGTCPForwarder.encode(message.Forwarder, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGPortForward { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGPortForward(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Forwarder = WGTCPForwarder.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGPortForward { + return { + Forwarder: isSet(object.Forwarder) ? WGTCPForwarder.fromJSON(object.Forwarder) : undefined, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: WGPortForward): unknown { + const obj: any = {}; + if (message.Forwarder !== undefined) { + obj.Forwarder = WGTCPForwarder.toJSON(message.Forwarder); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): WGPortForward { + return WGPortForward.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGPortForward { + const message = createBaseWGPortForward(); + message.Forwarder = (object.Forwarder !== undefined && object.Forwarder !== null) + ? WGTCPForwarder.fromPartial(object.Forwarder) + : undefined; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseWGPortForwardStopReq(): WGPortForwardStopReq { + return { ID: 0, Request: undefined }; +} + +export const WGPortForwardStopReq: MessageFns = { + encode(message: WGPortForwardStopReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).int32(message.ID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGPortForwardStopReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGPortForwardStopReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGPortForwardStopReq { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: WGPortForwardStopReq): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGPortForwardStopReq { + return WGPortForwardStopReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGPortForwardStopReq { + const message = createBaseWGPortForwardStopReq(); + message.ID = object.ID ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGSocksStartReq(): WGSocksStartReq { + return { Port: 0, Request: undefined }; +} + +export const WGSocksStartReq: MessageFns = { + encode(message: WGSocksStartReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Port !== 0) { + writer.uint32(8).int32(message.Port); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocksStartReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocksStartReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocksStartReq { + return { + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: WGSocksStartReq): unknown { + const obj: any = {}; + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGSocksStartReq { + return WGSocksStartReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocksStartReq { + const message = createBaseWGSocksStartReq(); + message.Port = object.Port ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGSocks(): WGSocks { + return { Server: undefined, Response: undefined }; +} + +export const WGSocks: MessageFns = { + encode(message: WGSocks, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Server !== undefined) { + WGSocksServer.encode(message.Server, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocks { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocks(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Server = WGSocksServer.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocks { + return { + Server: isSet(object.Server) ? WGSocksServer.fromJSON(object.Server) : undefined, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: WGSocks): unknown { + const obj: any = {}; + if (message.Server !== undefined) { + obj.Server = WGSocksServer.toJSON(message.Server); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): WGSocks { + return WGSocks.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocks { + const message = createBaseWGSocks(); + message.Server = (object.Server !== undefined && object.Server !== null) + ? WGSocksServer.fromPartial(object.Server) + : undefined; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseWGSocksStopReq(): WGSocksStopReq { + return { ID: 0, Request: undefined }; +} + +export const WGSocksStopReq: MessageFns = { + encode(message: WGSocksStopReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).int32(message.ID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocksStopReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocksStopReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.int32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocksStopReq { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: WGSocksStopReq): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGSocksStopReq { + return WGSocksStopReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocksStopReq { + const message = createBaseWGSocksStopReq(); + message.ID = object.ID ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGTCPForwardersReq(): WGTCPForwardersReq { + return { Request: undefined }; +} + +export const WGTCPForwardersReq: MessageFns = { + encode(message: WGTCPForwardersReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGTCPForwardersReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGTCPForwardersReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGTCPForwardersReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: WGTCPForwardersReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGTCPForwardersReq { + return WGTCPForwardersReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGTCPForwardersReq { + const message = createBaseWGTCPForwardersReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGSocksServersReq(): WGSocksServersReq { + return { Request: undefined }; +} + +export const WGSocksServersReq: MessageFns = { + encode(message: WGSocksServersReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocksServersReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocksServersReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocksServersReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: WGSocksServersReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): WGSocksServersReq { + return WGSocksServersReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocksServersReq { + const message = createBaseWGSocksServersReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWGTCPForwarder(): WGTCPForwarder { + return { ID: 0, LocalAddr: "", RemoteAddr: "" }; +} + +export const WGTCPForwarder: MessageFns = { + encode(message: WGTCPForwarder, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).int32(message.ID); + } + if (message.LocalAddr !== "") { + writer.uint32(18).string(message.LocalAddr); + } + if (message.RemoteAddr !== "") { + writer.uint32(26).string(message.RemoteAddr); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGTCPForwarder { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGTCPForwarder(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.int32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.LocalAddr = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.RemoteAddr = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGTCPForwarder { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + LocalAddr: isSet(object.LocalAddr) ? globalThis.String(object.LocalAddr) : "", + RemoteAddr: isSet(object.RemoteAddr) ? globalThis.String(object.RemoteAddr) : "", + }; + }, + + toJSON(message: WGTCPForwarder): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.LocalAddr !== "") { + obj.LocalAddr = message.LocalAddr; + } + if (message.RemoteAddr !== "") { + obj.RemoteAddr = message.RemoteAddr; + } + return obj; + }, + + create(base?: DeepPartial): WGTCPForwarder { + return WGTCPForwarder.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGTCPForwarder { + const message = createBaseWGTCPForwarder(); + message.ID = object.ID ?? 0; + message.LocalAddr = object.LocalAddr ?? ""; + message.RemoteAddr = object.RemoteAddr ?? ""; + return message; + }, +}; + +function createBaseWGSocksServer(): WGSocksServer { + return { ID: 0, LocalAddr: "" }; +} + +export const WGSocksServer: MessageFns = { + encode(message: WGSocksServer, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).int32(message.ID); + } + if (message.LocalAddr !== "") { + writer.uint32(18).string(message.LocalAddr); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocksServer { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocksServer(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.int32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.LocalAddr = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocksServer { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + LocalAddr: isSet(object.LocalAddr) ? globalThis.String(object.LocalAddr) : "", + }; + }, + + toJSON(message: WGSocksServer): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.LocalAddr !== "") { + obj.LocalAddr = message.LocalAddr; + } + return obj; + }, + + create(base?: DeepPartial): WGSocksServer { + return WGSocksServer.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocksServer { + const message = createBaseWGSocksServer(); + message.ID = object.ID ?? 0; + message.LocalAddr = object.LocalAddr ?? ""; + return message; + }, +}; + +function createBaseWGSocksServers(): WGSocksServers { + return { Servers: [], Response: undefined }; +} + +export const WGSocksServers: MessageFns = { + encode(message: WGSocksServers, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Servers) { + WGSocksServer.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGSocksServers { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGSocksServers(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Servers.push(WGSocksServer.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGSocksServers { + return { + Servers: globalThis.Array.isArray(object?.Servers) + ? object.Servers.map((e: any) => WGSocksServer.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: WGSocksServers): unknown { + const obj: any = {}; + if (message.Servers?.length) { + obj.Servers = message.Servers.map((e) => WGSocksServer.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): WGSocksServers { + return WGSocksServers.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGSocksServers { + const message = createBaseWGSocksServers(); + message.Servers = object.Servers?.map((e) => WGSocksServer.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseWGTCPForwarders(): WGTCPForwarders { + return { Forwarders: [], Response: undefined }; +} + +export const WGTCPForwarders: MessageFns = { + encode(message: WGTCPForwarders, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Forwarders) { + WGTCPForwarder.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WGTCPForwarders { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWGTCPForwarders(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Forwarders.push(WGTCPForwarder.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WGTCPForwarders { + return { + Forwarders: globalThis.Array.isArray(object?.Forwarders) + ? object.Forwarders.map((e: any) => WGTCPForwarder.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: WGTCPForwarders): unknown { + const obj: any = {}; + if (message.Forwarders?.length) { + obj.Forwarders = message.Forwarders.map((e) => WGTCPForwarder.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): WGTCPForwarders { + return WGTCPForwarders.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WGTCPForwarders { + const message = createBaseWGTCPForwarders(); + message.Forwarders = object.Forwarders?.map((e) => WGTCPForwarder.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseReconfigureReq(): ReconfigureReq { + return { ReconnectInterval: "0", BeaconInterval: "0", BeaconJitter: "0", Request: undefined }; +} + +export const ReconfigureReq: MessageFns = { + encode(message: ReconfigureReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ReconnectInterval !== "0") { + writer.uint32(8).int64(message.ReconnectInterval); + } + if (message.BeaconInterval !== "0") { + writer.uint32(16).int64(message.BeaconInterval); + } + if (message.BeaconJitter !== "0") { + writer.uint32(24).int64(message.BeaconJitter); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ReconfigureReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseReconfigureReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ReconnectInterval = reader.int64().toString(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.BeaconInterval = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.BeaconJitter = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ReconfigureReq { + return { + ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", + BeaconInterval: isSet(object.BeaconInterval) ? globalThis.String(object.BeaconInterval) : "0", + BeaconJitter: isSet(object.BeaconJitter) ? globalThis.String(object.BeaconJitter) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ReconfigureReq): unknown { + const obj: any = {}; + if (message.ReconnectInterval !== "0") { + obj.ReconnectInterval = message.ReconnectInterval; + } + if (message.BeaconInterval !== "0") { + obj.BeaconInterval = message.BeaconInterval; + } + if (message.BeaconJitter !== "0") { + obj.BeaconJitter = message.BeaconJitter; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ReconfigureReq { + return ReconfigureReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ReconfigureReq { + const message = createBaseReconfigureReq(); + message.ReconnectInterval = object.ReconnectInterval ?? "0"; + message.BeaconInterval = object.BeaconInterval ?? "0"; + message.BeaconJitter = object.BeaconJitter ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseReconfigure(): Reconfigure { + return { Response: undefined }; +} + +export const Reconfigure: MessageFns = { + encode(message: Reconfigure, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Reconfigure { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseReconfigure(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Reconfigure { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: Reconfigure): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Reconfigure { + return Reconfigure.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Reconfigure { + const message = createBaseReconfigure(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBasePollIntervalReq(): PollIntervalReq { + return { PollInterval: "0", Request: undefined }; +} + +export const PollIntervalReq: MessageFns = { + encode(message: PollIntervalReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PollInterval !== "0") { + writer.uint32(8).int64(message.PollInterval); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PollIntervalReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePollIntervalReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.PollInterval = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PollIntervalReq { + return { + PollInterval: isSet(object.PollInterval) ? globalThis.String(object.PollInterval) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: PollIntervalReq): unknown { + const obj: any = {}; + if (message.PollInterval !== "0") { + obj.PollInterval = message.PollInterval; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): PollIntervalReq { + return PollIntervalReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PollIntervalReq { + const message = createBasePollIntervalReq(); + message.PollInterval = object.PollInterval ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBasePollInterval(): PollInterval { + return { Response: undefined }; +} + +export const PollInterval: MessageFns = { + encode(message: PollInterval, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PollInterval { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePollInterval(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PollInterval { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: PollInterval): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): PollInterval { + return PollInterval.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PollInterval { + const message = createBasePollInterval(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseSSHCommandReq(): SSHCommandReq { + return { + Username: "", + Hostname: "", + Port: 0, + Command: "", + Password: "", + PrivKey: Buffer.alloc(0), + Krb5Conf: "", + Keytab: Buffer.alloc(0), + Realm: "", + Request: undefined, + }; +} + +export const SSHCommandReq: MessageFns = { + encode(message: SSHCommandReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Username !== "") { + writer.uint32(10).string(message.Username); + } + if (message.Hostname !== "") { + writer.uint32(18).string(message.Hostname); + } + if (message.Port !== 0) { + writer.uint32(24).uint32(message.Port); + } + if (message.Command !== "") { + writer.uint32(34).string(message.Command); + } + if (message.Password !== "") { + writer.uint32(42).string(message.Password); + } + if (message.PrivKey.length !== 0) { + writer.uint32(50).bytes(message.PrivKey); + } + if (message.Krb5Conf !== "") { + writer.uint32(58).string(message.Krb5Conf); + } + if (message.Keytab.length !== 0) { + writer.uint32(66).bytes(message.Keytab); + } + if (message.Realm !== "") { + writer.uint32(82).string(message.Realm); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SSHCommandReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSSHCommandReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Username = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Command = reader.string(); + continue; + } + case 5: { + if (tag !== 42) { + break; + } + + message.Password = reader.string(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.PrivKey = Buffer.from(reader.bytes()); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Krb5Conf = reader.string(); + continue; + } + case 8: { + if (tag !== 66) { + break; + } + + message.Keytab = Buffer.from(reader.bytes()); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.Realm = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SSHCommandReq { + return { + Username: isSet(object.Username) ? globalThis.String(object.Username) : "", + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Command: isSet(object.Command) ? globalThis.String(object.Command) : "", + Password: isSet(object.Password) ? globalThis.String(object.Password) : "", + PrivKey: isSet(object.PrivKey) ? Buffer.from(bytesFromBase64(object.PrivKey)) : Buffer.alloc(0), + Krb5Conf: isSet(object.Krb5Conf) ? globalThis.String(object.Krb5Conf) : "", + Keytab: isSet(object.Keytab) ? Buffer.from(bytesFromBase64(object.Keytab)) : Buffer.alloc(0), + Realm: isSet(object.Realm) ? globalThis.String(object.Realm) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: SSHCommandReq): unknown { + const obj: any = {}; + if (message.Username !== "") { + obj.Username = message.Username; + } + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Command !== "") { + obj.Command = message.Command; + } + if (message.Password !== "") { + obj.Password = message.Password; + } + if (message.PrivKey.length !== 0) { + obj.PrivKey = base64FromBytes(message.PrivKey); + } + if (message.Krb5Conf !== "") { + obj.Krb5Conf = message.Krb5Conf; + } + if (message.Keytab.length !== 0) { + obj.Keytab = base64FromBytes(message.Keytab); + } + if (message.Realm !== "") { + obj.Realm = message.Realm; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): SSHCommandReq { + return SSHCommandReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SSHCommandReq { + const message = createBaseSSHCommandReq(); + message.Username = object.Username ?? ""; + message.Hostname = object.Hostname ?? ""; + message.Port = object.Port ?? 0; + message.Command = object.Command ?? ""; + message.Password = object.Password ?? ""; + message.PrivKey = object.PrivKey ?? Buffer.alloc(0); + message.Krb5Conf = object.Krb5Conf ?? ""; + message.Keytab = object.Keytab ?? Buffer.alloc(0); + message.Realm = object.Realm ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseSSHCommand(): SSHCommand { + return { StdOut: "", StdErr: "", Response: undefined }; +} + +export const SSHCommand: MessageFns = { + encode(message: SSHCommand, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.StdOut !== "") { + writer.uint32(10).string(message.StdOut); + } + if (message.StdErr !== "") { + writer.uint32(18).string(message.StdErr); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SSHCommand { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSSHCommand(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.StdOut = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.StdErr = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SSHCommand { + return { + StdOut: isSet(object.StdOut) ? globalThis.String(object.StdOut) : "", + StdErr: isSet(object.StdErr) ? globalThis.String(object.StdErr) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: SSHCommand): unknown { + const obj: any = {}; + if (message.StdOut !== "") { + obj.StdOut = message.StdOut; + } + if (message.StdErr !== "") { + obj.StdErr = message.StdErr; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): SSHCommand { + return SSHCommand.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SSHCommand { + const message = createBaseSSHCommand(); + message.StdOut = object.StdOut ?? ""; + message.StdErr = object.StdErr ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseGetPrivsReq(): GetPrivsReq { + return { Request: undefined }; +} + +export const GetPrivsReq: MessageFns = { + encode(message: GetPrivsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GetPrivsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetPrivsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetPrivsReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: GetPrivsReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): GetPrivsReq { + return GetPrivsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetPrivsReq { + const message = createBaseGetPrivsReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseWindowsPrivilegeEntry(): WindowsPrivilegeEntry { + return { Name: "", Description: "", Enabled: false, EnabledByDefault: false, Removed: false, UsedForAccess: false }; +} + +export const WindowsPrivilegeEntry: MessageFns = { + encode(message: WindowsPrivilegeEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Description !== "") { + writer.uint32(18).string(message.Description); + } + if (message.Enabled !== false) { + writer.uint32(24).bool(message.Enabled); + } + if (message.EnabledByDefault !== false) { + writer.uint32(32).bool(message.EnabledByDefault); + } + if (message.Removed !== false) { + writer.uint32(40).bool(message.Removed); + } + if (message.UsedForAccess !== false) { + writer.uint32(48).bool(message.UsedForAccess); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): WindowsPrivilegeEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseWindowsPrivilegeEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Description = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Enabled = reader.bool(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.EnabledByDefault = reader.bool(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Removed = reader.bool(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.UsedForAccess = reader.bool(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): WindowsPrivilegeEntry { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Description: isSet(object.Description) ? globalThis.String(object.Description) : "", + Enabled: isSet(object.Enabled) ? globalThis.Boolean(object.Enabled) : false, + EnabledByDefault: isSet(object.EnabledByDefault) ? globalThis.Boolean(object.EnabledByDefault) : false, + Removed: isSet(object.Removed) ? globalThis.Boolean(object.Removed) : false, + UsedForAccess: isSet(object.UsedForAccess) ? globalThis.Boolean(object.UsedForAccess) : false, + }; + }, + + toJSON(message: WindowsPrivilegeEntry): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Description !== "") { + obj.Description = message.Description; + } + if (message.Enabled !== false) { + obj.Enabled = message.Enabled; + } + if (message.EnabledByDefault !== false) { + obj.EnabledByDefault = message.EnabledByDefault; + } + if (message.Removed !== false) { + obj.Removed = message.Removed; + } + if (message.UsedForAccess !== false) { + obj.UsedForAccess = message.UsedForAccess; + } + return obj; + }, + + create(base?: DeepPartial): WindowsPrivilegeEntry { + return WindowsPrivilegeEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): WindowsPrivilegeEntry { + const message = createBaseWindowsPrivilegeEntry(); + message.Name = object.Name ?? ""; + message.Description = object.Description ?? ""; + message.Enabled = object.Enabled ?? false; + message.EnabledByDefault = object.EnabledByDefault ?? false; + message.Removed = object.Removed ?? false; + message.UsedForAccess = object.UsedForAccess ?? false; + return message; + }, +}; + +function createBaseGetPrivs(): GetPrivs { + return { PrivInfo: [], ProcessIntegrity: "", ProcessName: "", Response: undefined }; +} + +export const GetPrivs: MessageFns = { + encode(message: GetPrivs, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.PrivInfo) { + WindowsPrivilegeEntry.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.ProcessIntegrity !== "") { + writer.uint32(18).string(message.ProcessIntegrity); + } + if (message.ProcessName !== "") { + writer.uint32(26).string(message.ProcessName); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GetPrivs { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGetPrivs(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.PrivInfo.push(WindowsPrivilegeEntry.decode(reader, reader.uint32())); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ProcessIntegrity = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ProcessName = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GetPrivs { + return { + PrivInfo: globalThis.Array.isArray(object?.PrivInfo) + ? object.PrivInfo.map((e: any) => WindowsPrivilegeEntry.fromJSON(e)) + : [], + ProcessIntegrity: isSet(object.ProcessIntegrity) ? globalThis.String(object.ProcessIntegrity) : "", + ProcessName: isSet(object.ProcessName) ? globalThis.String(object.ProcessName) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: GetPrivs): unknown { + const obj: any = {}; + if (message.PrivInfo?.length) { + obj.PrivInfo = message.PrivInfo.map((e) => WindowsPrivilegeEntry.toJSON(e)); + } + if (message.ProcessIntegrity !== "") { + obj.ProcessIntegrity = message.ProcessIntegrity; + } + if (message.ProcessName !== "") { + obj.ProcessName = message.ProcessName; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): GetPrivs { + return GetPrivs.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GetPrivs { + const message = createBaseGetPrivs(); + message.PrivInfo = object.PrivInfo?.map((e) => WindowsPrivilegeEntry.fromPartial(e)) || []; + message.ProcessIntegrity = object.ProcessIntegrity ?? ""; + message.ProcessName = object.ProcessName ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegisterExtensionReq(): RegisterExtensionReq { + return { Name: "", Data: Buffer.alloc(0), OS: "", Init: "", Request: undefined }; +} + +export const RegisterExtensionReq: MessageFns = { + encode(message: RegisterExtensionReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Data.length !== 0) { + writer.uint32(18).bytes(message.Data); + } + if (message.OS !== "") { + writer.uint32(26).string(message.OS); + } + if (message.Init !== "") { + writer.uint32(34).string(message.Init); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegisterExtensionReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegisterExtensionReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.OS = reader.string(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Init = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegisterExtensionReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + OS: isSet(object.OS) ? globalThis.String(object.OS) : "", + Init: isSet(object.Init) ? globalThis.String(object.Init) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegisterExtensionReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + if (message.OS !== "") { + obj.OS = message.OS; + } + if (message.Init !== "") { + obj.Init = message.Init; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegisterExtensionReq { + return RegisterExtensionReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegisterExtensionReq { + const message = createBaseRegisterExtensionReq(); + message.Name = object.Name ?? ""; + message.Data = object.Data ?? Buffer.alloc(0); + message.OS = object.OS ?? ""; + message.Init = object.Init ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegisterExtension(): RegisterExtension { + return { Response: undefined }; +} + +export const RegisterExtension: MessageFns = { + encode(message: RegisterExtension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegisterExtension { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegisterExtension(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegisterExtension { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RegisterExtension): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegisterExtension { + return RegisterExtension.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegisterExtension { + const message = createBaseRegisterExtension(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseCallExtensionReq(): CallExtensionReq { + return { Name: "", ServerStore: false, Args: Buffer.alloc(0), Export: "", Request: undefined }; +} + +export const CallExtensionReq: MessageFns = { + encode(message: CallExtensionReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.ServerStore !== false) { + writer.uint32(16).bool(message.ServerStore); + } + if (message.Args.length !== 0) { + writer.uint32(26).bytes(message.Args); + } + if (message.Export !== "") { + writer.uint32(34).string(message.Export); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CallExtensionReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCallExtensionReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.ServerStore = reader.bool(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Args = Buffer.from(reader.bytes()); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.Export = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CallExtensionReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + ServerStore: isSet(object.ServerStore) ? globalThis.Boolean(object.ServerStore) : false, + Args: isSet(object.Args) ? Buffer.from(bytesFromBase64(object.Args)) : Buffer.alloc(0), + Export: isSet(object.Export) ? globalThis.String(object.Export) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: CallExtensionReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.ServerStore !== false) { + obj.ServerStore = message.ServerStore; + } + if (message.Args.length !== 0) { + obj.Args = base64FromBytes(message.Args); + } + if (message.Export !== "") { + obj.Export = message.Export; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): CallExtensionReq { + return CallExtensionReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CallExtensionReq { + const message = createBaseCallExtensionReq(); + message.Name = object.Name ?? ""; + message.ServerStore = object.ServerStore ?? false; + message.Args = object.Args ?? Buffer.alloc(0); + message.Export = object.Export ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseCallExtension(): CallExtension { + return { Output: Buffer.alloc(0), ServerStore: false, Response: undefined }; +} + +export const CallExtension: MessageFns = { + encode(message: CallExtension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Output.length !== 0) { + writer.uint32(10).bytes(message.Output); + } + if (message.ServerStore !== false) { + writer.uint32(16).bool(message.ServerStore); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): CallExtension { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseCallExtension(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Output = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.ServerStore = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): CallExtension { + return { + Output: isSet(object.Output) ? Buffer.from(bytesFromBase64(object.Output)) : Buffer.alloc(0), + ServerStore: isSet(object.ServerStore) ? globalThis.Boolean(object.ServerStore) : false, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: CallExtension): unknown { + const obj: any = {}; + if (message.Output.length !== 0) { + obj.Output = base64FromBytes(message.Output); + } + if (message.ServerStore !== false) { + obj.ServerStore = message.ServerStore; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): CallExtension { + return CallExtension.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): CallExtension { + const message = createBaseCallExtension(); + message.Output = object.Output ?? Buffer.alloc(0); + message.ServerStore = object.ServerStore ?? false; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseListExtensionsReq(): ListExtensionsReq { + return { Request: undefined }; +} + +export const ListExtensionsReq: MessageFns = { + encode(message: ListExtensionsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ListExtensionsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListExtensionsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListExtensionsReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: ListExtensionsReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ListExtensionsReq { + return ListExtensionsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ListExtensionsReq { + const message = createBaseListExtensionsReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseListExtensions(): ListExtensions { + return { Names: [], Response: undefined }; +} + +export const ListExtensions: MessageFns = { + encode(message: ListExtensions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Names) { + writer.uint32(10).string(v!); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ListExtensions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListExtensions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Names.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListExtensions { + return { + Names: globalThis.Array.isArray(object?.Names) ? object.Names.map((e: any) => globalThis.String(e)) : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ListExtensions): unknown { + const obj: any = {}; + if (message.Names?.length) { + obj.Names = message.Names; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ListExtensions { + return ListExtensions.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ListExtensions { + const message = createBaseListExtensions(); + message.Names = object.Names?.map((e) => e) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRportFwdStopListenerReq(): RportFwdStopListenerReq { + return { ID: 0, Request: undefined }; +} + +export const RportFwdStopListenerReq: MessageFns = { + encode(message: RportFwdStopListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RportFwdStopListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRportFwdStopListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RportFwdStopListenerReq { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RportFwdStopListenerReq): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RportFwdStopListenerReq { + return RportFwdStopListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RportFwdStopListenerReq { + const message = createBaseRportFwdStopListenerReq(); + message.ID = object.ID ?? 0; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRportFwdStartListenerReq(): RportFwdStartListenerReq { + return { BindAddress: "", BindPort: 0, ForwardPort: 0, ForwardAddress: "", Request: undefined }; +} + +export const RportFwdStartListenerReq: MessageFns = { + encode(message: RportFwdStartListenerReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.BindAddress !== "") { + writer.uint32(10).string(message.BindAddress); + } + if (message.BindPort !== 0) { + writer.uint32(16).uint32(message.BindPort); + } + if (message.ForwardPort !== 0) { + writer.uint32(24).uint32(message.ForwardPort); + } + if (message.ForwardAddress !== "") { + writer.uint32(34).string(message.ForwardAddress); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RportFwdStartListenerReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRportFwdStartListenerReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.BindAddress = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.BindPort = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.ForwardPort = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ForwardAddress = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RportFwdStartListenerReq { + return { + BindAddress: isSet(object.BindAddress) ? globalThis.String(object.BindAddress) : "", + BindPort: isSet(object.BindPort) ? globalThis.Number(object.BindPort) : 0, + ForwardPort: isSet(object.ForwardPort) ? globalThis.Number(object.ForwardPort) : 0, + ForwardAddress: isSet(object.ForwardAddress) ? globalThis.String(object.ForwardAddress) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RportFwdStartListenerReq): unknown { + const obj: any = {}; + if (message.BindAddress !== "") { + obj.BindAddress = message.BindAddress; + } + if (message.BindPort !== 0) { + obj.BindPort = Math.round(message.BindPort); + } + if (message.ForwardPort !== 0) { + obj.ForwardPort = Math.round(message.ForwardPort); + } + if (message.ForwardAddress !== "") { + obj.ForwardAddress = message.ForwardAddress; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RportFwdStartListenerReq { + return RportFwdStartListenerReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RportFwdStartListenerReq { + const message = createBaseRportFwdStartListenerReq(); + message.BindAddress = object.BindAddress ?? ""; + message.BindPort = object.BindPort ?? 0; + message.ForwardPort = object.ForwardPort ?? 0; + message.ForwardAddress = object.ForwardAddress ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRportFwdListener(): RportFwdListener { + return { ID: 0, BindAddress: "", BindPort: 0, ForwardAddress: "", ForwardPort: 0, Response: undefined }; +} + +export const RportFwdListener: MessageFns = { + encode(message: RportFwdListener, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ID !== 0) { + writer.uint32(8).uint32(message.ID); + } + if (message.BindAddress !== "") { + writer.uint32(18).string(message.BindAddress); + } + if (message.BindPort !== 0) { + writer.uint32(24).uint32(message.BindPort); + } + if (message.ForwardAddress !== "") { + writer.uint32(34).string(message.ForwardAddress); + } + if (message.ForwardPort !== 0) { + writer.uint32(40).uint32(message.ForwardPort); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RportFwdListener { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRportFwdListener(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.ID = reader.uint32(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.BindAddress = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.BindPort = reader.uint32(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + message.ForwardAddress = reader.string(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.ForwardPort = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RportFwdListener { + return { + ID: isSet(object.ID) ? globalThis.Number(object.ID) : 0, + BindAddress: isSet(object.BindAddress) ? globalThis.String(object.BindAddress) : "", + BindPort: isSet(object.BindPort) ? globalThis.Number(object.BindPort) : 0, + ForwardAddress: isSet(object.ForwardAddress) ? globalThis.String(object.ForwardAddress) : "", + ForwardPort: isSet(object.ForwardPort) ? globalThis.Number(object.ForwardPort) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RportFwdListener): unknown { + const obj: any = {}; + if (message.ID !== 0) { + obj.ID = Math.round(message.ID); + } + if (message.BindAddress !== "") { + obj.BindAddress = message.BindAddress; + } + if (message.BindPort !== 0) { + obj.BindPort = Math.round(message.BindPort); + } + if (message.ForwardAddress !== "") { + obj.ForwardAddress = message.ForwardAddress; + } + if (message.ForwardPort !== 0) { + obj.ForwardPort = Math.round(message.ForwardPort); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RportFwdListener { + return RportFwdListener.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RportFwdListener { + const message = createBaseRportFwdListener(); + message.ID = object.ID ?? 0; + message.BindAddress = object.BindAddress ?? ""; + message.BindPort = object.BindPort ?? 0; + message.ForwardAddress = object.ForwardAddress ?? ""; + message.ForwardPort = object.ForwardPort ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRportFwdListeners(): RportFwdListeners { + return { Listeners: [], Response: undefined }; +} + +export const RportFwdListeners: MessageFns = { + encode(message: RportFwdListeners, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Listeners) { + RportFwdListener.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RportFwdListeners { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRportFwdListeners(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Listeners.push(RportFwdListener.decode(reader, reader.uint32())); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RportFwdListeners { + return { + Listeners: globalThis.Array.isArray(object?.Listeners) + ? object.Listeners.map((e: any) => RportFwdListener.fromJSON(e)) + : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RportFwdListeners): unknown { + const obj: any = {}; + if (message.Listeners?.length) { + obj.Listeners = message.Listeners.map((e) => RportFwdListener.toJSON(e)); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RportFwdListeners { + return RportFwdListeners.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RportFwdListeners { + const message = createBaseRportFwdListeners(); + message.Listeners = object.Listeners?.map((e) => RportFwdListener.fromPartial(e)) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRportFwdListenersReq(): RportFwdListenersReq { + return { Request: undefined }; +} + +export const RportFwdListenersReq: MessageFns = { + encode(message: RportFwdListenersReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RportFwdListenersReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRportFwdListenersReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RportFwdListenersReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: RportFwdListenersReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RportFwdListenersReq { + return RportFwdListenersReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RportFwdListenersReq { + const message = createBaseRportFwdListenersReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRPortfwd(): RPortfwd { + return { Port: 0, Protocol: 0, Host: "", TunnelID: "0", Response: undefined }; +} + +export const RPortfwd: MessageFns = { + encode(message: RPortfwd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Port !== 0) { + writer.uint32(8).uint32(message.Port); + } + if (message.Protocol !== 0) { + writer.uint32(16).int32(message.Protocol); + } + if (message.Host !== "") { + writer.uint32(26).string(message.Host); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RPortfwd { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRPortfwd(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Protocol = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Host = reader.string(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RPortfwd { + return { + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Protocol: isSet(object.Protocol) ? globalThis.Number(object.Protocol) : 0, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: RPortfwd): unknown { + const obj: any = {}; + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Protocol !== 0) { + obj.Protocol = Math.round(message.Protocol); + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RPortfwd { + return RPortfwd.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RPortfwd { + const message = createBaseRPortfwd(); + message.Port = object.Port ?? 0; + message.Protocol = object.Protocol ?? 0; + message.Host = object.Host ?? ""; + message.TunnelID = object.TunnelID ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRPortfwdReq(): RPortfwdReq { + return { Port: 0, Protocol: 0, Host: "", TunnelID: "0", Request: undefined }; +} + +export const RPortfwdReq: MessageFns = { + encode(message: RPortfwdReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Port !== 0) { + writer.uint32(8).uint32(message.Port); + } + if (message.Protocol !== 0) { + writer.uint32(16).int32(message.Protocol); + } + if (message.Host !== "") { + writer.uint32(26).string(message.Host); + } + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RPortfwdReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRPortfwdReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Port = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Protocol = reader.int32(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Host = reader.string(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RPortfwdReq { + return { + Port: isSet(object.Port) ? globalThis.Number(object.Port) : 0, + Protocol: isSet(object.Protocol) ? globalThis.Number(object.Protocol) : 0, + Host: isSet(object.Host) ? globalThis.String(object.Host) : "", + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RPortfwdReq): unknown { + const obj: any = {}; + if (message.Port !== 0) { + obj.Port = Math.round(message.Port); + } + if (message.Protocol !== 0) { + obj.Protocol = Math.round(message.Protocol); + } + if (message.Host !== "") { + obj.Host = message.Host; + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RPortfwdReq { + return RPortfwdReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RPortfwdReq { + const message = createBaseRPortfwdReq(); + message.Port = object.Port ?? 0; + message.Protocol = object.Protocol ?? 0; + message.Host = object.Host ?? ""; + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseChmodReq(): ChmodReq { + return { Path: "", FileMode: "", Recursive: false, Request: undefined }; +} + +export const ChmodReq: MessageFns = { + encode(message: ChmodReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.FileMode !== "") { + writer.uint32(18).string(message.FileMode); + } + if (message.Recursive !== false) { + writer.uint32(24).bool(message.Recursive); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ChmodReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChmodReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.FileMode = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Recursive = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ChmodReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + FileMode: isSet(object.FileMode) ? globalThis.String(object.FileMode) : "", + Recursive: isSet(object.Recursive) ? globalThis.Boolean(object.Recursive) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ChmodReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.FileMode !== "") { + obj.FileMode = message.FileMode; + } + if (message.Recursive !== false) { + obj.Recursive = message.Recursive; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ChmodReq { + return ChmodReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ChmodReq { + const message = createBaseChmodReq(); + message.Path = object.Path ?? ""; + message.FileMode = object.FileMode ?? ""; + message.Recursive = object.Recursive ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseChmod(): Chmod { + return { Path: "", Response: undefined }; +} + +export const Chmod: MessageFns = { + encode(message: Chmod, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Chmod { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChmod(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Chmod { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Chmod): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Chmod { + return Chmod.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Chmod { + const message = createBaseChmod(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseChownReq(): ChownReq { + return { Path: "", Uid: "", Gid: "", Recursive: false, Request: undefined }; +} + +export const ChownReq: MessageFns = { + encode(message: ChownReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Uid !== "") { + writer.uint32(18).string(message.Uid); + } + if (message.Gid !== "") { + writer.uint32(26).string(message.Gid); + } + if (message.Recursive !== false) { + writer.uint32(32).bool(message.Recursive); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ChownReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChownReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Uid = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Gid = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Recursive = reader.bool(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ChownReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Uid: isSet(object.Uid) ? globalThis.String(object.Uid) : "", + Gid: isSet(object.Gid) ? globalThis.String(object.Gid) : "", + Recursive: isSet(object.Recursive) ? globalThis.Boolean(object.Recursive) : false, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ChownReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Uid !== "") { + obj.Uid = message.Uid; + } + if (message.Gid !== "") { + obj.Gid = message.Gid; + } + if (message.Recursive !== false) { + obj.Recursive = message.Recursive; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ChownReq { + return ChownReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ChownReq { + const message = createBaseChownReq(); + message.Path = object.Path ?? ""; + message.Uid = object.Uid ?? ""; + message.Gid = object.Gid ?? ""; + message.Recursive = object.Recursive ?? false; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseChown(): Chown { + return { Path: "", Response: undefined }; +} + +export const Chown: MessageFns = { + encode(message: Chown, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Chown { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChown(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Chown { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Chown): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Chown { + return Chown.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Chown { + const message = createBaseChown(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseChtimesReq(): ChtimesReq { + return { Path: "", ATime: "0", MTime: "0", Request: undefined }; +} + +export const ChtimesReq: MessageFns = { + encode(message: ChtimesReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.ATime !== "0") { + writer.uint32(16).int64(message.ATime); + } + if (message.MTime !== "0") { + writer.uint32(24).int64(message.MTime); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ChtimesReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChtimesReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.ATime = reader.int64().toString(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.MTime = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ChtimesReq { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + ATime: isSet(object.ATime) ? globalThis.String(object.ATime) : "0", + MTime: isSet(object.MTime) ? globalThis.String(object.MTime) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ChtimesReq): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.ATime !== "0") { + obj.ATime = message.ATime; + } + if (message.MTime !== "0") { + obj.MTime = message.MTime; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ChtimesReq { + return ChtimesReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ChtimesReq { + const message = createBaseChtimesReq(); + message.Path = object.Path ?? ""; + message.ATime = object.ATime ?? "0"; + message.MTime = object.MTime ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseChtimes(): Chtimes { + return { Path: "", Response: undefined }; +} + +export const Chtimes: MessageFns = { + encode(message: Chtimes, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Path !== "") { + writer.uint32(10).string(message.Path); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Chtimes { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseChtimes(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Path = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Chtimes { + return { + Path: isSet(object.Path) ? globalThis.String(object.Path) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Chtimes): unknown { + const obj: any = {}; + if (message.Path !== "") { + obj.Path = message.Path; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Chtimes { + return Chtimes.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Chtimes { + const message = createBaseChtimes(); + message.Path = object.Path ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseMemfilesListReq(): MemfilesListReq { + return { Request: undefined }; +} + +export const MemfilesListReq: MessageFns = { + encode(message: MemfilesListReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MemfilesListReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemfilesListReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MemfilesListReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: MemfilesListReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MemfilesListReq { + return MemfilesListReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MemfilesListReq { + const message = createBaseMemfilesListReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMemfilesAddReq(): MemfilesAddReq { + return { Request: undefined }; +} + +export const MemfilesAddReq: MessageFns = { + encode(message: MemfilesAddReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MemfilesAddReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemfilesAddReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MemfilesAddReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: MemfilesAddReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MemfilesAddReq { + return MemfilesAddReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MemfilesAddReq { + const message = createBaseMemfilesAddReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMemfilesAdd(): MemfilesAdd { + return { Fd: "0", Response: undefined }; +} + +export const MemfilesAdd: MessageFns = { + encode(message: MemfilesAdd, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Fd !== "0") { + writer.uint32(8).int64(message.Fd); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MemfilesAdd { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemfilesAdd(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Fd = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MemfilesAdd { + return { + Fd: isSet(object.Fd) ? globalThis.String(object.Fd) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: MemfilesAdd): unknown { + const obj: any = {}; + if (message.Fd !== "0") { + obj.Fd = message.Fd; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): MemfilesAdd { + return MemfilesAdd.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MemfilesAdd { + const message = createBaseMemfilesAdd(); + message.Fd = object.Fd ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseMemfilesRmReq(): MemfilesRmReq { + return { Fd: "0", Request: undefined }; +} + +export const MemfilesRmReq: MessageFns = { + encode(message: MemfilesRmReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Fd !== "0") { + writer.uint32(8).int64(message.Fd); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MemfilesRmReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemfilesRmReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Fd = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MemfilesRmReq { + return { + Fd: isSet(object.Fd) ? globalThis.String(object.Fd) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: MemfilesRmReq): unknown { + const obj: any = {}; + if (message.Fd !== "0") { + obj.Fd = message.Fd; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): MemfilesRmReq { + return MemfilesRmReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MemfilesRmReq { + const message = createBaseMemfilesRmReq(); + message.Fd = object.Fd ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseMemfilesRm(): MemfilesRm { + return { Fd: "0", Response: undefined }; +} + +export const MemfilesRm: MessageFns = { + encode(message: MemfilesRm, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Fd !== "0") { + writer.uint32(8).int64(message.Fd); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): MemfilesRm { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseMemfilesRm(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Fd = reader.int64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): MemfilesRm { + return { + Fd: isSet(object.Fd) ? globalThis.String(object.Fd) : "0", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: MemfilesRm): unknown { + const obj: any = {}; + if (message.Fd !== "0") { + obj.Fd = message.Fd; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): MemfilesRm { + return MemfilesRm.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): MemfilesRm { + const message = createBaseMemfilesRm(); + message.Fd = object.Fd ?? "0"; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseRegisterWasmExtensionReq(): RegisterWasmExtensionReq { + return { Name: "", WasmGz: Buffer.alloc(0), Request: undefined }; +} + +export const RegisterWasmExtensionReq: MessageFns = { + encode(message: RegisterWasmExtensionReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.WasmGz.length !== 0) { + writer.uint32(18).bytes(message.WasmGz); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegisterWasmExtensionReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegisterWasmExtensionReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.WasmGz = Buffer.from(reader.bytes()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegisterWasmExtensionReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + WasmGz: isSet(object.WasmGz) ? Buffer.from(bytesFromBase64(object.WasmGz)) : Buffer.alloc(0), + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: RegisterWasmExtensionReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.WasmGz.length !== 0) { + obj.WasmGz = base64FromBytes(message.WasmGz); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): RegisterWasmExtensionReq { + return RegisterWasmExtensionReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegisterWasmExtensionReq { + const message = createBaseRegisterWasmExtensionReq(); + message.Name = object.Name ?? ""; + message.WasmGz = object.WasmGz ?? Buffer.alloc(0); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseRegisterWasmExtension(): RegisterWasmExtension { + return { Response: undefined }; +} + +export const RegisterWasmExtension: MessageFns = { + encode(message: RegisterWasmExtension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): RegisterWasmExtension { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseRegisterWasmExtension(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): RegisterWasmExtension { + return { Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined }; + }, + + toJSON(message: RegisterWasmExtension): unknown { + const obj: any = {}; + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): RegisterWasmExtension { + return RegisterWasmExtension.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): RegisterWasmExtension { + const message = createBaseRegisterWasmExtension(); + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseDeregisterWasmExtensionReq(): DeregisterWasmExtensionReq { + return { Name: "", Request: undefined }; +} + +export const DeregisterWasmExtensionReq: MessageFns = { + encode(message: DeregisterWasmExtensionReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): DeregisterWasmExtensionReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseDeregisterWasmExtensionReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): DeregisterWasmExtensionReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: DeregisterWasmExtensionReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): DeregisterWasmExtensionReq { + return DeregisterWasmExtensionReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): DeregisterWasmExtensionReq { + const message = createBaseDeregisterWasmExtensionReq(); + message.Name = object.Name ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseListWasmExtensionsReq(): ListWasmExtensionsReq { + return { Request: undefined }; +} + +export const ListWasmExtensionsReq: MessageFns = { + encode(message: ListWasmExtensionsReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ListWasmExtensionsReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListWasmExtensionsReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListWasmExtensionsReq { + return { Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined }; + }, + + toJSON(message: ListWasmExtensionsReq): unknown { + const obj: any = {}; + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ListWasmExtensionsReq { + return ListWasmExtensionsReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ListWasmExtensionsReq { + const message = createBaseListWasmExtensionsReq(); + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseListWasmExtensions(): ListWasmExtensions { + return { Names: [], Response: undefined }; +} + +export const ListWasmExtensions: MessageFns = { + encode(message: ListWasmExtensions, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Names) { + writer.uint32(10).string(v!); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ListWasmExtensions { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseListWasmExtensions(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Names.push(reader.string()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ListWasmExtensions { + return { + Names: globalThis.Array.isArray(object?.Names) ? object.Names.map((e: any) => globalThis.String(e)) : [], + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ListWasmExtensions): unknown { + const obj: any = {}; + if (message.Names?.length) { + obj.Names = message.Names; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ListWasmExtensions { + return ListWasmExtensions.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ListWasmExtensions { + const message = createBaseListWasmExtensions(); + message.Names = object.Names?.map((e) => e) || []; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseExecWasmExtensionReq(): ExecWasmExtensionReq { + return { Name: "", Args: [], Interactive: false, MemFS: {}, TunnelID: "0", Request: undefined }; +} + +export const ExecWasmExtensionReq: MessageFns = { + encode(message: ExecWasmExtensionReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + for (const v of message.Args) { + writer.uint32(18).string(v!); + } + if (message.Interactive !== false) { + writer.uint32(24).bool(message.Interactive); + } + globalThis.Object.entries(message.MemFS).forEach(([key, value]: [string, Buffer]) => { + ExecWasmExtensionReq_MemFSEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).join(); + }); + if (message.TunnelID !== "0") { + writer.uint32(64).uint64(message.TunnelID); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecWasmExtensionReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecWasmExtensionReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Args.push(reader.string()); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.Interactive = reader.bool(); + continue; + } + case 4: { + if (tag !== 34) { + break; + } + + const entry4 = ExecWasmExtensionReq_MemFSEntry.decode(reader, reader.uint32()); + if (entry4.value !== undefined) { + message.MemFS[entry4.key] = entry4.value; + } + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.TunnelID = reader.uint64().toString(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecWasmExtensionReq { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Args: globalThis.Array.isArray(object?.Args) ? object.Args.map((e: any) => globalThis.String(e)) : [], + Interactive: isSet(object.Interactive) ? globalThis.Boolean(object.Interactive) : false, + MemFS: isObject(object.MemFS) + ? (globalThis.Object.entries(object.MemFS) as [string, any][]).reduce( + (acc: { [key: string]: Buffer }, [key, value]: [string, any]) => { + acc[key] = Buffer.from(bytesFromBase64(value as string)); + return acc; + }, + {}, + ) + : {}, + TunnelID: isSet(object.TunnelID) ? globalThis.String(object.TunnelID) : "0", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ExecWasmExtensionReq): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Args?.length) { + obj.Args = message.Args; + } + if (message.Interactive !== false) { + obj.Interactive = message.Interactive; + } + if (message.MemFS) { + const entries = globalThis.Object.entries(message.MemFS) as [string, Buffer][]; + if (entries.length > 0) { + obj.MemFS = {}; + entries.forEach(([k, v]) => { + obj.MemFS[k] = base64FromBytes(v); + }); + } + } + if (message.TunnelID !== "0") { + obj.TunnelID = message.TunnelID; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ExecWasmExtensionReq { + return ExecWasmExtensionReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecWasmExtensionReq { + const message = createBaseExecWasmExtensionReq(); + message.Name = object.Name ?? ""; + message.Args = object.Args?.map((e) => e) || []; + message.Interactive = object.Interactive ?? false; + message.MemFS = (globalThis.Object.entries(object.MemFS ?? {}) as [string, Buffer][]).reduce( + (acc: { [key: string]: Buffer }, [key, value]: [string, Buffer]) => { + if (value !== undefined) { + acc[key] = value; + } + return acc; + }, + {}, + ); + message.TunnelID = object.TunnelID ?? "0"; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseExecWasmExtensionReq_MemFSEntry(): ExecWasmExtensionReq_MemFSEntry { + return { key: "", value: Buffer.alloc(0) }; +} + +export const ExecWasmExtensionReq_MemFSEntry: MessageFns = { + encode(message: ExecWasmExtensionReq_MemFSEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.key !== "") { + writer.uint32(10).string(message.key); + } + if (message.value.length !== 0) { + writer.uint32(18).bytes(message.value); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecWasmExtensionReq_MemFSEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecWasmExtensionReq_MemFSEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.key = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.value = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecWasmExtensionReq_MemFSEntry { + return { + key: isSet(object.key) ? globalThis.String(object.key) : "", + value: isSet(object.value) ? Buffer.from(bytesFromBase64(object.value)) : Buffer.alloc(0), + }; + }, + + toJSON(message: ExecWasmExtensionReq_MemFSEntry): unknown { + const obj: any = {}; + if (message.key !== "") { + obj.key = message.key; + } + if (message.value.length !== 0) { + obj.value = base64FromBytes(message.value); + } + return obj; + }, + + create(base?: DeepPartial): ExecWasmExtensionReq_MemFSEntry { + return ExecWasmExtensionReq_MemFSEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecWasmExtensionReq_MemFSEntry { + const message = createBaseExecWasmExtensionReq_MemFSEntry(); + message.key = object.key ?? ""; + message.value = object.value ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseExecWasmExtension(): ExecWasmExtension { + return { Stdout: Buffer.alloc(0), Stderr: Buffer.alloc(0), ExitCode: 0, Response: undefined }; +} + +export const ExecWasmExtension: MessageFns = { + encode(message: ExecWasmExtension, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Stdout.length !== 0) { + writer.uint32(10).bytes(message.Stdout); + } + if (message.Stderr.length !== 0) { + writer.uint32(18).bytes(message.Stderr); + } + if (message.ExitCode !== 0) { + writer.uint32(24).uint32(message.ExitCode); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ExecWasmExtension { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseExecWasmExtension(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Stdout = Buffer.from(reader.bytes()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Stderr = Buffer.from(reader.bytes()); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.ExitCode = reader.uint32(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ExecWasmExtension { + return { + Stdout: isSet(object.Stdout) ? Buffer.from(bytesFromBase64(object.Stdout)) : Buffer.alloc(0), + Stderr: isSet(object.Stderr) ? Buffer.from(bytesFromBase64(object.Stderr)) : Buffer.alloc(0), + ExitCode: isSet(object.ExitCode) ? globalThis.Number(object.ExitCode) : 0, + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ExecWasmExtension): unknown { + const obj: any = {}; + if (message.Stdout.length !== 0) { + obj.Stdout = base64FromBytes(message.Stdout); + } + if (message.Stderr.length !== 0) { + obj.Stderr = base64FromBytes(message.Stderr); + } + if (message.ExitCode !== 0) { + obj.ExitCode = Math.round(message.ExitCode); + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ExecWasmExtension { + return ExecWasmExtension.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ExecWasmExtension { + const message = createBaseExecWasmExtension(); + message.Stdout = object.Stdout ?? Buffer.alloc(0); + message.Stderr = object.Stderr ?? Buffer.alloc(0); + message.ExitCode = object.ExitCode ?? 0; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseServicesReq(): ServicesReq { + return { Hostname: "", Request: undefined }; +} + +export const ServicesReq: MessageFns = { + encode(message: ServicesReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Hostname !== "") { + writer.uint32(10).string(message.Hostname); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServicesReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServicesReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Hostname = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServicesReq { + return { + Hostname: isSet(object.Hostname) ? globalThis.String(object.Hostname) : "", + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ServicesReq): unknown { + const obj: any = {}; + if (message.Hostname !== "") { + obj.Hostname = message.Hostname; + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ServicesReq { + return ServicesReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServicesReq { + const message = createBaseServicesReq(); + message.Hostname = object.Hostname ?? ""; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseServiceDetailReq(): ServiceDetailReq { + return { ServiceInfo: undefined, Request: undefined }; +} + +export const ServiceDetailReq: MessageFns = { + encode(message: ServiceDetailReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceInfo !== undefined) { + ServiceInfoReq.encode(message.ServiceInfo, writer.uint32(10).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDetailReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDetailReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceInfo = ServiceInfoReq.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceDetailReq { + return { + ServiceInfo: isSet(object.ServiceInfo) ? ServiceInfoReq.fromJSON(object.ServiceInfo) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: ServiceDetailReq): unknown { + const obj: any = {}; + if (message.ServiceInfo !== undefined) { + obj.ServiceInfo = ServiceInfoReq.toJSON(message.ServiceInfo); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): ServiceDetailReq { + return ServiceDetailReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceDetailReq { + const message = createBaseServiceDetailReq(); + message.ServiceInfo = (object.ServiceInfo !== undefined && object.ServiceInfo !== null) + ? ServiceInfoReq.fromPartial(object.ServiceInfo) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function createBaseServiceDetails(): ServiceDetails { + return { Name: "", DisplayName: "", Description: "", Status: 0, StartupType: 0, BinPath: "", Account: "" }; +} + +export const ServiceDetails: MessageFns = { + encode(message: ServiceDetails, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.DisplayName !== "") { + writer.uint32(18).string(message.DisplayName); + } + if (message.Description !== "") { + writer.uint32(26).string(message.Description); + } + if (message.Status !== 0) { + writer.uint32(32).uint32(message.Status); + } + if (message.StartupType !== 0) { + writer.uint32(40).uint32(message.StartupType); + } + if (message.BinPath !== "") { + writer.uint32(50).string(message.BinPath); + } + if (message.Account !== "") { + writer.uint32(58).string(message.Account); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDetails { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDetails(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.DisplayName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.Description = reader.string(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Status = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.StartupType = reader.uint32(); + continue; + } + case 6: { + if (tag !== 50) { + break; + } + + message.BinPath = reader.string(); + continue; + } + case 7: { + if (tag !== 58) { + break; + } + + message.Account = reader.string(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceDetails { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + DisplayName: isSet(object.DisplayName) ? globalThis.String(object.DisplayName) : "", + Description: isSet(object.Description) ? globalThis.String(object.Description) : "", + Status: isSet(object.Status) ? globalThis.Number(object.Status) : 0, + StartupType: isSet(object.StartupType) ? globalThis.Number(object.StartupType) : 0, + BinPath: isSet(object.BinPath) ? globalThis.String(object.BinPath) : "", + Account: isSet(object.Account) ? globalThis.String(object.Account) : "", + }; + }, + + toJSON(message: ServiceDetails): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.DisplayName !== "") { + obj.DisplayName = message.DisplayName; + } + if (message.Description !== "") { + obj.Description = message.Description; + } + if (message.Status !== 0) { + obj.Status = Math.round(message.Status); + } + if (message.StartupType !== 0) { + obj.StartupType = Math.round(message.StartupType); + } + if (message.BinPath !== "") { + obj.BinPath = message.BinPath; + } + if (message.Account !== "") { + obj.Account = message.Account; + } + return obj; + }, + + create(base?: DeepPartial): ServiceDetails { + return ServiceDetails.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceDetails { + const message = createBaseServiceDetails(); + message.Name = object.Name ?? ""; + message.DisplayName = object.DisplayName ?? ""; + message.Description = object.Description ?? ""; + message.Status = object.Status ?? 0; + message.StartupType = object.StartupType ?? 0; + message.BinPath = object.BinPath ?? ""; + message.Account = object.Account ?? ""; + return message; + }, +}; + +function createBaseServices(): Services { + return { Details: [], Error: "", Response: undefined }; +} + +export const Services: MessageFns = { + encode(message: Services, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + for (const v of message.Details) { + ServiceDetails.encode(v!, writer.uint32(10).fork()).join(); + } + if (message.Error !== "") { + writer.uint32(18).string(message.Error); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): Services { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServices(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Details.push(ServiceDetails.decode(reader, reader.uint32())); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Error = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): Services { + return { + Details: globalThis.Array.isArray(object?.Details) + ? object.Details.map((e: any) => ServiceDetails.fromJSON(e)) + : [], + Error: isSet(object.Error) ? globalThis.String(object.Error) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: Services): unknown { + const obj: any = {}; + if (message.Details?.length) { + obj.Details = message.Details.map((e) => ServiceDetails.toJSON(e)); + } + if (message.Error !== "") { + obj.Error = message.Error; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): Services { + return Services.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): Services { + const message = createBaseServices(); + message.Details = object.Details?.map((e) => ServiceDetails.fromPartial(e)) || []; + message.Error = object.Error ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseServiceDetail(): ServiceDetail { + return { Detail: undefined, Message: "", Response: undefined }; +} + +export const ServiceDetail: MessageFns = { + encode(message: ServiceDetail, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Detail !== undefined) { + ServiceDetails.encode(message.Detail, writer.uint32(10).fork()).join(); + } + if (message.Message !== "") { + writer.uint32(18).string(message.Message); + } + if (message.Response !== undefined) { + Response.encode(message.Response, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): ServiceDetail { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseServiceDetail(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Detail = ServiceDetails.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Message = reader.string(); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Response = Response.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): ServiceDetail { + return { + Detail: isSet(object.Detail) ? ServiceDetails.fromJSON(object.Detail) : undefined, + Message: isSet(object.Message) ? globalThis.String(object.Message) : "", + Response: isSet(object.Response) ? Response.fromJSON(object.Response) : undefined, + }; + }, + + toJSON(message: ServiceDetail): unknown { + const obj: any = {}; + if (message.Detail !== undefined) { + obj.Detail = ServiceDetails.toJSON(message.Detail); + } + if (message.Message !== "") { + obj.Message = message.Message; + } + if (message.Response !== undefined) { + obj.Response = Response.toJSON(message.Response); + } + return obj; + }, + + create(base?: DeepPartial): ServiceDetail { + return ServiceDetail.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): ServiceDetail { + const message = createBaseServiceDetail(); + message.Detail = (object.Detail !== undefined && object.Detail !== null) + ? ServiceDetails.fromPartial(object.Detail) + : undefined; + message.Message = object.Message ?? ""; + message.Response = (object.Response !== undefined && object.Response !== null) + ? Response.fromPartial(object.Response) + : undefined; + return message; + }, +}; + +function createBaseStartServiceByNameReq(): StartServiceByNameReq { + return { ServiceInfo: undefined, Request: undefined }; +} + +export const StartServiceByNameReq: MessageFns = { + encode(message: StartServiceByNameReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ServiceInfo !== undefined) { + ServiceInfoReq.encode(message.ServiceInfo, writer.uint32(10).fork()).join(); + } + if (message.Request !== undefined) { + Request.encode(message.Request, writer.uint32(74).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): StartServiceByNameReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseStartServiceByNameReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ServiceInfo = ServiceInfoReq.decode(reader, reader.uint32()); + continue; + } + case 9: { + if (tag !== 74) { + break; + } + + message.Request = Request.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): StartServiceByNameReq { + return { + ServiceInfo: isSet(object.ServiceInfo) ? ServiceInfoReq.fromJSON(object.ServiceInfo) : undefined, + Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, + }; + }, + + toJSON(message: StartServiceByNameReq): unknown { + const obj: any = {}; + if (message.ServiceInfo !== undefined) { + obj.ServiceInfo = ServiceInfoReq.toJSON(message.ServiceInfo); + } + if (message.Request !== undefined) { + obj.Request = Request.toJSON(message.Request); + } + return obj; + }, + + create(base?: DeepPartial): StartServiceByNameReq { + return StartServiceByNameReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): StartServiceByNameReq { + const message = createBaseStartServiceByNameReq(); + message.ServiceInfo = (object.ServiceInfo !== undefined && object.ServiceInfo !== null) + ? ServiceInfoReq.fromPartial(object.ServiceInfo) + : undefined; + message.Request = (object.Request !== undefined && object.Request !== null) + ? Request.fromPartial(object.Request) + : undefined; + return message; + }, +}; + +function bytesFromBase64(b64: string): Uint8Array { + return Uint8Array.from(globalThis.Buffer.from(b64, "base64")); +} + +function base64FromBytes(arr: Uint8Array): string { + return globalThis.Buffer.from(arr).toString("base64"); +} + +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; + +export type DeepPartial = T extends Builtin ? T + : T extends globalThis.Array ? globalThis.Array> + : T extends ReadonlyArray ? ReadonlyArray> + : T extends {} ? { [K in keyof T]?: DeepPartial } + : Partial; + +function isObject(value: any): boolean { + return typeof value === "object" && value !== null; +} + +function isSet(value: any): boolean { + return value !== null && value !== undefined; +} + +export interface MessageFns { + encode(message: T, writer?: BinaryWriter): BinaryWriter; + decode(input: BinaryReader | Uint8Array, length?: number): T; + fromJSON(object: any): T; + toJSON(message: T): unknown; + create(base?: DeepPartial): T; + fromPartial(object: DeepPartial): T; } diff --git a/src/pb/sliverpb/sliver_pb.js b/src/pb/sliverpb/sliver_pb.js deleted file mode 100644 index a3114cd..0000000 --- a/src/pb/sliverpb/sliver_pb.js +++ /dev/null @@ -1,35771 +0,0 @@ -// source: sliverpb/sliver.proto -/** - * @fileoverview - * @enhanceable - * @suppress {missingRequire} reports error on implicit type usages. - * @suppress {messageConventions} JS Compiler reports an error if a variable or - * field starts with 'MSG_' and isn't a translatable message. - * @public - */ -// GENERATED CODE -- DO NOT EDIT! -/* eslint-disable */ -// @ts-nocheck -if (proto === undefined) { var proto = {commonpb: {}, clientpb: {}, sliverpb: {}}; } - - -var jspb = require('google-protobuf'); -var goog = jspb; -var global = (function(){return this;})(); - -var commonpb_common_pb = require('../commonpb/common_pb.js'); -goog.object.extend(proto, commonpb_common_pb); -goog.exportSymbol('proto.sliverpb.Backdoor', null, global); -goog.exportSymbol('proto.sliverpb.BackdoorReq', null, global); -goog.exportSymbol('proto.sliverpb.BeaconRegister', null, global); -goog.exportSymbol('proto.sliverpb.BeaconTasks', null, global); -goog.exportSymbol('proto.sliverpb.CallExtension', null, global); -goog.exportSymbol('proto.sliverpb.CallExtensionReq', null, global); -goog.exportSymbol('proto.sliverpb.CdReq', null, global); -goog.exportSymbol('proto.sliverpb.CloseSession', null, global); -goog.exportSymbol('proto.sliverpb.CurrentTokenOwner', null, global); -goog.exportSymbol('proto.sliverpb.CurrentTokenOwnerReq', null, global); -goog.exportSymbol('proto.sliverpb.DNSBlockHeader', null, global); -goog.exportSymbol('proto.sliverpb.DNSPoll', null, global); -goog.exportSymbol('proto.sliverpb.DNSSessionInit', null, global); -goog.exportSymbol('proto.sliverpb.Download', null, global); -goog.exportSymbol('proto.sliverpb.DownloadReq', null, global); -goog.exportSymbol('proto.sliverpb.EnvInfo', null, global); -goog.exportSymbol('proto.sliverpb.EnvReq', null, global); -goog.exportSymbol('proto.sliverpb.Envelope', null, global); -goog.exportSymbol('proto.sliverpb.Execute', null, global); -goog.exportSymbol('proto.sliverpb.ExecuteAssembly', null, global); -goog.exportSymbol('proto.sliverpb.ExecuteAssemblyReq', null, global); -goog.exportSymbol('proto.sliverpb.ExecuteReq', null, global); -goog.exportSymbol('proto.sliverpb.ExecuteWindowsReq', null, global); -goog.exportSymbol('proto.sliverpb.FileInfo', null, global); -goog.exportSymbol('proto.sliverpb.GetPrivs', null, global); -goog.exportSymbol('proto.sliverpb.GetPrivsReq', null, global); -goog.exportSymbol('proto.sliverpb.GetSystem', null, global); -goog.exportSymbol('proto.sliverpb.HTTPSessionInit', null, global); -goog.exportSymbol('proto.sliverpb.Ifconfig', null, global); -goog.exportSymbol('proto.sliverpb.IfconfigReq', null, global); -goog.exportSymbol('proto.sliverpb.Impersonate', null, global); -goog.exportSymbol('proto.sliverpb.ImpersonateReq', null, global); -goog.exportSymbol('proto.sliverpb.InvokeExecuteAssemblyReq', null, global); -goog.exportSymbol('proto.sliverpb.InvokeGetSystemReq', null, global); -goog.exportSymbol('proto.sliverpb.InvokeInProcExecuteAssemblyReq', null, global); -goog.exportSymbol('proto.sliverpb.InvokeMigrateReq', null, global); -goog.exportSymbol('proto.sliverpb.InvokeSpawnDllReq', null, global); -goog.exportSymbol('proto.sliverpb.KillReq', null, global); -goog.exportSymbol('proto.sliverpb.ListExtensions', null, global); -goog.exportSymbol('proto.sliverpb.ListExtensionsReq', null, global); -goog.exportSymbol('proto.sliverpb.Ls', null, global); -goog.exportSymbol('proto.sliverpb.LsReq', null, global); -goog.exportSymbol('proto.sliverpb.MakeToken', null, global); -goog.exportSymbol('proto.sliverpb.MakeTokenReq', null, global); -goog.exportSymbol('proto.sliverpb.Migrate', null, global); -goog.exportSymbol('proto.sliverpb.Mkdir', null, global); -goog.exportSymbol('proto.sliverpb.MkdirReq', null, global); -goog.exportSymbol('proto.sliverpb.Mv', null, global); -goog.exportSymbol('proto.sliverpb.MvReq', null, global); -goog.exportSymbol('proto.sliverpb.NetConnPivot', null, global); -goog.exportSymbol('proto.sliverpb.NetInterface', null, global); -goog.exportSymbol('proto.sliverpb.Netstat', null, global); -goog.exportSymbol('proto.sliverpb.NetstatReq', null, global); -goog.exportSymbol('proto.sliverpb.OpenSession', null, global); -goog.exportSymbol('proto.sliverpb.PeerFailureType', null, global); -goog.exportSymbol('proto.sliverpb.Ping', null, global); -goog.exportSymbol('proto.sliverpb.PivotHello', null, global); -goog.exportSymbol('proto.sliverpb.PivotListener', null, global); -goog.exportSymbol('proto.sliverpb.PivotListeners', null, global); -goog.exportSymbol('proto.sliverpb.PivotListenersReq', null, global); -goog.exportSymbol('proto.sliverpb.PivotPeer', null, global); -goog.exportSymbol('proto.sliverpb.PivotPeerEnvelope', null, global); -goog.exportSymbol('proto.sliverpb.PivotPeerFailure', null, global); -goog.exportSymbol('proto.sliverpb.PivotPing', null, global); -goog.exportSymbol('proto.sliverpb.PivotServerKeyExchange', null, global); -goog.exportSymbol('proto.sliverpb.PivotStartListenerReq', null, global); -goog.exportSymbol('proto.sliverpb.PivotStopListenerReq', null, global); -goog.exportSymbol('proto.sliverpb.PivotType', null, global); -goog.exportSymbol('proto.sliverpb.PollInterval', null, global); -goog.exportSymbol('proto.sliverpb.PollIntervalReq', null, global); -goog.exportSymbol('proto.sliverpb.Portfwd', null, global); -goog.exportSymbol('proto.sliverpb.PortfwdReq', null, global); -goog.exportSymbol('proto.sliverpb.ProcessDump', null, global); -goog.exportSymbol('proto.sliverpb.ProcessDumpReq', null, global); -goog.exportSymbol('proto.sliverpb.Ps', null, global); -goog.exportSymbol('proto.sliverpb.PsReq', null, global); -goog.exportSymbol('proto.sliverpb.Pwd', null, global); -goog.exportSymbol('proto.sliverpb.PwdReq', null, global); -goog.exportSymbol('proto.sliverpb.Reconfigure', null, global); -goog.exportSymbol('proto.sliverpb.ReconfigureReq', null, global); -goog.exportSymbol('proto.sliverpb.Register', null, global); -goog.exportSymbol('proto.sliverpb.RegisterExtension', null, global); -goog.exportSymbol('proto.sliverpb.RegisterExtensionReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistryCreateKey', null, global); -goog.exportSymbol('proto.sliverpb.RegistryCreateKeyReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistryDeleteKey', null, global); -goog.exportSymbol('proto.sliverpb.RegistryDeleteKeyReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistryListValuesReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistryRead', null, global); -goog.exportSymbol('proto.sliverpb.RegistryReadReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistrySubKeyList', null, global); -goog.exportSymbol('proto.sliverpb.RegistrySubKeyListReq', null, global); -goog.exportSymbol('proto.sliverpb.RegistryType', null, global); -goog.exportSymbol('proto.sliverpb.RegistryValuesList', null, global); -goog.exportSymbol('proto.sliverpb.RegistryWrite', null, global); -goog.exportSymbol('proto.sliverpb.RegistryWriteReq', null, global); -goog.exportSymbol('proto.sliverpb.RemoveServiceReq', null, global); -goog.exportSymbol('proto.sliverpb.RevToSelf', null, global); -goog.exportSymbol('proto.sliverpb.RevToSelfReq', null, global); -goog.exportSymbol('proto.sliverpb.Rm', null, global); -goog.exportSymbol('proto.sliverpb.RmReq', null, global); -goog.exportSymbol('proto.sliverpb.RunAs', null, global); -goog.exportSymbol('proto.sliverpb.RunAsReq', null, global); -goog.exportSymbol('proto.sliverpb.SSHCommand', null, global); -goog.exportSymbol('proto.sliverpb.SSHCommandReq', null, global); -goog.exportSymbol('proto.sliverpb.Screenshot', null, global); -goog.exportSymbol('proto.sliverpb.ScreenshotReq', null, global); -goog.exportSymbol('proto.sliverpb.ServiceInfo', null, global); -goog.exportSymbol('proto.sliverpb.ServiceInfoReq', null, global); -goog.exportSymbol('proto.sliverpb.SessionRegister', null, global); -goog.exportSymbol('proto.sliverpb.SetEnv', null, global); -goog.exportSymbol('proto.sliverpb.SetEnvReq', null, global); -goog.exportSymbol('proto.sliverpb.Shell', null, global); -goog.exportSymbol('proto.sliverpb.ShellReq', null, global); -goog.exportSymbol('proto.sliverpb.Sideload', null, global); -goog.exportSymbol('proto.sliverpb.SideloadReq', null, global); -goog.exportSymbol('proto.sliverpb.SockTabEntry', null, global); -goog.exportSymbol('proto.sliverpb.SockTabEntry.SockAddr', null, global); -goog.exportSymbol('proto.sliverpb.Socks', null, global); -goog.exportSymbol('proto.sliverpb.SocksData', null, global); -goog.exportSymbol('proto.sliverpb.SpawnDll', null, global); -goog.exportSymbol('proto.sliverpb.SpawnDllReq', null, global); -goog.exportSymbol('proto.sliverpb.StartServiceReq', null, global); -goog.exportSymbol('proto.sliverpb.StopServiceReq', null, global); -goog.exportSymbol('proto.sliverpb.Task', null, global); -goog.exportSymbol('proto.sliverpb.TaskReq', null, global); -goog.exportSymbol('proto.sliverpb.Terminate', null, global); -goog.exportSymbol('proto.sliverpb.TerminateReq', null, global); -goog.exportSymbol('proto.sliverpb.Tunnel', null, global); -goog.exportSymbol('proto.sliverpb.TunnelData', null, global); -goog.exportSymbol('proto.sliverpb.UnsetEnv', null, global); -goog.exportSymbol('proto.sliverpb.UnsetEnvReq', null, global); -goog.exportSymbol('proto.sliverpb.Upload', null, global); -goog.exportSymbol('proto.sliverpb.UploadReq', null, global); -goog.exportSymbol('proto.sliverpb.WGPortForward', null, global); -goog.exportSymbol('proto.sliverpb.WGPortForwardStartReq', null, global); -goog.exportSymbol('proto.sliverpb.WGPortForwardStopReq', null, global); -goog.exportSymbol('proto.sliverpb.WGSocks', null, global); -goog.exportSymbol('proto.sliverpb.WGSocksServer', null, global); -goog.exportSymbol('proto.sliverpb.WGSocksServers', null, global); -goog.exportSymbol('proto.sliverpb.WGSocksServersReq', null, global); -goog.exportSymbol('proto.sliverpb.WGSocksStartReq', null, global); -goog.exportSymbol('proto.sliverpb.WGSocksStopReq', null, global); -goog.exportSymbol('proto.sliverpb.WGTCPForwarder', null, global); -goog.exportSymbol('proto.sliverpb.WGTCPForwarders', null, global); -goog.exportSymbol('proto.sliverpb.WGTCPForwardersReq', null, global); -goog.exportSymbol('proto.sliverpb.WindowsPrivilegeEntry', null, global); -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Envelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Envelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Envelope.displayName = 'proto.sliverpb.Envelope'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.BeaconTasks = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.BeaconTasks.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.BeaconTasks, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.BeaconTasks.displayName = 'proto.sliverpb.BeaconTasks'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Register = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Register, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Register.displayName = 'proto.sliverpb.Register'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.BeaconRegister = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.BeaconRegister, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.BeaconRegister.displayName = 'proto.sliverpb.BeaconRegister'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SessionRegister = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SessionRegister, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SessionRegister.displayName = 'proto.sliverpb.SessionRegister'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.OpenSession = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.OpenSession.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.OpenSession, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.OpenSession.displayName = 'proto.sliverpb.OpenSession'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CloseSession = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CloseSession, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CloseSession.displayName = 'proto.sliverpb.CloseSession'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Ping = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Ping, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Ping.displayName = 'proto.sliverpb.Ping'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.KillReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.KillReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.KillReq.displayName = 'proto.sliverpb.KillReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PsReq.displayName = 'proto.sliverpb.PsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Ps = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.Ps.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.Ps, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Ps.displayName = 'proto.sliverpb.Ps'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.TerminateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.TerminateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.TerminateReq.displayName = 'proto.sliverpb.TerminateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Terminate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Terminate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Terminate.displayName = 'proto.sliverpb.Terminate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.IfconfigReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.IfconfigReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.IfconfigReq.displayName = 'proto.sliverpb.IfconfigReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Ifconfig = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.Ifconfig.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.Ifconfig, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Ifconfig.displayName = 'proto.sliverpb.Ifconfig'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.NetInterface = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.NetInterface.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.NetInterface, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.NetInterface.displayName = 'proto.sliverpb.NetInterface'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.LsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.LsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.LsReq.displayName = 'proto.sliverpb.LsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Ls = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.Ls.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.Ls, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Ls.displayName = 'proto.sliverpb.Ls'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.FileInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.FileInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.FileInfo.displayName = 'proto.sliverpb.FileInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CdReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CdReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CdReq.displayName = 'proto.sliverpb.CdReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PwdReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PwdReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PwdReq.displayName = 'proto.sliverpb.PwdReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Pwd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Pwd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Pwd.displayName = 'proto.sliverpb.Pwd'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RmReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RmReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RmReq.displayName = 'proto.sliverpb.RmReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Rm = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Rm, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Rm.displayName = 'proto.sliverpb.Rm'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.MvReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.MvReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.MvReq.displayName = 'proto.sliverpb.MvReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Mv = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Mv, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Mv.displayName = 'proto.sliverpb.Mv'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.MkdirReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.MkdirReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.MkdirReq.displayName = 'proto.sliverpb.MkdirReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Mkdir = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Mkdir, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Mkdir.displayName = 'proto.sliverpb.Mkdir'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.DownloadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.DownloadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.DownloadReq.displayName = 'proto.sliverpb.DownloadReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Download = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Download, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Download.displayName = 'proto.sliverpb.Download'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.UploadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.UploadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.UploadReq.displayName = 'proto.sliverpb.UploadReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Upload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Upload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Upload.displayName = 'proto.sliverpb.Upload'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ProcessDumpReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ProcessDumpReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ProcessDumpReq.displayName = 'proto.sliverpb.ProcessDumpReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ProcessDump = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ProcessDump, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ProcessDump.displayName = 'proto.sliverpb.ProcessDump'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RunAsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RunAsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RunAsReq.displayName = 'proto.sliverpb.RunAsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RunAs = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RunAs, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RunAs.displayName = 'proto.sliverpb.RunAs'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ImpersonateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ImpersonateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ImpersonateReq.displayName = 'proto.sliverpb.ImpersonateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Impersonate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Impersonate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Impersonate.displayName = 'proto.sliverpb.Impersonate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RevToSelfReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RevToSelfReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RevToSelfReq.displayName = 'proto.sliverpb.RevToSelfReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RevToSelf = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RevToSelf, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RevToSelf.displayName = 'proto.sliverpb.RevToSelf'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CurrentTokenOwnerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CurrentTokenOwnerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CurrentTokenOwnerReq.displayName = 'proto.sliverpb.CurrentTokenOwnerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CurrentTokenOwner = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CurrentTokenOwner, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CurrentTokenOwner.displayName = 'proto.sliverpb.CurrentTokenOwner'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.InvokeGetSystemReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.InvokeGetSystemReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.InvokeGetSystemReq.displayName = 'proto.sliverpb.InvokeGetSystemReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.GetSystem = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.GetSystem, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.GetSystem.displayName = 'proto.sliverpb.GetSystem'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.MakeTokenReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.MakeTokenReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.MakeTokenReq.displayName = 'proto.sliverpb.MakeTokenReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.MakeToken = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.MakeToken, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.MakeToken.displayName = 'proto.sliverpb.MakeToken'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.TaskReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.TaskReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.TaskReq.displayName = 'proto.sliverpb.TaskReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Task = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Task, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Task.displayName = 'proto.sliverpb.Task'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ExecuteAssemblyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.ExecuteAssemblyReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.ExecuteAssemblyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ExecuteAssemblyReq.displayName = 'proto.sliverpb.ExecuteAssemblyReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.InvokeExecuteAssemblyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.InvokeExecuteAssemblyReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.InvokeExecuteAssemblyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.InvokeExecuteAssemblyReq.displayName = 'proto.sliverpb.InvokeExecuteAssemblyReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.InvokeInProcExecuteAssemblyReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.InvokeInProcExecuteAssemblyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.InvokeInProcExecuteAssemblyReq.displayName = 'proto.sliverpb.InvokeInProcExecuteAssemblyReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ExecuteAssembly = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ExecuteAssembly, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ExecuteAssembly.displayName = 'proto.sliverpb.ExecuteAssembly'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.InvokeMigrateReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.InvokeMigrateReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.InvokeMigrateReq.displayName = 'proto.sliverpb.InvokeMigrateReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Migrate = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Migrate, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Migrate.displayName = 'proto.sliverpb.Migrate'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ExecuteReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.ExecuteReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.ExecuteReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ExecuteReq.displayName = 'proto.sliverpb.ExecuteReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ExecuteWindowsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.ExecuteWindowsReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.ExecuteWindowsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ExecuteWindowsReq.displayName = 'proto.sliverpb.ExecuteWindowsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Execute = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Execute, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Execute.displayName = 'proto.sliverpb.Execute'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SideloadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.SideloadReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.SideloadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SideloadReq.displayName = 'proto.sliverpb.SideloadReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Sideload = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Sideload, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Sideload.displayName = 'proto.sliverpb.Sideload'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.InvokeSpawnDllReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.InvokeSpawnDllReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.InvokeSpawnDllReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.InvokeSpawnDllReq.displayName = 'proto.sliverpb.InvokeSpawnDllReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SpawnDllReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.SpawnDllReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.SpawnDllReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SpawnDllReq.displayName = 'proto.sliverpb.SpawnDllReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SpawnDll = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SpawnDll, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SpawnDll.displayName = 'proto.sliverpb.SpawnDll'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.NetstatReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.NetstatReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.NetstatReq.displayName = 'proto.sliverpb.NetstatReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SockTabEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SockTabEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SockTabEntry.displayName = 'proto.sliverpb.SockTabEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SockTabEntry.SockAddr = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SockTabEntry.SockAddr, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SockTabEntry.SockAddr.displayName = 'proto.sliverpb.SockTabEntry.SockAddr'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Netstat = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.Netstat.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.Netstat, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Netstat.displayName = 'proto.sliverpb.Netstat'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.EnvReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.EnvReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.EnvReq.displayName = 'proto.sliverpb.EnvReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.EnvInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.EnvInfo.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.EnvInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.EnvInfo.displayName = 'proto.sliverpb.EnvInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SetEnvReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SetEnvReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SetEnvReq.displayName = 'proto.sliverpb.SetEnvReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SetEnv = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SetEnv, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SetEnv.displayName = 'proto.sliverpb.SetEnv'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.UnsetEnvReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.UnsetEnvReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.UnsetEnvReq.displayName = 'proto.sliverpb.UnsetEnvReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.UnsetEnv = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.UnsetEnv, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.UnsetEnv.displayName = 'proto.sliverpb.UnsetEnv'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.DNSSessionInit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.DNSSessionInit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.DNSSessionInit.displayName = 'proto.sliverpb.DNSSessionInit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.DNSPoll = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.DNSPoll.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.DNSPoll, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.DNSPoll.displayName = 'proto.sliverpb.DNSPoll'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.DNSBlockHeader = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.DNSBlockHeader, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.DNSBlockHeader.displayName = 'proto.sliverpb.DNSBlockHeader'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.HTTPSessionInit = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.HTTPSessionInit, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.HTTPSessionInit.displayName = 'proto.sliverpb.HTTPSessionInit'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ScreenshotReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ScreenshotReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ScreenshotReq.displayName = 'proto.sliverpb.ScreenshotReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Screenshot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Screenshot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Screenshot.displayName = 'proto.sliverpb.Screenshot'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.StartServiceReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.StartServiceReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.StartServiceReq.displayName = 'proto.sliverpb.StartServiceReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ServiceInfo = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ServiceInfo, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ServiceInfo.displayName = 'proto.sliverpb.ServiceInfo'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ServiceInfoReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ServiceInfoReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ServiceInfoReq.displayName = 'proto.sliverpb.ServiceInfoReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.StopServiceReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.StopServiceReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.StopServiceReq.displayName = 'proto.sliverpb.StopServiceReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RemoveServiceReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RemoveServiceReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RemoveServiceReq.displayName = 'proto.sliverpb.RemoveServiceReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.BackdoorReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.BackdoorReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.BackdoorReq.displayName = 'proto.sliverpb.BackdoorReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Backdoor = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Backdoor, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Backdoor.displayName = 'proto.sliverpb.Backdoor'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryReadReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryReadReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryReadReq.displayName = 'proto.sliverpb.RegistryReadReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryRead = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryRead, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryRead.displayName = 'proto.sliverpb.RegistryRead'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryWriteReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryWriteReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryWriteReq.displayName = 'proto.sliverpb.RegistryWriteReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryWrite = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryWrite, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryWrite.displayName = 'proto.sliverpb.RegistryWrite'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryCreateKeyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryCreateKeyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryCreateKeyReq.displayName = 'proto.sliverpb.RegistryCreateKeyReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryCreateKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryCreateKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryCreateKey.displayName = 'proto.sliverpb.RegistryCreateKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryDeleteKeyReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryDeleteKeyReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryDeleteKeyReq.displayName = 'proto.sliverpb.RegistryDeleteKeyReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryDeleteKey = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryDeleteKey, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryDeleteKey.displayName = 'proto.sliverpb.RegistryDeleteKey'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistrySubKeyListReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistrySubKeyListReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistrySubKeyListReq.displayName = 'proto.sliverpb.RegistrySubKeyListReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistrySubKeyList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.RegistrySubKeyList.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.RegistrySubKeyList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistrySubKeyList.displayName = 'proto.sliverpb.RegistrySubKeyList'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryListValuesReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegistryListValuesReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryListValuesReq.displayName = 'proto.sliverpb.RegistryListValuesReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegistryValuesList = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.RegistryValuesList.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.RegistryValuesList, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegistryValuesList.displayName = 'proto.sliverpb.RegistryValuesList'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Tunnel = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Tunnel, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Tunnel.displayName = 'proto.sliverpb.Tunnel'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.TunnelData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.TunnelData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.TunnelData.displayName = 'proto.sliverpb.TunnelData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ShellReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ShellReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ShellReq.displayName = 'proto.sliverpb.ShellReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Shell = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Shell, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Shell.displayName = 'proto.sliverpb.Shell'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PortfwdReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PortfwdReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PortfwdReq.displayName = 'proto.sliverpb.PortfwdReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Portfwd = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Portfwd, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Portfwd.displayName = 'proto.sliverpb.Portfwd'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Socks = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Socks, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Socks.displayName = 'proto.sliverpb.Socks'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SocksData = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SocksData, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SocksData.displayName = 'proto.sliverpb.SocksData'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotStartListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.PivotStartListenerReq.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.PivotStartListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotStartListenerReq.displayName = 'proto.sliverpb.PivotStartListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotStopListenerReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotStopListenerReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotStopListenerReq.displayName = 'proto.sliverpb.PivotStopListenerReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotListener = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.PivotListener.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.PivotListener, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotListener.displayName = 'proto.sliverpb.PivotListener'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotHello = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotHello, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotHello.displayName = 'proto.sliverpb.PivotHello'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotServerKeyExchange = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotServerKeyExchange, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotServerKeyExchange.displayName = 'proto.sliverpb.PivotServerKeyExchange'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotPeer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotPeer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotPeer.displayName = 'proto.sliverpb.PivotPeer'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotPeerEnvelope = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.PivotPeerEnvelope.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.PivotPeerEnvelope, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotPeerEnvelope.displayName = 'proto.sliverpb.PivotPeerEnvelope'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotPing = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotPing, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotPing.displayName = 'proto.sliverpb.PivotPing'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.NetConnPivot = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.NetConnPivot, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.NetConnPivot.displayName = 'proto.sliverpb.NetConnPivot'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotPeerFailure = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotPeerFailure, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotPeerFailure.displayName = 'proto.sliverpb.PivotPeerFailure'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotListenersReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PivotListenersReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotListenersReq.displayName = 'proto.sliverpb.PivotListenersReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PivotListeners = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.PivotListeners.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.PivotListeners, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PivotListeners.displayName = 'proto.sliverpb.PivotListeners'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGPortForwardStartReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGPortForwardStartReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGPortForwardStartReq.displayName = 'proto.sliverpb.WGPortForwardStartReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGPortForward = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGPortForward, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGPortForward.displayName = 'proto.sliverpb.WGPortForward'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGPortForwardStopReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGPortForwardStopReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGPortForwardStopReq.displayName = 'proto.sliverpb.WGPortForwardStopReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocksStartReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGSocksStartReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocksStartReq.displayName = 'proto.sliverpb.WGSocksStartReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocks = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGSocks, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocks.displayName = 'proto.sliverpb.WGSocks'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocksStopReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGSocksStopReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocksStopReq.displayName = 'proto.sliverpb.WGSocksStopReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGTCPForwardersReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGTCPForwardersReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGTCPForwardersReq.displayName = 'proto.sliverpb.WGTCPForwardersReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocksServersReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGSocksServersReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocksServersReq.displayName = 'proto.sliverpb.WGSocksServersReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGTCPForwarder = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGTCPForwarder, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGTCPForwarder.displayName = 'proto.sliverpb.WGTCPForwarder'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocksServer = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WGSocksServer, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocksServer.displayName = 'proto.sliverpb.WGSocksServer'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGSocksServers = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.WGSocksServers.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.WGSocksServers, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGSocksServers.displayName = 'proto.sliverpb.WGSocksServers'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WGTCPForwarders = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.WGTCPForwarders.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.WGTCPForwarders, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WGTCPForwarders.displayName = 'proto.sliverpb.WGTCPForwarders'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ReconfigureReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ReconfigureReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ReconfigureReq.displayName = 'proto.sliverpb.ReconfigureReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.Reconfigure = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.Reconfigure, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.Reconfigure.displayName = 'proto.sliverpb.Reconfigure'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PollIntervalReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PollIntervalReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PollIntervalReq.displayName = 'proto.sliverpb.PollIntervalReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.PollInterval = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.PollInterval, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.PollInterval.displayName = 'proto.sliverpb.PollInterval'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SSHCommandReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SSHCommandReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SSHCommandReq.displayName = 'proto.sliverpb.SSHCommandReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.SSHCommand = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.SSHCommand, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.SSHCommand.displayName = 'proto.sliverpb.SSHCommand'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.GetPrivsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.GetPrivsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.GetPrivsReq.displayName = 'proto.sliverpb.GetPrivsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.WindowsPrivilegeEntry = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.WindowsPrivilegeEntry, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.WindowsPrivilegeEntry.displayName = 'proto.sliverpb.WindowsPrivilegeEntry'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.GetPrivs = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.GetPrivs.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.GetPrivs, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.GetPrivs.displayName = 'proto.sliverpb.GetPrivs'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegisterExtensionReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegisterExtensionReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegisterExtensionReq.displayName = 'proto.sliverpb.RegisterExtensionReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.RegisterExtension = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.RegisterExtension, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.RegisterExtension.displayName = 'proto.sliverpb.RegisterExtension'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CallExtensionReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CallExtensionReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CallExtensionReq.displayName = 'proto.sliverpb.CallExtensionReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.CallExtension = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.CallExtension, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.CallExtension.displayName = 'proto.sliverpb.CallExtension'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ListExtensionsReq = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, null, null); -}; -goog.inherits(proto.sliverpb.ListExtensionsReq, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ListExtensionsReq.displayName = 'proto.sliverpb.ListExtensionsReq'; -} -/** - * Generated by JsPbCodeGenerator. - * @param {Array=} opt_data Optional initial data array, typically from a - * server response, or constructed directly in Javascript. The array is used - * in place and becomes part of the constructed object. It is not cloned. - * If no data is provided, the constructed object will be empty, but still - * valid. - * @extends {jspb.Message} - * @constructor - */ -proto.sliverpb.ListExtensions = function(opt_data) { - jspb.Message.initialize(this, opt_data, 0, -1, proto.sliverpb.ListExtensions.repeatedFields_, null); -}; -goog.inherits(proto.sliverpb.ListExtensions, jspb.Message); -if (goog.DEBUG && !COMPILED) { - /** - * @public - * @override - */ - proto.sliverpb.ListExtensions.displayName = 'proto.sliverpb.ListExtensions'; -} - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Envelope.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Envelope.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Envelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Envelope.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - data: msg.getData_asB64(), - unknownmessagetype: jspb.Message.getBooleanFieldWithDefault(msg, 4, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Envelope} - */ -proto.sliverpb.Envelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Envelope; - return proto.sliverpb.Envelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Envelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Envelope} - */ -proto.sliverpb.Envelope.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setType(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUnknownmessagetype(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Envelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Envelope.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Envelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Envelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getType(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getUnknownmessagetype(); - if (f) { - writer.writeBool( - 4, - f - ); - } -}; - - -/** - * optional int64 ID = 1; - * @return {number} - */ -proto.sliverpb.Envelope.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Envelope} returns this - */ -proto.sliverpb.Envelope.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional uint32 Type = 2; - * @return {number} - */ -proto.sliverpb.Envelope.prototype.getType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Envelope} returns this - */ -proto.sliverpb.Envelope.prototype.setType = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bytes Data = 3; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.Envelope.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes Data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.Envelope.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.Envelope.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.Envelope} returns this - */ -proto.sliverpb.Envelope.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bool UnknownMessageType = 4; - * @return {boolean} - */ -proto.sliverpb.Envelope.prototype.getUnknownmessagetype = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Envelope} returns this - */ -proto.sliverpb.Envelope.prototype.setUnknownmessagetype = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.BeaconTasks.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.BeaconTasks.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.BeaconTasks.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.BeaconTasks} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BeaconTasks.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - tasksList: jspb.Message.toObjectList(msg.getTasksList(), - proto.sliverpb.Envelope.toObject, includeInstance), - nextcheckin: jspb.Message.getFieldWithDefault(msg, 3, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.BeaconTasks} - */ -proto.sliverpb.BeaconTasks.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.BeaconTasks; - return proto.sliverpb.BeaconTasks.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.BeaconTasks} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.BeaconTasks} - */ -proto.sliverpb.BeaconTasks.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.sliverpb.Envelope; - reader.readMessage(value,proto.sliverpb.Envelope.deserializeBinaryFromReader); - msg.addTasks(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setNextcheckin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.BeaconTasks.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.BeaconTasks.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.BeaconTasks} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BeaconTasks.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getTasksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 2, - f, - proto.sliverpb.Envelope.serializeBinaryToWriter - ); - } - f = message.getNextcheckin(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.sliverpb.BeaconTasks.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.BeaconTasks} returns this - */ -proto.sliverpb.BeaconTasks.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated Envelope Tasks = 2; - * @return {!Array} - */ -proto.sliverpb.BeaconTasks.prototype.getTasksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.Envelope, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.BeaconTasks} returns this -*/ -proto.sliverpb.BeaconTasks.prototype.setTasksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 2, value); -}; - - -/** - * @param {!proto.sliverpb.Envelope=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.Envelope} - */ -proto.sliverpb.BeaconTasks.prototype.addTasks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.sliverpb.Envelope, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.BeaconTasks} returns this - */ -proto.sliverpb.BeaconTasks.prototype.clearTasksList = function() { - return this.setTasksList([]); -}; - - -/** - * optional int64 NextCheckin = 3; - * @return {number} - */ -proto.sliverpb.BeaconTasks.prototype.getNextcheckin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.BeaconTasks} returns this - */ -proto.sliverpb.BeaconTasks.prototype.setNextcheckin = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Register.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Register.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Register} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Register.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 2, ""), - uuid: jspb.Message.getFieldWithDefault(msg, 3, ""), - username: jspb.Message.getFieldWithDefault(msg, 4, ""), - uid: jspb.Message.getFieldWithDefault(msg, 5, ""), - gid: jspb.Message.getFieldWithDefault(msg, 6, ""), - os: jspb.Message.getFieldWithDefault(msg, 7, ""), - arch: jspb.Message.getFieldWithDefault(msg, 8, ""), - pid: jspb.Message.getFieldWithDefault(msg, 9, 0), - filename: jspb.Message.getFieldWithDefault(msg, 10, ""), - activec2: jspb.Message.getFieldWithDefault(msg, 11, ""), - version: jspb.Message.getFieldWithDefault(msg, 12, ""), - reconnectinterval: jspb.Message.getFieldWithDefault(msg, 13, 0), - proxyurl: jspb.Message.getFieldWithDefault(msg, 14, ""), - configid: jspb.Message.getFieldWithDefault(msg, 16, ""), - peerid: jspb.Message.getFieldWithDefault(msg, 17, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Register} - */ -proto.sliverpb.Register.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Register; - return proto.sliverpb.Register.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Register} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Register} - */ -proto.sliverpb.Register.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUuid(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setUid(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setGid(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 9: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 10: - var value = /** @type {string} */ (reader.readString()); - msg.setFilename(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.setActivec2(value); - break; - case 12: - var value = /** @type {string} */ (reader.readString()); - msg.setVersion(value); - break; - case 13: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReconnectinterval(value); - break; - case 14: - var value = /** @type {string} */ (reader.readString()); - msg.setProxyurl(value); - break; - case 16: - var value = /** @type {string} */ (reader.readString()); - msg.setConfigid(value); - break; - case 17: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPeerid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Register.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Register.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Register} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Register.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getUuid(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getUid(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getGid(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 9, - f - ); - } - f = message.getFilename(); - if (f.length > 0) { - writer.writeString( - 10, - f - ); - } - f = message.getActivec2(); - if (f.length > 0) { - writer.writeString( - 11, - f - ); - } - f = message.getVersion(); - if (f.length > 0) { - writer.writeString( - 12, - f - ); - } - f = message.getReconnectinterval(); - if (f !== 0) { - writer.writeInt64( - 13, - f - ); - } - f = message.getProxyurl(); - if (f.length > 0) { - writer.writeString( - 14, - f - ); - } - f = message.getConfigid(); - if (f.length > 0) { - writer.writeString( - 16, - f - ); - } - f = message.getPeerid(); - if (f !== 0) { - writer.writeInt64( - 17, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.Register.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Hostname = 2; - * @return {string} - */ -proto.sliverpb.Register.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Uuid = 3; - * @return {string} - */ -proto.sliverpb.Register.prototype.getUuid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setUuid = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Username = 4; - * @return {string} - */ -proto.sliverpb.Register.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Uid = 5; - * @return {string} - */ -proto.sliverpb.Register.prototype.getUid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setUid = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string Gid = 6; - * @return {string} - */ -proto.sliverpb.Register.prototype.getGid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setGid = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string Os = 7; - * @return {string} - */ -proto.sliverpb.Register.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string Arch = 8; - * @return {string} - */ -proto.sliverpb.Register.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional int32 Pid = 9; - * @return {number} - */ -proto.sliverpb.Register.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 9, value); -}; - - -/** - * optional string Filename = 10; - * @return {string} - */ -proto.sliverpb.Register.prototype.getFilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setFilename = function(value) { - return jspb.Message.setProto3StringField(this, 10, value); -}; - - -/** - * optional string ActiveC2 = 11; - * @return {string} - */ -proto.sliverpb.Register.prototype.getActivec2 = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setActivec2 = function(value) { - return jspb.Message.setProto3StringField(this, 11, value); -}; - - -/** - * optional string Version = 12; - * @return {string} - */ -proto.sliverpb.Register.prototype.getVersion = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setVersion = function(value) { - return jspb.Message.setProto3StringField(this, 12, value); -}; - - -/** - * optional int64 ReconnectInterval = 13; - * @return {number} - */ -proto.sliverpb.Register.prototype.getReconnectinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setReconnectinterval = function(value) { - return jspb.Message.setProto3IntField(this, 13, value); -}; - - -/** - * optional string ProxyURL = 14; - * @return {string} - */ -proto.sliverpb.Register.prototype.getProxyurl = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setProxyurl = function(value) { - return jspb.Message.setProto3StringField(this, 14, value); -}; - - -/** - * optional string ConfigID = 16; - * @return {string} - */ -proto.sliverpb.Register.prototype.getConfigid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setConfigid = function(value) { - return jspb.Message.setProto3StringField(this, 16, value); -}; - - -/** - * optional int64 PeerID = 17; - * @return {number} - */ -proto.sliverpb.Register.prototype.getPeerid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 17, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Register} returns this - */ -proto.sliverpb.Register.prototype.setPeerid = function(value) { - return jspb.Message.setProto3IntField(this, 17, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.BeaconRegister.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.BeaconRegister.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.BeaconRegister} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BeaconRegister.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - interval: jspb.Message.getFieldWithDefault(msg, 2, 0), - jitter: jspb.Message.getFieldWithDefault(msg, 3, 0), - register: (f = msg.getRegister()) && proto.sliverpb.Register.toObject(includeInstance, f), - nextcheckin: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.BeaconRegister} - */ -proto.sliverpb.BeaconRegister.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.BeaconRegister; - return proto.sliverpb.BeaconRegister.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.BeaconRegister} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.BeaconRegister} - */ -proto.sliverpb.BeaconRegister.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setInterval(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setJitter(value); - break; - case 4: - var value = new proto.sliverpb.Register; - reader.readMessage(value,proto.sliverpb.Register.deserializeBinaryFromReader); - msg.setRegister(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setNextcheckin(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.BeaconRegister.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.BeaconRegister.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.BeaconRegister} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BeaconRegister.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getInterval(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getJitter(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRegister(); - if (f != null) { - writer.writeMessage( - 4, - f, - proto.sliverpb.Register.serializeBinaryToWriter - ); - } - f = message.getNextcheckin(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.sliverpb.BeaconRegister.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.BeaconRegister} returns this - */ -proto.sliverpb.BeaconRegister.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 Interval = 2; - * @return {number} - */ -proto.sliverpb.BeaconRegister.prototype.getInterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.BeaconRegister} returns this - */ -proto.sliverpb.BeaconRegister.prototype.setInterval = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 Jitter = 3; - * @return {number} - */ -proto.sliverpb.BeaconRegister.prototype.getJitter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.BeaconRegister} returns this - */ -proto.sliverpb.BeaconRegister.prototype.setJitter = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional Register Register = 4; - * @return {?proto.sliverpb.Register} - */ -proto.sliverpb.BeaconRegister.prototype.getRegister = function() { - return /** @type{?proto.sliverpb.Register} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.Register, 4)); -}; - - -/** - * @param {?proto.sliverpb.Register|undefined} value - * @return {!proto.sliverpb.BeaconRegister} returns this -*/ -proto.sliverpb.BeaconRegister.prototype.setRegister = function(value) { - return jspb.Message.setWrapperField(this, 4, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.BeaconRegister} returns this - */ -proto.sliverpb.BeaconRegister.prototype.clearRegister = function() { - return this.setRegister(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.BeaconRegister.prototype.hasRegister = function() { - return jspb.Message.getField(this, 4) != null; -}; - - -/** - * optional int64 NextCheckin = 5; - * @return {number} - */ -proto.sliverpb.BeaconRegister.prototype.getNextcheckin = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.BeaconRegister} returns this - */ -proto.sliverpb.BeaconRegister.prototype.setNextcheckin = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SessionRegister.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SessionRegister.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SessionRegister} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SessionRegister.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - register: (f = msg.getRegister()) && proto.sliverpb.Register.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SessionRegister} - */ -proto.sliverpb.SessionRegister.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SessionRegister; - return proto.sliverpb.SessionRegister.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SessionRegister} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SessionRegister} - */ -proto.sliverpb.SessionRegister.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = new proto.sliverpb.Register; - reader.readMessage(value,proto.sliverpb.Register.deserializeBinaryFromReader); - msg.setRegister(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SessionRegister.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SessionRegister.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SessionRegister} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SessionRegister.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRegister(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.sliverpb.Register.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.sliverpb.SessionRegister.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SessionRegister} returns this - */ -proto.sliverpb.SessionRegister.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional Register Register = 2; - * @return {?proto.sliverpb.Register} - */ -proto.sliverpb.SessionRegister.prototype.getRegister = function() { - return /** @type{?proto.sliverpb.Register} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.Register, 2)); -}; - - -/** - * @param {?proto.sliverpb.Register|undefined} value - * @return {!proto.sliverpb.SessionRegister} returns this -*/ -proto.sliverpb.SessionRegister.prototype.setRegister = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SessionRegister} returns this - */ -proto.sliverpb.SessionRegister.prototype.clearRegister = function() { - return this.setRegister(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SessionRegister.prototype.hasRegister = function() { - return jspb.Message.getField(this, 2) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.OpenSession.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.OpenSession.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.OpenSession.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.OpenSession} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.OpenSession.toObject = function(includeInstance, msg) { - var f, obj = { - c2sList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - delay: jspb.Message.getFieldWithDefault(msg, 2, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.OpenSession} - */ -proto.sliverpb.OpenSession.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.OpenSession; - return proto.sliverpb.OpenSession.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.OpenSession} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.OpenSession} - */ -proto.sliverpb.OpenSession.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addC2s(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setDelay(value); - break; - case 8: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.OpenSession.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.OpenSession.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.OpenSession} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.OpenSession.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getC2sList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getDelay(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 8, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated string C2s = 1; - * @return {!Array} - */ -proto.sliverpb.OpenSession.prototype.getC2sList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.setC2sList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.addC2s = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.clearC2sList = function() { - return this.setC2sList([]); -}; - - -/** - * optional int64 Delay = 2; - * @return {number} - */ -proto.sliverpb.OpenSession.prototype.getDelay = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.setDelay = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 8; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.OpenSession.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 8)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.OpenSession} returns this -*/ -proto.sliverpb.OpenSession.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.OpenSession.prototype.hasResponse = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.OpenSession.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.OpenSession} returns this -*/ -proto.sliverpb.OpenSession.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.OpenSession} returns this - */ -proto.sliverpb.OpenSession.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.OpenSession.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CloseSession.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CloseSession.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CloseSession} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CloseSession.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CloseSession} - */ -proto.sliverpb.CloseSession.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CloseSession; - return proto.sliverpb.CloseSession.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CloseSession} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CloseSession} - */ -proto.sliverpb.CloseSession.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CloseSession.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CloseSession.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CloseSession} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CloseSession.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 8, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 8; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.CloseSession.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 8)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.CloseSession} returns this -*/ -proto.sliverpb.CloseSession.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CloseSession} returns this - */ -proto.sliverpb.CloseSession.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CloseSession.prototype.hasResponse = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.CloseSession.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.CloseSession} returns this -*/ -proto.sliverpb.CloseSession.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CloseSession} returns this - */ -proto.sliverpb.CloseSession.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CloseSession.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Ping.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Ping.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Ping} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ping.toObject = function(includeInstance, msg) { - var f, obj = { - nonce: jspb.Message.getFieldWithDefault(msg, 1, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Ping} - */ -proto.sliverpb.Ping.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Ping; - return proto.sliverpb.Ping.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Ping} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Ping} - */ -proto.sliverpb.Ping.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setNonce(value); - break; - case 8: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Ping.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Ping.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Ping} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ping.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNonce(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 8, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 Nonce = 1; - * @return {number} - */ -proto.sliverpb.Ping.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Ping} returns this - */ -proto.sliverpb.Ping.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 8; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Ping.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 8)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Ping} returns this -*/ -proto.sliverpb.Ping.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 8, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Ping} returns this - */ -proto.sliverpb.Ping.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Ping.prototype.hasResponse = function() { - return jspb.Message.getField(this, 8) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.Ping.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.Ping} returns this -*/ -proto.sliverpb.Ping.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Ping} returns this - */ -proto.sliverpb.Ping.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Ping.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.KillReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.KillReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.KillReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.KillReq.toObject = function(includeInstance, msg) { - var f, obj = { - force: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.KillReq} - */ -proto.sliverpb.KillReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.KillReq; - return proto.sliverpb.KillReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.KillReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.KillReq} - */ -proto.sliverpb.KillReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setForce(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.KillReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.KillReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.KillReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.KillReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getForce(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool Force = 1; - * @return {boolean} - */ -proto.sliverpb.KillReq.prototype.getForce = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.KillReq} returns this - */ -proto.sliverpb.KillReq.prototype.setForce = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.KillReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.KillReq} returns this -*/ -proto.sliverpb.KillReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.KillReq} returns this - */ -proto.sliverpb.KillReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.KillReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PsReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PsReq} - */ -proto.sliverpb.PsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PsReq; - return proto.sliverpb.PsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PsReq} - */ -proto.sliverpb.PsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PsReq} returns this -*/ -proto.sliverpb.PsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PsReq} returns this - */ -proto.sliverpb.PsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.Ps.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Ps.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Ps.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Ps} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ps.toObject = function(includeInstance, msg) { - var f, obj = { - processesList: jspb.Message.toObjectList(msg.getProcessesList(), - commonpb_common_pb.Process.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Ps} - */ -proto.sliverpb.Ps.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Ps; - return proto.sliverpb.Ps.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Ps} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Ps} - */ -proto.sliverpb.Ps.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commonpb_common_pb.Process; - reader.readMessage(value,commonpb_common_pb.Process.deserializeBinaryFromReader); - msg.addProcesses(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Ps.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Ps.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Ps} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ps.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getProcessesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - commonpb_common_pb.Process.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated commonpb.Process Processes = 1; - * @return {!Array} - */ -proto.sliverpb.Ps.prototype.getProcessesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, commonpb_common_pb.Process, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.Ps} returns this -*/ -proto.sliverpb.Ps.prototype.setProcessesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.commonpb.Process=} opt_value - * @param {number=} opt_index - * @return {!proto.commonpb.Process} - */ -proto.sliverpb.Ps.prototype.addProcesses = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.commonpb.Process, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.Ps} returns this - */ -proto.sliverpb.Ps.prototype.clearProcessesList = function() { - return this.setProcessesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Ps.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Ps} returns this -*/ -proto.sliverpb.Ps.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Ps} returns this - */ -proto.sliverpb.Ps.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Ps.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.TerminateReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.TerminateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.TerminateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TerminateReq.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - force: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.TerminateReq} - */ -proto.sliverpb.TerminateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.TerminateReq; - return proto.sliverpb.TerminateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.TerminateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.TerminateReq} - */ -proto.sliverpb.TerminateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setForce(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.TerminateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.TerminateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.TerminateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TerminateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getForce(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 Pid = 1; - * @return {number} - */ -proto.sliverpb.TerminateReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.TerminateReq} returns this - */ -proto.sliverpb.TerminateReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bool Force = 2; - * @return {boolean} - */ -proto.sliverpb.TerminateReq.prototype.getForce = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.TerminateReq} returns this - */ -proto.sliverpb.TerminateReq.prototype.setForce = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.TerminateReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.TerminateReq} returns this -*/ -proto.sliverpb.TerminateReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.TerminateReq} returns this - */ -proto.sliverpb.TerminateReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.TerminateReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Terminate.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Terminate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Terminate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Terminate.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Terminate} - */ -proto.sliverpb.Terminate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Terminate; - return proto.sliverpb.Terminate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Terminate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Terminate} - */ -proto.sliverpb.Terminate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Terminate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Terminate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Terminate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Terminate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 Pid = 1; - * @return {number} - */ -proto.sliverpb.Terminate.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Terminate} returns this - */ -proto.sliverpb.Terminate.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Terminate.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Terminate} returns this -*/ -proto.sliverpb.Terminate.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Terminate} returns this - */ -proto.sliverpb.Terminate.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Terminate.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.IfconfigReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.IfconfigReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.IfconfigReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.IfconfigReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.IfconfigReq} - */ -proto.sliverpb.IfconfigReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.IfconfigReq; - return proto.sliverpb.IfconfigReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.IfconfigReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.IfconfigReq} - */ -proto.sliverpb.IfconfigReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.IfconfigReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.IfconfigReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.IfconfigReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.IfconfigReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.IfconfigReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.IfconfigReq} returns this -*/ -proto.sliverpb.IfconfigReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.IfconfigReq} returns this - */ -proto.sliverpb.IfconfigReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.IfconfigReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.Ifconfig.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Ifconfig.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Ifconfig.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Ifconfig} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ifconfig.toObject = function(includeInstance, msg) { - var f, obj = { - netinterfacesList: jspb.Message.toObjectList(msg.getNetinterfacesList(), - proto.sliverpb.NetInterface.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Ifconfig} - */ -proto.sliverpb.Ifconfig.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Ifconfig; - return proto.sliverpb.Ifconfig.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Ifconfig} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Ifconfig} - */ -proto.sliverpb.Ifconfig.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.NetInterface; - reader.readMessage(value,proto.sliverpb.NetInterface.deserializeBinaryFromReader); - msg.addNetinterfaces(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Ifconfig.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Ifconfig.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Ifconfig} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ifconfig.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNetinterfacesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.NetInterface.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated NetInterface NetInterfaces = 1; - * @return {!Array} - */ -proto.sliverpb.Ifconfig.prototype.getNetinterfacesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.NetInterface, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.Ifconfig} returns this -*/ -proto.sliverpb.Ifconfig.prototype.setNetinterfacesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.NetInterface=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.NetInterface} - */ -proto.sliverpb.Ifconfig.prototype.addNetinterfaces = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.NetInterface, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.Ifconfig} returns this - */ -proto.sliverpb.Ifconfig.prototype.clearNetinterfacesList = function() { - return this.setNetinterfacesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Ifconfig.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Ifconfig} returns this -*/ -proto.sliverpb.Ifconfig.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Ifconfig} returns this - */ -proto.sliverpb.Ifconfig.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Ifconfig.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.NetInterface.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.NetInterface.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.NetInterface.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.NetInterface} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetInterface.toObject = function(includeInstance, msg) { - var f, obj = { - index: jspb.Message.getFieldWithDefault(msg, 1, 0), - name: jspb.Message.getFieldWithDefault(msg, 2, ""), - mac: jspb.Message.getFieldWithDefault(msg, 3, ""), - ipaddressesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.NetInterface} - */ -proto.sliverpb.NetInterface.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.NetInterface; - return proto.sliverpb.NetInterface.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.NetInterface} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.NetInterface} - */ -proto.sliverpb.NetInterface.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setIndex(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setMac(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.addIpaddresses(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.NetInterface.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.NetInterface.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.NetInterface} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetInterface.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIndex(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getMac(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getIpaddressesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 4, - f - ); - } -}; - - -/** - * optional int32 Index = 1; - * @return {number} - */ -proto.sliverpb.NetInterface.prototype.getIndex = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.setIndex = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.sliverpb.NetInterface.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string MAC = 3; - * @return {string} - */ -proto.sliverpb.NetInterface.prototype.getMac = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.setMac = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated string IPAddresses = 4; - * @return {!Array} - */ -proto.sliverpb.NetInterface.prototype.getIpaddressesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.setIpaddressesList = function(value) { - return jspb.Message.setField(this, 4, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.addIpaddresses = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 4, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.NetInterface} returns this - */ -proto.sliverpb.NetInterface.prototype.clearIpaddressesList = function() { - return this.setIpaddressesList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.LsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.LsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.LsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.LsReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.LsReq} - */ -proto.sliverpb.LsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.LsReq; - return proto.sliverpb.LsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.LsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.LsReq} - */ -proto.sliverpb.LsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.LsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.LsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.LsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.LsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.LsReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.LsReq} returns this - */ -proto.sliverpb.LsReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.LsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.LsReq} returns this -*/ -proto.sliverpb.LsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.LsReq} returns this - */ -proto.sliverpb.LsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.LsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.Ls.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Ls.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Ls.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Ls} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ls.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - exists: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - filesList: jspb.Message.toObjectList(msg.getFilesList(), - proto.sliverpb.FileInfo.toObject, includeInstance), - timezone: jspb.Message.getFieldWithDefault(msg, 4, ""), - timezoneoffset: jspb.Message.getFieldWithDefault(msg, 5, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Ls} - */ -proto.sliverpb.Ls.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Ls; - return proto.sliverpb.Ls.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Ls} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Ls} - */ -proto.sliverpb.Ls.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExists(value); - break; - case 3: - var value = new proto.sliverpb.FileInfo; - reader.readMessage(value,proto.sliverpb.FileInfo.deserializeBinaryFromReader); - msg.addFiles(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setTimezone(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTimezoneoffset(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Ls.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Ls.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Ls} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Ls.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getExists(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getFilesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 3, - f, - proto.sliverpb.FileInfo.serializeBinaryToWriter - ); - } - f = message.getTimezone(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getTimezoneoffset(); - if (f !== 0) { - writer.writeInt32( - 5, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Ls.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool Exists = 2; - * @return {boolean} - */ -proto.sliverpb.Ls.prototype.getExists = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.setExists = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * repeated FileInfo Files = 3; - * @return {!Array} - */ -proto.sliverpb.Ls.prototype.getFilesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.FileInfo, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.Ls} returns this -*/ -proto.sliverpb.Ls.prototype.setFilesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 3, value); -}; - - -/** - * @param {!proto.sliverpb.FileInfo=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.FileInfo} - */ -proto.sliverpb.Ls.prototype.addFiles = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.sliverpb.FileInfo, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.clearFilesList = function() { - return this.setFilesList([]); -}; - - -/** - * optional string timezone = 4; - * @return {string} - */ -proto.sliverpb.Ls.prototype.getTimezone = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.setTimezone = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional int32 timezoneOffset = 5; - * @return {number} - */ -proto.sliverpb.Ls.prototype.getTimezoneoffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.setTimezoneoffset = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Ls.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Ls} returns this -*/ -proto.sliverpb.Ls.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Ls} returns this - */ -proto.sliverpb.Ls.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Ls.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.FileInfo.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.FileInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.FileInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.FileInfo.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - isdir: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - size: jspb.Message.getFieldWithDefault(msg, 3, 0), - modtime: jspb.Message.getFieldWithDefault(msg, 4, 0), - mode: jspb.Message.getFieldWithDefault(msg, 5, ""), - link: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.FileInfo} - */ -proto.sliverpb.FileInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.FileInfo; - return proto.sliverpb.FileInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.FileInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.FileInfo} - */ -proto.sliverpb.FileInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdir(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setSize(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setModtime(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setMode(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setLink(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.FileInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.FileInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.FileInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.FileInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getIsdir(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getModtime(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getMode(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getLink(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.FileInfo.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool IsDir = 2; - * @return {boolean} - */ -proto.sliverpb.FileInfo.prototype.getIsdir = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setIsdir = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional int64 Size = 3; - * @return {number} - */ -proto.sliverpb.FileInfo.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional int64 ModTime = 4; - * @return {number} - */ -proto.sliverpb.FileInfo.prototype.getModtime = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setModtime = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional string Mode = 5; - * @return {string} - */ -proto.sliverpb.FileInfo.prototype.getMode = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setMode = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string Link = 6; - * @return {string} - */ -proto.sliverpb.FileInfo.prototype.getLink = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.FileInfo} returns this - */ -proto.sliverpb.FileInfo.prototype.setLink = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CdReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CdReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CdReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CdReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CdReq} - */ -proto.sliverpb.CdReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CdReq; - return proto.sliverpb.CdReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CdReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CdReq} - */ -proto.sliverpb.CdReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CdReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CdReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CdReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CdReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.CdReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.CdReq} returns this - */ -proto.sliverpb.CdReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.CdReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.CdReq} returns this -*/ -proto.sliverpb.CdReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CdReq} returns this - */ -proto.sliverpb.CdReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CdReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PwdReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PwdReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PwdReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PwdReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PwdReq} - */ -proto.sliverpb.PwdReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PwdReq; - return proto.sliverpb.PwdReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PwdReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PwdReq} - */ -proto.sliverpb.PwdReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PwdReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PwdReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PwdReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PwdReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PwdReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PwdReq} returns this -*/ -proto.sliverpb.PwdReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PwdReq} returns this - */ -proto.sliverpb.PwdReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PwdReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Pwd.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Pwd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Pwd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Pwd.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Pwd} - */ -proto.sliverpb.Pwd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Pwd; - return proto.sliverpb.Pwd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Pwd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Pwd} - */ -proto.sliverpb.Pwd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Pwd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Pwd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Pwd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Pwd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Pwd.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Pwd} returns this - */ -proto.sliverpb.Pwd.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Pwd.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Pwd} returns this -*/ -proto.sliverpb.Pwd.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Pwd} returns this - */ -proto.sliverpb.Pwd.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Pwd.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RmReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RmReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RmReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RmReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - recursive: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - force: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RmReq} - */ -proto.sliverpb.RmReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RmReq; - return proto.sliverpb.RmReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RmReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RmReq} - */ -proto.sliverpb.RmReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRecursive(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setForce(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RmReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RmReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RmReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RmReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRecursive(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getForce(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.RmReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RmReq} returns this - */ -proto.sliverpb.RmReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool Recursive = 2; - * @return {boolean} - */ -proto.sliverpb.RmReq.prototype.getRecursive = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.RmReq} returns this - */ -proto.sliverpb.RmReq.prototype.setRecursive = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool Force = 3; - * @return {boolean} - */ -proto.sliverpb.RmReq.prototype.getForce = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.RmReq} returns this - */ -proto.sliverpb.RmReq.prototype.setForce = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RmReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RmReq} returns this -*/ -proto.sliverpb.RmReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RmReq} returns this - */ -proto.sliverpb.RmReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RmReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Rm.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Rm.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Rm} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Rm.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Rm} - */ -proto.sliverpb.Rm.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Rm; - return proto.sliverpb.Rm.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Rm} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Rm} - */ -proto.sliverpb.Rm.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Rm.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Rm.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Rm} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Rm.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Rm.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Rm} returns this - */ -proto.sliverpb.Rm.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Rm.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Rm} returns this -*/ -proto.sliverpb.Rm.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Rm} returns this - */ -proto.sliverpb.Rm.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Rm.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.MvReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.MvReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.MvReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MvReq.toObject = function(includeInstance, msg) { - var f, obj = { - src: jspb.Message.getFieldWithDefault(msg, 1, ""), - dst: jspb.Message.getFieldWithDefault(msg, 2, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.MvReq} - */ -proto.sliverpb.MvReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.MvReq; - return proto.sliverpb.MvReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.MvReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.MvReq} - */ -proto.sliverpb.MvReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSrc(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDst(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.MvReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.MvReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.MvReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MvReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSrc(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDst(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Src = 1; - * @return {string} - */ -proto.sliverpb.MvReq.prototype.getSrc = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MvReq} returns this - */ -proto.sliverpb.MvReq.prototype.setSrc = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Dst = 2; - * @return {string} - */ -proto.sliverpb.MvReq.prototype.getDst = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MvReq} returns this - */ -proto.sliverpb.MvReq.prototype.setDst = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.MvReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.MvReq} returns this -*/ -proto.sliverpb.MvReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.MvReq} returns this - */ -proto.sliverpb.MvReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.MvReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Mv.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Mv.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Mv} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Mv.toObject = function(includeInstance, msg) { - var f, obj = { - src: jspb.Message.getFieldWithDefault(msg, 1, ""), - dst: jspb.Message.getFieldWithDefault(msg, 2, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Mv} - */ -proto.sliverpb.Mv.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Mv; - return proto.sliverpb.Mv.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Mv} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Mv} - */ -proto.sliverpb.Mv.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setSrc(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDst(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Mv.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Mv.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Mv} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Mv.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSrc(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDst(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Src = 1; - * @return {string} - */ -proto.sliverpb.Mv.prototype.getSrc = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Mv} returns this - */ -proto.sliverpb.Mv.prototype.setSrc = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Dst = 2; - * @return {string} - */ -proto.sliverpb.Mv.prototype.getDst = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Mv} returns this - */ -proto.sliverpb.Mv.prototype.setDst = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Mv.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Mv} returns this -*/ -proto.sliverpb.Mv.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Mv} returns this - */ -proto.sliverpb.Mv.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Mv.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.MkdirReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.MkdirReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.MkdirReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MkdirReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.MkdirReq} - */ -proto.sliverpb.MkdirReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.MkdirReq; - return proto.sliverpb.MkdirReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.MkdirReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.MkdirReq} - */ -proto.sliverpb.MkdirReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.MkdirReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.MkdirReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.MkdirReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MkdirReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.MkdirReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MkdirReq} returns this - */ -proto.sliverpb.MkdirReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.MkdirReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.MkdirReq} returns this -*/ -proto.sliverpb.MkdirReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.MkdirReq} returns this - */ -proto.sliverpb.MkdirReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.MkdirReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Mkdir.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Mkdir.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Mkdir} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Mkdir.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Mkdir} - */ -proto.sliverpb.Mkdir.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Mkdir; - return proto.sliverpb.Mkdir.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Mkdir} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Mkdir} - */ -proto.sliverpb.Mkdir.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Mkdir.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Mkdir.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Mkdir} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Mkdir.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Mkdir.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Mkdir} returns this - */ -proto.sliverpb.Mkdir.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Mkdir.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Mkdir} returns this -*/ -proto.sliverpb.Mkdir.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Mkdir} returns this - */ -proto.sliverpb.Mkdir.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Mkdir.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.DownloadReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.DownloadReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.DownloadReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DownloadReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - start: jspb.Message.getFieldWithDefault(msg, 2, 0), - stop: jspb.Message.getFieldWithDefault(msg, 3, 0), - recurse: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.DownloadReq} - */ -proto.sliverpb.DownloadReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.DownloadReq; - return proto.sliverpb.DownloadReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.DownloadReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.DownloadReq} - */ -proto.sliverpb.DownloadReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setStart(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setStop(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRecurse(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.DownloadReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.DownloadReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.DownloadReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DownloadReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStart(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getStop(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRecurse(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.DownloadReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.DownloadReq} returns this - */ -proto.sliverpb.DownloadReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional int64 Start = 2; - * @return {number} - */ -proto.sliverpb.DownloadReq.prototype.getStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.DownloadReq} returns this - */ -proto.sliverpb.DownloadReq.prototype.setStart = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 Stop = 3; - * @return {number} - */ -proto.sliverpb.DownloadReq.prototype.getStop = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.DownloadReq} returns this - */ -proto.sliverpb.DownloadReq.prototype.setStop = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bool Recurse = 4; - * @return {boolean} - */ -proto.sliverpb.DownloadReq.prototype.getRecurse = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.DownloadReq} returns this - */ -proto.sliverpb.DownloadReq.prototype.setRecurse = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.DownloadReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.DownloadReq} returns this -*/ -proto.sliverpb.DownloadReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.DownloadReq} returns this - */ -proto.sliverpb.DownloadReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.DownloadReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Download.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Download.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Download} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Download.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoder: jspb.Message.getFieldWithDefault(msg, 2, ""), - exists: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - start: jspb.Message.getFieldWithDefault(msg, 4, 0), - stop: jspb.Message.getFieldWithDefault(msg, 5, 0), - data: msg.getData_asB64(), - isdir: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - readfiles: jspb.Message.getFieldWithDefault(msg, 8, 0), - unreadablefiles: jspb.Message.getFieldWithDefault(msg, 10, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Download} - */ -proto.sliverpb.Download.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Download; - return proto.sliverpb.Download.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Download} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Download} - */ -proto.sliverpb.Download.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoder(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setExists(value); - break; - case 4: - var value = /** @type {number} */ (reader.readInt64()); - msg.setStart(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setStop(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdir(value); - break; - case 8: - var value = /** @type {number} */ (reader.readInt32()); - msg.setReadfiles(value); - break; - case 10: - var value = /** @type {number} */ (reader.readInt32()); - msg.setUnreadablefiles(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Download.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Download.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Download} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Download.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoder(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getExists(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getStart(); - if (f !== 0) { - writer.writeInt64( - 4, - f - ); - } - f = message.getStop(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getIsdir(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getReadfiles(); - if (f !== 0) { - writer.writeInt32( - 8, - f - ); - } - f = message.getUnreadablefiles(); - if (f !== 0) { - writer.writeInt32( - 10, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Download.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Encoder = 2; - * @return {string} - */ -proto.sliverpb.Download.prototype.getEncoder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setEncoder = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool Exists = 3; - * @return {boolean} - */ -proto.sliverpb.Download.prototype.getExists = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setExists = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional int64 Start = 4; - * @return {number} - */ -proto.sliverpb.Download.prototype.getStart = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setStart = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional int64 Stop = 5; - * @return {number} - */ -proto.sliverpb.Download.prototype.getStop = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setStop = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional bytes Data = 6; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.Download.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes Data = 6; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.Download.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.Download.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional bool IsDir = 7; - * @return {boolean} - */ -proto.sliverpb.Download.prototype.getIsdir = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setIsdir = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional int32 ReadFiles = 8; - * @return {number} - */ -proto.sliverpb.Download.prototype.getReadfiles = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setReadfiles = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional int32 UnreadableFiles = 10; - * @return {number} - */ -proto.sliverpb.Download.prototype.getUnreadablefiles = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.setUnreadablefiles = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Download.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Download} returns this -*/ -proto.sliverpb.Download.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Download} returns this - */ -proto.sliverpb.Download.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Download.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.UploadReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.UploadReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.UploadReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UploadReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - encoder: jspb.Message.getFieldWithDefault(msg, 2, ""), - data: msg.getData_asB64(), - isioc: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.UploadReq} - */ -proto.sliverpb.UploadReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.UploadReq; - return proto.sliverpb.UploadReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.UploadReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.UploadReq} - */ -proto.sliverpb.UploadReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoder(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsioc(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.UploadReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.UploadReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.UploadReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UploadReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEncoder(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getIsioc(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.UploadReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.UploadReq} returns this - */ -proto.sliverpb.UploadReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Encoder = 2; - * @return {string} - */ -proto.sliverpb.UploadReq.prototype.getEncoder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.UploadReq} returns this - */ -proto.sliverpb.UploadReq.prototype.setEncoder = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bytes Data = 3; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.UploadReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes Data = 3; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.UploadReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.UploadReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.UploadReq} returns this - */ -proto.sliverpb.UploadReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bool IsIOC = 4; - * @return {boolean} - */ -proto.sliverpb.UploadReq.prototype.getIsioc = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.UploadReq} returns this - */ -proto.sliverpb.UploadReq.prototype.setIsioc = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.UploadReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.UploadReq} returns this -*/ -proto.sliverpb.UploadReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.UploadReq} returns this - */ -proto.sliverpb.UploadReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.UploadReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Upload.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Upload.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Upload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Upload.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Upload} - */ -proto.sliverpb.Upload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Upload; - return proto.sliverpb.Upload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Upload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Upload} - */ -proto.sliverpb.Upload.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Upload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Upload.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Upload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Upload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Upload.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Upload} returns this - */ -proto.sliverpb.Upload.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Upload.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Upload} returns this -*/ -proto.sliverpb.Upload.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Upload} returns this - */ -proto.sliverpb.Upload.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Upload.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ProcessDumpReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ProcessDumpReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ProcessDumpReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ProcessDumpReq.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - timeout: jspb.Message.getFieldWithDefault(msg, 2, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ProcessDumpReq} - */ -proto.sliverpb.ProcessDumpReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ProcessDumpReq; - return proto.sliverpb.ProcessDumpReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ProcessDumpReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ProcessDumpReq} - */ -proto.sliverpb.ProcessDumpReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPid(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setTimeout(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ProcessDumpReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ProcessDumpReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ProcessDumpReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ProcessDumpReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getTimeout(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 Pid = 1; - * @return {number} - */ -proto.sliverpb.ProcessDumpReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ProcessDumpReq} returns this - */ -proto.sliverpb.ProcessDumpReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 Timeout = 2; - * @return {number} - */ -proto.sliverpb.ProcessDumpReq.prototype.getTimeout = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ProcessDumpReq} returns this - */ -proto.sliverpb.ProcessDumpReq.prototype.setTimeout = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ProcessDumpReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ProcessDumpReq} returns this -*/ -proto.sliverpb.ProcessDumpReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ProcessDumpReq} returns this - */ -proto.sliverpb.ProcessDumpReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ProcessDumpReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ProcessDump.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ProcessDump.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ProcessDump} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ProcessDump.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ProcessDump} - */ -proto.sliverpb.ProcessDump.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ProcessDump; - return proto.sliverpb.ProcessDump.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ProcessDump} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ProcessDump} - */ -proto.sliverpb.ProcessDump.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ProcessDump.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ProcessDump.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ProcessDump} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ProcessDump.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.ProcessDump.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.ProcessDump.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.ProcessDump.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.ProcessDump} returns this - */ -proto.sliverpb.ProcessDump.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.ProcessDump.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.ProcessDump} returns this -*/ -proto.sliverpb.ProcessDump.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ProcessDump} returns this - */ -proto.sliverpb.ProcessDump.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ProcessDump.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RunAsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RunAsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RunAsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RunAsReq.toObject = function(includeInstance, msg) { - var f, obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, ""), - processname: jspb.Message.getFieldWithDefault(msg, 2, ""), - args: jspb.Message.getFieldWithDefault(msg, 3, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RunAsReq} - */ -proto.sliverpb.RunAsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RunAsReq; - return proto.sliverpb.RunAsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RunAsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RunAsReq} - */ -proto.sliverpb.RunAsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setArgs(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RunAsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RunAsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RunAsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RunAsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProcessname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getArgs(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Username = 1; - * @return {string} - */ -proto.sliverpb.RunAsReq.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RunAsReq} returns this - */ -proto.sliverpb.RunAsReq.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ProcessName = 2; - * @return {string} - */ -proto.sliverpb.RunAsReq.prototype.getProcessname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RunAsReq} returns this - */ -proto.sliverpb.RunAsReq.prototype.setProcessname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Args = 3; - * @return {string} - */ -proto.sliverpb.RunAsReq.prototype.getArgs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RunAsReq} returns this - */ -proto.sliverpb.RunAsReq.prototype.setArgs = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RunAsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RunAsReq} returns this -*/ -proto.sliverpb.RunAsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RunAsReq} returns this - */ -proto.sliverpb.RunAsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RunAsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RunAs.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RunAs.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RunAs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RunAs.toObject = function(includeInstance, msg) { - var f, obj = { - output: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RunAs} - */ -proto.sliverpb.RunAs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RunAs; - return proto.sliverpb.RunAs.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RunAs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RunAs} - */ -proto.sliverpb.RunAs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOutput(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RunAs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RunAs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RunAs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RunAs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOutput(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Output = 1; - * @return {string} - */ -proto.sliverpb.RunAs.prototype.getOutput = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RunAs} returns this - */ -proto.sliverpb.RunAs.prototype.setOutput = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RunAs.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RunAs} returns this -*/ -proto.sliverpb.RunAs.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RunAs} returns this - */ -proto.sliverpb.RunAs.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RunAs.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ImpersonateReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ImpersonateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ImpersonateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ImpersonateReq.toObject = function(includeInstance, msg) { - var f, obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ImpersonateReq} - */ -proto.sliverpb.ImpersonateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ImpersonateReq; - return proto.sliverpb.ImpersonateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ImpersonateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ImpersonateReq} - */ -proto.sliverpb.ImpersonateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ImpersonateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ImpersonateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ImpersonateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ImpersonateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Username = 1; - * @return {string} - */ -proto.sliverpb.ImpersonateReq.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ImpersonateReq} returns this - */ -proto.sliverpb.ImpersonateReq.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ImpersonateReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ImpersonateReq} returns this -*/ -proto.sliverpb.ImpersonateReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ImpersonateReq} returns this - */ -proto.sliverpb.ImpersonateReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ImpersonateReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Impersonate.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Impersonate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Impersonate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Impersonate.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Impersonate} - */ -proto.sliverpb.Impersonate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Impersonate; - return proto.sliverpb.Impersonate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Impersonate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Impersonate} - */ -proto.sliverpb.Impersonate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Impersonate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Impersonate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Impersonate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Impersonate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Impersonate.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Impersonate} returns this -*/ -proto.sliverpb.Impersonate.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Impersonate} returns this - */ -proto.sliverpb.Impersonate.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Impersonate.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RevToSelfReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RevToSelfReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RevToSelfReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RevToSelfReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RevToSelfReq} - */ -proto.sliverpb.RevToSelfReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RevToSelfReq; - return proto.sliverpb.RevToSelfReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RevToSelfReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RevToSelfReq} - */ -proto.sliverpb.RevToSelfReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RevToSelfReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RevToSelfReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RevToSelfReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RevToSelfReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RevToSelfReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RevToSelfReq} returns this -*/ -proto.sliverpb.RevToSelfReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RevToSelfReq} returns this - */ -proto.sliverpb.RevToSelfReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RevToSelfReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RevToSelf.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RevToSelf.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RevToSelf} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RevToSelf.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RevToSelf} - */ -proto.sliverpb.RevToSelf.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RevToSelf; - return proto.sliverpb.RevToSelf.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RevToSelf} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RevToSelf} - */ -proto.sliverpb.RevToSelf.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RevToSelf.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RevToSelf.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RevToSelf} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RevToSelf.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RevToSelf.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RevToSelf} returns this -*/ -proto.sliverpb.RevToSelf.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RevToSelf} returns this - */ -proto.sliverpb.RevToSelf.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RevToSelf.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CurrentTokenOwnerReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CurrentTokenOwnerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CurrentTokenOwnerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CurrentTokenOwnerReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CurrentTokenOwnerReq} - */ -proto.sliverpb.CurrentTokenOwnerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CurrentTokenOwnerReq; - return proto.sliverpb.CurrentTokenOwnerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CurrentTokenOwnerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CurrentTokenOwnerReq} - */ -proto.sliverpb.CurrentTokenOwnerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CurrentTokenOwnerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CurrentTokenOwnerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CurrentTokenOwnerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CurrentTokenOwnerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.CurrentTokenOwnerReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.CurrentTokenOwnerReq} returns this -*/ -proto.sliverpb.CurrentTokenOwnerReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CurrentTokenOwnerReq} returns this - */ -proto.sliverpb.CurrentTokenOwnerReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CurrentTokenOwnerReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CurrentTokenOwner.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CurrentTokenOwner.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CurrentTokenOwner} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CurrentTokenOwner.toObject = function(includeInstance, msg) { - var f, obj = { - output: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CurrentTokenOwner} - */ -proto.sliverpb.CurrentTokenOwner.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CurrentTokenOwner; - return proto.sliverpb.CurrentTokenOwner.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CurrentTokenOwner} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CurrentTokenOwner} - */ -proto.sliverpb.CurrentTokenOwner.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setOutput(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CurrentTokenOwner.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CurrentTokenOwner.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CurrentTokenOwner} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CurrentTokenOwner.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOutput(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Output = 1; - * @return {string} - */ -proto.sliverpb.CurrentTokenOwner.prototype.getOutput = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.CurrentTokenOwner} returns this - */ -proto.sliverpb.CurrentTokenOwner.prototype.setOutput = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.CurrentTokenOwner.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.CurrentTokenOwner} returns this -*/ -proto.sliverpb.CurrentTokenOwner.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CurrentTokenOwner} returns this - */ -proto.sliverpb.CurrentTokenOwner.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CurrentTokenOwner.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.InvokeGetSystemReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.InvokeGetSystemReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeGetSystemReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - hostingprocess: jspb.Message.getFieldWithDefault(msg, 2, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.InvokeGetSystemReq} - */ -proto.sliverpb.InvokeGetSystemReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.InvokeGetSystemReq; - return proto.sliverpb.InvokeGetSystemReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.InvokeGetSystemReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.InvokeGetSystemReq} - */ -proto.sliverpb.InvokeGetSystemReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHostingprocess(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.InvokeGetSystemReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.InvokeGetSystemReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeGetSystemReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getHostingprocess(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.InvokeGetSystemReq} returns this - */ -proto.sliverpb.InvokeGetSystemReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string HostingProcess = 2; - * @return {string} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.getHostingprocess = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeGetSystemReq} returns this - */ -proto.sliverpb.InvokeGetSystemReq.prototype.setHostingprocess = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.InvokeGetSystemReq} returns this -*/ -proto.sliverpb.InvokeGetSystemReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.InvokeGetSystemReq} returns this - */ -proto.sliverpb.InvokeGetSystemReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.InvokeGetSystemReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.GetSystem.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.GetSystem.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.GetSystem} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetSystem.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.GetSystem} - */ -proto.sliverpb.GetSystem.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.GetSystem; - return proto.sliverpb.GetSystem.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.GetSystem} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.GetSystem} - */ -proto.sliverpb.GetSystem.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.GetSystem.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.GetSystem.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.GetSystem} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetSystem.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.GetSystem.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.GetSystem} returns this -*/ -proto.sliverpb.GetSystem.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.GetSystem} returns this - */ -proto.sliverpb.GetSystem.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.GetSystem.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.MakeTokenReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.MakeTokenReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.MakeTokenReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MakeTokenReq.toObject = function(includeInstance, msg) { - var f, obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, ""), - password: jspb.Message.getFieldWithDefault(msg, 2, ""), - domain: jspb.Message.getFieldWithDefault(msg, 3, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.MakeTokenReq} - */ -proto.sliverpb.MakeTokenReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.MakeTokenReq; - return proto.sliverpb.MakeTokenReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.MakeTokenReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.MakeTokenReq} - */ -proto.sliverpb.MakeTokenReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setDomain(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.MakeTokenReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.MakeTokenReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.MakeTokenReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MakeTokenReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getDomain(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Username = 1; - * @return {string} - */ -proto.sliverpb.MakeTokenReq.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MakeTokenReq} returns this - */ -proto.sliverpb.MakeTokenReq.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Password = 2; - * @return {string} - */ -proto.sliverpb.MakeTokenReq.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MakeTokenReq} returns this - */ -proto.sliverpb.MakeTokenReq.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Domain = 3; - * @return {string} - */ -proto.sliverpb.MakeTokenReq.prototype.getDomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.MakeTokenReq} returns this - */ -proto.sliverpb.MakeTokenReq.prototype.setDomain = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.MakeTokenReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.MakeTokenReq} returns this -*/ -proto.sliverpb.MakeTokenReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.MakeTokenReq} returns this - */ -proto.sliverpb.MakeTokenReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.MakeTokenReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.MakeToken.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.MakeToken.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.MakeToken} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MakeToken.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.MakeToken} - */ -proto.sliverpb.MakeToken.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.MakeToken; - return proto.sliverpb.MakeToken.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.MakeToken} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.MakeToken} - */ -proto.sliverpb.MakeToken.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.MakeToken.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.MakeToken.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.MakeToken} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.MakeToken.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.MakeToken.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.MakeToken} returns this -*/ -proto.sliverpb.MakeToken.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.MakeToken} returns this - */ -proto.sliverpb.MakeToken.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.MakeToken.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.TaskReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.TaskReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.TaskReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TaskReq.toObject = function(includeInstance, msg) { - var f, obj = { - encoder: jspb.Message.getFieldWithDefault(msg, 1, ""), - rwxpages: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - pid: jspb.Message.getFieldWithDefault(msg, 3, 0), - data: msg.getData_asB64(), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.TaskReq} - */ -proto.sliverpb.TaskReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.TaskReq; - return proto.sliverpb.TaskReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.TaskReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.TaskReq} - */ -proto.sliverpb.TaskReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setEncoder(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRwxpages(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.TaskReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.TaskReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.TaskReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TaskReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEncoder(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRwxpages(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Encoder = 1; - * @return {string} - */ -proto.sliverpb.TaskReq.prototype.getEncoder = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.TaskReq} returns this - */ -proto.sliverpb.TaskReq.prototype.setEncoder = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool RWXPages = 2; - * @return {boolean} - */ -proto.sliverpb.TaskReq.prototype.getRwxpages = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.TaskReq} returns this - */ -proto.sliverpb.TaskReq.prototype.setRwxpages = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint32 Pid = 3; - * @return {number} - */ -proto.sliverpb.TaskReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.TaskReq} returns this - */ -proto.sliverpb.TaskReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional bytes Data = 4; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.TaskReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes Data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.TaskReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.TaskReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.TaskReq} returns this - */ -proto.sliverpb.TaskReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.TaskReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.TaskReq} returns this -*/ -proto.sliverpb.TaskReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.TaskReq} returns this - */ -proto.sliverpb.TaskReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.TaskReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Task.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Task.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Task} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Task.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Task} - */ -proto.sliverpb.Task.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Task; - return proto.sliverpb.Task.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Task} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Task} - */ -proto.sliverpb.Task.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Task.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Task.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Task} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Task.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Task.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Task} returns this -*/ -proto.sliverpb.Task.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Task} returns this - */ -proto.sliverpb.Task.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Task.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.ExecuteAssemblyReq.repeatedFields_ = [11]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ExecuteAssemblyReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ExecuteAssemblyReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteAssemblyReq.toObject = function(includeInstance, msg) { - var f, obj = { - assembly: msg.getAssembly_asB64(), - arguments: jspb.Message.getFieldWithDefault(msg, 2, ""), - process: jspb.Message.getFieldWithDefault(msg, 3, ""), - isdll: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - arch: jspb.Message.getFieldWithDefault(msg, 5, ""), - classname: jspb.Message.getFieldWithDefault(msg, 6, ""), - method: jspb.Message.getFieldWithDefault(msg, 7, ""), - appdomain: jspb.Message.getFieldWithDefault(msg, 8, ""), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - processargsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - inprocess: jspb.Message.getBooleanFieldWithDefault(msg, 12, false), - runtime: jspb.Message.getFieldWithDefault(msg, 13, ""), - amsibypass: jspb.Message.getBooleanFieldWithDefault(msg, 14, false), - etwbypass: jspb.Message.getBooleanFieldWithDefault(msg, 15, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ExecuteAssemblyReq} - */ -proto.sliverpb.ExecuteAssemblyReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ExecuteAssemblyReq; - return proto.sliverpb.ExecuteAssemblyReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ExecuteAssemblyReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ExecuteAssemblyReq} - */ -proto.sliverpb.ExecuteAssemblyReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setAssembly(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setArguments(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProcess(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdll(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setArch(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setClassname(value); - break; - case 7: - var value = /** @type {string} */ (reader.readString()); - msg.setMethod(value); - break; - case 8: - var value = /** @type {string} */ (reader.readString()); - msg.setAppdomain(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addProcessargs(value); - break; - case 12: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setInprocess(value); - break; - case 13: - var value = /** @type {string} */ (reader.readString()); - msg.setRuntime(value); - break; - case 14: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAmsibypass(value); - break; - case 15: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEtwbypass(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ExecuteAssemblyReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ExecuteAssemblyReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteAssemblyReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getAssembly_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getArguments(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProcess(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getIsdll(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getArch(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getClassname(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } - f = message.getMethod(); - if (f.length > 0) { - writer.writeString( - 7, - f - ); - } - f = message.getAppdomain(); - if (f.length > 0) { - writer.writeString( - 8, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getProcessargsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getInprocess(); - if (f) { - writer.writeBool( - 12, - f - ); - } - f = message.getRuntime(); - if (f.length > 0) { - writer.writeString( - 13, - f - ); - } - f = message.getAmsibypass(); - if (f) { - writer.writeBool( - 14, - f - ); - } - f = message.getEtwbypass(); - if (f) { - writer.writeBool( - 15, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Assembly = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getAssembly = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Assembly = 1; - * This is a type-conversion wrapper around `getAssembly()` - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getAssembly_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getAssembly())); -}; - - -/** - * optional bytes Assembly = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getAssembly()` - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getAssembly_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getAssembly())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setAssembly = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string Arguments = 2; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getArguments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setArguments = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Process = 3; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getProcess = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setProcess = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool IsDLL = 4; - * @return {boolean} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getIsdll = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setIsdll = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional string Arch = 5; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getArch = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setArch = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional string ClassName = 6; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getClassname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setClassname = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - -/** - * optional string Method = 7; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getMethod = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setMethod = function(value) { - return jspb.Message.setProto3StringField(this, 7, value); -}; - - -/** - * optional string AppDomain = 8; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getAppdomain = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setAppdomain = function(value) { - return jspb.Message.setProto3StringField(this, 8, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * repeated string ProcessArgs = 11; - * @return {!Array} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getProcessargsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setProcessargsList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.addProcessargs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.clearProcessargsList = function() { - return this.setProcessargsList([]); -}; - - -/** - * optional bool InProcess = 12; - * @return {boolean} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getInprocess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setInprocess = function(value) { - return jspb.Message.setProto3BooleanField(this, 12, value); -}; - - -/** - * optional string Runtime = 13; - * @return {string} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getRuntime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setRuntime = function(value) { - return jspb.Message.setProto3StringField(this, 13, value); -}; - - -/** - * optional bool AmsiBypass = 14; - * @return {boolean} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getAmsibypass = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 14, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setAmsibypass = function(value) { - return jspb.Message.setProto3BooleanField(this, 14, value); -}; - - -/** - * optional bool EtwBypass = 15; - * @return {boolean} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getEtwbypass = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 15, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.setEtwbypass = function(value) { - return jspb.Message.setProto3BooleanField(this, 15, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this -*/ -proto.sliverpb.ExecuteAssemblyReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ExecuteAssemblyReq} returns this - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ExecuteAssemblyReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.InvokeExecuteAssemblyReq.repeatedFields_ = [11]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.InvokeExecuteAssemblyReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.InvokeExecuteAssemblyReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeExecuteAssemblyReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - process: jspb.Message.getFieldWithDefault(msg, 2, ""), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - processargsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.InvokeExecuteAssemblyReq; - return proto.sliverpb.InvokeExecuteAssemblyReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.InvokeExecuteAssemblyReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcess(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addProcessargs(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.InvokeExecuteAssemblyReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.InvokeExecuteAssemblyReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeExecuteAssemblyReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getProcess(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getProcessargsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string process = 2; - * @return {string} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getProcess = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.setProcess = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * repeated string ProcessArgs = 11; - * @return {!Array} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getProcessargsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.setProcessargsList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.addProcessargs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.clearProcessargsList = function() { - return this.setProcessargsList([]); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this -*/ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.InvokeExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.InvokeExecuteAssemblyReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.InvokeInProcExecuteAssemblyReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - argumentsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - runtime: jspb.Message.getFieldWithDefault(msg, 3, ""), - amsibypass: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - etwbypass: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.InvokeInProcExecuteAssemblyReq; - return proto.sliverpb.InvokeInProcExecuteAssemblyReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addArguments(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRuntime(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setAmsibypass(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEtwbypass(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.InvokeInProcExecuteAssemblyReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getArgumentsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getRuntime(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getAmsibypass(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getEtwbypass(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * repeated string Arguments = 2; - * @return {!Array} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getArgumentsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setArgumentsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.addArguments = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.clearArgumentsList = function() { - return this.setArgumentsList([]); -}; - - -/** - * optional string Runtime = 3; - * @return {string} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getRuntime = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setRuntime = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bool AmsiBypass = 4; - * @return {boolean} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getAmsibypass = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setAmsibypass = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool EtwBypass = 5; - * @return {boolean} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getEtwbypass = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setEtwbypass = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this -*/ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.InvokeInProcExecuteAssemblyReq} returns this - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.InvokeInProcExecuteAssemblyReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ExecuteAssembly.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ExecuteAssembly.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ExecuteAssembly} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteAssembly.toObject = function(includeInstance, msg) { - var f, obj = { - output: msg.getOutput_asB64(), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ExecuteAssembly} - */ -proto.sliverpb.ExecuteAssembly.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ExecuteAssembly; - return proto.sliverpb.ExecuteAssembly.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ExecuteAssembly} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ExecuteAssembly} - */ -proto.sliverpb.ExecuteAssembly.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOutput(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteAssembly.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ExecuteAssembly.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ExecuteAssembly} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteAssembly.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOutput_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Output = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.ExecuteAssembly.prototype.getOutput = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Output = 1; - * This is a type-conversion wrapper around `getOutput()` - * @return {string} - */ -proto.sliverpb.ExecuteAssembly.prototype.getOutput_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOutput())); -}; - - -/** - * optional bytes Output = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getOutput()` - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteAssembly.prototype.getOutput_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOutput())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.ExecuteAssembly} returns this - */ -proto.sliverpb.ExecuteAssembly.prototype.setOutput = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.ExecuteAssembly.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.ExecuteAssembly} returns this -*/ -proto.sliverpb.ExecuteAssembly.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ExecuteAssembly} returns this - */ -proto.sliverpb.ExecuteAssembly.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ExecuteAssembly.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.InvokeMigrateReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.InvokeMigrateReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.InvokeMigrateReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeMigrateReq.toObject = function(includeInstance, msg) { - var f, obj = { - pid: jspb.Message.getFieldWithDefault(msg, 1, 0), - data: msg.getData_asB64(), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.InvokeMigrateReq} - */ -proto.sliverpb.InvokeMigrateReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.InvokeMigrateReq; - return proto.sliverpb.InvokeMigrateReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.InvokeMigrateReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.InvokeMigrateReq} - */ -proto.sliverpb.InvokeMigrateReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeMigrateReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.InvokeMigrateReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.InvokeMigrateReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeMigrateReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 Pid = 1; - * @return {number} - */ -proto.sliverpb.InvokeMigrateReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.InvokeMigrateReq} returns this - */ -proto.sliverpb.InvokeMigrateReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes Data = 2; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.InvokeMigrateReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes Data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.InvokeMigrateReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeMigrateReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.InvokeMigrateReq} returns this - */ -proto.sliverpb.InvokeMigrateReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.InvokeMigrateReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.InvokeMigrateReq} returns this -*/ -proto.sliverpb.InvokeMigrateReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.InvokeMigrateReq} returns this - */ -proto.sliverpb.InvokeMigrateReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.InvokeMigrateReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Migrate.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Migrate.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Migrate} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Migrate.toObject = function(includeInstance, msg) { - var f, obj = { - success: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Migrate} - */ -proto.sliverpb.Migrate.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Migrate; - return proto.sliverpb.Migrate.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Migrate} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Migrate} - */ -proto.sliverpb.Migrate.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setSuccess(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Migrate.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Migrate.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Migrate} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Migrate.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSuccess(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool Success = 1; - * @return {boolean} - */ -proto.sliverpb.Migrate.prototype.getSuccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Migrate} returns this - */ -proto.sliverpb.Migrate.prototype.setSuccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Migrate.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Migrate} returns this -*/ -proto.sliverpb.Migrate.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Migrate} returns this - */ -proto.sliverpb.Migrate.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Migrate.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.ExecuteReq.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ExecuteReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ExecuteReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ExecuteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - argsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - output: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - stdout: jspb.Message.getFieldWithDefault(msg, 4, ""), - stderr: jspb.Message.getFieldWithDefault(msg, 5, ""), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ExecuteReq} - */ -proto.sliverpb.ExecuteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ExecuteReq; - return proto.sliverpb.ExecuteReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ExecuteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ExecuteReq} - */ -proto.sliverpb.ExecuteReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addArgs(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOutput(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setStdout(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setStderr(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ExecuteReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ExecuteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getArgsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getOutput(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getStdout(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getStderr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.ExecuteReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string Args = 2; - * @return {!Array} - */ -proto.sliverpb.ExecuteReq.prototype.getArgsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setArgsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.addArgs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.clearArgsList = function() { - return this.setArgsList([]); -}; - - -/** - * optional bool Output = 3; - * @return {boolean} - */ -proto.sliverpb.ExecuteReq.prototype.getOutput = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setOutput = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string Stdout = 4; - * @return {string} - */ -proto.sliverpb.ExecuteReq.prototype.getStdout = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setStdout = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Stderr = 5; - * @return {string} - */ -proto.sliverpb.ExecuteReq.prototype.getStderr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setStderr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.ExecuteReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ExecuteReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ExecuteReq} returns this -*/ -proto.sliverpb.ExecuteReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ExecuteReq} returns this - */ -proto.sliverpb.ExecuteReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ExecuteReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.ExecuteWindowsReq.repeatedFields_ = [2]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ExecuteWindowsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ExecuteWindowsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteWindowsReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - argsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f, - output: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - stdout: jspb.Message.getFieldWithDefault(msg, 4, ""), - stderr: jspb.Message.getFieldWithDefault(msg, 5, ""), - usetoken: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ExecuteWindowsReq} - */ -proto.sliverpb.ExecuteWindowsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ExecuteWindowsReq; - return proto.sliverpb.ExecuteWindowsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ExecuteWindowsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ExecuteWindowsReq} - */ -proto.sliverpb.ExecuteWindowsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.addArgs(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setOutput(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setStdout(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setStderr(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUsetoken(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ExecuteWindowsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ExecuteWindowsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ExecuteWindowsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getArgsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 2, - f - ); - } - f = message.getOutput(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getStdout(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getStderr(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getUsetoken(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * repeated string Args = 2; - * @return {!Array} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getArgsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 2)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setArgsList = function(value) { - return jspb.Message.setField(this, 2, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.addArgs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 2, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.clearArgsList = function() { - return this.setArgsList([]); -}; - - -/** - * optional bool Output = 3; - * @return {boolean} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getOutput = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setOutput = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional string Stdout = 4; - * @return {string} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getStdout = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setStdout = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Stderr = 5; - * @return {string} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getStderr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setStderr = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bool UseToken = 6; - * @return {boolean} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getUsetoken = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setUsetoken = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this -*/ -proto.sliverpb.ExecuteWindowsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ExecuteWindowsReq} returns this - */ -proto.sliverpb.ExecuteWindowsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ExecuteWindowsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Execute.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Execute.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Execute} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Execute.toObject = function(includeInstance, msg) { - var f, obj = { - status: jspb.Message.getFieldWithDefault(msg, 1, 0), - stdout: msg.getStdout_asB64(), - stderr: msg.getStderr_asB64(), - pid: jspb.Message.getFieldWithDefault(msg, 4, 0), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Execute} - */ -proto.sliverpb.Execute.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Execute; - return proto.sliverpb.Execute.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Execute} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Execute} - */ -proto.sliverpb.Execute.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setStatus(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStdout(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setStderr(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Execute.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Execute.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Execute} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Execute.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStatus(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getStdout_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getStderr_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 Status = 1; - * @return {number} - */ -proto.sliverpb.Execute.prototype.getStatus = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Execute} returns this - */ -proto.sliverpb.Execute.prototype.setStatus = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes Stdout = 2; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.Execute.prototype.getStdout = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes Stdout = 2; - * This is a type-conversion wrapper around `getStdout()` - * @return {string} - */ -proto.sliverpb.Execute.prototype.getStdout_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStdout())); -}; - - -/** - * optional bytes Stdout = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStdout()` - * @return {!Uint8Array} - */ -proto.sliverpb.Execute.prototype.getStdout_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStdout())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.Execute} returns this - */ -proto.sliverpb.Execute.prototype.setStdout = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional bytes Stderr = 3; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.Execute.prototype.getStderr = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes Stderr = 3; - * This is a type-conversion wrapper around `getStderr()` - * @return {string} - */ -proto.sliverpb.Execute.prototype.getStderr_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getStderr())); -}; - - -/** - * optional bytes Stderr = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getStderr()` - * @return {!Uint8Array} - */ -proto.sliverpb.Execute.prototype.getStderr_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getStderr())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.Execute} returns this - */ -proto.sliverpb.Execute.prototype.setStderr = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional uint32 Pid = 4; - * @return {number} - */ -proto.sliverpb.Execute.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Execute} returns this - */ -proto.sliverpb.Execute.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Execute.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Execute} returns this -*/ -proto.sliverpb.Execute.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Execute} returns this - */ -proto.sliverpb.Execute.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Execute.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.SideloadReq.repeatedFields_ = [11]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SideloadReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SideloadReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SideloadReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SideloadReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - processname: jspb.Message.getFieldWithDefault(msg, 2, ""), - args: jspb.Message.getFieldWithDefault(msg, 3, ""), - entrypoint: jspb.Message.getFieldWithDefault(msg, 4, ""), - kill: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - isdll: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - isunicode: jspb.Message.getBooleanFieldWithDefault(msg, 7, false), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - processargsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SideloadReq} - */ -proto.sliverpb.SideloadReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SideloadReq; - return proto.sliverpb.SideloadReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SideloadReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SideloadReq} - */ -proto.sliverpb.SideloadReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setArgs(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEntrypoint(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setKill(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsdll(value); - break; - case 7: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIsunicode(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addProcessargs(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SideloadReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SideloadReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SideloadReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SideloadReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getProcessname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getArgs(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEntrypoint(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getKill(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getIsdll(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getIsunicode(); - if (f) { - writer.writeBool( - 7, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getProcessargsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.SideloadReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.SideloadReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.SideloadReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string ProcessName = 2; - * @return {string} - */ -proto.sliverpb.SideloadReq.prototype.getProcessname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setProcessname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Args = 3; - * @return {string} - */ -proto.sliverpb.SideloadReq.prototype.getArgs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setArgs = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string EntryPoint = 4; - * @return {string} - */ -proto.sliverpb.SideloadReq.prototype.getEntrypoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setEntrypoint = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool Kill = 5; - * @return {boolean} - */ -proto.sliverpb.SideloadReq.prototype.getKill = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setKill = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool isDLL = 6; - * @return {boolean} - */ -proto.sliverpb.SideloadReq.prototype.getIsdll = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setIsdll = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional bool isUnicode = 7; - * @return {boolean} - */ -proto.sliverpb.SideloadReq.prototype.getIsunicode = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setIsunicode = function(value) { - return jspb.Message.setProto3BooleanField(this, 7, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.SideloadReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * repeated string ProcessArgs = 11; - * @return {!Array} - */ -proto.sliverpb.SideloadReq.prototype.getProcessargsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.setProcessargsList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.addProcessargs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.clearProcessargsList = function() { - return this.setProcessargsList([]); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.SideloadReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.SideloadReq} returns this -*/ -proto.sliverpb.SideloadReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SideloadReq} returns this - */ -proto.sliverpb.SideloadReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SideloadReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Sideload.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Sideload.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Sideload} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Sideload.toObject = function(includeInstance, msg) { - var f, obj = { - result: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Sideload} - */ -proto.sliverpb.Sideload.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Sideload; - return proto.sliverpb.Sideload.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Sideload} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Sideload} - */ -proto.sliverpb.Sideload.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setResult(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Sideload.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Sideload.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Sideload} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Sideload.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Result = 1; - * @return {string} - */ -proto.sliverpb.Sideload.prototype.getResult = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Sideload} returns this - */ -proto.sliverpb.Sideload.prototype.setResult = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Sideload.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Sideload} returns this -*/ -proto.sliverpb.Sideload.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Sideload} returns this - */ -proto.sliverpb.Sideload.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Sideload.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.InvokeSpawnDllReq.repeatedFields_ = [11]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.InvokeSpawnDllReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.InvokeSpawnDllReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeSpawnDllReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - processname: jspb.Message.getFieldWithDefault(msg, 2, ""), - args: jspb.Message.getFieldWithDefault(msg, 3, ""), - entrypoint: jspb.Message.getFieldWithDefault(msg, 4, ""), - kill: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - processargsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.InvokeSpawnDllReq} - */ -proto.sliverpb.InvokeSpawnDllReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.InvokeSpawnDllReq; - return proto.sliverpb.InvokeSpawnDllReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.InvokeSpawnDllReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.InvokeSpawnDllReq} - */ -proto.sliverpb.InvokeSpawnDllReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessname(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setArgs(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setEntrypoint(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setKill(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addProcessargs(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.InvokeSpawnDllReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.InvokeSpawnDllReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.InvokeSpawnDllReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getProcessname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getArgs(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getEntrypoint(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getKill(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getProcessargsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string ProcessName = 2; - * @return {string} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getProcessname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setProcessname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Args = 3; - * @return {string} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getArgs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setArgs = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string EntryPoint = 4; - * @return {string} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getEntrypoint = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setEntrypoint = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool Kill = 5; - * @return {boolean} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getKill = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setKill = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * repeated string ProcessArgs = 11; - * @return {!Array} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getProcessargsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.setProcessargsList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.addProcessargs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.clearProcessargsList = function() { - return this.setProcessargsList([]); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this -*/ -proto.sliverpb.InvokeSpawnDllReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.InvokeSpawnDllReq} returns this - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.InvokeSpawnDllReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.SpawnDllReq.repeatedFields_ = [11]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SpawnDllReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SpawnDllReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SpawnDllReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SpawnDllReq.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - processname: jspb.Message.getFieldWithDefault(msg, 2, ""), - offset: jspb.Message.getFieldWithDefault(msg, 3, 0), - args: jspb.Message.getFieldWithDefault(msg, 4, ""), - kill: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - ppid: jspb.Message.getFieldWithDefault(msg, 10, 0), - processargsList: (f = jspb.Message.getRepeatedField(msg, 11)) == null ? undefined : f, - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SpawnDllReq} - */ -proto.sliverpb.SpawnDllReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SpawnDllReq; - return proto.sliverpb.SpawnDllReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SpawnDllReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SpawnDllReq} - */ -proto.sliverpb.SpawnDllReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessname(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setOffset(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setArgs(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setKill(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPpid(value); - break; - case 11: - var value = /** @type {string} */ (reader.readString()); - msg.addProcessargs(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SpawnDllReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SpawnDllReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SpawnDllReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SpawnDllReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getProcessname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOffset(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getArgs(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getKill(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getPpid(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getProcessargsList(); - if (f.length > 0) { - writer.writeRepeatedString( - 11, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.SpawnDllReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.SpawnDllReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.SpawnDllReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional string ProcessName = 2; - * @return {string} - */ -proto.sliverpb.SpawnDllReq.prototype.getProcessname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setProcessname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Offset = 3; - * @return {number} - */ -proto.sliverpb.SpawnDllReq.prototype.getOffset = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setOffset = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Args = 4; - * @return {string} - */ -proto.sliverpb.SpawnDllReq.prototype.getArgs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setArgs = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional bool Kill = 5; - * @return {boolean} - */ -proto.sliverpb.SpawnDllReq.prototype.getKill = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setKill = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint32 PPid = 10; - * @return {number} - */ -proto.sliverpb.SpawnDllReq.prototype.getPpid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setPpid = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * repeated string ProcessArgs = 11; - * @return {!Array} - */ -proto.sliverpb.SpawnDllReq.prototype.getProcessargsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 11)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.setProcessargsList = function(value) { - return jspb.Message.setField(this, 11, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.addProcessargs = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 11, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.clearProcessargsList = function() { - return this.setProcessargsList([]); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.SpawnDllReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.SpawnDllReq} returns this -*/ -proto.sliverpb.SpawnDllReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SpawnDllReq} returns this - */ -proto.sliverpb.SpawnDllReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SpawnDllReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SpawnDll.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SpawnDll.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SpawnDll} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SpawnDll.toObject = function(includeInstance, msg) { - var f, obj = { - result: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SpawnDll} - */ -proto.sliverpb.SpawnDll.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SpawnDll; - return proto.sliverpb.SpawnDll.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SpawnDll} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SpawnDll} - */ -proto.sliverpb.SpawnDll.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setResult(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SpawnDll.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SpawnDll.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SpawnDll} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SpawnDll.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResult(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Result = 1; - * @return {string} - */ -proto.sliverpb.SpawnDll.prototype.getResult = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SpawnDll} returns this - */ -proto.sliverpb.SpawnDll.prototype.setResult = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.SpawnDll.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.SpawnDll} returns this -*/ -proto.sliverpb.SpawnDll.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SpawnDll} returns this - */ -proto.sliverpb.SpawnDll.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SpawnDll.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.NetstatReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.NetstatReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.NetstatReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetstatReq.toObject = function(includeInstance, msg) { - var f, obj = { - tcp: jspb.Message.getBooleanFieldWithDefault(msg, 1, false), - udp: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - ip4: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - ip6: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - listening: jspb.Message.getBooleanFieldWithDefault(msg, 6, false), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.NetstatReq} - */ -proto.sliverpb.NetstatReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.NetstatReq; - return proto.sliverpb.NetstatReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.NetstatReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.NetstatReq} - */ -proto.sliverpb.NetstatReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setTcp(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUdp(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIp4(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setIp6(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setListening(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.NetstatReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.NetstatReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.NetstatReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetstatReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTcp(); - if (f) { - writer.writeBool( - 1, - f - ); - } - f = message.getUdp(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getIp4(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getIp6(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getListening(); - if (f) { - writer.writeBool( - 6, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bool TCP = 1; - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.getTcp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.setTcp = function(value) { - return jspb.Message.setProto3BooleanField(this, 1, value); -}; - - -/** - * optional bool UDP = 2; - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.getUdp = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.setUdp = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bool IP4 = 3; - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.getIp4 = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.setIp4 = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool IP6 = 5; - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.getIp6 = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.setIp6 = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool Listening = 6; - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.getListening = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.setListening = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.NetstatReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.NetstatReq} returns this -*/ -proto.sliverpb.NetstatReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.NetstatReq} returns this - */ -proto.sliverpb.NetstatReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.NetstatReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SockTabEntry.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SockTabEntry.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SockTabEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SockTabEntry.toObject = function(includeInstance, msg) { - var f, obj = { - localaddr: (f = msg.getLocaladdr()) && proto.sliverpb.SockTabEntry.SockAddr.toObject(includeInstance, f), - remoteaddr: (f = msg.getRemoteaddr()) && proto.sliverpb.SockTabEntry.SockAddr.toObject(includeInstance, f), - skstate: jspb.Message.getFieldWithDefault(msg, 3, ""), - uid: jspb.Message.getFieldWithDefault(msg, 4, 0), - process: (f = msg.getProcess()) && commonpb_common_pb.Process.toObject(includeInstance, f), - protocol: jspb.Message.getFieldWithDefault(msg, 6, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SockTabEntry} - */ -proto.sliverpb.SockTabEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SockTabEntry; - return proto.sliverpb.SockTabEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SockTabEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SockTabEntry} - */ -proto.sliverpb.SockTabEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.SockTabEntry.SockAddr; - reader.readMessage(value,proto.sliverpb.SockTabEntry.SockAddr.deserializeBinaryFromReader); - msg.setLocaladdr(value); - break; - case 2: - var value = new proto.sliverpb.SockTabEntry.SockAddr; - reader.readMessage(value,proto.sliverpb.SockTabEntry.SockAddr.deserializeBinaryFromReader); - msg.setRemoteaddr(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setSkstate(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint32()); - msg.setUid(value); - break; - case 5: - var value = new commonpb_common_pb.Process; - reader.readMessage(value,commonpb_common_pb.Process.deserializeBinaryFromReader); - msg.setProcess(value); - break; - case 6: - var value = /** @type {string} */ (reader.readString()); - msg.setProtocol(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SockTabEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SockTabEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SockTabEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SockTabEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLocaladdr(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.sliverpb.SockTabEntry.SockAddr.serializeBinaryToWriter - ); - } - f = message.getRemoteaddr(); - if (f != null) { - writer.writeMessage( - 2, - f, - proto.sliverpb.SockTabEntry.SockAddr.serializeBinaryToWriter - ); - } - f = message.getSkstate(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getUid(); - if (f !== 0) { - writer.writeUint32( - 4, - f - ); - } - f = message.getProcess(); - if (f != null) { - writer.writeMessage( - 5, - f, - commonpb_common_pb.Process.serializeBinaryToWriter - ); - } - f = message.getProtocol(); - if (f.length > 0) { - writer.writeString( - 6, - f - ); - } -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SockTabEntry.SockAddr.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SockTabEntry.SockAddr} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SockTabEntry.SockAddr.toObject = function(includeInstance, msg) { - var f, obj = { - ip: jspb.Message.getFieldWithDefault(msg, 1, ""), - port: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SockTabEntry.SockAddr} - */ -proto.sliverpb.SockTabEntry.SockAddr.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SockTabEntry.SockAddr; - return proto.sliverpb.SockTabEntry.SockAddr.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SockTabEntry.SockAddr} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SockTabEntry.SockAddr} - */ -proto.sliverpb.SockTabEntry.SockAddr.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setIp(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SockTabEntry.SockAddr.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SockTabEntry.SockAddr} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SockTabEntry.SockAddr.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getIp(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional string Ip = 1; - * @return {string} - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.getIp = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SockTabEntry.SockAddr} returns this - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.setIp = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 Port = 2; - * @return {number} - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SockTabEntry.SockAddr} returns this - */ -proto.sliverpb.SockTabEntry.SockAddr.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional SockAddr LocalAddr = 1; - * @return {?proto.sliverpb.SockTabEntry.SockAddr} - */ -proto.sliverpb.SockTabEntry.prototype.getLocaladdr = function() { - return /** @type{?proto.sliverpb.SockTabEntry.SockAddr} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.SockTabEntry.SockAddr, 1)); -}; - - -/** - * @param {?proto.sliverpb.SockTabEntry.SockAddr|undefined} value - * @return {!proto.sliverpb.SockTabEntry} returns this -*/ -proto.sliverpb.SockTabEntry.prototype.setLocaladdr = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.clearLocaladdr = function() { - return this.setLocaladdr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SockTabEntry.prototype.hasLocaladdr = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional SockAddr RemoteAddr = 2; - * @return {?proto.sliverpb.SockTabEntry.SockAddr} - */ -proto.sliverpb.SockTabEntry.prototype.getRemoteaddr = function() { - return /** @type{?proto.sliverpb.SockTabEntry.SockAddr} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.SockTabEntry.SockAddr, 2)); -}; - - -/** - * @param {?proto.sliverpb.SockTabEntry.SockAddr|undefined} value - * @return {!proto.sliverpb.SockTabEntry} returns this -*/ -proto.sliverpb.SockTabEntry.prototype.setRemoteaddr = function(value) { - return jspb.Message.setWrapperField(this, 2, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.clearRemoteaddr = function() { - return this.setRemoteaddr(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SockTabEntry.prototype.hasRemoteaddr = function() { - return jspb.Message.getField(this, 2) != null; -}; - - -/** - * optional string SkState = 3; - * @return {string} - */ -proto.sliverpb.SockTabEntry.prototype.getSkstate = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.setSkstate = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint32 UID = 4; - * @return {number} - */ -proto.sliverpb.SockTabEntry.prototype.getUid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.setUid = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional commonpb.Process Process = 5; - * @return {?proto.commonpb.Process} - */ -proto.sliverpb.SockTabEntry.prototype.getProcess = function() { - return /** @type{?proto.commonpb.Process} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Process, 5)); -}; - - -/** - * @param {?proto.commonpb.Process|undefined} value - * @return {!proto.sliverpb.SockTabEntry} returns this -*/ -proto.sliverpb.SockTabEntry.prototype.setProcess = function(value) { - return jspb.Message.setWrapperField(this, 5, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.clearProcess = function() { - return this.setProcess(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SockTabEntry.prototype.hasProcess = function() { - return jspb.Message.getField(this, 5) != null; -}; - - -/** - * optional string Protocol = 6; - * @return {string} - */ -proto.sliverpb.SockTabEntry.prototype.getProtocol = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SockTabEntry} returns this - */ -proto.sliverpb.SockTabEntry.prototype.setProtocol = function(value) { - return jspb.Message.setProto3StringField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.Netstat.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Netstat.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Netstat.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Netstat} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Netstat.toObject = function(includeInstance, msg) { - var f, obj = { - entriesList: jspb.Message.toObjectList(msg.getEntriesList(), - proto.sliverpb.SockTabEntry.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Netstat} - */ -proto.sliverpb.Netstat.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Netstat; - return proto.sliverpb.Netstat.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Netstat} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Netstat} - */ -proto.sliverpb.Netstat.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.SockTabEntry; - reader.readMessage(value,proto.sliverpb.SockTabEntry.deserializeBinaryFromReader); - msg.addEntries(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Netstat.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Netstat.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Netstat} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Netstat.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getEntriesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.SockTabEntry.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated SockTabEntry Entries = 1; - * @return {!Array} - */ -proto.sliverpb.Netstat.prototype.getEntriesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.SockTabEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.Netstat} returns this -*/ -proto.sliverpb.Netstat.prototype.setEntriesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.SockTabEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.SockTabEntry} - */ -proto.sliverpb.Netstat.prototype.addEntries = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.SockTabEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.Netstat} returns this - */ -proto.sliverpb.Netstat.prototype.clearEntriesList = function() { - return this.setEntriesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Netstat.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Netstat} returns this -*/ -proto.sliverpb.Netstat.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Netstat} returns this - */ -proto.sliverpb.Netstat.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Netstat.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.EnvReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.EnvReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.EnvReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.EnvReq.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.EnvReq} - */ -proto.sliverpb.EnvReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.EnvReq; - return proto.sliverpb.EnvReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.EnvReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.EnvReq} - */ -proto.sliverpb.EnvReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.EnvReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.EnvReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.EnvReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.EnvReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.EnvReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.EnvReq} returns this - */ -proto.sliverpb.EnvReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.EnvReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.EnvReq} returns this -*/ -proto.sliverpb.EnvReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.EnvReq} returns this - */ -proto.sliverpb.EnvReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.EnvReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.EnvInfo.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.EnvInfo.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.EnvInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.EnvInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.EnvInfo.toObject = function(includeInstance, msg) { - var f, obj = { - variablesList: jspb.Message.toObjectList(msg.getVariablesList(), - commonpb_common_pb.EnvVar.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.EnvInfo} - */ -proto.sliverpb.EnvInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.EnvInfo; - return proto.sliverpb.EnvInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.EnvInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.EnvInfo} - */ -proto.sliverpb.EnvInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commonpb_common_pb.EnvVar; - reader.readMessage(value,commonpb_common_pb.EnvVar.deserializeBinaryFromReader); - msg.addVariables(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.EnvInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.EnvInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.EnvInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.EnvInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVariablesList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - commonpb_common_pb.EnvVar.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated commonpb.EnvVar Variables = 1; - * @return {!Array} - */ -proto.sliverpb.EnvInfo.prototype.getVariablesList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, commonpb_common_pb.EnvVar, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.EnvInfo} returns this -*/ -proto.sliverpb.EnvInfo.prototype.setVariablesList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.commonpb.EnvVar=} opt_value - * @param {number=} opt_index - * @return {!proto.commonpb.EnvVar} - */ -proto.sliverpb.EnvInfo.prototype.addVariables = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.commonpb.EnvVar, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.EnvInfo} returns this - */ -proto.sliverpb.EnvInfo.prototype.clearVariablesList = function() { - return this.setVariablesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.EnvInfo.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.EnvInfo} returns this -*/ -proto.sliverpb.EnvInfo.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.EnvInfo} returns this - */ -proto.sliverpb.EnvInfo.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.EnvInfo.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SetEnvReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SetEnvReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SetEnvReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SetEnvReq.toObject = function(includeInstance, msg) { - var f, obj = { - variable: (f = msg.getVariable()) && commonpb_common_pb.EnvVar.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SetEnvReq} - */ -proto.sliverpb.SetEnvReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SetEnvReq; - return proto.sliverpb.SetEnvReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SetEnvReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SetEnvReq} - */ -proto.sliverpb.SetEnvReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new commonpb_common_pb.EnvVar; - reader.readMessage(value,commonpb_common_pb.EnvVar.deserializeBinaryFromReader); - msg.setVariable(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SetEnvReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SetEnvReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SetEnvReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SetEnvReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getVariable(); - if (f != null) { - writer.writeMessage( - 1, - f, - commonpb_common_pb.EnvVar.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.EnvVar Variable = 1; - * @return {?proto.commonpb.EnvVar} - */ -proto.sliverpb.SetEnvReq.prototype.getVariable = function() { - return /** @type{?proto.commonpb.EnvVar} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.EnvVar, 1)); -}; - - -/** - * @param {?proto.commonpb.EnvVar|undefined} value - * @return {!proto.sliverpb.SetEnvReq} returns this -*/ -proto.sliverpb.SetEnvReq.prototype.setVariable = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SetEnvReq} returns this - */ -proto.sliverpb.SetEnvReq.prototype.clearVariable = function() { - return this.setVariable(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SetEnvReq.prototype.hasVariable = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.SetEnvReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.SetEnvReq} returns this -*/ -proto.sliverpb.SetEnvReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SetEnvReq} returns this - */ -proto.sliverpb.SetEnvReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SetEnvReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SetEnv.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SetEnv.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SetEnv} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SetEnv.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SetEnv} - */ -proto.sliverpb.SetEnv.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SetEnv; - return proto.sliverpb.SetEnv.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SetEnv} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SetEnv} - */ -proto.sliverpb.SetEnv.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SetEnv.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SetEnv.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SetEnv} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SetEnv.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.SetEnv.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.SetEnv} returns this -*/ -proto.sliverpb.SetEnv.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SetEnv} returns this - */ -proto.sliverpb.SetEnv.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SetEnv.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.UnsetEnvReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.UnsetEnvReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.UnsetEnvReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UnsetEnvReq.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.UnsetEnvReq} - */ -proto.sliverpb.UnsetEnvReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.UnsetEnvReq; - return proto.sliverpb.UnsetEnvReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.UnsetEnvReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.UnsetEnvReq} - */ -proto.sliverpb.UnsetEnvReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.UnsetEnvReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.UnsetEnvReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.UnsetEnvReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UnsetEnvReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.UnsetEnvReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.UnsetEnvReq} returns this - */ -proto.sliverpb.UnsetEnvReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.UnsetEnvReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.UnsetEnvReq} returns this -*/ -proto.sliverpb.UnsetEnvReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.UnsetEnvReq} returns this - */ -proto.sliverpb.UnsetEnvReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.UnsetEnvReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.UnsetEnv.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.UnsetEnv.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.UnsetEnv} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UnsetEnv.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.UnsetEnv} - */ -proto.sliverpb.UnsetEnv.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.UnsetEnv; - return proto.sliverpb.UnsetEnv.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.UnsetEnv} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.UnsetEnv} - */ -proto.sliverpb.UnsetEnv.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.UnsetEnv.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.UnsetEnv.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.UnsetEnv} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.UnsetEnv.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.UnsetEnv.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.UnsetEnv} returns this -*/ -proto.sliverpb.UnsetEnv.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.UnsetEnv} returns this - */ -proto.sliverpb.UnsetEnv.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.UnsetEnv.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.DNSSessionInit.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.DNSSessionInit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.DNSSessionInit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSSessionInit.toObject = function(includeInstance, msg) { - var f, obj = { - key: msg.getKey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.DNSSessionInit} - */ -proto.sliverpb.DNSSessionInit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.DNSSessionInit; - return proto.sliverpb.DNSSessionInit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.DNSSessionInit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.DNSSessionInit} - */ -proto.sliverpb.DNSSessionInit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.DNSSessionInit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.DNSSessionInit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.DNSSessionInit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSSessionInit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes Key = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.DNSSessionInit.prototype.getKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Key = 1; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.sliverpb.DNSSessionInit.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes Key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.sliverpb.DNSSessionInit.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.DNSSessionInit} returns this - */ -proto.sliverpb.DNSSessionInit.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.DNSPoll.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.DNSPoll.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.DNSPoll.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.DNSPoll} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSPoll.toObject = function(includeInstance, msg) { - var f, obj = { - blocksList: jspb.Message.toObjectList(msg.getBlocksList(), - proto.sliverpb.DNSBlockHeader.toObject, includeInstance) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.DNSPoll} - */ -proto.sliverpb.DNSPoll.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.DNSPoll; - return proto.sliverpb.DNSPoll.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.DNSPoll} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.DNSPoll} - */ -proto.sliverpb.DNSPoll.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.DNSBlockHeader; - reader.readMessage(value,proto.sliverpb.DNSBlockHeader.deserializeBinaryFromReader); - msg.addBlocks(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.DNSPoll.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.DNSPoll.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.DNSPoll} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSPoll.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getBlocksList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.DNSBlockHeader.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated DNSBlockHeader blocks = 1; - * @return {!Array} - */ -proto.sliverpb.DNSPoll.prototype.getBlocksList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.DNSBlockHeader, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.DNSPoll} returns this -*/ -proto.sliverpb.DNSPoll.prototype.setBlocksList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.DNSBlockHeader=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.DNSBlockHeader} - */ -proto.sliverpb.DNSPoll.prototype.addBlocks = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.DNSBlockHeader, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.DNSPoll} returns this - */ -proto.sliverpb.DNSPoll.prototype.clearBlocksList = function() { - return this.setBlocksList([]); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.DNSBlockHeader.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.DNSBlockHeader.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.DNSBlockHeader} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSBlockHeader.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, ""), - size: jspb.Message.getFieldWithDefault(msg, 2, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.DNSBlockHeader} - */ -proto.sliverpb.DNSBlockHeader.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.DNSBlockHeader; - return proto.sliverpb.DNSBlockHeader.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.DNSBlockHeader} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.DNSBlockHeader} - */ -proto.sliverpb.DNSBlockHeader.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setId(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setSize(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.DNSBlockHeader.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.DNSBlockHeader.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.DNSBlockHeader} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.DNSBlockHeader.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getSize(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } -}; - - -/** - * optional string ID = 1; - * @return {string} - */ -proto.sliverpb.DNSBlockHeader.prototype.getId = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.DNSBlockHeader} returns this - */ -proto.sliverpb.DNSBlockHeader.prototype.setId = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional uint32 Size = 2; - * @return {number} - */ -proto.sliverpb.DNSBlockHeader.prototype.getSize = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.DNSBlockHeader} returns this - */ -proto.sliverpb.DNSBlockHeader.prototype.setSize = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.HTTPSessionInit.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.HTTPSessionInit.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.HTTPSessionInit} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.HTTPSessionInit.toObject = function(includeInstance, msg) { - var f, obj = { - key: msg.getKey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.HTTPSessionInit} - */ -proto.sliverpb.HTTPSessionInit.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.HTTPSessionInit; - return proto.sliverpb.HTTPSessionInit.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.HTTPSessionInit} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.HTTPSessionInit} - */ -proto.sliverpb.HTTPSessionInit.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setKey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.HTTPSessionInit.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.HTTPSessionInit.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.HTTPSessionInit} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.HTTPSessionInit.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getKey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } -}; - - -/** - * optional bytes Key = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.HTTPSessionInit.prototype.getKey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Key = 1; - * This is a type-conversion wrapper around `getKey()` - * @return {string} - */ -proto.sliverpb.HTTPSessionInit.prototype.getKey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getKey())); -}; - - -/** - * optional bytes Key = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getKey()` - * @return {!Uint8Array} - */ -proto.sliverpb.HTTPSessionInit.prototype.getKey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getKey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.HTTPSessionInit} returns this - */ -proto.sliverpb.HTTPSessionInit.prototype.setKey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ScreenshotReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ScreenshotReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ScreenshotReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ScreenshotReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ScreenshotReq} - */ -proto.sliverpb.ScreenshotReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ScreenshotReq; - return proto.sliverpb.ScreenshotReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ScreenshotReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ScreenshotReq} - */ -proto.sliverpb.ScreenshotReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ScreenshotReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ScreenshotReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ScreenshotReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ScreenshotReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ScreenshotReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ScreenshotReq} returns this -*/ -proto.sliverpb.ScreenshotReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ScreenshotReq} returns this - */ -proto.sliverpb.ScreenshotReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ScreenshotReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Screenshot.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Screenshot.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Screenshot} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Screenshot.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Screenshot} - */ -proto.sliverpb.Screenshot.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Screenshot; - return proto.sliverpb.Screenshot.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Screenshot} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Screenshot} - */ -proto.sliverpb.Screenshot.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Screenshot.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Screenshot.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Screenshot} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Screenshot.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.Screenshot.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.Screenshot.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.Screenshot.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.Screenshot} returns this - */ -proto.sliverpb.Screenshot.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Screenshot.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Screenshot} returns this -*/ -proto.sliverpb.Screenshot.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Screenshot} returns this - */ -proto.sliverpb.Screenshot.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Screenshot.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.StartServiceReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.StartServiceReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.StartServiceReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.StartServiceReq.toObject = function(includeInstance, msg) { - var f, obj = { - servicename: jspb.Message.getFieldWithDefault(msg, 1, ""), - servicedescription: jspb.Message.getFieldWithDefault(msg, 2, ""), - binpath: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - arguments: jspb.Message.getFieldWithDefault(msg, 5, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.StartServiceReq} - */ -proto.sliverpb.StartServiceReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.StartServiceReq; - return proto.sliverpb.StartServiceReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.StartServiceReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.StartServiceReq} - */ -proto.sliverpb.StartServiceReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setServicename(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setServicedescription(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBinpath(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setArguments(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.StartServiceReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.StartServiceReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.StartServiceReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.StartServiceReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServicename(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServicedescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getBinpath(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getArguments(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string ServiceName = 1; - * @return {string} - */ -proto.sliverpb.StartServiceReq.prototype.getServicename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.setServicename = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ServiceDescription = 2; - * @return {string} - */ -proto.sliverpb.StartServiceReq.prototype.getServicedescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.setServicedescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string BinPath = 3; - * @return {string} - */ -proto.sliverpb.StartServiceReq.prototype.getBinpath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.setBinpath = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.StartServiceReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Arguments = 5; - * @return {string} - */ -proto.sliverpb.StartServiceReq.prototype.getArguments = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.setArguments = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.StartServiceReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.StartServiceReq} returns this -*/ -proto.sliverpb.StartServiceReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.StartServiceReq} returns this - */ -proto.sliverpb.StartServiceReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.StartServiceReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ServiceInfo.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ServiceInfo.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ServiceInfo} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ServiceInfo.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ServiceInfo} - */ -proto.sliverpb.ServiceInfo.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ServiceInfo; - return proto.sliverpb.ServiceInfo.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ServiceInfo} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ServiceInfo} - */ -proto.sliverpb.ServiceInfo.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ServiceInfo.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ServiceInfo.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ServiceInfo} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ServiceInfo.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.ServiceInfo.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.ServiceInfo} returns this -*/ -proto.sliverpb.ServiceInfo.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ServiceInfo} returns this - */ -proto.sliverpb.ServiceInfo.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ServiceInfo.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ServiceInfoReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ServiceInfoReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ServiceInfoReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ServiceInfoReq.toObject = function(includeInstance, msg) { - var f, obj = { - servicename: jspb.Message.getFieldWithDefault(msg, 1, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ServiceInfoReq} - */ -proto.sliverpb.ServiceInfoReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ServiceInfoReq; - return proto.sliverpb.ServiceInfoReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ServiceInfoReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ServiceInfoReq} - */ -proto.sliverpb.ServiceInfoReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setServicename(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ServiceInfoReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ServiceInfoReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ServiceInfoReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ServiceInfoReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServicename(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional string ServiceName = 1; - * @return {string} - */ -proto.sliverpb.ServiceInfoReq.prototype.getServicename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ServiceInfoReq} returns this - */ -proto.sliverpb.ServiceInfoReq.prototype.setServicename = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Hostname = 2; - * @return {string} - */ -proto.sliverpb.ServiceInfoReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ServiceInfoReq} returns this - */ -proto.sliverpb.ServiceInfoReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.StopServiceReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.StopServiceReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.StopServiceReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.StopServiceReq.toObject = function(includeInstance, msg) { - var f, obj = { - serviceinfo: (f = msg.getServiceinfo()) && proto.sliverpb.ServiceInfoReq.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.StopServiceReq} - */ -proto.sliverpb.StopServiceReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.StopServiceReq; - return proto.sliverpb.StopServiceReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.StopServiceReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.StopServiceReq} - */ -proto.sliverpb.StopServiceReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.ServiceInfoReq; - reader.readMessage(value,proto.sliverpb.ServiceInfoReq.deserializeBinaryFromReader); - msg.setServiceinfo(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.StopServiceReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.StopServiceReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.StopServiceReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.StopServiceReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServiceinfo(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.sliverpb.ServiceInfoReq.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ServiceInfoReq ServiceInfo = 1; - * @return {?proto.sliverpb.ServiceInfoReq} - */ -proto.sliverpb.StopServiceReq.prototype.getServiceinfo = function() { - return /** @type{?proto.sliverpb.ServiceInfoReq} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.ServiceInfoReq, 1)); -}; - - -/** - * @param {?proto.sliverpb.ServiceInfoReq|undefined} value - * @return {!proto.sliverpb.StopServiceReq} returns this -*/ -proto.sliverpb.StopServiceReq.prototype.setServiceinfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.StopServiceReq} returns this - */ -proto.sliverpb.StopServiceReq.prototype.clearServiceinfo = function() { - return this.setServiceinfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.StopServiceReq.prototype.hasServiceinfo = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.StopServiceReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.StopServiceReq} returns this -*/ -proto.sliverpb.StopServiceReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.StopServiceReq} returns this - */ -proto.sliverpb.StopServiceReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.StopServiceReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RemoveServiceReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RemoveServiceReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RemoveServiceReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RemoveServiceReq.toObject = function(includeInstance, msg) { - var f, obj = { - serviceinfo: (f = msg.getServiceinfo()) && proto.sliverpb.ServiceInfoReq.toObject(includeInstance, f), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RemoveServiceReq} - */ -proto.sliverpb.RemoveServiceReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RemoveServiceReq; - return proto.sliverpb.RemoveServiceReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RemoveServiceReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RemoveServiceReq} - */ -proto.sliverpb.RemoveServiceReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.ServiceInfoReq; - reader.readMessage(value,proto.sliverpb.ServiceInfoReq.deserializeBinaryFromReader); - msg.setServiceinfo(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RemoveServiceReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RemoveServiceReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RemoveServiceReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RemoveServiceReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServiceinfo(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.sliverpb.ServiceInfoReq.serializeBinaryToWriter - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional ServiceInfoReq ServiceInfo = 1; - * @return {?proto.sliverpb.ServiceInfoReq} - */ -proto.sliverpb.RemoveServiceReq.prototype.getServiceinfo = function() { - return /** @type{?proto.sliverpb.ServiceInfoReq} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.ServiceInfoReq, 1)); -}; - - -/** - * @param {?proto.sliverpb.ServiceInfoReq|undefined} value - * @return {!proto.sliverpb.RemoveServiceReq} returns this -*/ -proto.sliverpb.RemoveServiceReq.prototype.setServiceinfo = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RemoveServiceReq} returns this - */ -proto.sliverpb.RemoveServiceReq.prototype.clearServiceinfo = function() { - return this.setServiceinfo(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RemoveServiceReq.prototype.hasServiceinfo = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RemoveServiceReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RemoveServiceReq} returns this -*/ -proto.sliverpb.RemoveServiceReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RemoveServiceReq} returns this - */ -proto.sliverpb.RemoveServiceReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RemoveServiceReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.BackdoorReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.BackdoorReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.BackdoorReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BackdoorReq.toObject = function(includeInstance, msg) { - var f, obj = { - filepath: jspb.Message.getFieldWithDefault(msg, 1, ""), - profilename: jspb.Message.getFieldWithDefault(msg, 2, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.BackdoorReq} - */ -proto.sliverpb.BackdoorReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.BackdoorReq; - return proto.sliverpb.BackdoorReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.BackdoorReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.BackdoorReq} - */ -proto.sliverpb.BackdoorReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setFilepath(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProfilename(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.BackdoorReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.BackdoorReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.BackdoorReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.BackdoorReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getFilepath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getProfilename(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string FilePath = 1; - * @return {string} - */ -proto.sliverpb.BackdoorReq.prototype.getFilepath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.BackdoorReq} returns this - */ -proto.sliverpb.BackdoorReq.prototype.setFilepath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string ProfileName = 2; - * @return {string} - */ -proto.sliverpb.BackdoorReq.prototype.getProfilename = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.BackdoorReq} returns this - */ -proto.sliverpb.BackdoorReq.prototype.setProfilename = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.BackdoorReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.BackdoorReq} returns this -*/ -proto.sliverpb.BackdoorReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.BackdoorReq} returns this - */ -proto.sliverpb.BackdoorReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.BackdoorReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Backdoor.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Backdoor.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Backdoor} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Backdoor.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Backdoor} - */ -proto.sliverpb.Backdoor.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Backdoor; - return proto.sliverpb.Backdoor.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Backdoor} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Backdoor} - */ -proto.sliverpb.Backdoor.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Backdoor.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Backdoor.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Backdoor} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Backdoor.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Backdoor.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Backdoor} returns this -*/ -proto.sliverpb.Backdoor.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Backdoor} returns this - */ -proto.sliverpb.Backdoor.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Backdoor.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryReadReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryReadReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryReadReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryReadReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryReadReq} - */ -proto.sliverpb.RegistryReadReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryReadReq; - return proto.sliverpb.RegistryReadReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryReadReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryReadReq} - */ -proto.sliverpb.RegistryReadReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryReadReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryReadReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryReadReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryReadReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistryReadReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryReadReq} returns this - */ -proto.sliverpb.RegistryReadReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistryReadReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryReadReq} returns this - */ -proto.sliverpb.RegistryReadReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Key = 3; - * @return {string} - */ -proto.sliverpb.RegistryReadReq.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryReadReq} returns this - */ -proto.sliverpb.RegistryReadReq.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistryReadReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryReadReq} returns this - */ -proto.sliverpb.RegistryReadReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistryReadReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistryReadReq} returns this -*/ -proto.sliverpb.RegistryReadReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryReadReq} returns this - */ -proto.sliverpb.RegistryReadReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryReadReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryRead.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryRead.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryRead} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryRead.toObject = function(includeInstance, msg) { - var f, obj = { - value: jspb.Message.getFieldWithDefault(msg, 1, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryRead} - */ -proto.sliverpb.RegistryRead.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryRead; - return proto.sliverpb.RegistryRead.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryRead} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryRead} - */ -proto.sliverpb.RegistryRead.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setValue(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryRead.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryRead.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryRead} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryRead.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValue(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Value = 1; - * @return {string} - */ -proto.sliverpb.RegistryRead.prototype.getValue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryRead} returns this - */ -proto.sliverpb.RegistryRead.prototype.setValue = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistryRead.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistryRead} returns this -*/ -proto.sliverpb.RegistryRead.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryRead} returns this - */ -proto.sliverpb.RegistryRead.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryRead.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryWriteReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryWriteReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryWriteReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryWriteReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - stringvalue: jspb.Message.getFieldWithDefault(msg, 5, ""), - bytevalue: msg.getBytevalue_asB64(), - dwordvalue: jspb.Message.getFieldWithDefault(msg, 7, 0), - qwordvalue: jspb.Message.getFieldWithDefault(msg, 8, 0), - type: jspb.Message.getFieldWithDefault(msg, 10, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryWriteReq} - */ -proto.sliverpb.RegistryWriteReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryWriteReq; - return proto.sliverpb.RegistryWriteReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryWriteReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryWriteReq} - */ -proto.sliverpb.RegistryWriteReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setStringvalue(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setBytevalue(value); - break; - case 7: - var value = /** @type {number} */ (reader.readUint32()); - msg.setDwordvalue(value); - break; - case 8: - var value = /** @type {number} */ (reader.readUint64()); - msg.setQwordvalue(value); - break; - case 10: - var value = /** @type {number} */ (reader.readUint32()); - msg.setType(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryWriteReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryWriteReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryWriteReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryWriteReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getStringvalue(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getBytevalue_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getDwordvalue(); - if (f !== 0) { - writer.writeUint32( - 7, - f - ); - } - f = message.getQwordvalue(); - if (f !== 0) { - writer.writeUint64( - 8, - f - ); - } - f = message.getType(); - if (f !== 0) { - writer.writeUint32( - 10, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Key = 3; - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string StringValue = 5; - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getStringvalue = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setStringvalue = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes ByteValue = 6; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.RegistryWriteReq.prototype.getBytevalue = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes ByteValue = 6; - * This is a type-conversion wrapper around `getBytevalue()` - * @return {string} - */ -proto.sliverpb.RegistryWriteReq.prototype.getBytevalue_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getBytevalue())); -}; - - -/** - * optional bytes ByteValue = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getBytevalue()` - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryWriteReq.prototype.getBytevalue_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getBytevalue())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setBytevalue = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional uint32 DWordValue = 7; - * @return {number} - */ -proto.sliverpb.RegistryWriteReq.prototype.getDwordvalue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setDwordvalue = function(value) { - return jspb.Message.setProto3IntField(this, 7, value); -}; - - -/** - * optional uint64 QWordValue = 8; - * @return {number} - */ -proto.sliverpb.RegistryWriteReq.prototype.getQwordvalue = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setQwordvalue = function(value) { - return jspb.Message.setProto3IntField(this, 8, value); -}; - - -/** - * optional uint32 Type = 10; - * @return {number} - */ -proto.sliverpb.RegistryWriteReq.prototype.getType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.setType = function(value) { - return jspb.Message.setProto3IntField(this, 10, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistryWriteReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistryWriteReq} returns this -*/ -proto.sliverpb.RegistryWriteReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryWriteReq} returns this - */ -proto.sliverpb.RegistryWriteReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryWriteReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryWrite.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryWrite.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryWrite} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryWrite.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryWrite} - */ -proto.sliverpb.RegistryWrite.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryWrite; - return proto.sliverpb.RegistryWrite.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryWrite} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryWrite} - */ -proto.sliverpb.RegistryWrite.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryWrite.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryWrite.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryWrite} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryWrite.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistryWrite.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistryWrite} returns this -*/ -proto.sliverpb.RegistryWrite.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryWrite} returns this - */ -proto.sliverpb.RegistryWrite.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryWrite.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryCreateKeyReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryCreateKeyReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryCreateKeyReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryCreateKeyReq} - */ -proto.sliverpb.RegistryCreateKeyReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryCreateKeyReq; - return proto.sliverpb.RegistryCreateKeyReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryCreateKeyReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryCreateKeyReq} - */ -proto.sliverpb.RegistryCreateKeyReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryCreateKeyReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryCreateKeyReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryCreateKeyReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Key = 3; - * @return {string} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this -*/ -proto.sliverpb.RegistryCreateKeyReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryCreateKeyReq} returns this - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryCreateKeyReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryCreateKey.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryCreateKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryCreateKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryCreateKey.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryCreateKey} - */ -proto.sliverpb.RegistryCreateKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryCreateKey; - return proto.sliverpb.RegistryCreateKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryCreateKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryCreateKey} - */ -proto.sliverpb.RegistryCreateKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryCreateKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryCreateKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryCreateKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryCreateKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistryCreateKey.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistryCreateKey} returns this -*/ -proto.sliverpb.RegistryCreateKey.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryCreateKey} returns this - */ -proto.sliverpb.RegistryCreateKey.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryCreateKey.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryDeleteKeyReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryDeleteKeyReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryDeleteKeyReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - key: jspb.Message.getFieldWithDefault(msg, 3, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryDeleteKeyReq} - */ -proto.sliverpb.RegistryDeleteKeyReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryDeleteKeyReq; - return proto.sliverpb.RegistryDeleteKeyReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryDeleteKeyReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryDeleteKeyReq} - */ -proto.sliverpb.RegistryDeleteKeyReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setKey(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryDeleteKeyReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryDeleteKeyReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryDeleteKeyReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getKey(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Key = 3; - * @return {string} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.getKey = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.setKey = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this -*/ -proto.sliverpb.RegistryDeleteKeyReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryDeleteKeyReq} returns this - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryDeleteKeyReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryDeleteKey.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryDeleteKey.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryDeleteKey} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryDeleteKey.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryDeleteKey} - */ -proto.sliverpb.RegistryDeleteKey.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryDeleteKey; - return proto.sliverpb.RegistryDeleteKey.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryDeleteKey} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryDeleteKey} - */ -proto.sliverpb.RegistryDeleteKey.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryDeleteKey.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryDeleteKey.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryDeleteKey} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryDeleteKey.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistryDeleteKey.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistryDeleteKey} returns this -*/ -proto.sliverpb.RegistryDeleteKey.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryDeleteKey} returns this - */ -proto.sliverpb.RegistryDeleteKey.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryDeleteKey.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistrySubKeyListReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistrySubKeyListReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistrySubKeyListReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistrySubKeyListReq} - */ -proto.sliverpb.RegistrySubKeyListReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistrySubKeyListReq; - return proto.sliverpb.RegistrySubKeyListReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistrySubKeyListReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistrySubKeyListReq} - */ -proto.sliverpb.RegistrySubKeyListReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistrySubKeyListReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistrySubKeyListReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistrySubKeyListReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistrySubKeyListReq} returns this - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistrySubKeyListReq} returns this - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistrySubKeyListReq} returns this - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistrySubKeyListReq} returns this -*/ -proto.sliverpb.RegistrySubKeyListReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistrySubKeyListReq} returns this - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistrySubKeyListReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.RegistrySubKeyList.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistrySubKeyList.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistrySubKeyList.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistrySubKeyList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistrySubKeyList.toObject = function(includeInstance, msg) { - var f, obj = { - subkeysList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistrySubKeyList} - */ -proto.sliverpb.RegistrySubKeyList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistrySubKeyList; - return proto.sliverpb.RegistrySubKeyList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistrySubKeyList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistrySubKeyList} - */ -proto.sliverpb.RegistrySubKeyList.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addSubkeys(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistrySubKeyList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistrySubKeyList.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistrySubKeyList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistrySubKeyList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getSubkeysList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated string Subkeys = 1; - * @return {!Array} - */ -proto.sliverpb.RegistrySubKeyList.prototype.getSubkeysList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.RegistrySubKeyList} returns this - */ -proto.sliverpb.RegistrySubKeyList.prototype.setSubkeysList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.RegistrySubKeyList} returns this - */ -proto.sliverpb.RegistrySubKeyList.prototype.addSubkeys = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.RegistrySubKeyList} returns this - */ -proto.sliverpb.RegistrySubKeyList.prototype.clearSubkeysList = function() { - return this.setSubkeysList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistrySubKeyList.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistrySubKeyList} returns this -*/ -proto.sliverpb.RegistrySubKeyList.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistrySubKeyList} returns this - */ -proto.sliverpb.RegistrySubKeyList.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistrySubKeyList.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryListValuesReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryListValuesReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryListValuesReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryListValuesReq.toObject = function(includeInstance, msg) { - var f, obj = { - hive: jspb.Message.getFieldWithDefault(msg, 1, ""), - path: jspb.Message.getFieldWithDefault(msg, 2, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryListValuesReq} - */ -proto.sliverpb.RegistryListValuesReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryListValuesReq; - return proto.sliverpb.RegistryListValuesReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryListValuesReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryListValuesReq} - */ -proto.sliverpb.RegistryListValuesReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setHive(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryListValuesReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryListValuesReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryListValuesReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryListValuesReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getHive(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Hive = 1; - * @return {string} - */ -proto.sliverpb.RegistryListValuesReq.prototype.getHive = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryListValuesReq} returns this - */ -proto.sliverpb.RegistryListValuesReq.prototype.setHive = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Path = 2; - * @return {string} - */ -proto.sliverpb.RegistryListValuesReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryListValuesReq} returns this - */ -proto.sliverpb.RegistryListValuesReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string Hostname = 4; - * @return {string} - */ -proto.sliverpb.RegistryListValuesReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegistryListValuesReq} returns this - */ -proto.sliverpb.RegistryListValuesReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegistryListValuesReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegistryListValuesReq} returns this -*/ -proto.sliverpb.RegistryListValuesReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryListValuesReq} returns this - */ -proto.sliverpb.RegistryListValuesReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryListValuesReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.RegistryValuesList.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegistryValuesList.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegistryValuesList.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegistryValuesList} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryValuesList.toObject = function(includeInstance, msg) { - var f, obj = { - valuenamesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegistryValuesList} - */ -proto.sliverpb.RegistryValuesList.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegistryValuesList; - return proto.sliverpb.RegistryValuesList.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegistryValuesList} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegistryValuesList} - */ -proto.sliverpb.RegistryValuesList.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addValuenames(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegistryValuesList.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegistryValuesList.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegistryValuesList} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegistryValuesList.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getValuenamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated string ValueNames = 1; - * @return {!Array} - */ -proto.sliverpb.RegistryValuesList.prototype.getValuenamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.RegistryValuesList} returns this - */ -proto.sliverpb.RegistryValuesList.prototype.setValuenamesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.RegistryValuesList} returns this - */ -proto.sliverpb.RegistryValuesList.prototype.addValuenames = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.RegistryValuesList} returns this - */ -proto.sliverpb.RegistryValuesList.prototype.clearValuenamesList = function() { - return this.setValuenamesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegistryValuesList.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegistryValuesList} returns this -*/ -proto.sliverpb.RegistryValuesList.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegistryValuesList} returns this - */ -proto.sliverpb.RegistryValuesList.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegistryValuesList.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Tunnel.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Tunnel.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Tunnel} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Tunnel.toObject = function(includeInstance, msg) { - var f, obj = { - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - sessionid: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Tunnel} - */ -proto.sliverpb.Tunnel.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Tunnel; - return proto.sliverpb.Tunnel.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Tunnel} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Tunnel} - */ -proto.sliverpb.Tunnel.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Tunnel.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Tunnel.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Tunnel} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Tunnel.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getSessionid(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.Tunnel.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Tunnel} returns this - */ -proto.sliverpb.Tunnel.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional string SessionID = 9; - * @return {string} - */ -proto.sliverpb.Tunnel.prototype.getSessionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Tunnel} returns this - */ -proto.sliverpb.Tunnel.prototype.setSessionid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.TunnelData.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.TunnelData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.TunnelData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TunnelData.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - closed: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - sequence: jspb.Message.getFieldWithDefault(msg, 3, 0), - ack: jspb.Message.getFieldWithDefault(msg, 4, 0), - resend: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - sessionid: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.TunnelData} - */ -proto.sliverpb.TunnelData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.TunnelData; - return proto.sliverpb.TunnelData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.TunnelData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.TunnelData} - */ -proto.sliverpb.TunnelData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setClosed(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 4: - var value = /** @type {number} */ (reader.readUint64()); - msg.setAck(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setResend(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.TunnelData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.TunnelData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.TunnelData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.TunnelData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getClosed(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 3, - f - ); - } - f = message.getAck(); - if (f !== 0) { - writer.writeUint64( - 4, - f - ); - } - f = message.getResend(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getSessionid(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.TunnelData.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.TunnelData.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.TunnelData.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bool Closed = 2; - * @return {boolean} - */ -proto.sliverpb.TunnelData.prototype.getClosed = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setClosed = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint64 Sequence = 3; - * @return {number} - */ -proto.sliverpb.TunnelData.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setSequence = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 Ack = 4; - * @return {number} - */ -proto.sliverpb.TunnelData.prototype.getAck = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setAck = function(value) { - return jspb.Message.setProto3IntField(this, 4, value); -}; - - -/** - * optional bool Resend = 5; - * @return {boolean} - */ -proto.sliverpb.TunnelData.prototype.getResend = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setResend = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.TunnelData.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional string SessionID = 9; - * @return {string} - */ -proto.sliverpb.TunnelData.prototype.getSessionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.TunnelData} returns this - */ -proto.sliverpb.TunnelData.prototype.setSessionid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ShellReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ShellReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ShellReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ShellReq.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - enablepty: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - pid: jspb.Message.getFieldWithDefault(msg, 3, 0), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ShellReq} - */ -proto.sliverpb.ShellReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ShellReq; - return proto.sliverpb.ShellReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ShellReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ShellReq} - */ -proto.sliverpb.ShellReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnablepty(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ShellReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ShellReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ShellReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ShellReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEnablepty(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.ShellReq.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ShellReq} returns this - */ -proto.sliverpb.ShellReq.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool EnablePTY = 2; - * @return {boolean} - */ -proto.sliverpb.ShellReq.prototype.getEnablepty = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.ShellReq} returns this - */ -proto.sliverpb.ShellReq.prototype.setEnablepty = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint32 Pid = 3; - * @return {number} - */ -proto.sliverpb.ShellReq.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ShellReq} returns this - */ -proto.sliverpb.ShellReq.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.ShellReq.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.ShellReq} returns this - */ -proto.sliverpb.ShellReq.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ShellReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ShellReq} returns this -*/ -proto.sliverpb.ShellReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ShellReq} returns this - */ -proto.sliverpb.ShellReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ShellReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Shell.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Shell.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Shell} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Shell.toObject = function(includeInstance, msg) { - var f, obj = { - path: jspb.Message.getFieldWithDefault(msg, 1, ""), - enablepty: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - pid: jspb.Message.getFieldWithDefault(msg, 3, 0), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Shell} - */ -proto.sliverpb.Shell.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Shell; - return proto.sliverpb.Shell.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Shell} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Shell} - */ -proto.sliverpb.Shell.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setPath(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnablepty(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPid(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Shell.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Shell.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Shell} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Shell.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPath(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getEnablepty(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getPid(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Path = 1; - * @return {string} - */ -proto.sliverpb.Shell.prototype.getPath = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Shell} returns this - */ -proto.sliverpb.Shell.prototype.setPath = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool EnablePTY = 2; - * @return {boolean} - */ -proto.sliverpb.Shell.prototype.getEnablepty = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.Shell} returns this - */ -proto.sliverpb.Shell.prototype.setEnablepty = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional uint32 Pid = 3; - * @return {number} - */ -proto.sliverpb.Shell.prototype.getPid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Shell} returns this - */ -proto.sliverpb.Shell.prototype.setPid = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.Shell.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Shell} returns this - */ -proto.sliverpb.Shell.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Shell.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Shell} returns this -*/ -proto.sliverpb.Shell.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Shell} returns this - */ -proto.sliverpb.Shell.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Shell.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PortfwdReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PortfwdReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PortfwdReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PortfwdReq.toObject = function(includeInstance, msg) { - var f, obj = { - port: jspb.Message.getFieldWithDefault(msg, 1, 0), - protocol: jspb.Message.getFieldWithDefault(msg, 2, 0), - host: jspb.Message.getFieldWithDefault(msg, 3, ""), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PortfwdReq} - */ -proto.sliverpb.PortfwdReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PortfwdReq; - return proto.sliverpb.PortfwdReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PortfwdReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PortfwdReq} - */ -proto.sliverpb.PortfwdReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setProtocol(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PortfwdReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PortfwdReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PortfwdReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PortfwdReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getProtocol(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 Port = 1; - * @return {number} - */ -proto.sliverpb.PortfwdReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PortfwdReq} returns this - */ -proto.sliverpb.PortfwdReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 Protocol = 2; - * @return {number} - */ -proto.sliverpb.PortfwdReq.prototype.getProtocol = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PortfwdReq} returns this - */ -proto.sliverpb.PortfwdReq.prototype.setProtocol = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string Host = 3; - * @return {string} - */ -proto.sliverpb.PortfwdReq.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PortfwdReq} returns this - */ -proto.sliverpb.PortfwdReq.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.PortfwdReq.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PortfwdReq} returns this - */ -proto.sliverpb.PortfwdReq.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PortfwdReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PortfwdReq} returns this -*/ -proto.sliverpb.PortfwdReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PortfwdReq} returns this - */ -proto.sliverpb.PortfwdReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PortfwdReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Portfwd.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Portfwd.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Portfwd} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Portfwd.toObject = function(includeInstance, msg) { - var f, obj = { - port: jspb.Message.getFieldWithDefault(msg, 1, 0), - protocol: jspb.Message.getFieldWithDefault(msg, 2, 0), - host: jspb.Message.getFieldWithDefault(msg, 3, ""), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Portfwd} - */ -proto.sliverpb.Portfwd.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Portfwd; - return proto.sliverpb.Portfwd.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Portfwd} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Portfwd} - */ -proto.sliverpb.Portfwd.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt32()); - msg.setProtocol(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setHost(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Portfwd.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Portfwd.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Portfwd} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Portfwd.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getProtocol(); - if (f !== 0) { - writer.writeInt32( - 2, - f - ); - } - f = message.getHost(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 Port = 1; - * @return {number} - */ -proto.sliverpb.Portfwd.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Portfwd} returns this - */ -proto.sliverpb.Portfwd.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int32 Protocol = 2; - * @return {number} - */ -proto.sliverpb.Portfwd.prototype.getProtocol = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.Portfwd} returns this - */ -proto.sliverpb.Portfwd.prototype.setProtocol = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional string Host = 3; - * @return {string} - */ -proto.sliverpb.Portfwd.prototype.getHost = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Portfwd} returns this - */ -proto.sliverpb.Portfwd.prototype.setHost = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.Portfwd.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Portfwd} returns this - */ -proto.sliverpb.Portfwd.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Portfwd.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Portfwd} returns this -*/ -proto.sliverpb.Portfwd.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Portfwd} returns this - */ -proto.sliverpb.Portfwd.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Portfwd.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Socks.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Socks.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Socks} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Socks.toObject = function(includeInstance, msg) { - var f, obj = { - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - sessionid: jspb.Message.getFieldWithDefault(msg, 9, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Socks} - */ -proto.sliverpb.Socks.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Socks; - return proto.sliverpb.Socks.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Socks} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Socks} - */ -proto.sliverpb.Socks.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = /** @type {string} */ (reader.readString()); - msg.setSessionid(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Socks.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Socks.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Socks} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Socks.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getSessionid(); - if (f.length > 0) { - writer.writeString( - 9, - f - ); - } -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.Socks.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Socks} returns this - */ -proto.sliverpb.Socks.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional string SessionID = 9; - * @return {string} - */ -proto.sliverpb.Socks.prototype.getSessionid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.Socks} returns this - */ -proto.sliverpb.Socks.prototype.setSessionid = function(value) { - return jspb.Message.setProto3StringField(this, 9, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SocksData.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SocksData.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SocksData} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SocksData.toObject = function(includeInstance, msg) { - var f, obj = { - data: msg.getData_asB64(), - closeconn: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - username: jspb.Message.getFieldWithDefault(msg, 3, ""), - password: jspb.Message.getFieldWithDefault(msg, 4, ""), - sequence: jspb.Message.getFieldWithDefault(msg, 5, 0), - tunnelid: jspb.Message.getFieldWithDefault(msg, 8, "0"), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SocksData} - */ -proto.sliverpb.SocksData.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SocksData; - return proto.sliverpb.SocksData.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SocksData} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SocksData} - */ -proto.sliverpb.SocksData.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setCloseconn(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 5: - var value = /** @type {number} */ (reader.readUint64()); - msg.setSequence(value); - break; - case 8: - var value = /** @type {string} */ (reader.readUint64String()); - msg.setTunnelid(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SocksData.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SocksData.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SocksData} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SocksData.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getCloseconn(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getSequence(); - if (f !== 0) { - writer.writeUint64( - 5, - f - ); - } - f = message.getTunnelid(); - if (parseInt(f, 10) !== 0) { - writer.writeUint64String( - 8, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Data = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.SocksData.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Data = 1; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.SocksData.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.SocksData.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bool CloseConn = 2; - * @return {boolean} - */ -proto.sliverpb.SocksData.prototype.getCloseconn = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setCloseconn = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional string Username = 3; - * @return {string} - */ -proto.sliverpb.SocksData.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Password = 4; - * @return {string} - */ -proto.sliverpb.SocksData.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional uint64 Sequence = 5; - * @return {number} - */ -proto.sliverpb.SocksData.prototype.getSequence = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setSequence = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - -/** - * optional uint64 TunnelID = 8; - * @return {string} - */ -proto.sliverpb.SocksData.prototype.getTunnelid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.setTunnelid = function(value) { - return jspb.Message.setProto3StringIntField(this, 8, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.SocksData.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.SocksData} returns this -*/ -proto.sliverpb.SocksData.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SocksData} returns this - */ -proto.sliverpb.SocksData.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SocksData.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.PivotStartListenerReq.repeatedFields_ = [3]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotStartListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotStartListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotStartListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotStartListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - type: jspb.Message.getFieldWithDefault(msg, 1, 0), - bindaddress: jspb.Message.getFieldWithDefault(msg, 2, ""), - optionsList: (f = jspb.Message.getRepeatedBooleanField(msg, 3)) == null ? undefined : f, - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotStartListenerReq} - */ -proto.sliverpb.PivotStartListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotStartListenerReq; - return proto.sliverpb.PivotStartListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotStartListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotStartListenerReq} - */ -proto.sliverpb.PivotStartListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!proto.sliverpb.PivotType} */ (reader.readEnum()); - msg.setType(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setBindaddress(value); - break; - case 3: - var values = /** @type {!Array} */ (reader.isDelimited() ? reader.readPackedBool() : [reader.readBool()]); - for (var i = 0; i < values.length; i++) { - msg.addOptions(values[i]); - } - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotStartListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotStartListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotStartListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotStartListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 1, - f - ); - } - f = message.getBindaddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getOptionsList(); - if (f.length > 0) { - writer.writePackedBool( - 3, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional PivotType Type = 1; - * @return {!proto.sliverpb.PivotType} - */ -proto.sliverpb.PivotStartListenerReq.prototype.getType = function() { - return /** @type {!proto.sliverpb.PivotType} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {!proto.sliverpb.PivotType} value - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 1, value); -}; - - -/** - * optional string BindAddress = 2; - * @return {string} - */ -proto.sliverpb.PivotStartListenerReq.prototype.getBindaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.setBindaddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * repeated bool Options = 3; - * @return {!Array} - */ -proto.sliverpb.PivotStartListenerReq.prototype.getOptionsList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedBooleanField(this, 3)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.setOptionsList = function(value) { - return jspb.Message.setField(this, 3, value || []); -}; - - -/** - * @param {boolean} value - * @param {number=} opt_index - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.addOptions = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 3, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.clearOptionsList = function() { - return this.setOptionsList([]); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PivotStartListenerReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PivotStartListenerReq} returns this -*/ -proto.sliverpb.PivotStartListenerReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PivotStartListenerReq} returns this - */ -proto.sliverpb.PivotStartListenerReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PivotStartListenerReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotStopListenerReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotStopListenerReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotStopListenerReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotStopListenerReq.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotStopListenerReq} - */ -proto.sliverpb.PivotStopListenerReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotStopListenerReq; - return proto.sliverpb.PivotStopListenerReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotStopListenerReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotStopListenerReq} - */ -proto.sliverpb.PivotStopListenerReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotStopListenerReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotStopListenerReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotStopListenerReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotStopListenerReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.sliverpb.PivotStopListenerReq.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotStopListenerReq} returns this - */ -proto.sliverpb.PivotStopListenerReq.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PivotStopListenerReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PivotStopListenerReq} returns this -*/ -proto.sliverpb.PivotStopListenerReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PivotStopListenerReq} returns this - */ -proto.sliverpb.PivotStopListenerReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PivotStopListenerReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.PivotListener.repeatedFields_ = [4]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotListener.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotListener.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotListener} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListener.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - bindaddress: jspb.Message.getFieldWithDefault(msg, 3, ""), - pivotsList: jspb.Message.toObjectList(msg.getPivotsList(), - proto.sliverpb.NetConnPivot.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotListener} - */ -proto.sliverpb.PivotListener.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotListener; - return proto.sliverpb.PivotListener.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotListener} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotListener} - */ -proto.sliverpb.PivotListener.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setId(value); - break; - case 2: - var value = /** @type {!proto.sliverpb.PivotType} */ (reader.readEnum()); - msg.setType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setBindaddress(value); - break; - case 4: - var value = new proto.sliverpb.NetConnPivot; - reader.readMessage(value,proto.sliverpb.NetConnPivot.deserializeBinaryFromReader); - msg.addPivots(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotListener.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotListener.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotListener} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListener.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getBindaddress(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getPivotsList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 4, - f, - proto.sliverpb.NetConnPivot.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional uint32 ID = 1; - * @return {number} - */ -proto.sliverpb.PivotListener.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotListener} returns this - */ -proto.sliverpb.PivotListener.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional PivotType Type = 2; - * @return {!proto.sliverpb.PivotType} - */ -proto.sliverpb.PivotListener.prototype.getType = function() { - return /** @type {!proto.sliverpb.PivotType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.sliverpb.PivotType} value - * @return {!proto.sliverpb.PivotListener} returns this - */ -proto.sliverpb.PivotListener.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string BindAddress = 3; - * @return {string} - */ -proto.sliverpb.PivotListener.prototype.getBindaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotListener} returns this - */ -proto.sliverpb.PivotListener.prototype.setBindaddress = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * repeated NetConnPivot Pivots = 4; - * @return {!Array} - */ -proto.sliverpb.PivotListener.prototype.getPivotsList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.NetConnPivot, 4)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.PivotListener} returns this -*/ -proto.sliverpb.PivotListener.prototype.setPivotsList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 4, value); -}; - - -/** - * @param {!proto.sliverpb.NetConnPivot=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.NetConnPivot} - */ -proto.sliverpb.PivotListener.prototype.addPivots = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.sliverpb.NetConnPivot, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.PivotListener} returns this - */ -proto.sliverpb.PivotListener.prototype.clearPivotsList = function() { - return this.setPivotsList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.PivotListener.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.PivotListener} returns this -*/ -proto.sliverpb.PivotListener.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PivotListener} returns this - */ -proto.sliverpb.PivotListener.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PivotListener.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotHello.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotHello.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotHello} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotHello.toObject = function(includeInstance, msg) { - var f, obj = { - publickey: msg.getPublickey_asB64(), - peerid: jspb.Message.getFieldWithDefault(msg, 2, "0"), - publickeysignature: jspb.Message.getFieldWithDefault(msg, 3, ""), - sessionkey: msg.getSessionkey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotHello} - */ -proto.sliverpb.PivotHello.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotHello; - return proto.sliverpb.PivotHello.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotHello} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotHello} - */ -proto.sliverpb.PivotHello.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPublickey(value); - break; - case 2: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setPeerid(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setPublickeysignature(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSessionkey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotHello.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotHello.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotHello} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotHello.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPublickey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getPeerid(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 2, - f - ); - } - f = message.getPublickeysignature(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getSessionkey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } -}; - - -/** - * optional bytes PublicKey = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.PivotHello.prototype.getPublickey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes PublicKey = 1; - * This is a type-conversion wrapper around `getPublickey()` - * @return {string} - */ -proto.sliverpb.PivotHello.prototype.getPublickey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPublickey())); -}; - - -/** - * optional bytes PublicKey = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPublickey()` - * @return {!Uint8Array} - */ -proto.sliverpb.PivotHello.prototype.getPublickey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPublickey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.PivotHello} returns this - */ -proto.sliverpb.PivotHello.prototype.setPublickey = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional int64 PeerID = 2; - * @return {string} - */ -proto.sliverpb.PivotHello.prototype.getPeerid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotHello} returns this - */ -proto.sliverpb.PivotHello.prototype.setPeerid = function(value) { - return jspb.Message.setProto3StringIntField(this, 2, value); -}; - - -/** - * optional string PublicKeySignature = 3; - * @return {string} - */ -proto.sliverpb.PivotHello.prototype.getPublickeysignature = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotHello} returns this - */ -proto.sliverpb.PivotHello.prototype.setPublickeysignature = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional bytes SessionKey = 4; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.PivotHello.prototype.getSessionkey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes SessionKey = 4; - * This is a type-conversion wrapper around `getSessionkey()` - * @return {string} - */ -proto.sliverpb.PivotHello.prototype.getSessionkey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSessionkey())); -}; - - -/** - * optional bytes SessionKey = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSessionkey()` - * @return {!Uint8Array} - */ -proto.sliverpb.PivotHello.prototype.getSessionkey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSessionkey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.PivotHello} returns this - */ -proto.sliverpb.PivotHello.prototype.setSessionkey = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotServerKeyExchange.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotServerKeyExchange} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotServerKeyExchange.toObject = function(includeInstance, msg) { - var f, obj = { - originid: jspb.Message.getFieldWithDefault(msg, 1, 0), - sessionkey: msg.getSessionkey_asB64() - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotServerKeyExchange} - */ -proto.sliverpb.PivotServerKeyExchange.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotServerKeyExchange; - return proto.sliverpb.PivotServerKeyExchange.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotServerKeyExchange} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotServerKeyExchange} - */ -proto.sliverpb.PivotServerKeyExchange.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setOriginid(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setSessionkey(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotServerKeyExchange.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotServerKeyExchange} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotServerKeyExchange.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOriginid(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getSessionkey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } -}; - - -/** - * optional int64 OriginID = 1; - * @return {number} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.getOriginid = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotServerKeyExchange} returns this - */ -proto.sliverpb.PivotServerKeyExchange.prototype.setOriginid = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional bytes SessionKey = 2; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.getSessionkey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes SessionKey = 2; - * This is a type-conversion wrapper around `getSessionkey()` - * @return {string} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.getSessionkey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getSessionkey())); -}; - - -/** - * optional bytes SessionKey = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getSessionkey()` - * @return {!Uint8Array} - */ -proto.sliverpb.PivotServerKeyExchange.prototype.getSessionkey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getSessionkey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.PivotServerKeyExchange} returns this - */ -proto.sliverpb.PivotServerKeyExchange.prototype.setSessionkey = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotPeer.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotPeer.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotPeer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeer.toObject = function(includeInstance, msg) { - var f, obj = { - peerid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - name: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotPeer} - */ -proto.sliverpb.PivotPeer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotPeer; - return proto.sliverpb.PivotPeer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotPeer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotPeer} - */ -proto.sliverpb.PivotPeer.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setPeerid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPeer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotPeer.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotPeer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeerid(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 1, - f - ); - } - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional int64 PeerID = 1; - * @return {string} - */ -proto.sliverpb.PivotPeer.prototype.getPeerid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotPeer} returns this - */ -proto.sliverpb.PivotPeer.prototype.setPeerid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string Name = 2; - * @return {string} - */ -proto.sliverpb.PivotPeer.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotPeer} returns this - */ -proto.sliverpb.PivotPeer.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.PivotPeerEnvelope.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotPeerEnvelope.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotPeerEnvelope} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeerEnvelope.toObject = function(includeInstance, msg) { - var f, obj = { - peersList: jspb.Message.toObjectList(msg.getPeersList(), - proto.sliverpb.PivotPeer.toObject, includeInstance), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - pivotsessionid: msg.getPivotsessionid_asB64(), - data: msg.getData_asB64(), - peerfailureat: jspb.Message.getFieldWithDefault(msg, 5, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotPeerEnvelope} - */ -proto.sliverpb.PivotPeerEnvelope.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotPeerEnvelope; - return proto.sliverpb.PivotPeerEnvelope.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotPeerEnvelope} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotPeerEnvelope} - */ -proto.sliverpb.PivotPeerEnvelope.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.PivotPeer; - reader.readMessage(value,proto.sliverpb.PivotPeer.deserializeBinaryFromReader); - msg.addPeers(value); - break; - case 2: - var value = /** @type {number} */ (reader.readUint32()); - msg.setType(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPivotsessionid(value); - break; - case 4: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 5: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPeerfailureat(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotPeerEnvelope.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotPeerEnvelope} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeerEnvelope.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.PivotPeer.serializeBinaryToWriter - ); - } - f = message.getType(); - if (f !== 0) { - writer.writeUint32( - 2, - f - ); - } - f = message.getPivotsessionid_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 4, - f - ); - } - f = message.getPeerfailureat(); - if (f !== 0) { - writer.writeInt64( - 5, - f - ); - } -}; - - -/** - * repeated PivotPeer Peers = 1; - * @return {!Array} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getPeersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.PivotPeer, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this -*/ -proto.sliverpb.PivotPeerEnvelope.prototype.setPeersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.PivotPeer=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.PivotPeer} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.addPeers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.PivotPeer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this - */ -proto.sliverpb.PivotPeerEnvelope.prototype.clearPeersList = function() { - return this.setPeersList([]); -}; - - -/** - * optional uint32 Type = 2; - * @return {number} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getType = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this - */ -proto.sliverpb.PivotPeerEnvelope.prototype.setType = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional bytes PivotSessionID = 3; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getPivotsessionid = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes PivotSessionID = 3; - * This is a type-conversion wrapper around `getPivotsessionid()` - * @return {string} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getPivotsessionid_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPivotsessionid())); -}; - - -/** - * optional bytes PivotSessionID = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPivotsessionid()` - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getPivotsessionid_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPivotsessionid())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this - */ -proto.sliverpb.PivotPeerEnvelope.prototype.setPivotsessionid = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional bytes Data = 4; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * optional bytes Data = 4; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 4; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this - */ -proto.sliverpb.PivotPeerEnvelope.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 4, value); -}; - - -/** - * optional int64 PeerFailureAt = 5; - * @return {number} - */ -proto.sliverpb.PivotPeerEnvelope.prototype.getPeerfailureat = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotPeerEnvelope} returns this - */ -proto.sliverpb.PivotPeerEnvelope.prototype.setPeerfailureat = function(value) { - return jspb.Message.setProto3IntField(this, 5, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotPing.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotPing.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotPing} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPing.toObject = function(includeInstance, msg) { - var f, obj = { - nonce: jspb.Message.getFieldWithDefault(msg, 1, 0) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotPing} - */ -proto.sliverpb.PivotPing.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotPing; - return proto.sliverpb.PivotPing.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotPing} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotPing} - */ -proto.sliverpb.PivotPing.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readUint32()); - msg.setNonce(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPing.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotPing.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotPing} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPing.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNonce(); - if (f !== 0) { - writer.writeUint32( - 1, - f - ); - } -}; - - -/** - * optional uint32 Nonce = 1; - * @return {number} - */ -proto.sliverpb.PivotPing.prototype.getNonce = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PivotPing} returns this - */ -proto.sliverpb.PivotPing.prototype.setNonce = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.NetConnPivot.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.NetConnPivot.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.NetConnPivot} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetConnPivot.toObject = function(includeInstance, msg) { - var f, obj = { - peerid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - remoteaddress: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.NetConnPivot} - */ -proto.sliverpb.NetConnPivot.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.NetConnPivot; - return proto.sliverpb.NetConnPivot.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.NetConnPivot} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.NetConnPivot} - */ -proto.sliverpb.NetConnPivot.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setPeerid(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRemoteaddress(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.NetConnPivot.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.NetConnPivot.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.NetConnPivot} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.NetConnPivot.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeerid(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 1, - f - ); - } - f = message.getRemoteaddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional int64 PeerID = 1; - * @return {string} - */ -proto.sliverpb.NetConnPivot.prototype.getPeerid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.NetConnPivot} returns this - */ -proto.sliverpb.NetConnPivot.prototype.setPeerid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional string RemoteAddress = 2; - * @return {string} - */ -proto.sliverpb.NetConnPivot.prototype.getRemoteaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.NetConnPivot} returns this - */ -proto.sliverpb.NetConnPivot.prototype.setRemoteaddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotPeerFailure.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotPeerFailure.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotPeerFailure} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeerFailure.toObject = function(includeInstance, msg) { - var f, obj = { - peerid: jspb.Message.getFieldWithDefault(msg, 1, "0"), - type: jspb.Message.getFieldWithDefault(msg, 2, 0), - err: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotPeerFailure} - */ -proto.sliverpb.PivotPeerFailure.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotPeerFailure; - return proto.sliverpb.PivotPeerFailure.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotPeerFailure} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotPeerFailure} - */ -proto.sliverpb.PivotPeerFailure.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readInt64String()); - msg.setPeerid(value); - break; - case 2: - var value = /** @type {!proto.sliverpb.PeerFailureType} */ (reader.readEnum()); - msg.setType(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setErr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotPeerFailure.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotPeerFailure.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotPeerFailure} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotPeerFailure.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPeerid(); - if (parseInt(f, 10) !== 0) { - writer.writeInt64String( - 1, - f - ); - } - f = message.getType(); - if (f !== 0.0) { - writer.writeEnum( - 2, - f - ); - } - f = message.getErr(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional int64 PeerID = 1; - * @return {string} - */ -proto.sliverpb.PivotPeerFailure.prototype.getPeerid = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "0")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotPeerFailure} returns this - */ -proto.sliverpb.PivotPeerFailure.prototype.setPeerid = function(value) { - return jspb.Message.setProto3StringIntField(this, 1, value); -}; - - -/** - * optional PeerFailureType Type = 2; - * @return {!proto.sliverpb.PeerFailureType} - */ -proto.sliverpb.PivotPeerFailure.prototype.getType = function() { - return /** @type {!proto.sliverpb.PeerFailureType} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {!proto.sliverpb.PeerFailureType} value - * @return {!proto.sliverpb.PivotPeerFailure} returns this - */ -proto.sliverpb.PivotPeerFailure.prototype.setType = function(value) { - return jspb.Message.setProto3EnumField(this, 2, value); -}; - - -/** - * optional string Err = 3; - * @return {string} - */ -proto.sliverpb.PivotPeerFailure.prototype.getErr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.PivotPeerFailure} returns this - */ -proto.sliverpb.PivotPeerFailure.prototype.setErr = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotListenersReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotListenersReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotListenersReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListenersReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotListenersReq} - */ -proto.sliverpb.PivotListenersReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotListenersReq; - return proto.sliverpb.PivotListenersReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotListenersReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotListenersReq} - */ -proto.sliverpb.PivotListenersReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotListenersReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotListenersReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotListenersReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListenersReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PivotListenersReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PivotListenersReq} returns this -*/ -proto.sliverpb.PivotListenersReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PivotListenersReq} returns this - */ -proto.sliverpb.PivotListenersReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PivotListenersReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.PivotListeners.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PivotListeners.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PivotListeners.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PivotListeners} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListeners.toObject = function(includeInstance, msg) { - var f, obj = { - listenersList: jspb.Message.toObjectList(msg.getListenersList(), - proto.sliverpb.PivotListener.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PivotListeners} - */ -proto.sliverpb.PivotListeners.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PivotListeners; - return proto.sliverpb.PivotListeners.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PivotListeners} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PivotListeners} - */ -proto.sliverpb.PivotListeners.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.PivotListener; - reader.readMessage(value,proto.sliverpb.PivotListener.deserializeBinaryFromReader); - msg.addListeners(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PivotListeners.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PivotListeners.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PivotListeners} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PivotListeners.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getListenersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.PivotListener.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated PivotListener Listeners = 1; - * @return {!Array} - */ -proto.sliverpb.PivotListeners.prototype.getListenersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.PivotListener, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.PivotListeners} returns this -*/ -proto.sliverpb.PivotListeners.prototype.setListenersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.PivotListener=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.PivotListener} - */ -proto.sliverpb.PivotListeners.prototype.addListeners = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.PivotListener, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.PivotListeners} returns this - */ -proto.sliverpb.PivotListeners.prototype.clearListenersList = function() { - return this.setListenersList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.PivotListeners.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.PivotListeners} returns this -*/ -proto.sliverpb.PivotListeners.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PivotListeners} returns this - */ -proto.sliverpb.PivotListeners.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PivotListeners.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGPortForwardStartReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGPortForwardStartReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForwardStartReq.toObject = function(includeInstance, msg) { - var f, obj = { - localport: jspb.Message.getFieldWithDefault(msg, 1, 0), - remoteaddress: jspb.Message.getFieldWithDefault(msg, 2, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGPortForwardStartReq} - */ -proto.sliverpb.WGPortForwardStartReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGPortForwardStartReq; - return proto.sliverpb.WGPortForwardStartReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGPortForwardStartReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGPortForwardStartReq} - */ -proto.sliverpb.WGPortForwardStartReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setLocalport(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setRemoteaddress(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGPortForwardStartReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGPortForwardStartReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForwardStartReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getLocalport(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRemoteaddress(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 LocalPort = 1; - * @return {number} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.getLocalport = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGPortForwardStartReq} returns this - */ -proto.sliverpb.WGPortForwardStartReq.prototype.setLocalport = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string RemoteAddress = 2; - * @return {string} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.getRemoteaddress = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WGPortForwardStartReq} returns this - */ -proto.sliverpb.WGPortForwardStartReq.prototype.setRemoteaddress = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGPortForwardStartReq} returns this -*/ -proto.sliverpb.WGPortForwardStartReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGPortForwardStartReq} returns this - */ -proto.sliverpb.WGPortForwardStartReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGPortForwardStartReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGPortForward.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGPortForward.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGPortForward} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForward.toObject = function(includeInstance, msg) { - var f, obj = { - forwarder: (f = msg.getForwarder()) && proto.sliverpb.WGTCPForwarder.toObject(includeInstance, f), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGPortForward} - */ -proto.sliverpb.WGPortForward.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGPortForward; - return proto.sliverpb.WGPortForward.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGPortForward} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGPortForward} - */ -proto.sliverpb.WGPortForward.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.WGTCPForwarder; - reader.readMessage(value,proto.sliverpb.WGTCPForwarder.deserializeBinaryFromReader); - msg.setForwarder(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGPortForward.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGPortForward.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGPortForward} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForward.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getForwarder(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.sliverpb.WGTCPForwarder.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional WGTCPForwarder Forwarder = 1; - * @return {?proto.sliverpb.WGTCPForwarder} - */ -proto.sliverpb.WGPortForward.prototype.getForwarder = function() { - return /** @type{?proto.sliverpb.WGTCPForwarder} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.WGTCPForwarder, 1)); -}; - - -/** - * @param {?proto.sliverpb.WGTCPForwarder|undefined} value - * @return {!proto.sliverpb.WGPortForward} returns this -*/ -proto.sliverpb.WGPortForward.prototype.setForwarder = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGPortForward} returns this - */ -proto.sliverpb.WGPortForward.prototype.clearForwarder = function() { - return this.setForwarder(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGPortForward.prototype.hasForwarder = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.WGPortForward.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.WGPortForward} returns this -*/ -proto.sliverpb.WGPortForward.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGPortForward} returns this - */ -proto.sliverpb.WGPortForward.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGPortForward.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGPortForwardStopReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGPortForwardStopReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGPortForwardStopReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForwardStopReq.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGPortForwardStopReq} - */ -proto.sliverpb.WGPortForwardStopReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGPortForwardStopReq; - return proto.sliverpb.WGPortForwardStopReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGPortForwardStopReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGPortForwardStopReq} - */ -proto.sliverpb.WGPortForwardStopReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setId(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGPortForwardStopReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGPortForwardStopReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGPortForwardStopReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGPortForwardStopReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 ID = 1; - * @return {number} - */ -proto.sliverpb.WGPortForwardStopReq.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGPortForwardStopReq} returns this - */ -proto.sliverpb.WGPortForwardStopReq.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGPortForwardStopReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGPortForwardStopReq} returns this -*/ -proto.sliverpb.WGPortForwardStopReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGPortForwardStopReq} returns this - */ -proto.sliverpb.WGPortForwardStopReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGPortForwardStopReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocksStartReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocksStartReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocksStartReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksStartReq.toObject = function(includeInstance, msg) { - var f, obj = { - port: jspb.Message.getFieldWithDefault(msg, 1, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocksStartReq} - */ -proto.sliverpb.WGSocksStartReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocksStartReq; - return proto.sliverpb.WGSocksStartReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocksStartReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocksStartReq} - */ -proto.sliverpb.WGSocksStartReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setPort(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocksStartReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocksStartReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocksStartReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksStartReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPort(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 Port = 1; - * @return {number} - */ -proto.sliverpb.WGSocksStartReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGSocksStartReq} returns this - */ -proto.sliverpb.WGSocksStartReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGSocksStartReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGSocksStartReq} returns this -*/ -proto.sliverpb.WGSocksStartReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocksStartReq} returns this - */ -proto.sliverpb.WGSocksStartReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocksStartReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocks.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocks.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocks} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocks.toObject = function(includeInstance, msg) { - var f, obj = { - server: (f = msg.getServer()) && proto.sliverpb.WGSocksServer.toObject(includeInstance, f), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocks} - */ -proto.sliverpb.WGSocks.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocks; - return proto.sliverpb.WGSocks.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocks} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocks} - */ -proto.sliverpb.WGSocks.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.WGSocksServer; - reader.readMessage(value,proto.sliverpb.WGSocksServer.deserializeBinaryFromReader); - msg.setServer(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocks.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocks.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocks} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocks.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServer(); - if (f != null) { - writer.writeMessage( - 1, - f, - proto.sliverpb.WGSocksServer.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional WGSocksServer Server = 1; - * @return {?proto.sliverpb.WGSocksServer} - */ -proto.sliverpb.WGSocks.prototype.getServer = function() { - return /** @type{?proto.sliverpb.WGSocksServer} */ ( - jspb.Message.getWrapperField(this, proto.sliverpb.WGSocksServer, 1)); -}; - - -/** - * @param {?proto.sliverpb.WGSocksServer|undefined} value - * @return {!proto.sliverpb.WGSocks} returns this -*/ -proto.sliverpb.WGSocks.prototype.setServer = function(value) { - return jspb.Message.setWrapperField(this, 1, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocks} returns this - */ -proto.sliverpb.WGSocks.prototype.clearServer = function() { - return this.setServer(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocks.prototype.hasServer = function() { - return jspb.Message.getField(this, 1) != null; -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.WGSocks.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.WGSocks} returns this -*/ -proto.sliverpb.WGSocks.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocks} returns this - */ -proto.sliverpb.WGSocks.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocks.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocksStopReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocksStopReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocksStopReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksStopReq.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocksStopReq} - */ -proto.sliverpb.WGSocksStopReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocksStopReq; - return proto.sliverpb.WGSocksStopReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocksStopReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocksStopReq} - */ -proto.sliverpb.WGSocksStopReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setId(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocksStopReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocksStopReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocksStopReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksStopReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int32 ID = 1; - * @return {number} - */ -proto.sliverpb.WGSocksStopReq.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGSocksStopReq} returns this - */ -proto.sliverpb.WGSocksStopReq.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGSocksStopReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGSocksStopReq} returns this -*/ -proto.sliverpb.WGSocksStopReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocksStopReq} returns this - */ -proto.sliverpb.WGSocksStopReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocksStopReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGTCPForwardersReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGTCPForwardersReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGTCPForwardersReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwardersReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGTCPForwardersReq} - */ -proto.sliverpb.WGTCPForwardersReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGTCPForwardersReq; - return proto.sliverpb.WGTCPForwardersReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGTCPForwardersReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGTCPForwardersReq} - */ -proto.sliverpb.WGTCPForwardersReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGTCPForwardersReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGTCPForwardersReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGTCPForwardersReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwardersReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGTCPForwardersReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGTCPForwardersReq} returns this -*/ -proto.sliverpb.WGTCPForwardersReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGTCPForwardersReq} returns this - */ -proto.sliverpb.WGTCPForwardersReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGTCPForwardersReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocksServersReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocksServersReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocksServersReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServersReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocksServersReq} - */ -proto.sliverpb.WGSocksServersReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocksServersReq; - return proto.sliverpb.WGSocksServersReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocksServersReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocksServersReq} - */ -proto.sliverpb.WGSocksServersReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocksServersReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocksServersReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocksServersReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServersReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.WGSocksServersReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.WGSocksServersReq} returns this -*/ -proto.sliverpb.WGSocksServersReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocksServersReq} returns this - */ -proto.sliverpb.WGSocksServersReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocksServersReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGTCPForwarder.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGTCPForwarder.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGTCPForwarder} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwarder.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - localaddr: jspb.Message.getFieldWithDefault(msg, 2, ""), - remoteaddr: jspb.Message.getFieldWithDefault(msg, 3, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGTCPForwarder} - */ -proto.sliverpb.WGTCPForwarder.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGTCPForwarder; - return proto.sliverpb.WGTCPForwarder.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGTCPForwarder} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGTCPForwarder} - */ -proto.sliverpb.WGTCPForwarder.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLocaladdr(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setRemoteaddr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGTCPForwarder.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGTCPForwarder.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGTCPForwarder} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwarder.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLocaladdr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getRemoteaddr(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } -}; - - -/** - * optional int32 ID = 1; - * @return {number} - */ -proto.sliverpb.WGTCPForwarder.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGTCPForwarder} returns this - */ -proto.sliverpb.WGTCPForwarder.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string LocalAddr = 2; - * @return {string} - */ -proto.sliverpb.WGTCPForwarder.prototype.getLocaladdr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WGTCPForwarder} returns this - */ -proto.sliverpb.WGTCPForwarder.prototype.setLocaladdr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string RemoteAddr = 3; - * @return {string} - */ -proto.sliverpb.WGTCPForwarder.prototype.getRemoteaddr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WGTCPForwarder} returns this - */ -proto.sliverpb.WGTCPForwarder.prototype.setRemoteaddr = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocksServer.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocksServer.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocksServer} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServer.toObject = function(includeInstance, msg) { - var f, obj = { - id: jspb.Message.getFieldWithDefault(msg, 1, 0), - localaddr: jspb.Message.getFieldWithDefault(msg, 2, "") - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocksServer} - */ -proto.sliverpb.WGSocksServer.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocksServer; - return proto.sliverpb.WGSocksServer.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocksServer} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocksServer} - */ -proto.sliverpb.WGSocksServer.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt32()); - msg.setId(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setLocaladdr(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocksServer.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocksServer.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocksServer} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServer.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getId(); - if (f !== 0) { - writer.writeInt32( - 1, - f - ); - } - f = message.getLocaladdr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } -}; - - -/** - * optional int32 ID = 1; - * @return {number} - */ -proto.sliverpb.WGSocksServer.prototype.getId = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.WGSocksServer} returns this - */ -proto.sliverpb.WGSocksServer.prototype.setId = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional string LocalAddr = 2; - * @return {string} - */ -proto.sliverpb.WGSocksServer.prototype.getLocaladdr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WGSocksServer} returns this - */ -proto.sliverpb.WGSocksServer.prototype.setLocaladdr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.WGSocksServers.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGSocksServers.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGSocksServers.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGSocksServers} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServers.toObject = function(includeInstance, msg) { - var f, obj = { - serversList: jspb.Message.toObjectList(msg.getServersList(), - proto.sliverpb.WGSocksServer.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGSocksServers} - */ -proto.sliverpb.WGSocksServers.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGSocksServers; - return proto.sliverpb.WGSocksServers.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGSocksServers} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGSocksServers} - */ -proto.sliverpb.WGSocksServers.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.WGSocksServer; - reader.readMessage(value,proto.sliverpb.WGSocksServer.deserializeBinaryFromReader); - msg.addServers(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGSocksServers.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGSocksServers.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGSocksServers} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGSocksServers.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getServersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.WGSocksServer.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated WGSocksServer Servers = 1; - * @return {!Array} - */ -proto.sliverpb.WGSocksServers.prototype.getServersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.WGSocksServer, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.WGSocksServers} returns this -*/ -proto.sliverpb.WGSocksServers.prototype.setServersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.WGSocksServer=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.WGSocksServer} - */ -proto.sliverpb.WGSocksServers.prototype.addServers = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.WGSocksServer, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.WGSocksServers} returns this - */ -proto.sliverpb.WGSocksServers.prototype.clearServersList = function() { - return this.setServersList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.WGSocksServers.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.WGSocksServers} returns this -*/ -proto.sliverpb.WGSocksServers.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGSocksServers} returns this - */ -proto.sliverpb.WGSocksServers.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGSocksServers.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.WGTCPForwarders.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WGTCPForwarders.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WGTCPForwarders.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WGTCPForwarders} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwarders.toObject = function(includeInstance, msg) { - var f, obj = { - forwardersList: jspb.Message.toObjectList(msg.getForwardersList(), - proto.sliverpb.WGTCPForwarder.toObject, includeInstance), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WGTCPForwarders} - */ -proto.sliverpb.WGTCPForwarders.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WGTCPForwarders; - return proto.sliverpb.WGTCPForwarders.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WGTCPForwarders} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WGTCPForwarders} - */ -proto.sliverpb.WGTCPForwarders.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.WGTCPForwarder; - reader.readMessage(value,proto.sliverpb.WGTCPForwarder.deserializeBinaryFromReader); - msg.addForwarders(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WGTCPForwarders.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WGTCPForwarders.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WGTCPForwarders} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WGTCPForwarders.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getForwardersList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.WGTCPForwarder.serializeBinaryToWriter - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated WGTCPForwarder Forwarders = 1; - * @return {!Array} - */ -proto.sliverpb.WGTCPForwarders.prototype.getForwardersList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.WGTCPForwarder, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.WGTCPForwarders} returns this -*/ -proto.sliverpb.WGTCPForwarders.prototype.setForwardersList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.WGTCPForwarder=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.WGTCPForwarder} - */ -proto.sliverpb.WGTCPForwarders.prototype.addForwarders = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.WGTCPForwarder, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.WGTCPForwarders} returns this - */ -proto.sliverpb.WGTCPForwarders.prototype.clearForwardersList = function() { - return this.setForwardersList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.WGTCPForwarders.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.WGTCPForwarders} returns this -*/ -proto.sliverpb.WGTCPForwarders.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.WGTCPForwarders} returns this - */ -proto.sliverpb.WGTCPForwarders.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.WGTCPForwarders.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ReconfigureReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ReconfigureReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ReconfigureReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ReconfigureReq.toObject = function(includeInstance, msg) { - var f, obj = { - reconnectinterval: jspb.Message.getFieldWithDefault(msg, 1, 0), - beaconinterval: jspb.Message.getFieldWithDefault(msg, 2, 0), - beaconjitter: jspb.Message.getFieldWithDefault(msg, 3, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ReconfigureReq} - */ -proto.sliverpb.ReconfigureReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ReconfigureReq; - return proto.sliverpb.ReconfigureReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ReconfigureReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ReconfigureReq} - */ -proto.sliverpb.ReconfigureReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setReconnectinterval(value); - break; - case 2: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBeaconinterval(value); - break; - case 3: - var value = /** @type {number} */ (reader.readInt64()); - msg.setBeaconjitter(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ReconfigureReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ReconfigureReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ReconfigureReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ReconfigureReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getReconnectinterval(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getBeaconinterval(); - if (f !== 0) { - writer.writeInt64( - 2, - f - ); - } - f = message.getBeaconjitter(); - if (f !== 0) { - writer.writeInt64( - 3, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int64 ReconnectInterval = 1; - * @return {number} - */ -proto.sliverpb.ReconfigureReq.prototype.getReconnectinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ReconfigureReq} returns this - */ -proto.sliverpb.ReconfigureReq.prototype.setReconnectinterval = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional int64 BeaconInterval = 2; - * @return {number} - */ -proto.sliverpb.ReconfigureReq.prototype.getBeaconinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ReconfigureReq} returns this - */ -proto.sliverpb.ReconfigureReq.prototype.setBeaconinterval = function(value) { - return jspb.Message.setProto3IntField(this, 2, value); -}; - - -/** - * optional int64 BeaconJitter = 3; - * @return {number} - */ -proto.sliverpb.ReconfigureReq.prototype.getBeaconjitter = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.ReconfigureReq} returns this - */ -proto.sliverpb.ReconfigureReq.prototype.setBeaconjitter = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ReconfigureReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ReconfigureReq} returns this -*/ -proto.sliverpb.ReconfigureReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ReconfigureReq} returns this - */ -proto.sliverpb.ReconfigureReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ReconfigureReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.Reconfigure.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.Reconfigure.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.Reconfigure} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Reconfigure.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.Reconfigure} - */ -proto.sliverpb.Reconfigure.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.Reconfigure; - return proto.sliverpb.Reconfigure.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.Reconfigure} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.Reconfigure} - */ -proto.sliverpb.Reconfigure.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.Reconfigure.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.Reconfigure.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.Reconfigure} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.Reconfigure.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.Reconfigure.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.Reconfigure} returns this -*/ -proto.sliverpb.Reconfigure.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.Reconfigure} returns this - */ -proto.sliverpb.Reconfigure.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.Reconfigure.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PollIntervalReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PollIntervalReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PollIntervalReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PollIntervalReq.toObject = function(includeInstance, msg) { - var f, obj = { - pollinterval: jspb.Message.getFieldWithDefault(msg, 1, 0), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PollIntervalReq} - */ -proto.sliverpb.PollIntervalReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PollIntervalReq; - return proto.sliverpb.PollIntervalReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PollIntervalReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PollIntervalReq} - */ -proto.sliverpb.PollIntervalReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {number} */ (reader.readInt64()); - msg.setPollinterval(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PollIntervalReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PollIntervalReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PollIntervalReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PollIntervalReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPollinterval(); - if (f !== 0) { - writer.writeInt64( - 1, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional int64 PollInterval = 1; - * @return {number} - */ -proto.sliverpb.PollIntervalReq.prototype.getPollinterval = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.PollIntervalReq} returns this - */ -proto.sliverpb.PollIntervalReq.prototype.setPollinterval = function(value) { - return jspb.Message.setProto3IntField(this, 1, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.PollIntervalReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.PollIntervalReq} returns this -*/ -proto.sliverpb.PollIntervalReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PollIntervalReq} returns this - */ -proto.sliverpb.PollIntervalReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PollIntervalReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.PollInterval.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.PollInterval.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.PollInterval} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PollInterval.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.PollInterval} - */ -proto.sliverpb.PollInterval.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.PollInterval; - return proto.sliverpb.PollInterval.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.PollInterval} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.PollInterval} - */ -proto.sliverpb.PollInterval.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.PollInterval.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.PollInterval.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.PollInterval} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.PollInterval.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.PollInterval.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.PollInterval} returns this -*/ -proto.sliverpb.PollInterval.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.PollInterval} returns this - */ -proto.sliverpb.PollInterval.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.PollInterval.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SSHCommandReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SSHCommandReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SSHCommandReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SSHCommandReq.toObject = function(includeInstance, msg) { - var f, obj = { - username: jspb.Message.getFieldWithDefault(msg, 1, ""), - hostname: jspb.Message.getFieldWithDefault(msg, 2, ""), - port: jspb.Message.getFieldWithDefault(msg, 3, 0), - command: jspb.Message.getFieldWithDefault(msg, 4, ""), - password: jspb.Message.getFieldWithDefault(msg, 5, ""), - privkey: msg.getPrivkey_asB64(), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SSHCommandReq} - */ -proto.sliverpb.SSHCommandReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SSHCommandReq; - return proto.sliverpb.SSHCommandReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SSHCommandReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SSHCommandReq} - */ -proto.sliverpb.SSHCommandReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setUsername(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setHostname(value); - break; - case 3: - var value = /** @type {number} */ (reader.readUint32()); - msg.setPort(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setCommand(value); - break; - case 5: - var value = /** @type {string} */ (reader.readString()); - msg.setPassword(value); - break; - case 6: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setPrivkey(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SSHCommandReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SSHCommandReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SSHCommandReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SSHCommandReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getUsername(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getHostname(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getPort(); - if (f !== 0) { - writer.writeUint32( - 3, - f - ); - } - f = message.getCommand(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getPassword(); - if (f.length > 0) { - writer.writeString( - 5, - f - ); - } - f = message.getPrivkey_asU8(); - if (f.length > 0) { - writer.writeBytes( - 6, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Username = 1; - * @return {string} - */ -proto.sliverpb.SSHCommandReq.prototype.getUsername = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setUsername = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Hostname = 2; - * @return {string} - */ -proto.sliverpb.SSHCommandReq.prototype.getHostname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setHostname = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional uint32 Port = 3; - * @return {number} - */ -proto.sliverpb.SSHCommandReq.prototype.getPort = function() { - return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0)); -}; - - -/** - * @param {number} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setPort = function(value) { - return jspb.Message.setProto3IntField(this, 3, value); -}; - - -/** - * optional string Command = 4; - * @return {string} - */ -proto.sliverpb.SSHCommandReq.prototype.getCommand = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setCommand = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional string Password = 5; - * @return {string} - */ -proto.sliverpb.SSHCommandReq.prototype.getPassword = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setPassword = function(value) { - return jspb.Message.setProto3StringField(this, 5, value); -}; - - -/** - * optional bytes PrivKey = 6; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.SSHCommandReq.prototype.getPrivkey = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 6, "")); -}; - - -/** - * optional bytes PrivKey = 6; - * This is a type-conversion wrapper around `getPrivkey()` - * @return {string} - */ -proto.sliverpb.SSHCommandReq.prototype.getPrivkey_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getPrivkey())); -}; - - -/** - * optional bytes PrivKey = 6; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getPrivkey()` - * @return {!Uint8Array} - */ -proto.sliverpb.SSHCommandReq.prototype.getPrivkey_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getPrivkey())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.setPrivkey = function(value) { - return jspb.Message.setProto3BytesField(this, 6, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.SSHCommandReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.SSHCommandReq} returns this -*/ -proto.sliverpb.SSHCommandReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SSHCommandReq} returns this - */ -proto.sliverpb.SSHCommandReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SSHCommandReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.SSHCommand.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.SSHCommand.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.SSHCommand} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SSHCommand.toObject = function(includeInstance, msg) { - var f, obj = { - stdout: jspb.Message.getFieldWithDefault(msg, 1, ""), - stderr: jspb.Message.getFieldWithDefault(msg, 2, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.SSHCommand} - */ -proto.sliverpb.SSHCommand.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.SSHCommand; - return proto.sliverpb.SSHCommand.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.SSHCommand} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.SSHCommand} - */ -proto.sliverpb.SSHCommand.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setStdout(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setStderr(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.SSHCommand.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.SSHCommand.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.SSHCommand} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.SSHCommand.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getStdout(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getStderr(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string StdOut = 1; - * @return {string} - */ -proto.sliverpb.SSHCommand.prototype.getStdout = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommand} returns this - */ -proto.sliverpb.SSHCommand.prototype.setStdout = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string StdErr = 2; - * @return {string} - */ -proto.sliverpb.SSHCommand.prototype.getStderr = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.SSHCommand} returns this - */ -proto.sliverpb.SSHCommand.prototype.setStderr = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.SSHCommand.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.SSHCommand} returns this -*/ -proto.sliverpb.SSHCommand.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.SSHCommand} returns this - */ -proto.sliverpb.SSHCommand.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.SSHCommand.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.GetPrivsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.GetPrivsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.GetPrivsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetPrivsReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.GetPrivsReq} - */ -proto.sliverpb.GetPrivsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.GetPrivsReq; - return proto.sliverpb.GetPrivsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.GetPrivsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.GetPrivsReq} - */ -proto.sliverpb.GetPrivsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.GetPrivsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.GetPrivsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.GetPrivsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetPrivsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.GetPrivsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.GetPrivsReq} returns this -*/ -proto.sliverpb.GetPrivsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.GetPrivsReq} returns this - */ -proto.sliverpb.GetPrivsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.GetPrivsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.WindowsPrivilegeEntry.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.WindowsPrivilegeEntry} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WindowsPrivilegeEntry.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - description: jspb.Message.getFieldWithDefault(msg, 2, ""), - enabled: jspb.Message.getBooleanFieldWithDefault(msg, 3, false), - enabledbydefault: jspb.Message.getBooleanFieldWithDefault(msg, 4, false), - removed: jspb.Message.getBooleanFieldWithDefault(msg, 5, false), - usedforaccess: jspb.Message.getBooleanFieldWithDefault(msg, 6, false) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.WindowsPrivilegeEntry} - */ -proto.sliverpb.WindowsPrivilegeEntry.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.WindowsPrivilegeEntry; - return proto.sliverpb.WindowsPrivilegeEntry.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.WindowsPrivilegeEntry} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.WindowsPrivilegeEntry} - */ -proto.sliverpb.WindowsPrivilegeEntry.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setDescription(value); - break; - case 3: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabled(value); - break; - case 4: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setEnabledbydefault(value); - break; - case 5: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setRemoved(value); - break; - case 6: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setUsedforaccess(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.WindowsPrivilegeEntry.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.WindowsPrivilegeEntry} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.WindowsPrivilegeEntry.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getDescription(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getEnabled(); - if (f) { - writer.writeBool( - 3, - f - ); - } - f = message.getEnabledbydefault(); - if (f) { - writer.writeBool( - 4, - f - ); - } - f = message.getRemoved(); - if (f) { - writer.writeBool( - 5, - f - ); - } - f = message.getUsedforaccess(); - if (f) { - writer.writeBool( - 6, - f - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional string Description = 2; - * @return {string} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getDescription = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setDescription = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional bool Enabled = 3; - * @return {boolean} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getEnabled = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setEnabled = function(value) { - return jspb.Message.setProto3BooleanField(this, 3, value); -}; - - -/** - * optional bool EnabledByDefault = 4; - * @return {boolean} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getEnabledbydefault = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setEnabledbydefault = function(value) { - return jspb.Message.setProto3BooleanField(this, 4, value); -}; - - -/** - * optional bool Removed = 5; - * @return {boolean} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getRemoved = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setRemoved = function(value) { - return jspb.Message.setProto3BooleanField(this, 5, value); -}; - - -/** - * optional bool UsedForAccess = 6; - * @return {boolean} - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.getUsedforaccess = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.WindowsPrivilegeEntry} returns this - */ -proto.sliverpb.WindowsPrivilegeEntry.prototype.setUsedforaccess = function(value) { - return jspb.Message.setProto3BooleanField(this, 6, value); -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.GetPrivs.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.GetPrivs.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.GetPrivs.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.GetPrivs} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetPrivs.toObject = function(includeInstance, msg) { - var f, obj = { - privinfoList: jspb.Message.toObjectList(msg.getPrivinfoList(), - proto.sliverpb.WindowsPrivilegeEntry.toObject, includeInstance), - processintegrity: jspb.Message.getFieldWithDefault(msg, 2, ""), - processname: jspb.Message.getFieldWithDefault(msg, 3, ""), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.GetPrivs} - */ -proto.sliverpb.GetPrivs.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.GetPrivs; - return proto.sliverpb.GetPrivs.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.GetPrivs} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.GetPrivs} - */ -proto.sliverpb.GetPrivs.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = new proto.sliverpb.WindowsPrivilegeEntry; - reader.readMessage(value,proto.sliverpb.WindowsPrivilegeEntry.deserializeBinaryFromReader); - msg.addPrivinfo(value); - break; - case 2: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessintegrity(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setProcessname(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.GetPrivs.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.GetPrivs.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.GetPrivs} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.GetPrivs.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getPrivinfoList(); - if (f.length > 0) { - writer.writeRepeatedMessage( - 1, - f, - proto.sliverpb.WindowsPrivilegeEntry.serializeBinaryToWriter - ); - } - f = message.getProcessintegrity(); - if (f.length > 0) { - writer.writeString( - 2, - f - ); - } - f = message.getProcessname(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated WindowsPrivilegeEntry PrivInfo = 1; - * @return {!Array} - */ -proto.sliverpb.GetPrivs.prototype.getPrivinfoList = function() { - return /** @type{!Array} */ ( - jspb.Message.getRepeatedWrapperField(this, proto.sliverpb.WindowsPrivilegeEntry, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.GetPrivs} returns this -*/ -proto.sliverpb.GetPrivs.prototype.setPrivinfoList = function(value) { - return jspb.Message.setRepeatedWrapperField(this, 1, value); -}; - - -/** - * @param {!proto.sliverpb.WindowsPrivilegeEntry=} opt_value - * @param {number=} opt_index - * @return {!proto.sliverpb.WindowsPrivilegeEntry} - */ -proto.sliverpb.GetPrivs.prototype.addPrivinfo = function(opt_value, opt_index) { - return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.sliverpb.WindowsPrivilegeEntry, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.GetPrivs} returns this - */ -proto.sliverpb.GetPrivs.prototype.clearPrivinfoList = function() { - return this.setPrivinfoList([]); -}; - - -/** - * optional string ProcessIntegrity = 2; - * @return {string} - */ -proto.sliverpb.GetPrivs.prototype.getProcessintegrity = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.GetPrivs} returns this - */ -proto.sliverpb.GetPrivs.prototype.setProcessintegrity = function(value) { - return jspb.Message.setProto3StringField(this, 2, value); -}; - - -/** - * optional string ProcessName = 3; - * @return {string} - */ -proto.sliverpb.GetPrivs.prototype.getProcessname = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.GetPrivs} returns this - */ -proto.sliverpb.GetPrivs.prototype.setProcessname = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.GetPrivs.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.GetPrivs} returns this -*/ -proto.sliverpb.GetPrivs.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.GetPrivs} returns this - */ -proto.sliverpb.GetPrivs.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.GetPrivs.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegisterExtensionReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegisterExtensionReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegisterExtensionReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegisterExtensionReq.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - data: msg.getData_asB64(), - os: jspb.Message.getFieldWithDefault(msg, 3, ""), - init: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegisterExtensionReq} - */ -proto.sliverpb.RegisterExtensionReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegisterExtensionReq; - return proto.sliverpb.RegisterExtensionReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegisterExtensionReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegisterExtensionReq} - */ -proto.sliverpb.RegisterExtensionReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setData(value); - break; - case 3: - var value = /** @type {string} */ (reader.readString()); - msg.setOs(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setInit(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegisterExtensionReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegisterExtensionReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegisterExtensionReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegisterExtensionReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getData_asU8(); - if (f.length > 0) { - writer.writeBytes( - 2, - f - ); - } - f = message.getOs(); - if (f.length > 0) { - writer.writeString( - 3, - f - ); - } - f = message.getInit(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegisterExtensionReq} returns this - */ -proto.sliverpb.RegisterExtensionReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bytes Data = 2; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getData = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, "")); -}; - - -/** - * optional bytes Data = 2; - * This is a type-conversion wrapper around `getData()` - * @return {string} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getData_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getData())); -}; - - -/** - * optional bytes Data = 2; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getData()` - * @return {!Uint8Array} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getData_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getData())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.RegisterExtensionReq} returns this - */ -proto.sliverpb.RegisterExtensionReq.prototype.setData = function(value) { - return jspb.Message.setProto3BytesField(this, 2, value); -}; - - -/** - * optional string OS = 3; - * @return {string} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getOs = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegisterExtensionReq} returns this - */ -proto.sliverpb.RegisterExtensionReq.prototype.setOs = function(value) { - return jspb.Message.setProto3StringField(this, 3, value); -}; - - -/** - * optional string Init = 4; - * @return {string} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getInit = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.RegisterExtensionReq} returns this - */ -proto.sliverpb.RegisterExtensionReq.prototype.setInit = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.RegisterExtensionReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.RegisterExtensionReq} returns this -*/ -proto.sliverpb.RegisterExtensionReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegisterExtensionReq} returns this - */ -proto.sliverpb.RegisterExtensionReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegisterExtensionReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.RegisterExtension.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.RegisterExtension.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.RegisterExtension} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegisterExtension.toObject = function(includeInstance, msg) { - var f, obj = { - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.RegisterExtension} - */ -proto.sliverpb.RegisterExtension.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.RegisterExtension; - return proto.sliverpb.RegisterExtension.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.RegisterExtension} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.RegisterExtension} - */ -proto.sliverpb.RegisterExtension.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.RegisterExtension.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.RegisterExtension.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.RegisterExtension} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.RegisterExtension.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.RegisterExtension.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.RegisterExtension} returns this -*/ -proto.sliverpb.RegisterExtension.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.RegisterExtension} returns this - */ -proto.sliverpb.RegisterExtension.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.RegisterExtension.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CallExtensionReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CallExtensionReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CallExtensionReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CallExtensionReq.toObject = function(includeInstance, msg) { - var f, obj = { - name: jspb.Message.getFieldWithDefault(msg, 1, ""), - serverstore: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - args: msg.getArgs_asB64(), - pb_export: jspb.Message.getFieldWithDefault(msg, 4, ""), - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CallExtensionReq} - */ -proto.sliverpb.CallExtensionReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CallExtensionReq; - return proto.sliverpb.CallExtensionReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CallExtensionReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CallExtensionReq} - */ -proto.sliverpb.CallExtensionReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.setName(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setServerstore(value); - break; - case 3: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setArgs(value); - break; - case 4: - var value = /** @type {string} */ (reader.readString()); - msg.setExport(value); - break; - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CallExtensionReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CallExtensionReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CallExtensionReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CallExtensionReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getName(); - if (f.length > 0) { - writer.writeString( - 1, - f - ); - } - f = message.getServerstore(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getArgs_asU8(); - if (f.length > 0) { - writer.writeBytes( - 3, - f - ); - } - f = message.getExport(); - if (f.length > 0) { - writer.writeString( - 4, - f - ); - } - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional string Name = 1; - * @return {string} - */ -proto.sliverpb.CallExtensionReq.prototype.getName = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.CallExtensionReq} returns this - */ -proto.sliverpb.CallExtensionReq.prototype.setName = function(value) { - return jspb.Message.setProto3StringField(this, 1, value); -}; - - -/** - * optional bool ServerStore = 2; - * @return {boolean} - */ -proto.sliverpb.CallExtensionReq.prototype.getServerstore = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.CallExtensionReq} returns this - */ -proto.sliverpb.CallExtensionReq.prototype.setServerstore = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional bytes Args = 3; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.CallExtensionReq.prototype.getArgs = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 3, "")); -}; - - -/** - * optional bytes Args = 3; - * This is a type-conversion wrapper around `getArgs()` - * @return {string} - */ -proto.sliverpb.CallExtensionReq.prototype.getArgs_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getArgs())); -}; - - -/** - * optional bytes Args = 3; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getArgs()` - * @return {!Uint8Array} - */ -proto.sliverpb.CallExtensionReq.prototype.getArgs_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getArgs())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.CallExtensionReq} returns this - */ -proto.sliverpb.CallExtensionReq.prototype.setArgs = function(value) { - return jspb.Message.setProto3BytesField(this, 3, value); -}; - - -/** - * optional string Export = 4; - * @return {string} - */ -proto.sliverpb.CallExtensionReq.prototype.getExport = function() { - return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, "")); -}; - - -/** - * @param {string} value - * @return {!proto.sliverpb.CallExtensionReq} returns this - */ -proto.sliverpb.CallExtensionReq.prototype.setExport = function(value) { - return jspb.Message.setProto3StringField(this, 4, value); -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.CallExtensionReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.CallExtensionReq} returns this -*/ -proto.sliverpb.CallExtensionReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CallExtensionReq} returns this - */ -proto.sliverpb.CallExtensionReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CallExtensionReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.CallExtension.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.CallExtension.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.CallExtension} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CallExtension.toObject = function(includeInstance, msg) { - var f, obj = { - output: msg.getOutput_asB64(), - serverstore: jspb.Message.getBooleanFieldWithDefault(msg, 2, false), - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.CallExtension} - */ -proto.sliverpb.CallExtension.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.CallExtension; - return proto.sliverpb.CallExtension.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.CallExtension} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.CallExtension} - */ -proto.sliverpb.CallExtension.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {!Uint8Array} */ (reader.readBytes()); - msg.setOutput(value); - break; - case 2: - var value = /** @type {boolean} */ (reader.readBool()); - msg.setServerstore(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.CallExtension.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.CallExtension.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.CallExtension} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.CallExtension.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getOutput_asU8(); - if (f.length > 0) { - writer.writeBytes( - 1, - f - ); - } - f = message.getServerstore(); - if (f) { - writer.writeBool( - 2, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * optional bytes Output = 1; - * @return {!(string|Uint8Array)} - */ -proto.sliverpb.CallExtension.prototype.getOutput = function() { - return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, "")); -}; - - -/** - * optional bytes Output = 1; - * This is a type-conversion wrapper around `getOutput()` - * @return {string} - */ -proto.sliverpb.CallExtension.prototype.getOutput_asB64 = function() { - return /** @type {string} */ (jspb.Message.bytesAsB64( - this.getOutput())); -}; - - -/** - * optional bytes Output = 1; - * Note that Uint8Array is not supported on all browsers. - * @see http://caniuse.com/Uint8Array - * This is a type-conversion wrapper around `getOutput()` - * @return {!Uint8Array} - */ -proto.sliverpb.CallExtension.prototype.getOutput_asU8 = function() { - return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8( - this.getOutput())); -}; - - -/** - * @param {!(string|Uint8Array)} value - * @return {!proto.sliverpb.CallExtension} returns this - */ -proto.sliverpb.CallExtension.prototype.setOutput = function(value) { - return jspb.Message.setProto3BytesField(this, 1, value); -}; - - -/** - * optional bool ServerStore = 2; - * @return {boolean} - */ -proto.sliverpb.CallExtension.prototype.getServerstore = function() { - return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false)); -}; - - -/** - * @param {boolean} value - * @return {!proto.sliverpb.CallExtension} returns this - */ -proto.sliverpb.CallExtension.prototype.setServerstore = function(value) { - return jspb.Message.setProto3BooleanField(this, 2, value); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.CallExtension.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.CallExtension} returns this -*/ -proto.sliverpb.CallExtension.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.CallExtension} returns this - */ -proto.sliverpb.CallExtension.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.CallExtension.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ListExtensionsReq.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ListExtensionsReq.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ListExtensionsReq} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ListExtensionsReq.toObject = function(includeInstance, msg) { - var f, obj = { - request: (f = msg.getRequest()) && commonpb_common_pb.Request.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ListExtensionsReq} - */ -proto.sliverpb.ListExtensionsReq.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ListExtensionsReq; - return proto.sliverpb.ListExtensionsReq.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ListExtensionsReq} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ListExtensionsReq} - */ -proto.sliverpb.ListExtensionsReq.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 9: - var value = new commonpb_common_pb.Request; - reader.readMessage(value,commonpb_common_pb.Request.deserializeBinaryFromReader); - msg.setRequest(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ListExtensionsReq.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ListExtensionsReq.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ListExtensionsReq} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ListExtensionsReq.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getRequest(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Request.serializeBinaryToWriter - ); - } -}; - - -/** - * optional commonpb.Request Request = 9; - * @return {?proto.commonpb.Request} - */ -proto.sliverpb.ListExtensionsReq.prototype.getRequest = function() { - return /** @type{?proto.commonpb.Request} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Request, 9)); -}; - - -/** - * @param {?proto.commonpb.Request|undefined} value - * @return {!proto.sliverpb.ListExtensionsReq} returns this -*/ -proto.sliverpb.ListExtensionsReq.prototype.setRequest = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ListExtensionsReq} returns this - */ -proto.sliverpb.ListExtensionsReq.prototype.clearRequest = function() { - return this.setRequest(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ListExtensionsReq.prototype.hasRequest = function() { - return jspb.Message.getField(this, 9) != null; -}; - - - -/** - * List of repeated fields within this message type. - * @private {!Array} - * @const - */ -proto.sliverpb.ListExtensions.repeatedFields_ = [1]; - - - -if (jspb.Message.GENERATE_TO_OBJECT) { -/** - * Creates an object representation of this proto. - * Field names that are reserved in JavaScript and will be renamed to pb_name. - * Optional fields that are not set will be set to undefined. - * To access a reserved field use, foo.pb_, eg, foo.pb_default. - * For the list of reserved names please see: - * net/proto2/compiler/js/internal/generator.cc#kKeyword. - * @param {boolean=} opt_includeInstance Deprecated. whether to include the - * JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @return {!Object} - */ -proto.sliverpb.ListExtensions.prototype.toObject = function(opt_includeInstance) { - return proto.sliverpb.ListExtensions.toObject(opt_includeInstance, this); -}; - - -/** - * Static version of the {@see toObject} method. - * @param {boolean|undefined} includeInstance Deprecated. Whether to include - * the JSPB instance for transitional soy proto support: - * http://goto/soy-param-migration - * @param {!proto.sliverpb.ListExtensions} msg The msg instance to transform. - * @return {!Object} - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ListExtensions.toObject = function(includeInstance, msg) { - var f, obj = { - namesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f, - response: (f = msg.getResponse()) && commonpb_common_pb.Response.toObject(includeInstance, f) - }; - - if (includeInstance) { - obj.$jspbMessageInstance = msg; - } - return obj; -}; -} - - -/** - * Deserializes binary data (in protobuf wire format). - * @param {jspb.ByteSource} bytes The bytes to deserialize. - * @return {!proto.sliverpb.ListExtensions} - */ -proto.sliverpb.ListExtensions.deserializeBinary = function(bytes) { - var reader = new jspb.BinaryReader(bytes); - var msg = new proto.sliverpb.ListExtensions; - return proto.sliverpb.ListExtensions.deserializeBinaryFromReader(msg, reader); -}; - - -/** - * Deserializes binary data (in protobuf wire format) from the - * given reader into the given message object. - * @param {!proto.sliverpb.ListExtensions} msg The message object to deserialize into. - * @param {!jspb.BinaryReader} reader The BinaryReader to use. - * @return {!proto.sliverpb.ListExtensions} - */ -proto.sliverpb.ListExtensions.deserializeBinaryFromReader = function(msg, reader) { - while (reader.nextField()) { - if (reader.isEndGroup()) { - break; - } - var field = reader.getFieldNumber(); - switch (field) { - case 1: - var value = /** @type {string} */ (reader.readString()); - msg.addNames(value); - break; - case 9: - var value = new commonpb_common_pb.Response; - reader.readMessage(value,commonpb_common_pb.Response.deserializeBinaryFromReader); - msg.setResponse(value); - break; - default: - reader.skipField(); - break; - } - } - return msg; -}; - - -/** - * Serializes the message to binary data (in protobuf wire format). - * @return {!Uint8Array} - */ -proto.sliverpb.ListExtensions.prototype.serializeBinary = function() { - var writer = new jspb.BinaryWriter(); - proto.sliverpb.ListExtensions.serializeBinaryToWriter(this, writer); - return writer.getResultBuffer(); -}; - - -/** - * Serializes the given message to binary data (in protobuf wire - * format), writing to the given BinaryWriter. - * @param {!proto.sliverpb.ListExtensions} message - * @param {!jspb.BinaryWriter} writer - * @suppress {unusedLocalVariables} f is only used for nested messages - */ -proto.sliverpb.ListExtensions.serializeBinaryToWriter = function(message, writer) { - var f = undefined; - f = message.getNamesList(); - if (f.length > 0) { - writer.writeRepeatedString( - 1, - f - ); - } - f = message.getResponse(); - if (f != null) { - writer.writeMessage( - 9, - f, - commonpb_common_pb.Response.serializeBinaryToWriter - ); - } -}; - - -/** - * repeated string Names = 1; - * @return {!Array} - */ -proto.sliverpb.ListExtensions.prototype.getNamesList = function() { - return /** @type {!Array} */ (jspb.Message.getRepeatedField(this, 1)); -}; - - -/** - * @param {!Array} value - * @return {!proto.sliverpb.ListExtensions} returns this - */ -proto.sliverpb.ListExtensions.prototype.setNamesList = function(value) { - return jspb.Message.setField(this, 1, value || []); -}; - - -/** - * @param {string} value - * @param {number=} opt_index - * @return {!proto.sliverpb.ListExtensions} returns this - */ -proto.sliverpb.ListExtensions.prototype.addNames = function(value, opt_index) { - return jspb.Message.addToRepeatedField(this, 1, value, opt_index); -}; - - -/** - * Clears the list making it empty but non-null. - * @return {!proto.sliverpb.ListExtensions} returns this - */ -proto.sliverpb.ListExtensions.prototype.clearNamesList = function() { - return this.setNamesList([]); -}; - - -/** - * optional commonpb.Response Response = 9; - * @return {?proto.commonpb.Response} - */ -proto.sliverpb.ListExtensions.prototype.getResponse = function() { - return /** @type{?proto.commonpb.Response} */ ( - jspb.Message.getWrapperField(this, commonpb_common_pb.Response, 9)); -}; - - -/** - * @param {?proto.commonpb.Response|undefined} value - * @return {!proto.sliverpb.ListExtensions} returns this -*/ -proto.sliverpb.ListExtensions.prototype.setResponse = function(value) { - return jspb.Message.setWrapperField(this, 9, value); -}; - - -/** - * Clears the message field making it undefined. - * @return {!proto.sliverpb.ListExtensions} returns this - */ -proto.sliverpb.ListExtensions.prototype.clearResponse = function() { - return this.setResponse(undefined); -}; - - -/** - * Returns whether this field is set. - * @return {boolean} - */ -proto.sliverpb.ListExtensions.prototype.hasResponse = function() { - return jspb.Message.getField(this, 9) != null; -}; - - -/** - * @enum {number} - */ -proto.sliverpb.RegistryType = { - UNKNOWN: 0, - BINARY: 1, - STRING: 2, - DWORD: 3, - QWORD: 4 -}; - -/** - * @enum {number} - */ -proto.sliverpb.PivotType = { - TCP: 0, - UDP: 1, - NAMEDPIPE: 2 -}; - -/** - * @enum {number} - */ -proto.sliverpb.PeerFailureType = { - SEND_FAILURE: 0, - DISCONNECT: 1 -}; - -goog.object.extend(exports, proto.sliverpb); diff --git a/src/tests/__snapshots__/rpc-definition.test.ts.snap b/src/tests/__snapshots__/rpc-definition.test.ts.snap new file mode 100644 index 0000000..f024982 --- /dev/null +++ b/src/tests/__snapshots__/rpc-definition.test.ts.snap @@ -0,0 +1,1120 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`RPC definition includes all methods (snapshot) 1`] = ` +{ + "fullName": "rpcpb.SliverRPC", + "methods": [ + { + "key": "backdoor", + "name": "Backdoor", + "requestStream": false, + "responseStream": false, + }, + { + "key": "builderRegister", + "name": "BuilderRegister", + "requestStream": false, + "responseStream": true, + }, + { + "key": "builders", + "name": "Builders", + "requestStream": false, + "responseStream": false, + }, + { + "key": "builderTrigger", + "name": "BuilderTrigger", + "requestStream": false, + "responseStream": false, + }, + { + "key": "callExtension", + "name": "CallExtension", + "requestStream": false, + "responseStream": false, + }, + { + "key": "canaries", + "name": "Canaries", + "requestStream": false, + "responseStream": false, + }, + { + "key": "cancelBeaconTask", + "name": "CancelBeaconTask", + "requestStream": false, + "responseStream": false, + }, + { + "key": "cd", + "name": "Cd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "chmod", + "name": "Chmod", + "requestStream": false, + "responseStream": false, + }, + { + "key": "chown", + "name": "Chown", + "requestStream": false, + "responseStream": false, + }, + { + "key": "chtimes", + "name": "Chtimes", + "requestStream": false, + "responseStream": false, + }, + { + "key": "clientLog", + "name": "ClientLog", + "requestStream": true, + "responseStream": false, + }, + { + "key": "closeSession", + "name": "CloseSession", + "requestStream": false, + "responseStream": false, + }, + { + "key": "closeSocks", + "name": "CloseSocks", + "requestStream": false, + "responseStream": false, + }, + { + "key": "closeTunnel", + "name": "CloseTunnel", + "requestStream": false, + "responseStream": false, + }, + { + "key": "cp", + "name": "Cp", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crack", + "name": "Crack", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFileChunkDownload", + "name": "CrackFileChunkDownload", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFileChunkUpload", + "name": "CrackFileChunkUpload", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFileComplete", + "name": "CrackFileComplete", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFileCreate", + "name": "CrackFileCreate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFileDelete", + "name": "CrackFileDelete", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackFilesList", + "name": "CrackFilesList", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackstationBenchmark", + "name": "CrackstationBenchmark", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackstationRegister", + "name": "CrackstationRegister", + "requestStream": false, + "responseStream": true, + }, + { + "key": "crackstations", + "name": "Crackstations", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackstationTrigger", + "name": "CrackstationTrigger", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackTaskByID", + "name": "CrackTaskByID", + "requestStream": false, + "responseStream": false, + }, + { + "key": "crackTaskUpdate", + "name": "CrackTaskUpdate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "createSocks", + "name": "CreateSocks", + "requestStream": false, + "responseStream": false, + }, + { + "key": "createTunnel", + "name": "CreateTunnel", + "requestStream": false, + "responseStream": false, + }, + { + "key": "creds", + "name": "Creds", + "requestStream": false, + "responseStream": false, + }, + { + "key": "credsAdd", + "name": "CredsAdd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "credsRm", + "name": "CredsRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "credsSniffHashType", + "name": "CredsSniffHashType", + "requestStream": false, + "responseStream": false, + }, + { + "key": "credsUpdate", + "name": "CredsUpdate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "currentTokenOwner", + "name": "CurrentTokenOwner", + "requestStream": false, + "responseStream": false, + }, + { + "key": "deleteImplantBuild", + "name": "DeleteImplantBuild", + "requestStream": false, + "responseStream": false, + }, + { + "key": "deleteImplantProfile", + "name": "DeleteImplantProfile", + "requestStream": false, + "responseStream": false, + }, + { + "key": "download", + "name": "Download", + "requestStream": false, + "responseStream": false, + }, + { + "key": "events", + "name": "Events", + "requestStream": false, + "responseStream": true, + }, + { + "key": "execute", + "name": "Execute", + "requestStream": false, + "responseStream": false, + }, + { + "key": "executeAssembly", + "name": "ExecuteAssembly", + "requestStream": false, + "responseStream": false, + }, + { + "key": "executeChildren", + "name": "ExecuteChildren", + "requestStream": false, + "responseStream": false, + }, + { + "key": "executeWindows", + "name": "ExecuteWindows", + "requestStream": false, + "responseStream": false, + }, + { + "key": "execWasmExtension", + "name": "ExecWasmExtension", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generate", + "name": "Generate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateExternal", + "name": "GenerateExternal", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateExternalGetBuildConfig", + "name": "GenerateExternalGetBuildConfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateExternalSaveBuild", + "name": "GenerateExternalSaveBuild", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateStage", + "name": "GenerateStage", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateUniqueIP", + "name": "GenerateUniqueIP", + "requestStream": false, + "responseStream": false, + }, + { + "key": "generateWGClientConfig", + "name": "GenerateWGClientConfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getBeacon", + "name": "GetBeacon", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getBeacons", + "name": "GetBeacons", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getBeaconTaskContent", + "name": "GetBeaconTaskContent", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getBeaconTasks", + "name": "GetBeaconTasks", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getCertificateAuthorityInfo", + "name": "GetCertificateAuthorityInfo", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getCertificateInfo", + "name": "GetCertificateInfo", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getCompiler", + "name": "GetCompiler", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getCredByID", + "name": "GetCredByID", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getCredsByHashType", + "name": "GetCredsByHashType", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getEnv", + "name": "GetEnv", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getHTTPC2ProfileByName", + "name": "GetHTTPC2ProfileByName", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getHTTPC2Profiles", + "name": "GetHTTPC2Profiles", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getJobs", + "name": "GetJobs", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getOperators", + "name": "GetOperators", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getPlaintextCredsByHashType", + "name": "GetPlaintextCredsByHashType", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getPrivs", + "name": "GetPrivs", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getRportFwdListeners", + "name": "GetRportFwdListeners", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getSessions", + "name": "GetSessions", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getSystem", + "name": "GetSystem", + "requestStream": false, + "responseStream": false, + }, + { + "key": "getVersion", + "name": "GetVersion", + "requestStream": false, + "responseStream": false, + }, + { + "key": "grep", + "name": "Grep", + "requestStream": false, + "responseStream": false, + }, + { + "key": "hijackDLL", + "name": "HijackDLL", + "requestStream": false, + "responseStream": false, + }, + { + "key": "host", + "name": "Host", + "requestStream": false, + "responseStream": false, + }, + { + "key": "hostIOCRm", + "name": "HostIOCRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "hostRm", + "name": "HostRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "hosts", + "name": "Hosts", + "requestStream": false, + "responseStream": false, + }, + { + "key": "ifconfig", + "name": "Ifconfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "impersonate", + "name": "Impersonate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "implantBuilds", + "name": "ImplantBuilds", + "requestStream": false, + "responseStream": false, + }, + { + "key": "implantProfiles", + "name": "ImplantProfiles", + "requestStream": false, + "responseStream": false, + }, + { + "key": "kill", + "name": "Kill", + "requestStream": false, + "responseStream": false, + }, + { + "key": "killJob", + "name": "KillJob", + "requestStream": false, + "responseStream": false, + }, + { + "key": "listExtensions", + "name": "ListExtensions", + "requestStream": false, + "responseStream": false, + }, + { + "key": "listWasmExtensions", + "name": "ListWasmExtensions", + "requestStream": false, + "responseStream": false, + }, + { + "key": "lootAdd", + "name": "LootAdd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "lootAll", + "name": "LootAll", + "requestStream": false, + "responseStream": false, + }, + { + "key": "lootContent", + "name": "LootContent", + "requestStream": false, + "responseStream": false, + }, + { + "key": "lootRm", + "name": "LootRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "lootUpdate", + "name": "LootUpdate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "ls", + "name": "Ls", + "requestStream": false, + "responseStream": false, + }, + { + "key": "makeToken", + "name": "MakeToken", + "requestStream": false, + "responseStream": false, + }, + { + "key": "memfilesAdd", + "name": "MemfilesAdd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "memfilesList", + "name": "MemfilesList", + "requestStream": false, + "responseStream": false, + }, + { + "key": "memfilesRm", + "name": "MemfilesRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "migrate", + "name": "Migrate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "mkdir", + "name": "Mkdir", + "requestStream": false, + "responseStream": false, + }, + { + "key": "monitorAddConfig", + "name": "MonitorAddConfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "monitorDelConfig", + "name": "MonitorDelConfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "monitorListConfig", + "name": "MonitorListConfig", + "requestStream": false, + "responseStream": false, + }, + { + "key": "monitorStart", + "name": "MonitorStart", + "requestStream": false, + "responseStream": false, + }, + { + "key": "monitorStop", + "name": "MonitorStop", + "requestStream": false, + "responseStream": false, + }, + { + "key": "mount", + "name": "Mount", + "requestStream": false, + "responseStream": false, + }, + { + "key": "msf", + "name": "Msf", + "requestStream": false, + "responseStream": false, + }, + { + "key": "msfRemote", + "name": "MsfRemote", + "requestStream": false, + "responseStream": false, + }, + { + "key": "mv", + "name": "Mv", + "requestStream": false, + "responseStream": false, + }, + { + "key": "netstat", + "name": "Netstat", + "requestStream": false, + "responseStream": false, + }, + { + "key": "openSession", + "name": "OpenSession", + "requestStream": false, + "responseStream": false, + }, + { + "key": "ping", + "name": "Ping", + "requestStream": false, + "responseStream": false, + }, + { + "key": "pivotGraph", + "name": "PivotGraph", + "requestStream": false, + "responseStream": false, + }, + { + "key": "pivotSessionListeners", + "name": "PivotSessionListeners", + "requestStream": false, + "responseStream": false, + }, + { + "key": "pivotStartListener", + "name": "PivotStartListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "pivotStopListener", + "name": "PivotStopListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "portfwd", + "name": "Portfwd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "processDump", + "name": "ProcessDump", + "requestStream": false, + "responseStream": false, + }, + { + "key": "ps", + "name": "Ps", + "requestStream": false, + "responseStream": false, + }, + { + "key": "pwd", + "name": "Pwd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "reconfigure", + "name": "Reconfigure", + "requestStream": false, + "responseStream": false, + }, + { + "key": "regenerate", + "name": "Regenerate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registerExtension", + "name": "RegisterExtension", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registerWasmExtension", + "name": "RegisterWasmExtension", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryCreateKey", + "name": "RegistryCreateKey", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryDeleteKey", + "name": "RegistryDeleteKey", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryListSubKeys", + "name": "RegistryListSubKeys", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryListValues", + "name": "RegistryListValues", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryRead", + "name": "RegistryRead", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryReadHive", + "name": "RegistryReadHive", + "requestStream": false, + "responseStream": false, + }, + { + "key": "registryWrite", + "name": "RegistryWrite", + "requestStream": false, + "responseStream": false, + }, + { + "key": "removeService", + "name": "RemoveService", + "requestStream": false, + "responseStream": false, + }, + { + "key": "rename", + "name": "Rename", + "requestStream": false, + "responseStream": false, + }, + { + "key": "restartJobs", + "name": "RestartJobs", + "requestStream": false, + "responseStream": false, + }, + { + "key": "revToSelf", + "name": "RevToSelf", + "requestStream": false, + "responseStream": false, + }, + { + "key": "rm", + "name": "Rm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "rmBeacon", + "name": "RmBeacon", + "requestStream": false, + "responseStream": false, + }, + { + "key": "runAs", + "name": "RunAs", + "requestStream": false, + "responseStream": false, + }, + { + "key": "runSSHCommand", + "name": "RunSSHCommand", + "requestStream": false, + "responseStream": false, + }, + { + "key": "saveHTTPC2Profile", + "name": "SaveHTTPC2Profile", + "requestStream": false, + "responseStream": false, + }, + { + "key": "saveImplantProfile", + "name": "SaveImplantProfile", + "requestStream": false, + "responseStream": false, + }, + { + "key": "screenshot", + "name": "Screenshot", + "requestStream": false, + "responseStream": false, + }, + { + "key": "serviceDetail", + "name": "ServiceDetail", + "requestStream": false, + "responseStream": false, + }, + { + "key": "services", + "name": "Services", + "requestStream": false, + "responseStream": false, + }, + { + "key": "setEnv", + "name": "SetEnv", + "requestStream": false, + "responseStream": false, + }, + { + "key": "shell", + "name": "Shell", + "requestStream": false, + "responseStream": false, + }, + { + "key": "shellcodeEncoder", + "name": "ShellcodeEncoder", + "requestStream": false, + "responseStream": false, + }, + { + "key": "shellcodeEncoderMap", + "name": "ShellcodeEncoderMap", + "requestStream": false, + "responseStream": false, + }, + { + "key": "shellcodeRDI", + "name": "ShellcodeRDI", + "requestStream": false, + "responseStream": false, + }, + { + "key": "shellResize", + "name": "ShellResize", + "requestStream": false, + "responseStream": false, + }, + { + "key": "sideload", + "name": "Sideload", + "requestStream": false, + "responseStream": false, + }, + { + "key": "socksProxy", + "name": "SocksProxy", + "requestStream": true, + "responseStream": true, + }, + { + "key": "spawnDll", + "name": "SpawnDll", + "requestStream": false, + "responseStream": false, + }, + { + "key": "stageImplantBuild", + "name": "StageImplantBuild", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startDNSListener", + "name": "StartDNSListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startHTTPListener", + "name": "StartHTTPListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startHTTPSListener", + "name": "StartHTTPSListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startMTLSListener", + "name": "StartMTLSListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startRportFwdListener", + "name": "StartRportFwdListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startService", + "name": "StartService", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startServiceByName", + "name": "StartServiceByName", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startTCPStagerListener", + "name": "StartTCPStagerListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "startWGListener", + "name": "StartWGListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "stopRportFwdListener", + "name": "StopRportFwdListener", + "requestStream": false, + "responseStream": false, + }, + { + "key": "stopService", + "name": "StopService", + "requestStream": false, + "responseStream": false, + }, + { + "key": "task", + "name": "Task", + "requestStream": false, + "responseStream": false, + }, + { + "key": "terminate", + "name": "Terminate", + "requestStream": false, + "responseStream": false, + }, + { + "key": "trafficEncoderAdd", + "name": "TrafficEncoderAdd", + "requestStream": false, + "responseStream": false, + }, + { + "key": "trafficEncoderMap", + "name": "TrafficEncoderMap", + "requestStream": false, + "responseStream": false, + }, + { + "key": "trafficEncoderRm", + "name": "TrafficEncoderRm", + "requestStream": false, + "responseStream": false, + }, + { + "key": "tunnelData", + "name": "TunnelData", + "requestStream": true, + "responseStream": true, + }, + { + "key": "unsetEnv", + "name": "UnsetEnv", + "requestStream": false, + "responseStream": false, + }, + { + "key": "updateBeaconIntegrityInformation", + "name": "UpdateBeaconIntegrityInformation", + "requestStream": false, + "responseStream": false, + }, + { + "key": "upload", + "name": "Upload", + "requestStream": false, + "responseStream": false, + }, + { + "key": "website", + "name": "Website", + "requestStream": false, + "responseStream": false, + }, + { + "key": "websiteAddContent", + "name": "WebsiteAddContent", + "requestStream": false, + "responseStream": false, + }, + { + "key": "websiteRemove", + "name": "WebsiteRemove", + "requestStream": false, + "responseStream": false, + }, + { + "key": "websiteRemoveContent", + "name": "WebsiteRemoveContent", + "requestStream": false, + "responseStream": false, + }, + { + "key": "websites", + "name": "Websites", + "requestStream": false, + "responseStream": false, + }, + { + "key": "websiteUpdateContent", + "name": "WebsiteUpdateContent", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGListForwarders", + "name": "WGListForwarders", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGListSocksServers", + "name": "WGListSocksServers", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGStartPortForward", + "name": "WGStartPortForward", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGStartSocks", + "name": "WGStartSocks", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGStopPortForward", + "name": "WGStopPortForward", + "requestStream": false, + "responseStream": false, + }, + { + "key": "wGStopSocks", + "name": "WGStopSocks", + "requestStream": false, + "responseStream": false, + }, + ], + "name": "SliverRPC", +} +`; diff --git a/src/tests/connection.test.ts b/src/tests/connection.test.ts index 729d1be..1068510 100644 --- a/src/tests/connection.test.ts +++ b/src/tests/connection.test.ts @@ -1,23 +1,22 @@ -import * as os from 'os' -import * as path from 'path' +import * as fs from "node:fs"; +import * as path from "node:path"; -import { ParseConfigFile } from '../config' -import { SliverClient } from '../client' +import { ParseConfigFile } from "../config"; +import { SliverClient } from "../client"; -const DEFAULT_CONFIG_PATH = path.join(os.homedir(), '.sliver-client', 'configs', 'default.cfg') -const SLIVER_CONFIG_FILE = process.env['SLIVER_CONFIG_FILE'] || DEFAULT_CONFIG_PATH; +const SLIVER_E2E = process.env["SLIVER_E2E"] === "1"; +const DEFAULT_CONFIG_PATH = path.resolve(__dirname, "../../localhost.cfg"); +const SLIVER_CONFIG_FILE = process.env["SLIVER_CONFIG_FILE"] || DEFAULT_CONFIG_PATH; -test('authenticate to server', async () => { - console.log(`Loading config: ${SLIVER_CONFIG_FILE}`) - const config = await ParseConfigFile(SLIVER_CONFIG_FILE) - const client = new SliverClient(config) +const testE2E = SLIVER_E2E && fs.existsSync(SLIVER_CONFIG_FILE) ? test : test.skip; - console.log(`Connecting to ${config.lhost} ...`) - try { - await client.connect() - await client.disconnect() - } catch (err) { - console.error(err) - } -}) +jest.setTimeout(120 * 1000); +testE2E("authenticate to server", async () => { + const config = await ParseConfigFile(SLIVER_CONFIG_FILE); + const client = new SliverClient(config); + + await client.connect(); + await expect(client.getVersion()).resolves.toBeDefined(); + await client.disconnect(); +}); diff --git a/src/tests/rpc-definition.test.ts b/src/tests/rpc-definition.test.ts new file mode 100644 index 0000000..e4abdb1 --- /dev/null +++ b/src/tests/rpc-definition.test.ts @@ -0,0 +1,19 @@ +import { SliverRPCDefinition } from "../pb/rpcpb/services"; + +test("RPC definition includes all methods (snapshot)", () => { + const methods = Object.entries(SliverRPCDefinition.methods) + .map(([key, def]) => ({ + key, + name: def.name, + requestStream: def.requestStream, + responseStream: def.responseStream, + })) + .sort((a, b) => a.key.localeCompare(b.key)); + + expect({ + name: SliverRPCDefinition.name, + fullName: SliverRPCDefinition.fullName, + methods, + }).toMatchSnapshot(); +}); + diff --git a/src/tests/rpc-wrappers.test.ts b/src/tests/rpc-wrappers.test.ts new file mode 100644 index 0000000..1d4e917 --- /dev/null +++ b/src/tests/rpc-wrappers.test.ts @@ -0,0 +1,156 @@ +import { Subject } from "rxjs"; + +import { SliverClient, InteractiveBeacon } from "../client"; +import type { SliverClientConfig } from "../config"; +import { BeaconTask, type Event, ListenerJob, Operators, Sessions, Session, KillJob, Loot, WebContent } from "../pb/clientpb/client"; +import { Empty } from "../pb/commonpb/common"; +import { Ls } from "../pb/sliverpb/sliver"; + +function dummyConfig(): SliverClientConfig { + return { + operator: "test", + token: "token", + lhost: "localhost", + lport: 31337, + ca_certificate: "", + certificate: "", + private_key: "", + }; +} + +test("SliverClient.sessions() forwards to rpc.getSessions()", async () => { + const getSessions = jest.fn(async (_req: unknown, _options?: unknown) => + Sessions.create({ + Sessions: [Session.create({ ID: "s-1" })], + }), + ); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { getSessions }; + + const sessions = await client.sessions(5); + expect(sessions).toHaveLength(1); + expect(sessions[0].ID).toBe("s-1"); + + expect(getSessions).toHaveBeenCalledTimes(1); + expect(getSessions.mock.calls[0][0]).toEqual({}); + expect(getSessions.mock.calls[0][1]).toEqual(expect.objectContaining({ signal: expect.any(AbortSignal) })); +}); + +test("SliverClient.getOperators() forwards to rpc.getOperators()", async () => { + const getOperators = jest.fn(async () => + Operators.create({ + Operators: [{ Online: true, Name: "op" }], + }), + ); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { getOperators }; + + const operators = await client.operators(5); + expect(operators[0].Name).toBe("op"); + expect(getOperators).toHaveBeenCalledTimes(1); +}); + +test("SliverClient.startMTLSListener() forwards to rpc.startMTLSListener()", async () => { + const startMTLSListener = jest.fn(async () => ListenerJob.create({ ID: "listener", JobID: 1 })); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { startMTLSListener }; + + const job = await client.startMTLSListener("127.0.0.1", 4444, 5); + expect(job.ID).toBe("listener"); + expect(startMTLSListener).toHaveBeenCalledWith( + { Host: "127.0.0.1", Port: 4444 }, + expect.objectContaining({ signal: expect.any(AbortSignal) }), + ); +}); + +test("SliverClient.killJob() forwards to rpc.killJob()", async () => { + const killJob = jest.fn(async () => KillJob.create({ ID: 7, Success: true })); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { killJob }; + + const res = await client.killJob(7, 5); + expect(res.Success).toBe(true); + expect(killJob).toHaveBeenCalledWith({ ID: 7 }, expect.objectContaining({ signal: expect.any(AbortSignal) })); +}); + +test("SliverClient.lootRemove() forwards to rpc.lootRm()", async () => { + const lootRm = jest.fn(async () => Empty.create({})); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { lootRm }; + + await client.lootRemove("loot-1", 5); + expect(lootRm).toHaveBeenCalledWith({ ID: "loot-1" } as Loot, expect.objectContaining({ signal: expect.any(AbortSignal) })); +}); + +test("SliverClient.websiteUpdateContent() forwards to rpc.websiteUpdateContent()", async () => { + const websiteUpdateContent = jest.fn(async () => ({ ID: "w", Name: "w", Contents: {} })); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { websiteUpdateContent }; + + const wc: WebContent = { + ID: "c", + WebsiteID: "w", + Path: "/index.html", + ContentType: "text/html", + Size: "0", + OriginalFile: "", + Sha256: "", + Content: Buffer.from("hi"), + }; + + await client.websiteUpdateContent("w", { "/index.html": wc }, 5); + expect(websiteUpdateContent).toHaveBeenCalledWith( + { Name: "w", Contents: { "/index.html": wc } }, + expect.objectContaining({ signal: expect.any(AbortSignal) }), + ); +}); + +test("InteractiveBeacon.lsTask().wait() decodes beacon task results", async () => { + const taskId = "task-1"; + const beaconId = "beacon-1"; + + const events$ = new Subject(); + + const lsRespBytes = Buffer.from(Ls.encode(Ls.create({ Path: "/tmp", Exists: true })).finish()); + + const rpc = { + ls: jest.fn(async () => + Ls.create({ + Response: { Err: "", Async: true, BeaconID: beaconId, TaskID: taskId }, + }), + ), + getBeaconTaskContent: jest.fn(async () => + BeaconTask.create({ + ID: taskId, + Response: lsRespBytes, + }), + ), + }; + + const beacon = new InteractiveBeacon(rpc as any, events$.asObservable(), beaconId); + const task = await beacon.lsTask(".", 5); + + const wait = task.wait(5); + + // Emit a taskresult event that includes the task id after wait() has subscribed. + events$.next({ + EventType: SliverClient.EVENT_BEACON_TASKRESULT, + Data: Buffer.from(BeaconTask.encode(BeaconTask.create({ ID: taskId })).finish()), + Err: "", + }); + + const ls = await wait; + expect(ls.Path).toBe("/tmp"); + + expect(rpc.ls).toHaveBeenCalledTimes(1); + expect(rpc.getBeaconTaskContent).toHaveBeenCalledWith( + { ID: taskId }, + expect.objectContaining({ signal: expect.any(AbortSignal) }), + ); +}); diff --git a/src/tests/sessions.test.ts b/src/tests/sessions.test.ts index 4fc12b7..ff44cc1 100644 --- a/src/tests/sessions.test.ts +++ b/src/tests/sessions.test.ts @@ -1,41 +1,36 @@ -import * as os from 'os' -import * as path from 'path' +import * as fs from "node:fs"; +import * as path from "node:path"; -import { ParseConfigFile } from '../config' -import { SliverClient } from '../client' +import { ParseConfigFile } from "../config"; +import { SliverClient } from "../client"; -const DEFAULT_CONFIG_PATH = path.join(os.homedir(), '.sliver-client', 'configs', 'default.cfg') -const SLIVER_CONFIG_FILE = process.env['SLIVER_CONFIG_FILE'] || DEFAULT_CONFIG_PATH; +const SLIVER_E2E = process.env["SLIVER_E2E"] === "1"; +const DEFAULT_CONFIG_PATH = path.resolve(__dirname, "../../localhost.cfg"); +const SLIVER_CONFIG_FILE = process.env["SLIVER_CONFIG_FILE"] || DEFAULT_CONFIG_PATH; jest.setTimeout(120 * 1000); -test('authenticate to server', async () => { - console.log(`Loading config: ${SLIVER_CONFIG_FILE}`) - const config = await ParseConfigFile(SLIVER_CONFIG_FILE) - const client = new SliverClient(config) +const testE2E = SLIVER_E2E && fs.existsSync(SLIVER_CONFIG_FILE) ? test : test.skip; - console.log(`Connecting to ${config.lhost} ...`) - try { - await client.connect() +testE2E("sessions and beacons", async () => { + const config = await ParseConfigFile(SLIVER_CONFIG_FILE); + const client = new SliverClient(config); - let sessions = await client.sessions() - console.log(sessions) + await client.connect(); - let beacons = await client.beacons() - console.log(beacons) + try { + const sessions = await client.sessions(); + expect(Array.isArray(sessions)).toBe(true); - if (beacons?.length) { - const beacon = await client.interactBeacon(beacons[0].ID) - console.log('Executing ls task ...') - const lsTask = await beacon.ls('.') - console.log(`Created task ${lsTask}`) - console.log('Waiting for task to complete ...') - const ls = await lsTask - console.log(`Task result: ${ls}`) - } + const beacons = await client.beacons(); + expect(Array.isArray(beacons)).toBe(true); - await client.disconnect() - } catch (err) { - console.error(err) + if (beacons.length > 0) { + const beacon = client.interactBeacon(beacons[0].ID); + const task = await beacon.lsTask("."); + expect(task.id).toBeTruthy(); } -}) + } finally { + await client.disconnect(); + } +}); diff --git a/tsconfig.examples.json b/tsconfig.examples.json new file mode 100644 index 0000000..f5676b1 --- /dev/null +++ b/tsconfig.examples.json @@ -0,0 +1,11 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "declaration": false, + "outDir": "./examples/dist", + "rootDir": "./examples" + }, + "include": ["examples/e2e/**/*.ts"], + "exclude": ["node_modules", "examples/dist"] +} + diff --git a/tsconfig.json b/tsconfig.json index fb3ca51..e13b793 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,22 +1,16 @@ { "compilerOptions": { - "target": "es2015", + "target": "ES2022", "module": "commonjs", - "downlevelIteration": true, + "esModuleInterop": true, "declaration": true, "outDir": "./lib", "strict": true, "moduleResolution": "node", - "lib": [ - "es2019" - ] + "forceConsistentCasingInFileNames": true, + "skipLibCheck": true, + "lib": ["ES2022"] }, - "include": [ - "src/**/*", - ], - "exclude": [ - "node_modules", - "**/tests/*" - ], - "allowJs": true, -} \ No newline at end of file + "include": ["src/**/*.ts"], + "exclude": ["node_modules", "src/tests/**"] +} From a06063f424bdb2b2c19b38ca95b21343cc77c68f Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sat, 28 Feb 2026 08:54:22 -0800 Subject: [PATCH 05/14] Update sliver submodule to v1.7.2 --- sliver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sliver b/sliver index 2f386b7..2e36f45 160000 --- a/sliver +++ b/sliver @@ -1 +1 @@ -Subproject commit 2f386b7e096fff1180d59a6c995cfd02c26690d6 +Subproject commit 2e36f45bdfe13b88aa6f15325fdafae0ad959163 From 82e55c4919ad26f7fd7b9493cb3f6e0804c0be3f Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sat, 28 Feb 2026 10:14:25 -0800 Subject: [PATCH 06/14] Update sliver submodule to v1.7.3 --- src/client.ts | 11 +- src/pb/clientpb/client.ts | 1089 ++++++++++++++++- src/pb/commonpb/common.ts | 2 +- src/pb/dnspb/dns.ts | 2 +- src/pb/rpcpb/services.ts | 19 +- src/pb/sliverpb/sliver.ts | 21 +- .../__snapshots__/rpc-definition.test.ts.snap | 6 + src/tests/rpc-wrappers.test.ts | 32 +- 8 files changed, 1171 insertions(+), 11 deletions(-) diff --git a/src/client.ts b/src/client.ts index 735b687..79cd241 100644 --- a/src/client.ts +++ b/src/client.ts @@ -17,6 +17,7 @@ import type { Beacons, Jobs, Beacon, + GenerateSpoofMetadataReq, ImplantConfig, ImplantProfile, Loot, @@ -447,8 +448,8 @@ export class SliverClient { const creds = createSliverRpcCredentials(this.config); this.channel = createChannel(this.rpcHost(), creds, { - "grpc.max_send_message_length": 2 * GiB, - "grpc.max_receive_message_length": 2 * GiB, + "grpc.max_send_message_length": (2 * GiB) -1, + "grpc.max_receive_message_length": (2 * GiB) -1, }); this.rpcClient = createClient(SliverRPCDefinition, this.channel); @@ -615,6 +616,12 @@ export class SliverClient { return res.File; } + generateSpoofMetadata(req: GenerateSpoofMetadataReq, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS): Promise { + return withTimeoutSignal(timeoutSeconds, async (signal) => { + await this.rpc.generateSpoofMetadata(req, { signal }); + }); + } + async regenerate(implantName: string, timeoutSeconds = DEFAULT_TIMEOUT_SECONDS) { const res = await withTimeoutSignal(timeoutSeconds, (signal) => this.rpc.regenerate({ ImplantName: implantName }, { signal }), diff --git a/src/pb/clientpb/client.ts b/src/pb/clientpb/client.ts index cdd6739..ad9f4da 100644 --- a/src/pb/clientpb/client.ts +++ b/src/pb/clientpb/client.ts @@ -1,7 +1,7 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.2 -// protoc v3.15.8 +// protoc v6.33.4 // source: clientpb/client.proto /* eslint-disable */ @@ -1647,6 +1647,73 @@ export interface ImplantConfig { Assets: File[]; } +export interface SpoofMetadataFile { + Name: string; + Data: Buffer; +} + +export interface imageResourceDirectory { + Characteristics: number; + TimeDateStamp: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + MajorVersion: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + MinorVersion: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + NumberOfNamedEntries: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + NumberOfIdEntries: number; +} + +export interface imageResourceDirectoryEntry { + Name: number; + OffsetToData: number; +} + +export interface imageResourceDataEntry { + OffsetToData: number; + Size: number; + CodePage: number; + Reserved: number; +} + +export interface imageExportDirectory { + Characteristics: number; + TimeDateStamp: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + MajorVersion: number; + /** uint16 in PE headers; encoded as uint32 for protobuf transport. */ + MinorVersion: number; + Name: number; + Base: number; + NumberOfFunctions: number; + NumberOfNames: number; + AddressOfFunctions: number; + AddressOfNames: number; + AddressOfNameOrdinals: number; +} + +export interface PESpoofMetadataConfig { + /** Reference PE used to clone metadata/resources/timestamps. */ + Source?: + | SpoofMetadataFile + | undefined; + /** Reserved for future standalone icon mutation support. */ + Icon?: SpoofMetadataFile | undefined; + ResourceDirectory?: imageResourceDirectory | undefined; + ResourceDirectoryEntries: imageResourceDirectoryEntry[]; + ResourceDataEntries: imageResourceDataEntry[]; + ExportDirectory?: imageExportDirectory | undefined; +} + +export interface SpoofMetadataConfig { + /** + * Keep executable formats separated so additional formats can be added later + * without changing request semantics. + */ + PE?: PESpoofMetadataConfig | undefined; +} + export interface TrafficEncoder { ID: string; Wasm?: File | undefined; @@ -1949,6 +2016,15 @@ export interface GenerateStageReq { export interface Generate { File?: File | undefined; + ImplantName: string; + ImplantBuildID: string; +} + +export interface GenerateSpoofMetadataReq { + ImplantBuildID: string; + ImplantName: string; + ResourceID: string; + SpoofMetadata?: SpoofMetadataConfig | undefined; } export interface MSFReq { @@ -5552,6 +5628,869 @@ export const ImplantConfig: MessageFns = { }, }; +function createBaseSpoofMetadataFile(): SpoofMetadataFile { + return { Name: "", Data: Buffer.alloc(0) }; +} + +export const SpoofMetadataFile: MessageFns = { + encode(message: SpoofMetadataFile, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== "") { + writer.uint32(10).string(message.Name); + } + if (message.Data.length !== 0) { + writer.uint32(18).bytes(message.Data); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SpoofMetadataFile { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSpoofMetadataFile(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Name = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Data = Buffer.from(reader.bytes()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SpoofMetadataFile { + return { + Name: isSet(object.Name) ? globalThis.String(object.Name) : "", + Data: isSet(object.Data) ? Buffer.from(bytesFromBase64(object.Data)) : Buffer.alloc(0), + }; + }, + + toJSON(message: SpoofMetadataFile): unknown { + const obj: any = {}; + if (message.Name !== "") { + obj.Name = message.Name; + } + if (message.Data.length !== 0) { + obj.Data = base64FromBytes(message.Data); + } + return obj; + }, + + create(base?: DeepPartial): SpoofMetadataFile { + return SpoofMetadataFile.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SpoofMetadataFile { + const message = createBaseSpoofMetadataFile(); + message.Name = object.Name ?? ""; + message.Data = object.Data ?? Buffer.alloc(0); + return message; + }, +}; + +function createBaseimageResourceDirectory(): imageResourceDirectory { + return { + Characteristics: 0, + TimeDateStamp: 0, + MajorVersion: 0, + MinorVersion: 0, + NumberOfNamedEntries: 0, + NumberOfIdEntries: 0, + }; +} + +export const imageResourceDirectory: MessageFns = { + encode(message: imageResourceDirectory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Characteristics !== 0) { + writer.uint32(8).uint32(message.Characteristics); + } + if (message.TimeDateStamp !== 0) { + writer.uint32(16).uint32(message.TimeDateStamp); + } + if (message.MajorVersion !== 0) { + writer.uint32(24).uint32(message.MajorVersion); + } + if (message.MinorVersion !== 0) { + writer.uint32(32).uint32(message.MinorVersion); + } + if (message.NumberOfNamedEntries !== 0) { + writer.uint32(40).uint32(message.NumberOfNamedEntries); + } + if (message.NumberOfIdEntries !== 0) { + writer.uint32(48).uint32(message.NumberOfIdEntries); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): imageResourceDirectory { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseimageResourceDirectory(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Characteristics = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.TimeDateStamp = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.MajorVersion = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.MinorVersion = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.NumberOfNamedEntries = reader.uint32(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.NumberOfIdEntries = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): imageResourceDirectory { + return { + Characteristics: isSet(object.Characteristics) ? globalThis.Number(object.Characteristics) : 0, + TimeDateStamp: isSet(object.TimeDateStamp) ? globalThis.Number(object.TimeDateStamp) : 0, + MajorVersion: isSet(object.MajorVersion) ? globalThis.Number(object.MajorVersion) : 0, + MinorVersion: isSet(object.MinorVersion) ? globalThis.Number(object.MinorVersion) : 0, + NumberOfNamedEntries: isSet(object.NumberOfNamedEntries) ? globalThis.Number(object.NumberOfNamedEntries) : 0, + NumberOfIdEntries: isSet(object.NumberOfIdEntries) ? globalThis.Number(object.NumberOfIdEntries) : 0, + }; + }, + + toJSON(message: imageResourceDirectory): unknown { + const obj: any = {}; + if (message.Characteristics !== 0) { + obj.Characteristics = Math.round(message.Characteristics); + } + if (message.TimeDateStamp !== 0) { + obj.TimeDateStamp = Math.round(message.TimeDateStamp); + } + if (message.MajorVersion !== 0) { + obj.MajorVersion = Math.round(message.MajorVersion); + } + if (message.MinorVersion !== 0) { + obj.MinorVersion = Math.round(message.MinorVersion); + } + if (message.NumberOfNamedEntries !== 0) { + obj.NumberOfNamedEntries = Math.round(message.NumberOfNamedEntries); + } + if (message.NumberOfIdEntries !== 0) { + obj.NumberOfIdEntries = Math.round(message.NumberOfIdEntries); + } + return obj; + }, + + create(base?: DeepPartial): imageResourceDirectory { + return imageResourceDirectory.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): imageResourceDirectory { + const message = createBaseimageResourceDirectory(); + message.Characteristics = object.Characteristics ?? 0; + message.TimeDateStamp = object.TimeDateStamp ?? 0; + message.MajorVersion = object.MajorVersion ?? 0; + message.MinorVersion = object.MinorVersion ?? 0; + message.NumberOfNamedEntries = object.NumberOfNamedEntries ?? 0; + message.NumberOfIdEntries = object.NumberOfIdEntries ?? 0; + return message; + }, +}; + +function createBaseimageResourceDirectoryEntry(): imageResourceDirectoryEntry { + return { Name: 0, OffsetToData: 0 }; +} + +export const imageResourceDirectoryEntry: MessageFns = { + encode(message: imageResourceDirectoryEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Name !== 0) { + writer.uint32(8).uint32(message.Name); + } + if (message.OffsetToData !== 0) { + writer.uint32(16).uint32(message.OffsetToData); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): imageResourceDirectoryEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseimageResourceDirectoryEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Name = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.OffsetToData = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): imageResourceDirectoryEntry { + return { + Name: isSet(object.Name) ? globalThis.Number(object.Name) : 0, + OffsetToData: isSet(object.OffsetToData) ? globalThis.Number(object.OffsetToData) : 0, + }; + }, + + toJSON(message: imageResourceDirectoryEntry): unknown { + const obj: any = {}; + if (message.Name !== 0) { + obj.Name = Math.round(message.Name); + } + if (message.OffsetToData !== 0) { + obj.OffsetToData = Math.round(message.OffsetToData); + } + return obj; + }, + + create(base?: DeepPartial): imageResourceDirectoryEntry { + return imageResourceDirectoryEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): imageResourceDirectoryEntry { + const message = createBaseimageResourceDirectoryEntry(); + message.Name = object.Name ?? 0; + message.OffsetToData = object.OffsetToData ?? 0; + return message; + }, +}; + +function createBaseimageResourceDataEntry(): imageResourceDataEntry { + return { OffsetToData: 0, Size: 0, CodePage: 0, Reserved: 0 }; +} + +export const imageResourceDataEntry: MessageFns = { + encode(message: imageResourceDataEntry, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.OffsetToData !== 0) { + writer.uint32(8).uint32(message.OffsetToData); + } + if (message.Size !== 0) { + writer.uint32(16).uint32(message.Size); + } + if (message.CodePage !== 0) { + writer.uint32(24).uint32(message.CodePage); + } + if (message.Reserved !== 0) { + writer.uint32(32).uint32(message.Reserved); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): imageResourceDataEntry { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseimageResourceDataEntry(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.OffsetToData = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.Size = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.CodePage = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.Reserved = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): imageResourceDataEntry { + return { + OffsetToData: isSet(object.OffsetToData) ? globalThis.Number(object.OffsetToData) : 0, + Size: isSet(object.Size) ? globalThis.Number(object.Size) : 0, + CodePage: isSet(object.CodePage) ? globalThis.Number(object.CodePage) : 0, + Reserved: isSet(object.Reserved) ? globalThis.Number(object.Reserved) : 0, + }; + }, + + toJSON(message: imageResourceDataEntry): unknown { + const obj: any = {}; + if (message.OffsetToData !== 0) { + obj.OffsetToData = Math.round(message.OffsetToData); + } + if (message.Size !== 0) { + obj.Size = Math.round(message.Size); + } + if (message.CodePage !== 0) { + obj.CodePage = Math.round(message.CodePage); + } + if (message.Reserved !== 0) { + obj.Reserved = Math.round(message.Reserved); + } + return obj; + }, + + create(base?: DeepPartial): imageResourceDataEntry { + return imageResourceDataEntry.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): imageResourceDataEntry { + const message = createBaseimageResourceDataEntry(); + message.OffsetToData = object.OffsetToData ?? 0; + message.Size = object.Size ?? 0; + message.CodePage = object.CodePage ?? 0; + message.Reserved = object.Reserved ?? 0; + return message; + }, +}; + +function createBaseimageExportDirectory(): imageExportDirectory { + return { + Characteristics: 0, + TimeDateStamp: 0, + MajorVersion: 0, + MinorVersion: 0, + Name: 0, + Base: 0, + NumberOfFunctions: 0, + NumberOfNames: 0, + AddressOfFunctions: 0, + AddressOfNames: 0, + AddressOfNameOrdinals: 0, + }; +} + +export const imageExportDirectory: MessageFns = { + encode(message: imageExportDirectory, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Characteristics !== 0) { + writer.uint32(8).uint32(message.Characteristics); + } + if (message.TimeDateStamp !== 0) { + writer.uint32(16).uint32(message.TimeDateStamp); + } + if (message.MajorVersion !== 0) { + writer.uint32(24).uint32(message.MajorVersion); + } + if (message.MinorVersion !== 0) { + writer.uint32(32).uint32(message.MinorVersion); + } + if (message.Name !== 0) { + writer.uint32(40).uint32(message.Name); + } + if (message.Base !== 0) { + writer.uint32(48).uint32(message.Base); + } + if (message.NumberOfFunctions !== 0) { + writer.uint32(56).uint32(message.NumberOfFunctions); + } + if (message.NumberOfNames !== 0) { + writer.uint32(64).uint32(message.NumberOfNames); + } + if (message.AddressOfFunctions !== 0) { + writer.uint32(72).uint32(message.AddressOfFunctions); + } + if (message.AddressOfNames !== 0) { + writer.uint32(80).uint32(message.AddressOfNames); + } + if (message.AddressOfNameOrdinals !== 0) { + writer.uint32(88).uint32(message.AddressOfNameOrdinals); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): imageExportDirectory { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseimageExportDirectory(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 8) { + break; + } + + message.Characteristics = reader.uint32(); + continue; + } + case 2: { + if (tag !== 16) { + break; + } + + message.TimeDateStamp = reader.uint32(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.MajorVersion = reader.uint32(); + continue; + } + case 4: { + if (tag !== 32) { + break; + } + + message.MinorVersion = reader.uint32(); + continue; + } + case 5: { + if (tag !== 40) { + break; + } + + message.Name = reader.uint32(); + continue; + } + case 6: { + if (tag !== 48) { + break; + } + + message.Base = reader.uint32(); + continue; + } + case 7: { + if (tag !== 56) { + break; + } + + message.NumberOfFunctions = reader.uint32(); + continue; + } + case 8: { + if (tag !== 64) { + break; + } + + message.NumberOfNames = reader.uint32(); + continue; + } + case 9: { + if (tag !== 72) { + break; + } + + message.AddressOfFunctions = reader.uint32(); + continue; + } + case 10: { + if (tag !== 80) { + break; + } + + message.AddressOfNames = reader.uint32(); + continue; + } + case 11: { + if (tag !== 88) { + break; + } + + message.AddressOfNameOrdinals = reader.uint32(); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): imageExportDirectory { + return { + Characteristics: isSet(object.Characteristics) ? globalThis.Number(object.Characteristics) : 0, + TimeDateStamp: isSet(object.TimeDateStamp) ? globalThis.Number(object.TimeDateStamp) : 0, + MajorVersion: isSet(object.MajorVersion) ? globalThis.Number(object.MajorVersion) : 0, + MinorVersion: isSet(object.MinorVersion) ? globalThis.Number(object.MinorVersion) : 0, + Name: isSet(object.Name) ? globalThis.Number(object.Name) : 0, + Base: isSet(object.Base) ? globalThis.Number(object.Base) : 0, + NumberOfFunctions: isSet(object.NumberOfFunctions) ? globalThis.Number(object.NumberOfFunctions) : 0, + NumberOfNames: isSet(object.NumberOfNames) ? globalThis.Number(object.NumberOfNames) : 0, + AddressOfFunctions: isSet(object.AddressOfFunctions) ? globalThis.Number(object.AddressOfFunctions) : 0, + AddressOfNames: isSet(object.AddressOfNames) ? globalThis.Number(object.AddressOfNames) : 0, + AddressOfNameOrdinals: isSet(object.AddressOfNameOrdinals) ? globalThis.Number(object.AddressOfNameOrdinals) : 0, + }; + }, + + toJSON(message: imageExportDirectory): unknown { + const obj: any = {}; + if (message.Characteristics !== 0) { + obj.Characteristics = Math.round(message.Characteristics); + } + if (message.TimeDateStamp !== 0) { + obj.TimeDateStamp = Math.round(message.TimeDateStamp); + } + if (message.MajorVersion !== 0) { + obj.MajorVersion = Math.round(message.MajorVersion); + } + if (message.MinorVersion !== 0) { + obj.MinorVersion = Math.round(message.MinorVersion); + } + if (message.Name !== 0) { + obj.Name = Math.round(message.Name); + } + if (message.Base !== 0) { + obj.Base = Math.round(message.Base); + } + if (message.NumberOfFunctions !== 0) { + obj.NumberOfFunctions = Math.round(message.NumberOfFunctions); + } + if (message.NumberOfNames !== 0) { + obj.NumberOfNames = Math.round(message.NumberOfNames); + } + if (message.AddressOfFunctions !== 0) { + obj.AddressOfFunctions = Math.round(message.AddressOfFunctions); + } + if (message.AddressOfNames !== 0) { + obj.AddressOfNames = Math.round(message.AddressOfNames); + } + if (message.AddressOfNameOrdinals !== 0) { + obj.AddressOfNameOrdinals = Math.round(message.AddressOfNameOrdinals); + } + return obj; + }, + + create(base?: DeepPartial): imageExportDirectory { + return imageExportDirectory.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): imageExportDirectory { + const message = createBaseimageExportDirectory(); + message.Characteristics = object.Characteristics ?? 0; + message.TimeDateStamp = object.TimeDateStamp ?? 0; + message.MajorVersion = object.MajorVersion ?? 0; + message.MinorVersion = object.MinorVersion ?? 0; + message.Name = object.Name ?? 0; + message.Base = object.Base ?? 0; + message.NumberOfFunctions = object.NumberOfFunctions ?? 0; + message.NumberOfNames = object.NumberOfNames ?? 0; + message.AddressOfFunctions = object.AddressOfFunctions ?? 0; + message.AddressOfNames = object.AddressOfNames ?? 0; + message.AddressOfNameOrdinals = object.AddressOfNameOrdinals ?? 0; + return message; + }, +}; + +function createBasePESpoofMetadataConfig(): PESpoofMetadataConfig { + return { + Source: undefined, + Icon: undefined, + ResourceDirectory: undefined, + ResourceDirectoryEntries: [], + ResourceDataEntries: [], + ExportDirectory: undefined, + }; +} + +export const PESpoofMetadataConfig: MessageFns = { + encode(message: PESpoofMetadataConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.Source !== undefined) { + SpoofMetadataFile.encode(message.Source, writer.uint32(10).fork()).join(); + } + if (message.Icon !== undefined) { + SpoofMetadataFile.encode(message.Icon, writer.uint32(18).fork()).join(); + } + if (message.ResourceDirectory !== undefined) { + imageResourceDirectory.encode(message.ResourceDirectory, writer.uint32(82).fork()).join(); + } + for (const v of message.ResourceDirectoryEntries) { + imageResourceDirectoryEntry.encode(v!, writer.uint32(90).fork()).join(); + } + for (const v of message.ResourceDataEntries) { + imageResourceDataEntry.encode(v!, writer.uint32(98).fork()).join(); + } + if (message.ExportDirectory !== undefined) { + imageExportDirectory.encode(message.ExportDirectory, writer.uint32(106).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): PESpoofMetadataConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBasePESpoofMetadataConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.Source = SpoofMetadataFile.decode(reader, reader.uint32()); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.Icon = SpoofMetadataFile.decode(reader, reader.uint32()); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.ResourceDirectory = imageResourceDirectory.decode(reader, reader.uint32()); + continue; + } + case 11: { + if (tag !== 90) { + break; + } + + message.ResourceDirectoryEntries.push(imageResourceDirectoryEntry.decode(reader, reader.uint32())); + continue; + } + case 12: { + if (tag !== 98) { + break; + } + + message.ResourceDataEntries.push(imageResourceDataEntry.decode(reader, reader.uint32())); + continue; + } + case 13: { + if (tag !== 106) { + break; + } + + message.ExportDirectory = imageExportDirectory.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): PESpoofMetadataConfig { + return { + Source: isSet(object.Source) ? SpoofMetadataFile.fromJSON(object.Source) : undefined, + Icon: isSet(object.Icon) ? SpoofMetadataFile.fromJSON(object.Icon) : undefined, + ResourceDirectory: isSet(object.ResourceDirectory) + ? imageResourceDirectory.fromJSON(object.ResourceDirectory) + : undefined, + ResourceDirectoryEntries: globalThis.Array.isArray(object?.ResourceDirectoryEntries) + ? object.ResourceDirectoryEntries.map((e: any) => imageResourceDirectoryEntry.fromJSON(e)) + : [], + ResourceDataEntries: globalThis.Array.isArray(object?.ResourceDataEntries) + ? object.ResourceDataEntries.map((e: any) => imageResourceDataEntry.fromJSON(e)) + : [], + ExportDirectory: isSet(object.ExportDirectory) + ? imageExportDirectory.fromJSON(object.ExportDirectory) + : undefined, + }; + }, + + toJSON(message: PESpoofMetadataConfig): unknown { + const obj: any = {}; + if (message.Source !== undefined) { + obj.Source = SpoofMetadataFile.toJSON(message.Source); + } + if (message.Icon !== undefined) { + obj.Icon = SpoofMetadataFile.toJSON(message.Icon); + } + if (message.ResourceDirectory !== undefined) { + obj.ResourceDirectory = imageResourceDirectory.toJSON(message.ResourceDirectory); + } + if (message.ResourceDirectoryEntries?.length) { + obj.ResourceDirectoryEntries = message.ResourceDirectoryEntries.map((e) => imageResourceDirectoryEntry.toJSON(e)); + } + if (message.ResourceDataEntries?.length) { + obj.ResourceDataEntries = message.ResourceDataEntries.map((e) => imageResourceDataEntry.toJSON(e)); + } + if (message.ExportDirectory !== undefined) { + obj.ExportDirectory = imageExportDirectory.toJSON(message.ExportDirectory); + } + return obj; + }, + + create(base?: DeepPartial): PESpoofMetadataConfig { + return PESpoofMetadataConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): PESpoofMetadataConfig { + const message = createBasePESpoofMetadataConfig(); + message.Source = (object.Source !== undefined && object.Source !== null) + ? SpoofMetadataFile.fromPartial(object.Source) + : undefined; + message.Icon = (object.Icon !== undefined && object.Icon !== null) + ? SpoofMetadataFile.fromPartial(object.Icon) + : undefined; + message.ResourceDirectory = (object.ResourceDirectory !== undefined && object.ResourceDirectory !== null) + ? imageResourceDirectory.fromPartial(object.ResourceDirectory) + : undefined; + message.ResourceDirectoryEntries = + object.ResourceDirectoryEntries?.map((e) => imageResourceDirectoryEntry.fromPartial(e)) || []; + message.ResourceDataEntries = object.ResourceDataEntries?.map((e) => imageResourceDataEntry.fromPartial(e)) || []; + message.ExportDirectory = (object.ExportDirectory !== undefined && object.ExportDirectory !== null) + ? imageExportDirectory.fromPartial(object.ExportDirectory) + : undefined; + return message; + }, +}; + +function createBaseSpoofMetadataConfig(): SpoofMetadataConfig { + return { PE: undefined }; +} + +export const SpoofMetadataConfig: MessageFns = { + encode(message: SpoofMetadataConfig, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.PE !== undefined) { + PESpoofMetadataConfig.encode(message.PE, writer.uint32(10).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): SpoofMetadataConfig { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseSpoofMetadataConfig(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.PE = PESpoofMetadataConfig.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): SpoofMetadataConfig { + return { PE: isSet(object.PE) ? PESpoofMetadataConfig.fromJSON(object.PE) : undefined }; + }, + + toJSON(message: SpoofMetadataConfig): unknown { + const obj: any = {}; + if (message.PE !== undefined) { + obj.PE = PESpoofMetadataConfig.toJSON(message.PE); + } + return obj; + }, + + create(base?: DeepPartial): SpoofMetadataConfig { + return SpoofMetadataConfig.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): SpoofMetadataConfig { + const message = createBaseSpoofMetadataConfig(); + message.PE = (object.PE !== undefined && object.PE !== null) + ? PESpoofMetadataConfig.fromPartial(object.PE) + : undefined; + return message; + }, +}; + function createBaseTrafficEncoder(): TrafficEncoder { return { ID: "0", Wasm: undefined, SkipTests: false, TestID: "" }; } @@ -10141,7 +11080,7 @@ export const GenerateStageReq: MessageFns = { }; function createBaseGenerate(): Generate { - return { File: undefined }; + return { File: undefined, ImplantName: "", ImplantBuildID: "" }; } export const Generate: MessageFns = { @@ -10149,6 +11088,12 @@ export const Generate: MessageFns = { if (message.File !== undefined) { File.encode(message.File, writer.uint32(10).fork()).join(); } + if (message.ImplantName !== "") { + writer.uint32(18).string(message.ImplantName); + } + if (message.ImplantBuildID !== "") { + writer.uint32(26).string(message.ImplantBuildID); + } return writer; }, @@ -10167,6 +11112,22 @@ export const Generate: MessageFns = { message.File = File.decode(reader, reader.uint32()); continue; } + case 2: { + if (tag !== 18) { + break; + } + + message.ImplantName = reader.string(); + continue; + } + case 3: { + if (tag !== 26) { + break; + } + + message.ImplantBuildID = reader.string(); + continue; + } } if ((tag & 7) === 4 || tag === 0) { break; @@ -10177,7 +11138,11 @@ export const Generate: MessageFns = { }, fromJSON(object: any): Generate { - return { File: isSet(object.File) ? File.fromJSON(object.File) : undefined }; + return { + File: isSet(object.File) ? File.fromJSON(object.File) : undefined, + ImplantName: isSet(object.ImplantName) ? globalThis.String(object.ImplantName) : "", + ImplantBuildID: isSet(object.ImplantBuildID) ? globalThis.String(object.ImplantBuildID) : "", + }; }, toJSON(message: Generate): unknown { @@ -10185,6 +11150,12 @@ export const Generate: MessageFns = { if (message.File !== undefined) { obj.File = File.toJSON(message.File); } + if (message.ImplantName !== "") { + obj.ImplantName = message.ImplantName; + } + if (message.ImplantBuildID !== "") { + obj.ImplantBuildID = message.ImplantBuildID; + } return obj; }, @@ -10194,6 +11165,118 @@ export const Generate: MessageFns = { fromPartial(object: DeepPartial): Generate { const message = createBaseGenerate(); message.File = (object.File !== undefined && object.File !== null) ? File.fromPartial(object.File) : undefined; + message.ImplantName = object.ImplantName ?? ""; + message.ImplantBuildID = object.ImplantBuildID ?? ""; + return message; + }, +}; + +function createBaseGenerateSpoofMetadataReq(): GenerateSpoofMetadataReq { + return { ImplantBuildID: "", ImplantName: "", ResourceID: "0", SpoofMetadata: undefined }; +} + +export const GenerateSpoofMetadataReq: MessageFns = { + encode(message: GenerateSpoofMetadataReq, writer: BinaryWriter = new BinaryWriter()): BinaryWriter { + if (message.ImplantBuildID !== "") { + writer.uint32(10).string(message.ImplantBuildID); + } + if (message.ImplantName !== "") { + writer.uint32(18).string(message.ImplantName); + } + if (message.ResourceID !== "0") { + writer.uint32(24).uint64(message.ResourceID); + } + if (message.SpoofMetadata !== undefined) { + SpoofMetadataConfig.encode(message.SpoofMetadata, writer.uint32(82).fork()).join(); + } + return writer; + }, + + decode(input: BinaryReader | Uint8Array, length?: number): GenerateSpoofMetadataReq { + const reader = input instanceof BinaryReader ? input : new BinaryReader(input); + const end = length === undefined ? reader.len : reader.pos + length; + const message = createBaseGenerateSpoofMetadataReq(); + while (reader.pos < end) { + const tag = reader.uint32(); + switch (tag >>> 3) { + case 1: { + if (tag !== 10) { + break; + } + + message.ImplantBuildID = reader.string(); + continue; + } + case 2: { + if (tag !== 18) { + break; + } + + message.ImplantName = reader.string(); + continue; + } + case 3: { + if (tag !== 24) { + break; + } + + message.ResourceID = reader.uint64().toString(); + continue; + } + case 10: { + if (tag !== 82) { + break; + } + + message.SpoofMetadata = SpoofMetadataConfig.decode(reader, reader.uint32()); + continue; + } + } + if ((tag & 7) === 4 || tag === 0) { + break; + } + reader.skip(tag & 7); + } + return message; + }, + + fromJSON(object: any): GenerateSpoofMetadataReq { + return { + ImplantBuildID: isSet(object.ImplantBuildID) ? globalThis.String(object.ImplantBuildID) : "", + ImplantName: isSet(object.ImplantName) ? globalThis.String(object.ImplantName) : "", + ResourceID: isSet(object.ResourceID) ? globalThis.String(object.ResourceID) : "0", + SpoofMetadata: isSet(object.SpoofMetadata) ? SpoofMetadataConfig.fromJSON(object.SpoofMetadata) : undefined, + }; + }, + + toJSON(message: GenerateSpoofMetadataReq): unknown { + const obj: any = {}; + if (message.ImplantBuildID !== "") { + obj.ImplantBuildID = message.ImplantBuildID; + } + if (message.ImplantName !== "") { + obj.ImplantName = message.ImplantName; + } + if (message.ResourceID !== "0") { + obj.ResourceID = message.ResourceID; + } + if (message.SpoofMetadata !== undefined) { + obj.SpoofMetadata = SpoofMetadataConfig.toJSON(message.SpoofMetadata); + } + return obj; + }, + + create(base?: DeepPartial): GenerateSpoofMetadataReq { + return GenerateSpoofMetadataReq.fromPartial(base ?? {}); + }, + fromPartial(object: DeepPartial): GenerateSpoofMetadataReq { + const message = createBaseGenerateSpoofMetadataReq(); + message.ImplantBuildID = object.ImplantBuildID ?? ""; + message.ImplantName = object.ImplantName ?? ""; + message.ResourceID = object.ResourceID ?? "0"; + message.SpoofMetadata = (object.SpoofMetadata !== undefined && object.SpoofMetadata !== null) + ? SpoofMetadataConfig.fromPartial(object.SpoofMetadata) + : undefined; return message; }, }; diff --git a/src/pb/commonpb/common.ts b/src/pb/commonpb/common.ts index 5cdb507..0004748 100644 --- a/src/pb/commonpb/common.ts +++ b/src/pb/commonpb/common.ts @@ -1,7 +1,7 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.2 -// protoc v3.15.8 +// protoc v6.33.4 // source: commonpb/common.proto /* eslint-disable */ diff --git a/src/pb/dnspb/dns.ts b/src/pb/dnspb/dns.ts index b9caf9b..e94f7a6 100644 --- a/src/pb/dnspb/dns.ts +++ b/src/pb/dnspb/dns.ts @@ -1,7 +1,7 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.2 -// protoc v3.15.8 +// protoc v6.33.4 // source: dnspb/dns.proto /* eslint-disable */ diff --git a/src/pb/rpcpb/services.ts b/src/pb/rpcpb/services.ts index b7278b1..8fbc106 100644 --- a/src/pb/rpcpb/services.ts +++ b/src/pb/rpcpb/services.ts @@ -1,7 +1,7 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.2 -// protoc v3.15.8 +// protoc v6.33.4 // source: rpcpb/services.proto /* eslint-disable */ @@ -46,6 +46,7 @@ import { ExternalImplantConfig, Generate, GenerateReq, + GenerateSpoofMetadataReq, GenerateStageReq, GetSystemReq, Host, @@ -637,6 +638,14 @@ export const SliverRPCDefinition = { responseStream: false, options: {}, }, + generateSpoofMetadata: { + name: "GenerateSpoofMetadata", + requestType: GenerateSpoofMetadataReq, + requestStream: false, + responseType: Empty, + responseStream: false, + options: {}, + }, generateExternal: { name: "GenerateExternal", requestType: ExternalGenerateReq, @@ -1799,6 +1808,10 @@ export interface SliverRPCServiceImplementation { hostIOCRm(request: IOC, context: CallContext & CallContextExt): Promise>; /** ** Implants *** */ generate(request: GenerateReq, context: CallContext & CallContextExt): Promise>; + generateSpoofMetadata( + request: GenerateSpoofMetadataReq, + context: CallContext & CallContextExt, + ): Promise>; generateExternal( request: ExternalGenerateReq, context: CallContext & CallContextExt, @@ -2152,6 +2165,10 @@ export interface SliverRPCClient { hostIOCRm(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; /** ** Implants *** */ generate(request: DeepPartial, options?: CallOptions & CallOptionsExt): Promise; + generateSpoofMetadata( + request: DeepPartial, + options?: CallOptions & CallOptionsExt, + ): Promise; generateExternal( request: DeepPartial, options?: CallOptions & CallOptionsExt, diff --git a/src/pb/sliverpb/sliver.ts b/src/pb/sliverpb/sliver.ts index afbba75..b0e6315 100644 --- a/src/pb/sliverpb/sliver.ts +++ b/src/pb/sliverpb/sliver.ts @@ -1,7 +1,7 @@ // Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v2.11.2 -// protoc v3.15.8 +// protoc v6.33.4 // source: sliverpb/sliver.proto /* eslint-disable */ @@ -1102,6 +1102,7 @@ export interface ReconfigureReq { ReconnectInterval: string; BeaconInterval: string; BeaconJitter: string; + C2URI: string; Request?: Request | undefined; } @@ -16153,7 +16154,7 @@ export const WGTCPForwarders: MessageFns = { }; function createBaseReconfigureReq(): ReconfigureReq { - return { ReconnectInterval: "0", BeaconInterval: "0", BeaconJitter: "0", Request: undefined }; + return { ReconnectInterval: "0", BeaconInterval: "0", BeaconJitter: "0", C2URI: "", Request: undefined }; } export const ReconfigureReq: MessageFns = { @@ -16167,6 +16168,9 @@ export const ReconfigureReq: MessageFns = { if (message.BeaconJitter !== "0") { writer.uint32(24).int64(message.BeaconJitter); } + if (message.C2URI !== "") { + writer.uint32(34).string(message.C2URI); + } if (message.Request !== undefined) { Request.encode(message.Request, writer.uint32(74).fork()).join(); } @@ -16204,6 +16208,14 @@ export const ReconfigureReq: MessageFns = { message.BeaconJitter = reader.int64().toString(); continue; } + case 4: { + if (tag !== 34) { + break; + } + + message.C2URI = reader.string(); + continue; + } case 9: { if (tag !== 74) { break; @@ -16226,6 +16238,7 @@ export const ReconfigureReq: MessageFns = { ReconnectInterval: isSet(object.ReconnectInterval) ? globalThis.String(object.ReconnectInterval) : "0", BeaconInterval: isSet(object.BeaconInterval) ? globalThis.String(object.BeaconInterval) : "0", BeaconJitter: isSet(object.BeaconJitter) ? globalThis.String(object.BeaconJitter) : "0", + C2URI: isSet(object.C2URI) ? globalThis.String(object.C2URI) : "", Request: isSet(object.Request) ? Request.fromJSON(object.Request) : undefined, }; }, @@ -16241,6 +16254,9 @@ export const ReconfigureReq: MessageFns = { if (message.BeaconJitter !== "0") { obj.BeaconJitter = message.BeaconJitter; } + if (message.C2URI !== "") { + obj.C2URI = message.C2URI; + } if (message.Request !== undefined) { obj.Request = Request.toJSON(message.Request); } @@ -16255,6 +16271,7 @@ export const ReconfigureReq: MessageFns = { message.ReconnectInterval = object.ReconnectInterval ?? "0"; message.BeaconInterval = object.BeaconInterval ?? "0"; message.BeaconJitter = object.BeaconJitter ?? "0"; + message.C2URI = object.C2URI ?? ""; message.Request = (object.Request !== undefined && object.Request !== null) ? Request.fromPartial(object.Request) : undefined; diff --git a/src/tests/__snapshots__/rpc-definition.test.ts.snap b/src/tests/__snapshots__/rpc-definition.test.ts.snap index f024982..4d2a30c 100644 --- a/src/tests/__snapshots__/rpc-definition.test.ts.snap +++ b/src/tests/__snapshots__/rpc-definition.test.ts.snap @@ -304,6 +304,12 @@ exports[`RPC definition includes all methods (snapshot) 1`] = ` "requestStream": false, "responseStream": false, }, + { + "key": "generateSpoofMetadata", + "name": "GenerateSpoofMetadata", + "requestStream": false, + "responseStream": false, + }, { "key": "generateStage", "name": "GenerateStage", diff --git a/src/tests/rpc-wrappers.test.ts b/src/tests/rpc-wrappers.test.ts index 1d4e917..6b39493 100644 --- a/src/tests/rpc-wrappers.test.ts +++ b/src/tests/rpc-wrappers.test.ts @@ -2,7 +2,18 @@ import { Subject } from "rxjs"; import { SliverClient, InteractiveBeacon } from "../client"; import type { SliverClientConfig } from "../config"; -import { BeaconTask, type Event, ListenerJob, Operators, Sessions, Session, KillJob, Loot, WebContent } from "../pb/clientpb/client"; +import { + BeaconTask, + type Event, + type GenerateSpoofMetadataReq, + ListenerJob, + Operators, + Sessions, + Session, + KillJob, + Loot, + WebContent, +} from "../pb/clientpb/client"; import { Empty } from "../pb/commonpb/common"; import { Ls } from "../pb/sliverpb/sliver"; @@ -111,6 +122,25 @@ test("SliverClient.websiteUpdateContent() forwards to rpc.websiteUpdateContent() ); }); +test("SliverClient.generateSpoofMetadata() forwards to rpc.generateSpoofMetadata()", async () => { + const generateSpoofMetadata = jest.fn(async () => Empty.create({})); + + const client = new SliverClient(dummyConfig()); + (client as any).rpcClient = { generateSpoofMetadata }; + + const req: GenerateSpoofMetadataReq = { + ImplantBuildID: "build-1", + ImplantName: "implant-1", + ResourceID: "42", + }; + + await client.generateSpoofMetadata(req, 5); + expect(generateSpoofMetadata).toHaveBeenCalledWith( + req, + expect.objectContaining({ signal: expect.any(AbortSignal) }), + ); +}); + test("InteractiveBeacon.lsTask().wait() decodes beacon task results", async () => { const taskId = "task-1"; const beaconId = "beacon-1"; From 6a409c8ea47ad396420fa64a5171a13fdacd9543 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 12:14:03 -0800 Subject: [PATCH 07/14] Update e2e to use own server child proc --- .gitignore | 2 + e2e/run.mjs | 500 ++++++++++++++++++++++++++++++++ {examples/e2e => e2e}/status.ts | 2 +- package.json | 7 +- sliver | 2 +- tsconfig.examples.json | 9 +- 6 files changed, 512 insertions(+), 10 deletions(-) create mode 100644 e2e/run.mjs rename {examples/e2e => e2e}/status.ts (98%) diff --git a/.gitignore b/.gitignore index 2aba682..32c70b6 100644 --- a/.gitignore +++ b/.gitignore @@ -47,6 +47,8 @@ Thumbs.db # Ignore built ts files dist/**/* examples/dist/**/* +e2e/dist/**/* +e2e/.cache/**/* # ignore yarn.lock yarn.lock diff --git a/e2e/run.mjs b/e2e/run.mjs new file mode 100644 index 0000000..4c8f39a --- /dev/null +++ b/e2e/run.mjs @@ -0,0 +1,500 @@ +#!/usr/bin/env node + +import { spawn } from "node:child_process"; +import { mkdtemp, mkdir, readFile, readdir, rm, stat, writeFile } from "node:fs/promises"; +import net from "node:net"; +import os from "node:os"; +import path from "node:path"; +import process from "node:process"; +import { fileURLToPath } from "node:url"; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); +const repoRoot = path.resolve(__dirname, ".."); +const sliverDir = path.join(repoRoot, "sliver"); +const sliverServerPath = path.join( + sliverDir, + process.platform === "win32" ? "sliver-server.exe" : "sliver-server", +); +const cacheDir = path.join(repoRoot, "e2e", ".cache"); +const sliverBuildStampPath = path.join(cacheDir, "sliver-server-submodule.sha"); + +const daemonStartupTimeoutMs = 60_000; +const daemonStopTimeoutMs = 10_000; +const portWaitIntervalMs = 200; +const e2eTempRootPrefix = "sliver-script-e2e-"; + +function log(message) { + console.log(`[e2e] ${message}`); +} + +function sleep(ms) { + return new Promise((resolve) => setTimeout(resolve, ms)); +} + +async function pathExists(targetPath) { + try { + await stat(targetPath); + return true; + } catch (error) { + if (error?.code === "ENOENT") { + return false; + } + throw error; + } +} + +function isIpLiteral(value) { + return net.isIP(value) !== 0; +} + +function mergeEnv(overrides) { + return { ...process.env, ...overrides }; +} + +function formatCommand(command, args) { + return [command, ...args].join(" "); +} + +async function runCommand(command, args, options = {}) { + const { cwd = repoRoot, env = {}, capture = false } = options; + const mergedEnv = mergeEnv(env); + + return new Promise((resolve, reject) => { + const child = spawn(command, args, { + cwd, + env: mergedEnv, + stdio: capture ? ["ignore", "pipe", "pipe"] : "inherit", + }); + + let stdout = ""; + let stderr = ""; + + if (capture) { + child.stdout?.on("data", (chunk) => { + stdout += chunk.toString(); + }); + child.stderr?.on("data", (chunk) => { + stderr += chunk.toString(); + }); + } + + child.on("error", (error) => { + reject(error); + }); + + child.on("close", (code) => { + if (code === 0) { + resolve({ code, stdout, stderr }); + return; + } + + const commandLine = formatCommand(command, args); + const output = [stdout.trim(), stderr.trim()].filter(Boolean).join("\n"); + reject(new Error(`Command failed (${code}): ${commandLine}${output ? `\n${output}` : ""}`)); + }); + }); +} + +async function runCommandWithRetry(command, args, options = {}) { + const { retries = 3, retryDelayMs = 3_000 } = options; + + let lastError; + for (let attempt = 1; attempt <= retries; attempt++) { + try { + return await runCommand(command, args, options); + } catch (error) { + lastError = error; + if (attempt === retries) { + break; + } + log( + `Command failed (attempt ${attempt}/${retries}): ${formatCommand(command, args)}\n` + + `Retrying in ${retryDelayMs}ms ...`, + ); + await sleep(retryDelayMs); + } + } + + throw lastError; +} + +function startDaemon(command, args, options = {}) { + const { cwd = repoRoot, env = {} } = options; + const mergedEnv = mergeEnv(env); + const child = spawn(command, args, { + cwd, + env: mergedEnv, + stdio: ["ignore", "pipe", "pipe"], + }); + + let combinedOutput = ""; + const appendOutput = (chunk, target) => { + const text = chunk.toString(); + combinedOutput += text; + if (combinedOutput.length > 120_000) { + combinedOutput = combinedOutput.slice(-120_000); + } + target.write(text); + }; + + child.stdout?.on("data", (chunk) => appendOutput(chunk, process.stdout)); + child.stderr?.on("data", (chunk) => appendOutput(chunk, process.stderr)); + + return { + child, + getCombinedOutput: () => combinedOutput, + }; +} + +async function getGitSubmoduleHead() { + const result = await runCommand("git", ["-C", sliverDir, "rev-parse", "HEAD"], { + capture: true, + }); + return result.stdout.trim(); +} + +async function readCachedSubmoduleHead() { + if (!(await pathExists(sliverBuildStampPath))) { + return ""; + } + const content = await readFile(sliverBuildStampPath, "utf8"); + return content.trim(); +} + +async function ensureSliverServerBuilt(sharedEnv) { + await mkdir(cacheDir, { recursive: true }); + + const currentHead = await getGitSubmoduleHead(); + const cachedHead = await readCachedSubmoduleHead(); + const binaryExists = await pathExists(sliverServerPath); + const shouldBuild = !binaryExists || cachedHead !== currentHead; + + if (shouldBuild) { + log(`Building sliver-server via make (submodule HEAD: ${currentHead})`); + await runCommandWithRetry("make", [], { + cwd: sliverDir, + env: sharedEnv, + retries: 3, + retryDelayMs: 5_000, + }); + await writeFile(sliverBuildStampPath, `${currentHead}\n`, "utf8"); + return; + } + + log(`Reusing existing sliver-server build for submodule HEAD ${currentHead}`); +} + +function attemptTcpConnect(host, port, timeoutMs = 1_000) { + return new Promise((resolve) => { + const socket = net.connect({ host, port }); + + const done = (ok) => { + socket.removeAllListeners(); + socket.destroy(); + resolve(ok); + }; + + socket.setTimeout(timeoutMs); + socket.once("connect", () => done(true)); + socket.once("timeout", () => done(false)); + socket.once("error", () => done(false)); + }); +} + +async function waitForDaemonPort(host, port, daemonChild) { + const deadline = Date.now() + daemonStartupTimeoutMs; + while (Date.now() < deadline) { + if (daemonChild.exitCode !== null) { + throw new Error(`sliver-server daemon exited before startup (code ${daemonChild.exitCode})`); + } + + if (await attemptTcpConnect(host, port)) { + return; + } + + await sleep(portWaitIntervalMs); + } + throw new Error(`Timed out waiting for sliver-server daemon on ${host}:${port}`); +} + +async function allocateFreePort(host) { + return new Promise((resolve, reject) => { + const server = net.createServer(); + server.on("error", reject); + server.listen(0, host, () => { + const address = server.address(); + if (!address || typeof address === "string") { + server.close(); + reject(new Error("Failed to allocate a free TCP port")); + return; + } + const { port } = address; + server.close((error) => { + if (error) { + reject(error); + return; + } + resolve(port); + }); + }); + }); +} + +function onceProcessExit(child) { + return new Promise((resolve) => { + child.once("exit", resolve); + }); +} + +async function stopProcess(child, name) { + if (!child || child.exitCode !== null) { + return; + } + + child.kill("SIGTERM"); + const exited = await Promise.race([ + onceProcessExit(child).then(() => true), + sleep(daemonStopTimeoutMs).then(() => false), + ]); + + if (!exited && child.exitCode === null) { + log(`${name} did not exit after SIGTERM, sending SIGKILL`); + child.kill("SIGKILL"); + await onceProcessExit(child); + } +} + +async function collectE2ETestFiles() { + const distDir = path.join(repoRoot, "e2e", "dist"); + const entries = await readdir(distDir, { withFileTypes: true }); + return entries + .filter((entry) => entry.isFile() && entry.name.endsWith(".js")) + .map((entry) => path.join(distDir, entry.name)) + .sort(); +} + +async function cleanupStaleTestRoots(baseDir) { + let entries = []; + try { + entries = await readdir(baseDir, { withFileTypes: true }); + } catch { + return; + } + + const staleDirs = entries.filter( + (entry) => entry.isDirectory() && entry.name.startsWith(e2eTempRootPrefix), + ); + for (const entry of staleDirs) { + const fullPath = path.join(baseDir, entry.name); + try { + await rm(fullPath, { recursive: true, force: true, maxRetries: 3, retryDelay: 200 }); + log(`Removed previous e2e temp dir: ${fullPath}`); + } catch { + // Ignore cleanup issues; they should not block test execution. + } + } +} + +async function main() { + const tmpBaseDir = os.tmpdir(); + await cleanupStaleTestRoots(tmpBaseDir); + + const testRoot = await mkdtemp(path.join(tmpBaseDir, e2eTempRootPrefix)); + const sliverRootDir = path.join(testRoot, "sliver"); + const sliverClientDir = path.join(testRoot, "sliver-client"); + const homeDir = path.join(testRoot, "home"); + const xdgConfigHome = path.join(testRoot, "xdg-config"); + const xdgCacheHome = path.join(testRoot, "xdg-cache"); + const xdgDataHome = path.join(testRoot, "xdg-data"); + const tmpDir = path.join(testRoot, "tmp"); + const goCacheDir = path.join(testRoot, "go-cache"); + const goTmpDir = path.join(testRoot, "go-tmp"); + const operatorConfigPath = path.join(testRoot, "operator.cfg"); + + const sharedEnv = { + SLIVER_ROOT_DIR: sliverRootDir, + SLIVER_CLIENT_DIR: sliverClientDir, + SLIVER_CLIENT_ROOT_DIR: sliverClientDir, + HOME: homeDir, + XDG_CONFIG_HOME: xdgConfigHome, + XDG_CACHE_HOME: xdgCacheHome, + XDG_DATA_HOME: xdgDataHome, + TMPDIR: tmpDir, + TMP: tmpDir, + TEMP: tmpDir, + GOCACHE: goCacheDir, + GOTMPDIR: goTmpDir, + }; + + await Promise.all( + [ + sliverRootDir, + sliverClientDir, + homeDir, + xdgConfigHome, + xdgCacheHome, + xdgDataHome, + tmpDir, + goCacheDir, + goTmpDir, + ].map((dirPath) => mkdir(dirPath, { recursive: true })), + ); + + const daemonHost = process.env.SLIVER_E2E_DAEMON_HOST || "127.0.0.1"; + const requestedOperatorHost = process.env.SLIVER_E2E_LHOST || "localhost"; + const operatorHost = isIpLiteral(requestedOperatorHost) ? "localhost" : requestedOperatorHost; + if (requestedOperatorHost !== operatorHost) { + log( + `Using '${operatorHost}' for operator config host because Node TLS SNI rejects IP literals (${requestedOperatorHost})`, + ); + } + + const lport = process.env.SLIVER_E2E_LPORT + ? Number.parseInt(process.env.SLIVER_E2E_LPORT, 10) + : await allocateFreePort(daemonHost); + if (!Number.isInteger(lport) || lport <= 0 || lport > 65535) { + throw new Error(`Invalid SLIVER_E2E_LPORT value: ${process.env.SLIVER_E2E_LPORT}`); + } + + const operatorName = process.env.SLIVER_E2E_OPERATOR || "e2e"; + + let daemonProcess; + let daemonOutputGetter = () => ""; + let runSucceeded = false; + let cleanupStarted = false; + + const cleanup = async () => { + if (cleanupStarted) { + return; + } + cleanupStarted = true; + await stopProcess(daemonProcess, "sliver-server daemon"); + await rm(testRoot, { recursive: true, force: true, maxRetries: 5, retryDelay: 200 }); + }; + + const onSignal = async (signal) => { + log(`Received ${signal}, cleaning up`); + await cleanup(); + process.exit(signal === "SIGINT" ? 130 : 143); + }; + process.on("SIGINT", onSignal); + process.on("SIGTERM", onSignal); + + try { + log(`Using isolated test root: ${testRoot}`); + log(`Using daemon listener: ${daemonHost}:${lport}`); + log(`Using operator config endpoint: ${operatorHost}:${lport}`); + + await ensureSliverServerBuilt(sharedEnv); + + log("Unpacking Sliver assets"); + await runCommand(sliverServerPath, ["unpack", "--force"], { + cwd: sliverDir, + env: sharedEnv, + }); + + log(`Generating operator config for '${operatorName}'`); + await runCommand( + sliverServerPath, + [ + "operator", + "--name", + operatorName, + "--lhost", + operatorHost, + "--lport", + String(lport), + "--permissions", + "all", + "--save", + operatorConfigPath, + ], + { + cwd: sliverDir, + env: sharedEnv, + }, + ); + + if (!(await pathExists(operatorConfigPath))) { + throw new Error(`Expected operator config was not created: ${operatorConfigPath}`); + } + + log("Starting sliver-server daemon"); + const daemon = startDaemon( + sliverServerPath, + [ + "daemon", + "--lhost", + daemonHost, + "--lport", + String(lport), + ], + { + cwd: sliverDir, + env: sharedEnv, + }, + ); + daemonProcess = daemon.child; + daemonOutputGetter = daemon.getCombinedOutput; + + await waitForDaemonPort(daemonHost, lport, daemonProcess); + log("Daemon is accepting connections"); + + log("Building TypeScript library + e2e tests"); + await runCommand("npm", ["run", "build:examples"], { + cwd: repoRoot, + env: sharedEnv, + }); + + const testFiles = await collectE2ETestFiles(); + if (testFiles.length === 0) { + throw new Error("No compiled e2e tests found in ./e2e/dist"); + } + + const testEnv = { + ...sharedEnv, + SLIVER_E2E: "1", + SLIVER_CONFIG_FILE: operatorConfigPath, + }; + if (process.env.SLIVER_WAIT_TASKS) { + testEnv.SLIVER_WAIT_TASKS = process.env.SLIVER_WAIT_TASKS; + } + + for (const testFile of testFiles) { + log(`Running e2e test: ${path.relative(repoRoot, testFile)}`); + await runCommand(process.execPath, [testFile], { + cwd: repoRoot, + env: testEnv, + }); + } + + log("All e2e tests passed"); + runSucceeded = true; + } finally { + process.off("SIGINT", onSignal); + process.off("SIGTERM", onSignal); + + if (!runSucceeded) { + const daemonLogPath = path.join(sliverRootDir, "logs", "sliver.log"); + if (await pathExists(daemonLogPath)) { + const logContent = await readFile(daemonLogPath, "utf8"); + const logTail = logContent.split(/\r?\n/).slice(-80).join("\n"); + if (logTail.trim()) { + console.error("[e2e] sliver.log tail:"); + console.error(logTail); + } + } else if (daemonOutputGetter().trim()) { + console.error("[e2e] daemon output tail:"); + console.error(daemonOutputGetter().split(/\r?\n/).slice(-80).join("\n")); + } + } + + await cleanup(); + } +} + +main().catch((error) => { + console.error(`[e2e] ${error?.stack || error}`); + process.exit(1); +}); diff --git a/examples/e2e/status.ts b/e2e/status.ts similarity index 98% rename from examples/e2e/status.ts rename to e2e/status.ts index 512e8ba..0ede613 100644 --- a/examples/e2e/status.ts +++ b/e2e/status.ts @@ -1,7 +1,7 @@ import * as fs from "node:fs"; import * as path from "node:path"; -type SliverScriptModule = typeof import("../.."); +type SliverScriptModule = typeof import(".."); function findRepoRoot(startDir: string): string | undefined { let dir = path.resolve(startDir); diff --git a/package.json b/package.json index ee5f346..897f412 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,13 @@ }, "scripts": { "build": "rm -rf ./lib && tsc -p tsconfig.json", - "build:examples": "npm run build && rm -rf ./examples/dist && tsc -p tsconfig.examples.json", + "build:examples": "npm run build && rm -rf ./e2e/dist && tsc -p tsconfig.examples.json", "pb": "./protobuf.sh", "docs": "typedoc --out ./docs/ ./src", "test": "jest --config jestconfig.json", - "test:e2e": "SLIVER_E2E=1 jest --config jestconfig.json", - "example:e2e": "npm run build:examples && node examples/dist/e2e/status.js" + "test:e2e": "node e2e/run.mjs", + "test:e2e:jest": "SLIVER_E2E=1 jest --config jestconfig.json", + "example:e2e": "npm run build:examples && node e2e/dist/status.js" }, "prepublishOnly": "npm test && npm run build", "files": [ diff --git a/sliver b/sliver index 2e36f45..d2632e7 160000 --- a/sliver +++ b/sliver @@ -1 +1 @@ -Subproject commit 2e36f45bdfe13b88aa6f15325fdafae0ad959163 +Subproject commit d2632e75bd687fa0b18c8eff01124f19bca815f7 diff --git a/tsconfig.examples.json b/tsconfig.examples.json index f5676b1..b3d35f0 100644 --- a/tsconfig.examples.json +++ b/tsconfig.examples.json @@ -2,10 +2,9 @@ "extends": "./tsconfig.json", "compilerOptions": { "declaration": false, - "outDir": "./examples/dist", - "rootDir": "./examples" + "outDir": "./e2e/dist", + "rootDir": "./e2e" }, - "include": ["examples/e2e/**/*.ts"], - "exclude": ["node_modules", "examples/dist"] + "include": ["e2e/**/*.ts"], + "exclude": ["node_modules", "e2e/dist"] } - From 8387217f95961e85462216e71c2b8d70bf5acb40 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 12:32:00 -0800 Subject: [PATCH 08/14] Update gh actions to run e2e tests --- .dockerignore | 8 ++++++++ .github/workflows/build-check.yml | 24 ++++++++++++++++++++++++ Dockerfile.e2e | 27 +++++++++++++++++++++++++++ package.json | 2 +- 4 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 .dockerignore create mode 100644 Dockerfile.e2e diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4cf305a --- /dev/null +++ b/.dockerignore @@ -0,0 +1,8 @@ +node_modules +lib +e2e/dist +e2e/.cache +sliver/sliver-client +sliver/sliver-client_* +sliver/sliver-server +sliver/sliver-server_* diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 9bed17c..0dc428c 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -11,6 +11,8 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + submodules: recursive - uses: actions/setup-node@v4 with: node-version: 24.x @@ -18,3 +20,25 @@ jobs: - run: npm ci - run: npm run build + + e2e-tests: + name: e2e (${{ matrix.os }}) + runs-on: ${{ matrix.os }} + timeout-minutes: 120 + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest, macos-latest] + steps: + - uses: actions/checkout@v4 + with: + submodules: recursive + - uses: actions/setup-node@v4 + with: + node-version: 24.x + cache: npm + - uses: actions/setup-go@v5 + with: + go-version: 1.25.x + - run: npm ci + - run: npm run test:e2e diff --git a/Dockerfile.e2e b/Dockerfile.e2e new file mode 100644 index 0000000..c881f21 --- /dev/null +++ b/Dockerfile.e2e @@ -0,0 +1,27 @@ +FROM node:25-bookworm + +ARG GO_VERSION=1.25.7 + +RUN apt-get update \ + && apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + git \ + make \ + unzip \ + xz-utils \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -fsSL "https://go.dev/dl/go${GO_VERSION}.linux-amd64.tar.gz" \ + | tar -C /usr/local -xzf - + +ENV PATH="/usr/local/go/bin:${PATH}" + +WORKDIR /workspace + +COPY package.json package-lock.json ./ +RUN npm ci + +COPY . . + +CMD ["npm", "run", "test:e2e"] diff --git a/package.json b/package.json index 897f412..16ce952 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sliver-script", - "version": "1.2.5", + "version": "2.0.0", "description": "TypeScript/JavaScript Sliver client library", "main": "lib/index.js", "types": "lib/index.d.ts", From a8afc8236d524db992aecf23148822051d3184c2 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 12:32:51 -0800 Subject: [PATCH 09/14] Trigger e2e build check tests on v2 branch --- .github/workflows/build-check.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 0dc428c..79e9425 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -2,9 +2,9 @@ name: Build Check on: push: - branches: [master] + branches: [master, v2] pull_request: - branches: [master] + branches: [master, v2] jobs: build-check: From 4702cd32c0bc936911ba0890ff01d24e7a19e864 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:01:39 -0800 Subject: [PATCH 10/14] Generate implant as part of e2e tests --- e2e/run.mjs | 13 +++ e2e/status.ts | 228 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 241 insertions(+) diff --git a/e2e/run.mjs b/e2e/run.mjs index 4c8f39a..53e25e3 100644 --- a/e2e/run.mjs +++ b/e2e/run.mjs @@ -356,6 +356,14 @@ async function main() { if (!Number.isInteger(lport) || lport <= 0 || lport > 65535) { throw new Error(`Invalid SLIVER_E2E_LPORT value: ${process.env.SLIVER_E2E_LPORT}`); } + const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST || daemonHost; + const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST || operatorHost; + const mtlsPort = process.env.SLIVER_E2E_MTLS_PORT + ? Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT, 10) + : await allocateFreePort(mtlsBindHost); + if (!Number.isInteger(mtlsPort) || mtlsPort <= 0 || mtlsPort > 65535) { + throw new Error(`Invalid SLIVER_E2E_MTLS_PORT value: ${process.env.SLIVER_E2E_MTLS_PORT}`); + } const operatorName = process.env.SLIVER_E2E_OPERATOR || "e2e"; @@ -385,6 +393,8 @@ async function main() { log(`Using isolated test root: ${testRoot}`); log(`Using daemon listener: ${daemonHost}:${lport}`); log(`Using operator config endpoint: ${operatorHost}:${lport}`); + log(`Using mTLS listener bind: ${mtlsBindHost}:${mtlsPort}`); + log(`Using implant mTLS endpoint: ${mtlsHost}:${mtlsPort}`); await ensureSliverServerBuilt(sharedEnv); @@ -456,6 +466,9 @@ async function main() { ...sharedEnv, SLIVER_E2E: "1", SLIVER_CONFIG_FILE: operatorConfigPath, + SLIVER_E2E_MTLS_BIND_HOST: mtlsBindHost, + SLIVER_E2E_MTLS_HOST: mtlsHost, + SLIVER_E2E_MTLS_PORT: String(mtlsPort), }; if (process.env.SLIVER_WAIT_TASKS) { testEnv.SLIVER_WAIT_TASKS = process.env.SLIVER_WAIT_TASKS; diff --git a/e2e/status.ts b/e2e/status.ts index 0ede613..7a11a86 100644 --- a/e2e/status.ts +++ b/e2e/status.ts @@ -1,7 +1,13 @@ import * as fs from "node:fs"; +import * as os from "node:os"; import * as path from "node:path"; +import { spawn, type ChildProcess } from "node:child_process"; +import { mkdtemp, rm, writeFile, chmod } from "node:fs/promises"; +import { randomInt } from "node:crypto"; type SliverScriptModule = typeof import(".."); +type SliverClientInstance = InstanceType; +type SessionInfo = Awaited>[number]; function findRepoRoot(startDir: string): string | undefined { let dir = path.resolve(startDir); @@ -36,6 +42,118 @@ function loadLocalSliverScript(repoRoot: string): SliverScriptModule { const REPO_ROOT = guessRepoRoot(); const CONFIG_PATH = process.env.SLIVER_CONFIG_FILE ?? path.join(REPO_ROOT, "localhost.cfg"); const WAIT_TASKS = process.env.SLIVER_WAIT_TASKS === "1"; +const SESSION_TIMEOUT_SECONDS = 180; +const DEFAULT_HTTP_C2_PROFILE = "default"; + +function assert(condition: unknown, message: string): asserts condition { + if (!condition) { + throw new Error(message); + } +} + +function nodePlatformToGoOS(platform: NodeJS.Platform): string { + switch (platform) { + case "darwin": + return "darwin"; + case "linux": + return "linux"; + case "win32": + return "windows"; + default: + throw new Error(`Unsupported platform for e2e implant generation: ${platform}`); + } +} + +function nodeArchToGoArch(arch: string): string { + switch (arch) { + case "x64": + return "amd64"; + case "arm64": + return "arm64"; + case "arm": + return "arm"; + default: + throw new Error(`Unsupported arch for e2e implant generation: ${arch}`); + } +} + +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} + +async function waitForSession( + client: SliverClientInstance, + timeoutSeconds: number, + predicate: (session: SessionInfo) => boolean, +): Promise { + const deadline = Date.now() + timeoutSeconds * 1000; + while (Date.now() < deadline) { + const sessions = await client.sessions(30); + const match = sessions.find(predicate); + if (match) { + return match; + } + await sleep(1000); + } + throw new Error(`Timed out waiting for session (${timeoutSeconds}s)`); +} + +function waitForChildExit(child: ChildProcess): Promise { + return new Promise((resolve) => { + child.once("exit", (code) => resolve(code)); + }); +} + +async function terminateChildProcess(child: ChildProcess): Promise { + if (child.exitCode !== null) { + return; + } + child.kill("SIGTERM"); + const exited = await Promise.race([ + waitForChildExit(child).then(() => true), + sleep(4000).then(() => false), + ]); + if (!exited && child.exitCode === null) { + child.kill("SIGKILL"); + await waitForChildExit(child); + } +} + +function collectOutput(child: ChildProcess) { + let stdout = ""; + let stderr = ""; + child.stdout?.on("data", (chunk: Buffer) => { + stdout += chunk.toString("utf8"); + if (stdout.length > 20_000) { + stdout = stdout.slice(-20_000); + } + }); + child.stderr?.on("data", (chunk: Buffer) => { + stderr += chunk.toString("utf8"); + if (stderr.length > 20_000) { + stderr = stderr.slice(-20_000); + } + }); + return { + stdout: () => stdout, + stderr: () => stderr, + }; +} + +function printInfoSummary(session: SessionInfo): void { + console.log("session info", { + id: session.ID, + name: session.Name, + hostname: session.Hostname, + username: session.Username, + os: session.OS, + arch: session.Arch, + transport: session.Transport, + activeC2: session.ActiveC2, + pid: session.PID, + remoteAddress: session.RemoteAddress, + }); +} async function main() { if (!fs.existsSync(CONFIG_PATH)) { @@ -46,6 +164,21 @@ async function main() { const sliver = loadLocalSliverScript(REPO_ROOT); const config = await sliver.ParseConfigFile(CONFIG_PATH); const client = new sliver.SliverClient(config); + const goos = nodePlatformToGoOS(process.platform); + const goarch = nodeArchToGoArch(process.arch); + const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; + const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; + const mtlsPort = Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), 10); + + assert(Number.isInteger(mtlsPort) && mtlsPort > 0 && mtlsPort <= 65535, `Invalid mtls port: ${mtlsPort}`); + const c2URL = `mtls://${mtlsHost}:${mtlsPort}`; + const existingSessionIds = new Set(); + + let tempDir: string | undefined; + let implantPath: string | undefined; + let implantProc: ChildProcess | undefined; + let implantOutput: ReturnType | undefined; + let mtlsJobId: number | undefined; await client.connect(); try { @@ -57,10 +190,82 @@ async function main() { const sessions = await client.sessions(); console.log("sessions", sessions.length); + for (const session of sessions) { + existingSessionIds.add(session.ID); + } const beacons = await client.beacons(); console.log("beacons", beacons.length); + const mtlsListener = await client.startMTLSListener(mtlsBindHost, mtlsPort, 60); + mtlsJobId = mtlsListener.JobID; + console.log("mtls listener started", { + bindHost: mtlsBindHost, + host: mtlsHost, + port: mtlsPort, + jobId: mtlsJobId, + }); + + const implantName = `e2e-session-${goos}-${goarch}-${Date.now()}`; + console.log("generate implant", { implantName, goos, goarch, c2URL }); + const implantConfig = sliver.clientpb.ImplantConfig.create({ + GOOS: goos, + GOARCH: goarch, + C2: [{ URL: c2URL }], + HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, + Debug: false, + ObfuscateSymbols: false, + IsBeacon: false, + IncludeMTLS: true, + Format: sliver.clientpb.OutputFormat.EXECUTABLE, + IsSharedLib: false, + IsService: false, + IsShellcode: false, + }); + const generated = await client.generate(implantConfig, 300); + assert(generated !== undefined, "Generate returned no file"); + assert(generated.Data.length > 0, "Generated implant file is empty"); + + tempDir = await mkdtemp(path.join(os.tmpdir(), "sliver-script-implant-")); + const generatedName = generated.Name.trim() || implantName; + const filename = path.basename(generatedName); + implantPath = path.join(tempDir, filename); + await writeFile(implantPath, generated.Data, { mode: 0o700 }); + if (process.platform !== "win32") { + await chmod(implantPath, 0o700); + } + + const spawnedImplant = spawn(implantPath, [], { stdio: ["ignore", "pipe", "pipe"] }); + implantProc = spawnedImplant; + implantOutput = collectOutput(spawnedImplant); + const implantPid = spawnedImplant.pid; + assert(implantPid !== undefined, "Failed to start implant process"); + console.log("implant started", { path: implantPath, pid: implantPid }); + + const session = await waitForSession( + client, + SESSION_TIMEOUT_SECONDS, + (candidate) => + !existingSessionIds.has(candidate.ID) && + candidate.OS.toLowerCase() === goos && + candidate.Arch.toLowerCase() === goarch, + ); + console.log("session created", { id: session.ID, pid: session.PID, transport: session.Transport }); + + const interactiveSession = client.interactSession(session.ID); + const nonce = randomInt(1, 2_000_000_000); + const ping = await interactiveSession.ping(nonce, 60); + assert(ping.Nonce === nonce, `Session ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); + + const info = await waitForSession(client, 30, (candidate) => candidate.ID === session.ID); + assert(info.ID === session.ID, "Session info did not return expected session id"); + assert(info.OS.toLowerCase() === goos, `Session info OS mismatch: expected ${goos}, got ${info.OS}`); + assert(info.Arch.toLowerCase() === goarch, `Session info arch mismatch: expected ${goarch}, got ${info.Arch}`); + assert(info.Transport.toLowerCase().includes("mtls"), `Expected mtls transport, got ${info.Transport}`); + assert(info.ActiveC2.toLowerCase().includes("mtls://"), `Expected mtls c2, got ${info.ActiveC2}`); + assert(info.PID === implantPid, `Session PID mismatch: expected ${implantPid}, got ${info.PID}`); + printInfoSummary(info); + if (beacons.length > 0) { const beacon = client.interactBeacon(beacons[0].ID); const task = await beacon.lsTask("."); @@ -76,6 +281,29 @@ async function main() { } } } finally { + if (mtlsJobId !== undefined) { + try { + await client.killJob(mtlsJobId, 30); + } catch (err) { + console.error(`failed to stop mtls listener job ${mtlsJobId}`, err); + } + } + if (implantProc) { + await terminateChildProcess(implantProc); + if (implantOutput) { + const stdout = implantOutput.stdout().trim(); + const stderr = implantOutput.stderr().trim(); + if (stdout.length > 0) { + console.log("implant stdout tail", stdout.split(/\r?\n/).slice(-10).join("\n")); + } + if (stderr.length > 0) { + console.log("implant stderr tail", stderr.split(/\r?\n/).slice(-10).join("\n")); + } + } + } + if (tempDir) { + await rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }); + } await client.disconnect(); } } From 4174ae582b6bd35c7e8583b534d6bc6e34ca7ef4 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:11:23 -0800 Subject: [PATCH 11/14] Execute more commands --- e2e/status.ts | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/e2e/status.ts b/e2e/status.ts index 7a11a86..b0953ed 100644 --- a/e2e/status.ts +++ b/e2e/status.ts @@ -257,6 +257,51 @@ async function main() { const ping = await interactiveSession.ping(nonce, 60); assert(ping.Nonce === nonce, `Session ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); + const pwd = await interactiveSession.pwd(60); + assert(pwd.Path.trim().length > 0, "pwd returned an empty path"); + + const ls = await interactiveSession.ls(".", 60); + assert(ls.Exists, `ls reported missing path: ${ls.Path}`); + assert(ls.Files.length > 0, `ls returned no files for path: ${ls.Path}`); + + const ps = await interactiveSession.ps(false, 60); + assert(ps.Processes.length > 0, "ps returned no processes"); + const selfProcess = ps.Processes.find((proc) => proc.Pid === implantPid); + assert(selfProcess !== undefined, `ps output missing implant process pid ${implantPid}`); + + const ifconfig = await interactiveSession.ifconfig(60); + assert(ifconfig.NetInterfaces.length > 0, "ifconfig returned no network interfaces"); + + const lsFromPwd = await interactiveSession.ls(pwd.Path, 60); + assert(lsFromPwd.Exists, `ls on pwd path reported missing path: ${lsFromPwd.Path}`); + + let netstatEntries: number | undefined; + try { + const netstat = await interactiveSession.netstat(15); + assert(Array.isArray(netstat.Entries), "netstat entries were not returned as an array"); + if (netstat.Entries.length > 0) { + assert(netstat.Entries[0].Protocol.trim().length > 0, "netstat entry missing protocol"); + } + netstatEntries = netstat.Entries.length; + } catch (err) { + console.warn("netstat check skipped", err); + } + + console.log("session command checks", { + pwd: pwd.Path, + lsPath: ls.Path, + lsCount: ls.Files.length, + lsFromPwdPath: lsFromPwd.Path, + lsFromPwdCount: lsFromPwd.Files.length, + psCount: ps.Processes.length, + selfProcess: { + pid: selfProcess.Pid, + executable: selfProcess.Executable, + }, + ifaces: ifconfig.NetInterfaces.map((iface) => iface.Name), + netstatEntries, + }); + const info = await waitForSession(client, 30, (candidate) => candidate.ID === session.ID); assert(info.ID === session.ID, "Session info did not return expected session id"); assert(info.OS.toLowerCase() === goos, `Session info OS mismatch: expected ${goos}, got ${info.OS}`); From 5d8f3710f2a79c62b11f4e37af268f46630ff4d9 Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 14:37:43 -0800 Subject: [PATCH 12/14] Add beacon tests --- e2e/beacon.ts | 572 ++++++++++++++++++++++++++++++++++ e2e/{status.ts => session.ts} | 88 ++++-- 2 files changed, 642 insertions(+), 18 deletions(-) create mode 100644 e2e/beacon.ts rename e2e/{status.ts => session.ts} (80%) diff --git a/e2e/beacon.ts b/e2e/beacon.ts new file mode 100644 index 0000000..3581fe1 --- /dev/null +++ b/e2e/beacon.ts @@ -0,0 +1,572 @@ +import * as fs from "node:fs"; +import * as os from "node:os"; +import * as path from "node:path"; +import { spawn, type ChildProcess } from "node:child_process"; +import { mkdtemp, mkdir, readFile, rm, writeFile, chmod } from "node:fs/promises"; +import { createHash, randomBytes, randomInt } from "node:crypto"; +import { gunzip as gunzipCb } from "node:zlib"; +import { promisify } from "node:util"; + +type SliverScriptModule = typeof import(".."); +type SliverClientInstance = InstanceType; +type BeaconInfo = Awaited>[number]; +type InteractiveBeaconInstance = ReturnType; + +const gunzip = promisify(gunzipCb); + +function findRepoRoot(startDir: string): string | undefined { + let dir = path.resolve(startDir); + for (let i = 0; i < 10; i++) { + if (fs.existsSync(path.join(dir, "package.json"))) { + return dir; + } + const parent = path.dirname(dir); + if (parent === dir) { + break; + } + dir = parent; + } + return undefined; +} + +function guessRepoRoot(): string { + return findRepoRoot(process.cwd()) ?? findRepoRoot(__dirname) ?? process.cwd(); +} + +function loadLocalSliverScript(repoRoot: string): SliverScriptModule { + const libDir = path.join(repoRoot, "lib"); + const entry = path.join(libDir, "index.js"); + if (!fs.existsSync(entry)) { + throw new Error(`Missing built library entrypoint: ${entry}. Run: npm run build`); + } + return require(libDir) as SliverScriptModule; +} + +const REPO_ROOT = guessRepoRoot(); +const CONFIG_PATH = process.env.SLIVER_CONFIG_FILE ?? path.join(REPO_ROOT, "localhost.cfg"); +const DEFAULT_HTTP_C2_PROFILE = "default"; +const BEACON_INTERVAL_SECONDS = 20; +const BEACON_INTERVAL_NS = String(BEACON_INTERVAL_SECONDS * 1_000_000_000); +const BEACON_TIMEOUT_SECONDS = 240; + +function assert(condition: unknown, message: string): asserts condition { + if (!condition) { + throw new Error(message); + } +} + +function nodePlatformToGoOS(platform: NodeJS.Platform): string { + switch (platform) { + case "darwin": + return "darwin"; + case "linux": + return "linux"; + case "win32": + return "windows"; + default: + throw new Error(`Unsupported platform for e2e implant generation: ${platform}`); + } +} + +function nodeArchToGoArch(arch: string): string { + switch (arch) { + case "x64": + return "amd64"; + case "arm64": + return "arm64"; + case "arm": + return "arm"; + default: + throw new Error(`Unsupported arch for e2e implant generation: ${arch}`); + } +} + +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} + +async function waitForBeacon( + client: SliverClientInstance, + timeoutSeconds: number, + predicate: (beacon: BeaconInfo) => boolean, +): Promise { + const deadline = Date.now() + timeoutSeconds * 1000; + while (Date.now() < deadline) { + const beacons = await client.beacons(30); + const match = beacons.find(predicate); + if (match) { + return match; + } + await sleep(1000); + } + throw new Error(`Timed out waiting for beacon (${timeoutSeconds}s)`); +} + +async function waitForBeaconTaskComplete( + client: SliverClientInstance, + beaconID: string, + taskID: string, + timeoutSeconds: number, +): Promise { + const deadline = Date.now() + timeoutSeconds * 1000; + while (Date.now() < deadline) { + const tasks = await client.rpc.getBeaconTasks({ ID: beaconID }); + const task = tasks.Tasks.find((candidate) => candidate.ID === taskID); + if (!task) { + await sleep(1000); + continue; + } + + const state = task.State.toLowerCase(); + if (state === "completed") { + return; + } + if (state === "failed" || state === "canceled" || state === "cancelled") { + throw new Error(`Beacon task ${taskID} ${state}: ${task.Description}`); + } + await sleep(1000); + } + throw new Error(`Timed out waiting for beacon task completion (${timeoutSeconds}s): ${taskID}`); +} + +function getQueuedTaskID(queued: { Response?: { Err?: string; TaskID?: string } }, label: string): string { + const queueErr = queued.Response?.Err?.trim(); + assert(!queueErr, `${label} queue error: ${queueErr}`); + const taskID = queued.Response?.TaskID?.trim() ?? ""; + assert(taskID.length > 0, `${label} queue response missing task id`); + return taskID; +} + +async function decodeBeaconTaskResponse( + client: SliverClientInstance, + beaconID: string, + queued: { Response?: { Err?: string; TaskID?: string } }, + decoder: (input: Uint8Array) => T, + label: string, + timeoutSeconds: number, +): Promise { + const taskID = getQueuedTaskID(queued, label); + await waitForBeaconTaskComplete(client, beaconID, taskID, timeoutSeconds); + const content = await client.rpc.getBeaconTaskContent({ ID: taskID }); + assert(content.Response.length > 0, `${label} task returned no response bytes`); + const decoded = decoder(content.Response); + const err = decoded.Response?.Err?.trim(); + assert(!err, `${label} execution error: ${err}`); + return decoded; +} + +async function decodeDownloadData(download: { Encoder: string; Data: Buffer }): Promise { + if (download.Encoder === "gzip") { + return await gunzip(download.Data); + } + if (download.Encoder === "") { + return download.Data; + } + throw new Error(`Unsupported download encoder: ${download.Encoder}`); +} + +function waitForChildExit(child: ChildProcess): Promise { + return new Promise((resolve) => { + child.once("exit", (code) => resolve(code)); + }); +} + +async function terminateChildProcess(child: ChildProcess): Promise { + if (child.exitCode !== null) { + return; + } + child.kill("SIGTERM"); + const exited = await Promise.race([ + waitForChildExit(child).then(() => true), + sleep(4000).then(() => false), + ]); + if (!exited && child.exitCode === null) { + child.kill("SIGKILL"); + await waitForChildExit(child); + } +} + +function collectOutput(child: ChildProcess) { + let stdout = ""; + let stderr = ""; + child.stdout?.on("data", (chunk: Buffer) => { + stdout += chunk.toString("utf8"); + if (stdout.length > 20_000) { + stdout = stdout.slice(-20_000); + } + }); + child.stderr?.on("data", (chunk: Buffer) => { + stderr += chunk.toString("utf8"); + if (stderr.length > 20_000) { + stderr = stderr.slice(-20_000); + } + }); + return { + stdout: () => stdout, + stderr: () => stderr, + }; +} + +function md5Hex(data: Buffer): string { + return createHash("md5").update(data).digest("hex"); +} + +function printBeaconInfoSummary(beacon: BeaconInfo): void { + console.log("beacon info", { + id: beacon.ID, + name: beacon.Name, + hostname: beacon.Hostname, + username: beacon.Username, + os: beacon.OS, + arch: beacon.Arch, + transport: beacon.Transport, + activeC2: beacon.ActiveC2, + pid: beacon.PID, + remoteAddress: beacon.RemoteAddress, + interval: beacon.Interval, + nextCheckin: beacon.NextCheckin, + }); +} + +async function main() { + if (!fs.existsSync(CONFIG_PATH)) { + console.error(`Missing config file: ${CONFIG_PATH}`); + process.exit(2); + } + + const sliver = loadLocalSliverScript(REPO_ROOT); + const config = await sliver.ParseConfigFile(CONFIG_PATH); + const client = new sliver.SliverClient(config); + const goos = nodePlatformToGoOS(process.platform); + const goarch = nodeArchToGoArch(process.arch); + const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; + const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; + const mtlsPort = Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), 10); + + assert(Number.isInteger(mtlsPort) && mtlsPort > 0 && mtlsPort <= 65535, `Invalid mtls port: ${mtlsPort}`); + const c2URL = `mtls://${mtlsHost}:${mtlsPort}`; + const existingBeaconIDs = new Set(); + + let tempDir: string | undefined; + let implantPath: string | undefined; + let implantProc: ChildProcess | undefined; + let implantOutput: ReturnType | undefined; + let interactiveBeacon: InteractiveBeaconInstance | undefined; + let remoteTransferDir: string | undefined; + let beaconID: string | undefined; + let mtlsJobId: number | undefined; + + await client.connect(); + try { + const version = await client.getVersion(); + console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); + + const operators = await client.operators(); + console.log("operators", operators.map((o) => o.Name)); + + const sessions = await client.sessions(); + console.log("sessions", sessions.length); + + const beacons = await client.beacons(); + console.log("beacons", beacons.length); + for (const beacon of beacons) { + existingBeaconIDs.add(beacon.ID); + } + + const mtlsListener = await client.startMTLSListener(mtlsBindHost, mtlsPort, 60); + mtlsJobId = mtlsListener.JobID; + console.log("mtls listener started", { + bindHost: mtlsBindHost, + host: mtlsHost, + port: mtlsPort, + jobId: mtlsJobId, + }); + + const implantName = `e2e-beacon-${goos}-${goarch}-${Date.now()}`; + console.log("generate beacon", { + implantName, + goos, + goarch, + c2URL, + beaconIntervalSeconds: BEACON_INTERVAL_SECONDS, + }); + const implantConfig = sliver.clientpb.ImplantConfig.create({ + GOOS: goos, + GOARCH: goarch, + C2: [{ URL: c2URL }], + HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, + Debug: false, + ObfuscateSymbols: false, + IsBeacon: true, + BeaconInterval: BEACON_INTERVAL_NS, + BeaconJitter: "0", + IncludeMTLS: true, + Format: sliver.clientpb.OutputFormat.EXECUTABLE, + IsSharedLib: false, + IsService: false, + IsShellcode: false, + }); + const generated = await client.generate(implantConfig, 300); + assert(generated !== undefined, "Generate returned no file"); + assert(generated.Data.length > 0, "Generated beacon file is empty"); + + tempDir = await mkdtemp(path.join(os.tmpdir(), "sliver-script-beacon-")); + const generatedName = generated.Name.trim() || implantName; + const filename = path.basename(generatedName); + implantPath = path.join(tempDir, filename); + await writeFile(implantPath, generated.Data, { mode: 0o700 }); + if (process.platform !== "win32") { + await chmod(implantPath, 0o700); + } + + const spawnedImplant = spawn(implantPath, [], { stdio: ["ignore", "pipe", "pipe"] }); + implantProc = spawnedImplant; + implantOutput = collectOutput(spawnedImplant); + const implantPid = spawnedImplant.pid; + assert(implantPid !== undefined, "Failed to start beacon process"); + console.log("beacon implant started", { path: implantPath, pid: implantPid }); + + const beacon = await waitForBeacon( + client, + BEACON_TIMEOUT_SECONDS, + (candidate) => + !existingBeaconIDs.has(candidate.ID) && + candidate.OS.toLowerCase() === goos && + candidate.Arch.toLowerCase() === goarch, + ); + beaconID = beacon.ID; + interactiveBeacon = client.interactBeacon(beacon.ID); + console.log("beacon created", { id: beacon.ID, pid: beacon.PID, transport: beacon.Transport }); + + const nonce = randomInt(1, 2_000_000_000); + const pingQueued = await interactiveBeacon.ping(nonce, 120); + const ping = await decodeBeaconTaskResponse( + client, + beacon.ID, + pingQueued, + sliver.sliverpb.Ping.decode, + "beacon ping", + 180, + ); + assert(ping.Nonce === nonce, `Beacon ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); + + const pwdQueued = await interactiveBeacon.pwd(120); + const pwd = await decodeBeaconTaskResponse( + client, + beacon.ID, + pwdQueued, + sliver.sliverpb.Pwd.decode, + "beacon pwd", + 180, + ); + assert(pwd.Path.trim().length > 0, "beacon pwd returned an empty path"); + + const ls = await interactiveBeacon.ls(".", 180); + assert(ls.Exists, `beacon ls reported missing path: ${ls.Path}`); + assert(ls.Files.length > 0, `beacon ls returned no files for path: ${ls.Path}`); + + const psQueued = await interactiveBeacon.ps(false, 120); + const ps = await decodeBeaconTaskResponse( + client, + beacon.ID, + psQueued, + sliver.sliverpb.Ps.decode, + "beacon ps", + 180, + ); + assert(ps.Processes.length > 0, "beacon ps returned no processes"); + const selfProcess = ps.Processes.find((proc) => proc.Pid === implantPid); + assert(selfProcess !== undefined, `beacon ps output missing implant process pid ${implantPid}`); + + const ifconfigQueued = await interactiveBeacon.ifconfig(120); + const ifconfig = await decodeBeaconTaskResponse( + client, + beacon.ID, + ifconfigQueued, + sliver.sliverpb.Ifconfig.decode, + "beacon ifconfig", + 180, + ); + assert(ifconfig.NetInterfaces.length > 0, "beacon ifconfig returned no interfaces"); + + const lsFromPwd = await interactiveBeacon.ls(pwd.Path, 180); + assert(lsFromPwd.Exists, `beacon ls on pwd path reported missing path: ${lsFromPwd.Path}`); + + let netstatEntries: number | undefined; + try { + const netstatQueued = await interactiveBeacon.netstat(30); + const netstat = await decodeBeaconTaskResponse( + client, + beacon.ID, + netstatQueued, + sliver.sliverpb.Netstat.decode, + "beacon netstat", + 60, + ); + assert(Array.isArray(netstat.Entries), "beacon netstat entries were not returned as an array"); + if (netstat.Entries.length > 0) { + assert(netstat.Entries[0].Protocol.trim().length > 0, "beacon netstat entry missing protocol"); + } + netstatEntries = netstat.Entries.length; + } catch (err) { + console.warn("beacon netstat check skipped", err); + } + + console.log("beacon command checks", { + pwd: pwd.Path, + lsPath: ls.Path, + lsCount: ls.Files.length, + lsFromPwdPath: lsFromPwd.Path, + lsFromPwdCount: lsFromPwd.Files.length, + psCount: ps.Processes.length, + selfProcess: { + pid: selfProcess.Pid, + executable: selfProcess.Executable, + }, + ifaces: ifconfig.NetInterfaces.map((iface) => iface.Name), + netstatEntries, + }); + + const transferSourceDir = path.join(tempDir, "transfer-source"); + const transferDownloadedDir = path.join(tempDir, "transfer-downloaded"); + await Promise.all([ + mkdir(transferSourceDir, { recursive: true }), + mkdir(transferDownloadedDir, { recursive: true }), + ]); + + remoteTransferDir = path.join(pwd.Path, `.sliver-e2e-beacon-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`); + const mkdirQueued = await interactiveBeacon.mkdir(remoteTransferDir, 120); + await decodeBeaconTaskResponse( + client, + beacon.ID, + mkdirQueued, + sliver.sliverpb.Mkdir.decode, + "beacon mkdir transfer dir", + 180, + ); + + const transferSpecs = [ + { name: "tiny.bin", size: 127 }, + { name: "small.bin", size: 4099 }, + { name: "medium.bin", size: 131072 }, + { name: "large.bin", size: 1048576 }, + ]; + + for (const spec of transferSpecs) { + const sourcePath = path.join(transferSourceDir, spec.name); + const downloadedPath = path.join(transferDownloadedDir, spec.name); + const remotePath = path.join(remoteTransferDir, spec.name); + const sourceData = randomBytes(spec.size); + await writeFile(sourcePath, sourceData); + + const sourceFileData = await readFile(sourcePath); + const sourceMd5 = md5Hex(sourceFileData); + + const uploadQueued = await interactiveBeacon.upload(remotePath, sourceFileData, 180); + await decodeBeaconTaskResponse( + client, + beacon.ID, + uploadQueued, + sliver.sliverpb.Upload.decode, + `beacon upload ${spec.name}`, + 240, + ); + + const downloadQueued = await client.rpc.download({ + Path: remotePath, + Request: { + Async: true, + Timeout: "180", + BeaconID: beacon.ID, + SessionID: "", + }, + }); + const download = await decodeBeaconTaskResponse( + client, + beacon.ID, + downloadQueued, + sliver.sliverpb.Download.decode, + `beacon download ${spec.name}`, + 240, + ); + const downloadedData = await decodeDownloadData(download); + const downloadedMd5 = md5Hex(downloadedData); + assert( + downloadedMd5 === sourceMd5, + `beacon md5 mismatch for ${spec.name}: source=${sourceMd5}, downloaded=${downloadedMd5}`, + ); + assert( + downloadedData.equals(sourceFileData), + `beacon byte mismatch for ${spec.name}: sourceLength=${sourceFileData.length}, downloadedLength=${downloadedData.length}`, + ); + + await writeFile(downloadedPath, downloadedData); + const downloadedFileData = await readFile(downloadedPath); + const downloadedFileMd5 = md5Hex(downloadedFileData); + assert( + downloadedFileMd5 === sourceMd5, + `beacon saved downloaded file md5 mismatch for ${spec.name}: source=${sourceMd5}, saved=${downloadedFileMd5}`, + ); + + console.log("beacon file transfer verified", { + file: spec.name, + size: spec.size, + md5: sourceMd5, + }); + } + + const info = await waitForBeacon(client, 60, (candidate) => candidate.ID === beacon.ID); + assert(info.ID === beacon.ID, "Beacon info did not return expected beacon id"); + assert(info.OS.toLowerCase() === goos, `Beacon info OS mismatch: expected ${goos}, got ${info.OS}`); + assert(info.Arch.toLowerCase() === goarch, `Beacon info arch mismatch: expected ${goarch}, got ${info.Arch}`); + assert(info.Transport.toLowerCase().includes("mtls"), `Expected beacon mtls transport, got ${info.Transport}`); + assert(info.ActiveC2.toLowerCase().includes("mtls://"), `Expected beacon mtls c2, got ${info.ActiveC2}`); + assert(info.PID === implantPid, `Beacon PID mismatch: expected ${implantPid}, got ${info.PID}`); + printBeaconInfoSummary(info); + } finally { + if (interactiveBeacon && remoteTransferDir && beaconID) { + try { + const rmQueued = await interactiveBeacon.rm(remoteTransferDir, true, true, 120); + await decodeBeaconTaskResponse( + client, + beaconID, + rmQueued, + sliver.sliverpb.Rm.decode, + "beacon rm transfer dir", + 180, + ); + } catch (err) { + console.error(`failed to remove beacon remote transfer dir ${remoteTransferDir}`, err); + } + } + if (mtlsJobId !== undefined) { + try { + await client.killJob(mtlsJobId, 30); + } catch (err) { + console.error(`failed to stop mtls listener job ${mtlsJobId}`, err); + } + } + if (implantProc) { + await terminateChildProcess(implantProc); + if (implantOutput) { + const stdout = implantOutput.stdout().trim(); + const stderr = implantOutput.stderr().trim(); + if (stdout.length > 0) { + console.log("beacon implant stdout tail", stdout.split(/\r?\n/).slice(-10).join("\n")); + } + if (stderr.length > 0) { + console.log("beacon implant stderr tail", stderr.split(/\r?\n/).slice(-10).join("\n")); + } + } + } + if (tempDir) { + await rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }); + } + await client.disconnect(); + } +} + +void main().catch((err) => { + console.error(err); + process.exit(1); +}); diff --git a/e2e/status.ts b/e2e/session.ts similarity index 80% rename from e2e/status.ts rename to e2e/session.ts index b0953ed..ee50660 100644 --- a/e2e/status.ts +++ b/e2e/session.ts @@ -2,12 +2,13 @@ import * as fs from "node:fs"; import * as os from "node:os"; import * as path from "node:path"; import { spawn, type ChildProcess } from "node:child_process"; -import { mkdtemp, rm, writeFile, chmod } from "node:fs/promises"; -import { randomInt } from "node:crypto"; +import { mkdtemp, mkdir, readFile, rm, writeFile, chmod } from "node:fs/promises"; +import { createHash, randomBytes, randomInt } from "node:crypto"; type SliverScriptModule = typeof import(".."); type SliverClientInstance = InstanceType; type SessionInfo = Awaited>[number]; +type InteractiveSessionInstance = ReturnType; function findRepoRoot(startDir: string): string | undefined { let dir = path.resolve(startDir); @@ -41,7 +42,6 @@ function loadLocalSliverScript(repoRoot: string): SliverScriptModule { const REPO_ROOT = guessRepoRoot(); const CONFIG_PATH = process.env.SLIVER_CONFIG_FILE ?? path.join(REPO_ROOT, "localhost.cfg"); -const WAIT_TASKS = process.env.SLIVER_WAIT_TASKS === "1"; const SESSION_TIMEOUT_SECONDS = 180; const DEFAULT_HTTP_C2_PROFILE = "default"; @@ -155,6 +155,10 @@ function printInfoSummary(session: SessionInfo): void { }); } +function md5Hex(data: Buffer): string { + return createHash("md5").update(data).digest("hex"); +} + async function main() { if (!fs.existsSync(CONFIG_PATH)) { console.error(`Missing config file: ${CONFIG_PATH}`); @@ -178,6 +182,8 @@ async function main() { let implantPath: string | undefined; let implantProc: ChildProcess | undefined; let implantOutput: ReturnType | undefined; + let interactiveSession: InteractiveSessionInstance | undefined; + let remoteTransferDir: string | undefined; let mtlsJobId: number | undefined; await client.connect(); @@ -252,7 +258,7 @@ async function main() { ); console.log("session created", { id: session.ID, pid: session.PID, transport: session.Transport }); - const interactiveSession = client.interactSession(session.ID); + interactiveSession = client.interactSession(session.ID); const nonce = randomInt(1, 2_000_000_000); const ping = await interactiveSession.ping(nonce, 60); assert(ping.Nonce === nonce, `Session ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); @@ -302,6 +308,60 @@ async function main() { netstatEntries, }); + const transferSourceDir = path.join(tempDir, "transfer-source"); + const transferDownloadedDir = path.join(tempDir, "transfer-downloaded"); + await Promise.all([ + mkdir(transferSourceDir, { recursive: true }), + mkdir(transferDownloadedDir, { recursive: true }), + ]); + + remoteTransferDir = path.join(pwd.Path, `.sliver-e2e-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`); + await interactiveSession.mkdir(remoteTransferDir, 60); + + const transferSpecs = [ + { name: "tiny.bin", size: 127 }, + { name: "small.bin", size: 4099 }, + { name: "medium.bin", size: 131072 }, + { name: "large.bin", size: 1048576 }, + ]; + + for (const spec of transferSpecs) { + const sourcePath = path.join(transferSourceDir, spec.name); + const downloadedPath = path.join(transferDownloadedDir, spec.name); + const remotePath = path.join(remoteTransferDir, spec.name); + const sourceData = randomBytes(spec.size); + await writeFile(sourcePath, sourceData); + + const sourceFileData = await readFile(sourcePath); + const sourceMd5 = md5Hex(sourceFileData); + await interactiveSession.upload(remotePath, sourceFileData, 120); + + const downloadedData = await interactiveSession.download(remotePath, 120); + const downloadedMd5 = md5Hex(downloadedData); + assert( + downloadedMd5 === sourceMd5, + `md5 mismatch for ${spec.name}: source=${sourceMd5}, downloaded=${downloadedMd5}`, + ); + assert( + downloadedData.equals(sourceFileData), + `byte mismatch for ${spec.name}: sourceLength=${sourceFileData.length}, downloadedLength=${downloadedData.length}`, + ); + + await writeFile(downloadedPath, downloadedData); + const downloadedFileData = await readFile(downloadedPath); + const downloadedFileMd5 = md5Hex(downloadedFileData); + assert( + downloadedFileMd5 === sourceMd5, + `saved downloaded file md5 mismatch for ${spec.name}: source=${sourceMd5}, saved=${downloadedFileMd5}`, + ); + + console.log("file transfer verified", { + file: spec.name, + size: spec.size, + md5: sourceMd5, + }); + } + const info = await waitForSession(client, 30, (candidate) => candidate.ID === session.ID); assert(info.ID === session.ID, "Session info did not return expected session id"); assert(info.OS.toLowerCase() === goos, `Session info OS mismatch: expected ${goos}, got ${info.OS}`); @@ -310,22 +370,14 @@ async function main() { assert(info.ActiveC2.toLowerCase().includes("mtls://"), `Expected mtls c2, got ${info.ActiveC2}`); assert(info.PID === implantPid, `Session PID mismatch: expected ${implantPid}, got ${info.PID}`); printInfoSummary(info); - - if (beacons.length > 0) { - const beacon = client.interactBeacon(beacons[0].ID); - const task = await beacon.lsTask("."); - console.log("beacon ls queued", task.id); - - if (WAIT_TASKS) { - try { - const ls = await task.wait(60); - console.log("beacon ls result", { path: ls.Path, count: ls.Files.length }); - } catch (err) { - console.error("beacon ls wait failed", err); - } + } finally { + if (interactiveSession && remoteTransferDir) { + try { + await interactiveSession.rm(remoteTransferDir, true, true, 60); + } catch (err) { + console.error(`failed to remove remote transfer dir ${remoteTransferDir}`, err); } } - } finally { if (mtlsJobId !== undefined) { try { await client.killJob(mtlsJobId, 30); From 524e00c1550b5652ff3b29c82b84d39795fcb86a Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 15:31:01 -0800 Subject: [PATCH 13/14] Improve beacon tests --- e2e/beacon.ts | 76 +++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 11 deletions(-) diff --git a/e2e/beacon.ts b/e2e/beacon.ts index 3581fe1..bd13cbb 100644 --- a/e2e/beacon.ts +++ b/e2e/beacon.ts @@ -48,6 +48,10 @@ const DEFAULT_HTTP_C2_PROFILE = "default"; const BEACON_INTERVAL_SECONDS = 20; const BEACON_INTERVAL_NS = String(BEACON_INTERVAL_SECONDS * 1_000_000_000); const BEACON_TIMEOUT_SECONDS = 240; +const BEACON_OVERALL_TIMEOUT_SECONDS = 25 * 60; +const BEACON_TASK_POLL_RPC_TIMEOUT_SECONDS = 20; +const BEACON_TASK_CONTENT_RPC_TIMEOUT_SECONDS = 45; +const BEACON_DOWNLOAD_RPC_TIMEOUT_SECONDS = 45; function assert(condition: unknown, message: string): asserts condition { if (!condition) { @@ -85,6 +89,25 @@ function sleep(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); } +async function withRpcTimeout( + timeoutSeconds: number, + label: string, + action: (signal: AbortSignal) => Promise, +): Promise { + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), timeoutSeconds * 1000); + try { + return await action(controller.signal); + } catch (err) { + if (controller.signal.aborted) { + throw new Error(`${label} timed out after ${timeoutSeconds}s`); + } + throw err; + } finally { + clearTimeout(timer); + } +} + async function waitForBeacon( client: SliverClientInstance, timeoutSeconds: number, @@ -110,7 +133,20 @@ async function waitForBeaconTaskComplete( ): Promise { const deadline = Date.now() + timeoutSeconds * 1000; while (Date.now() < deadline) { - const tasks = await client.rpc.getBeaconTasks({ ID: beaconID }); + let tasks; + try { + tasks = await withRpcTimeout( + BEACON_TASK_POLL_RPC_TIMEOUT_SECONDS, + `getBeaconTasks(${beaconID})`, + (signal) => client.rpc.getBeaconTasks({ ID: beaconID }, { signal }), + ); + } catch (err) { + if (Date.now() >= deadline) { + throw err; + } + await sleep(1000); + continue; + } const task = tasks.Tasks.find((candidate) => candidate.ID === taskID); if (!task) { await sleep(1000); @@ -147,7 +183,11 @@ async function decodeBeaconTaskResponse { const taskID = getQueuedTaskID(queued, label); await waitForBeaconTaskComplete(client, beaconID, taskID, timeoutSeconds); - const content = await client.rpc.getBeaconTaskContent({ ID: taskID }); + const content = await withRpcTimeout( + BEACON_TASK_CONTENT_RPC_TIMEOUT_SECONDS, + `getBeaconTaskContent(${taskID})`, + (signal) => client.rpc.getBeaconTaskContent({ ID: taskID }, { signal }), + ); assert(content.Response.length > 0, `${label} task returned no response bytes`); const decoded = decoder(content.Response); const err = decoded.Response?.Err?.trim(); @@ -229,6 +269,11 @@ function printBeaconInfoSummary(beacon: BeaconInfo): void { } async function main() { + const overallTimer = setTimeout(() => { + console.error(`Beacon e2e exceeded ${BEACON_OVERALL_TIMEOUT_SECONDS}s overall timeout`); + process.exit(1); + }, BEACON_OVERALL_TIMEOUT_SECONDS * 1000); + if (!fs.existsSync(CONFIG_PATH)) { console.error(`Missing config file: ${CONFIG_PATH}`); process.exit(2); @@ -472,15 +517,23 @@ async function main() { 240, ); - const downloadQueued = await client.rpc.download({ - Path: remotePath, - Request: { - Async: true, - Timeout: "180", - BeaconID: beacon.ID, - SessionID: "", - }, - }); + const downloadQueued = await withRpcTimeout( + BEACON_DOWNLOAD_RPC_TIMEOUT_SECONDS, + `download queue ${spec.name}`, + (signal) => + client.rpc.download( + { + Path: remotePath, + Request: { + Async: true, + Timeout: "180", + BeaconID: beacon.ID, + SessionID: "", + }, + }, + { signal }, + ), + ); const download = await decodeBeaconTaskResponse( client, beacon.ID, @@ -524,6 +577,7 @@ async function main() { assert(info.PID === implantPid, `Beacon PID mismatch: expected ${implantPid}, got ${info.PID}`); printBeaconInfoSummary(info); } finally { + clearTimeout(overallTimer); if (interactiveBeacon && remoteTransferDir && beaconID) { try { const rmQueued = await interactiveBeacon.rm(remoteTransferDir, true, true, 120); From 0f15b2aebc72fad18193bce0f9dc311dc3301aab Mon Sep 17 00:00:00 2001 From: moloch-- <875022+moloch--@users.noreply.github.com> Date: Sun, 1 Mar 2026 17:15:41 -0800 Subject: [PATCH 14/14] Add http, and wg tests --- e2e/beacon.ts | 380 +++++++++++++++++++++++++++++++++++----------- e2e/run.mjs | 60 +++++++- e2e/session.ts | 404 +++++++++++++++++++++++++++++++++++++++++-------- 3 files changed, 689 insertions(+), 155 deletions(-) diff --git a/e2e/beacon.ts b/e2e/beacon.ts index bd13cbb..68770d7 100644 --- a/e2e/beacon.ts +++ b/e2e/beacon.ts @@ -12,6 +12,20 @@ type SliverClientInstance = InstanceType; type BeaconInfo = Awaited>[number]; type InteractiveBeaconInstance = ReturnType; +type BeaconTransportName = "mtls" | "http" | "wg"; + +interface BeaconTransportSpec { + name: BeaconTransportName; + c2URL: string; + expectedTransportToken: string; + expectedActiveC2Token: string; + bindHost: string; + host: string; + port: number; + wgNPort?: number; + wgKeyPort?: number; +} + const gunzip = promisify(gunzipCb); function findRepoRoot(startDir: string): string | undefined { @@ -47,11 +61,11 @@ const CONFIG_PATH = process.env.SLIVER_CONFIG_FILE ?? path.join(REPO_ROOT, "loca const DEFAULT_HTTP_C2_PROFILE = "default"; const BEACON_INTERVAL_SECONDS = 20; const BEACON_INTERVAL_NS = String(BEACON_INTERVAL_SECONDS * 1_000_000_000); -const BEACON_TIMEOUT_SECONDS = 240; -const BEACON_OVERALL_TIMEOUT_SECONDS = 25 * 60; +const BEACON_TIMEOUT_SECONDS = 300; const BEACON_TASK_POLL_RPC_TIMEOUT_SECONDS = 20; const BEACON_TASK_CONTENT_RPC_TIMEOUT_SECONDS = 45; const BEACON_DOWNLOAD_RPC_TIMEOUT_SECONDS = 45; +const BEACON_PER_TRANSPORT_OVERALL_TIMEOUT_SECONDS = 25 * 60; function assert(condition: unknown, message: string): asserts condition { if (!condition) { @@ -59,6 +73,12 @@ function assert(condition: unknown, message: string): asserts condition { } } +function parsePort(rawValue: string, name: string): number { + const parsed = Number.parseInt(rawValue, 10); + assert(Number.isInteger(parsed) && parsed > 0 && parsed <= 65535, `Invalid ${name}: ${rawValue}`); + return parsed; +} + function nodePlatformToGoOS(platform: NodeJS.Platform): string { switch (platform) { case "darwin": @@ -268,30 +288,69 @@ function printBeaconInfoSummary(beacon: BeaconInfo): void { }); } -async function main() { - const overallTimer = setTimeout(() => { - console.error(`Beacon e2e exceeded ${BEACON_OVERALL_TIMEOUT_SECONDS}s overall timeout`); - process.exit(1); - }, BEACON_OVERALL_TIMEOUT_SECONDS * 1000); +function createBeaconImplantConfig( + sliver: SliverScriptModule, + goos: string, + goarch: string, + transport: BeaconTransportSpec, +) { + return sliver.clientpb.ImplantConfig.create({ + GOOS: goos, + GOARCH: goarch, + C2: [{ URL: transport.c2URL }], + HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, + Debug: false, + ObfuscateSymbols: false, + IsBeacon: true, + BeaconInterval: BEACON_INTERVAL_NS, + BeaconJitter: "0", + IncludeMTLS: transport.name === "mtls", + IncludeHTTP: transport.name === "http", + IncludeWG: transport.name === "wg", + WGKeyExchangePort: transport.wgKeyPort ?? 0, + WGTcpCommsPort: transport.wgNPort ?? 0, + Format: sliver.clientpb.OutputFormat.EXECUTABLE, + IsSharedLib: false, + IsService: false, + IsShellcode: false, + }); +} - if (!fs.existsSync(CONFIG_PATH)) { - console.error(`Missing config file: ${CONFIG_PATH}`); - process.exit(2); +async function startBeaconTransportListener( + client: SliverClientInstance, + transport: BeaconTransportSpec, +): Promise { + if (transport.name === "mtls") { + const listener = await client.startMTLSListener(transport.bindHost, transport.port, 60); + return listener.JobID; } - const sliver = loadLocalSliverScript(REPO_ROOT); - const config = await sliver.ParseConfigFile(CONFIG_PATH); - const client = new sliver.SliverClient(config); - const goos = nodePlatformToGoOS(process.platform); - const goarch = nodeArchToGoArch(process.arch); - const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; - const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; - const mtlsPort = Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), 10); + if (transport.name === "http") { + const listener = await client.startHTTPListener(transport.host, transport.bindHost, transport.port, "", false, 60); + return listener.JobID; + } - assert(Number.isInteger(mtlsPort) && mtlsPort > 0 && mtlsPort <= 65535, `Invalid mtls port: ${mtlsPort}`); - const c2URL = `mtls://${mtlsHost}:${mtlsPort}`; - const existingBeaconIDs = new Set(); + assert(transport.wgNPort !== undefined, "wg nport is required"); + assert(transport.wgKeyPort !== undefined, "wg keyport is required"); + const listener = await client.startWGListener( + transport.bindHost, + transport.port, + "100.64.0.1", + transport.wgNPort, + transport.wgKeyPort, + 60, + ); + return listener.JobID; +} +async function runBeaconTransportChecks( + sliver: SliverScriptModule, + client: SliverClientInstance, + transport: BeaconTransportSpec, + goos: string, + goarch: string, + existingBeaconIDs: Set, +): Promise { let tempDir: string | undefined; let implantPath: string | undefined; let implantProc: ChildProcess | undefined; @@ -299,63 +358,35 @@ async function main() { let interactiveBeacon: InteractiveBeaconInstance | undefined; let remoteTransferDir: string | undefined; let beaconID: string | undefined; - let mtlsJobId: number | undefined; + let listenerJobId: number | undefined; - await client.connect(); try { - const version = await client.getVersion(); - console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); - - const operators = await client.operators(); - console.log("operators", operators.map((o) => o.Name)); - - const sessions = await client.sessions(); - console.log("sessions", sessions.length); - - const beacons = await client.beacons(); - console.log("beacons", beacons.length); - for (const beacon of beacons) { - existingBeaconIDs.add(beacon.ID); - } - - const mtlsListener = await client.startMTLSListener(mtlsBindHost, mtlsPort, 60); - mtlsJobId = mtlsListener.JobID; - console.log("mtls listener started", { - bindHost: mtlsBindHost, - host: mtlsHost, - port: mtlsPort, - jobId: mtlsJobId, + listenerJobId = await startBeaconTransportListener(client, transport); + console.log("listener started", { + transport: transport.name, + bindHost: transport.bindHost, + host: transport.host, + port: transport.port, + jobId: listenerJobId, + wgNPort: transport.wgNPort, + wgKeyPort: transport.wgKeyPort, }); - const implantName = `e2e-beacon-${goos}-${goarch}-${Date.now()}`; + const implantName = `e2e-beacon-${transport.name}-${goos}-${goarch}-${Date.now()}`; console.log("generate beacon", { + transport: transport.name, implantName, goos, goarch, - c2URL, + c2URL: transport.c2URL, beaconIntervalSeconds: BEACON_INTERVAL_SECONDS, }); - const implantConfig = sliver.clientpb.ImplantConfig.create({ - GOOS: goos, - GOARCH: goarch, - C2: [{ URL: c2URL }], - HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, - Debug: false, - ObfuscateSymbols: false, - IsBeacon: true, - BeaconInterval: BEACON_INTERVAL_NS, - BeaconJitter: "0", - IncludeMTLS: true, - Format: sliver.clientpb.OutputFormat.EXECUTABLE, - IsSharedLib: false, - IsService: false, - IsShellcode: false, - }); - const generated = await client.generate(implantConfig, 300); + + const generated = await client.generate(createBeaconImplantConfig(sliver, goos, goarch, transport), 300); assert(generated !== undefined, "Generate returned no file"); assert(generated.Data.length > 0, "Generated beacon file is empty"); - tempDir = await mkdtemp(path.join(os.tmpdir(), "sliver-script-beacon-")); + tempDir = await mkdtemp(path.join(os.tmpdir(), `sliver-script-beacon-${transport.name}-`)); const generatedName = generated.Name.trim() || implantName; const filename = path.basename(generatedName); implantPath = path.join(tempDir, filename); @@ -369,7 +400,7 @@ async function main() { implantOutput = collectOutput(spawnedImplant); const implantPid = spawnedImplant.pid; assert(implantPid !== undefined, "Failed to start beacon process"); - console.log("beacon implant started", { path: implantPath, pid: implantPid }); + console.log("beacon implant started", { transport: transport.name, path: implantPath, pid: implantPid }); const beacon = await waitForBeacon( client, @@ -377,11 +408,19 @@ async function main() { (candidate) => !existingBeaconIDs.has(candidate.ID) && candidate.OS.toLowerCase() === goos && - candidate.Arch.toLowerCase() === goarch, + candidate.Arch.toLowerCase() === goarch && + candidate.Transport.toLowerCase().includes(transport.expectedTransportToken), ); beaconID = beacon.ID; + existingBeaconIDs.add(beacon.ID); interactiveBeacon = client.interactBeacon(beacon.ID); - console.log("beacon created", { id: beacon.ID, pid: beacon.PID, transport: beacon.Transport }); + console.log("beacon created", { + transport: transport.name, + id: beacon.ID, + pid: beacon.PID, + beaconTransport: beacon.Transport, + activeC2: beacon.ActiveC2, + }); const nonce = randomInt(1, 2_000_000_000); const pingQueued = await interactiveBeacon.ping(nonce, 120); @@ -390,18 +429,84 @@ async function main() { beacon.ID, pingQueued, sliver.sliverpb.Ping.decode, - "beacon ping", + `beacon ping (${transport.name})`, 180, ); assert(ping.Nonce === nonce, `Beacon ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); + const executeNoEnvToken = `BEACON_EXEC_NOENV_${transport.name}_${Date.now()}_${randomInt(10_000, 99_999)}`; + const executeNoEnvQueued = await interactiveBeacon.execute( + "/bin/sh", + ["-c", `printf '%s' '${executeNoEnvToken}'`], + true, + 120, + ); + const executeNoEnv = await decodeBeaconTaskResponse( + client, + beacon.ID, + executeNoEnvQueued, + sliver.sliverpb.Execute.decode, + `beacon execute (no env, ${transport.name})`, + 180, + ); + assert(executeNoEnv.Status === 0, `beacon execute(no env) non-zero status: ${executeNoEnv.Status}`); + const executeNoEnvStdout = executeNoEnv.Stdout.toString("utf8"); + assert( + executeNoEnvStdout === executeNoEnvToken, + `beacon execute(no env) stdout mismatch: expected '${executeNoEnvToken}', got '${executeNoEnvStdout}'`, + ); + + const executeEnvValue = `BEACON_EXEC_ENV_${transport.name}_${Date.now()}_${randomInt(10_000, 99_999)}`; + const executeWithEnvQueued = await withRpcTimeout( + BEACON_DOWNLOAD_RPC_TIMEOUT_SECONDS, + `beacon execute queue (with env, ${transport.name})`, + (signal) => + client.rpc.execute( + { + Path: "/bin/sh", + Args: ["-c", 'printf "%s" "$BEACON_E2E_EXEC_ENV"'], + Output: true, + EnvInheritance: false, + Env: { + BEACON_E2E_EXEC_ENV: executeEnvValue, + }, + Request: { + Async: true, + Timeout: "180", + BeaconID: beacon.ID, + SessionID: "", + }, + }, + { signal }, + ), + ); + const executeWithEnv = await decodeBeaconTaskResponse( + client, + beacon.ID, + executeWithEnvQueued, + sliver.sliverpb.Execute.decode, + `beacon execute (with env, ${transport.name})`, + 180, + ); + assert(executeWithEnv.Status === 0, `beacon execute(with env) non-zero status: ${executeWithEnv.Status}`); + const executeWithEnvStdout = executeWithEnv.Stdout.toString("utf8"); + assert( + executeWithEnvStdout === executeEnvValue, + `beacon execute(with env) stdout mismatch: expected '${executeEnvValue}', got '${executeWithEnvStdout}'`, + ); + console.log("beacon execute rpc checks", { + transport: transport.name, + noEnvToken: executeNoEnvStdout, + envToken: executeWithEnvStdout, + }); + const pwdQueued = await interactiveBeacon.pwd(120); const pwd = await decodeBeaconTaskResponse( client, beacon.ID, pwdQueued, sliver.sliverpb.Pwd.decode, - "beacon pwd", + `beacon pwd (${transport.name})`, 180, ); assert(pwd.Path.trim().length > 0, "beacon pwd returned an empty path"); @@ -416,7 +521,7 @@ async function main() { beacon.ID, psQueued, sliver.sliverpb.Ps.decode, - "beacon ps", + `beacon ps (${transport.name})`, 180, ); assert(ps.Processes.length > 0, "beacon ps returned no processes"); @@ -429,7 +534,7 @@ async function main() { beacon.ID, ifconfigQueued, sliver.sliverpb.Ifconfig.decode, - "beacon ifconfig", + `beacon ifconfig (${transport.name})`, 180, ); assert(ifconfig.NetInterfaces.length > 0, "beacon ifconfig returned no interfaces"); @@ -445,7 +550,7 @@ async function main() { beacon.ID, netstatQueued, sliver.sliverpb.Netstat.decode, - "beacon netstat", + `beacon netstat (${transport.name})`, 60, ); assert(Array.isArray(netstat.Entries), "beacon netstat entries were not returned as an array"); @@ -458,6 +563,7 @@ async function main() { } console.log("beacon command checks", { + transport: transport.name, pwd: pwd.Path, lsPath: ls.Path, lsCount: ls.Files.length, @@ -479,14 +585,17 @@ async function main() { mkdir(transferDownloadedDir, { recursive: true }), ]); - remoteTransferDir = path.join(pwd.Path, `.sliver-e2e-beacon-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`); + remoteTransferDir = path.join( + pwd.Path, + `.sliver-e2e-beacon-${transport.name}-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`, + ); const mkdirQueued = await interactiveBeacon.mkdir(remoteTransferDir, 120); await decodeBeaconTaskResponse( client, beacon.ID, mkdirQueued, sliver.sliverpb.Mkdir.decode, - "beacon mkdir transfer dir", + `beacon mkdir transfer dir (${transport.name})`, 180, ); @@ -513,13 +622,13 @@ async function main() { beacon.ID, uploadQueued, sliver.sliverpb.Upload.decode, - `beacon upload ${spec.name}`, + `beacon upload ${spec.name} (${transport.name})`, 240, ); const downloadQueued = await withRpcTimeout( BEACON_DOWNLOAD_RPC_TIMEOUT_SECONDS, - `download queue ${spec.name}`, + `download queue ${spec.name} (${transport.name})`, (signal) => client.rpc.download( { @@ -539,7 +648,7 @@ async function main() { beacon.ID, downloadQueued, sliver.sliverpb.Download.decode, - `beacon download ${spec.name}`, + `beacon download ${spec.name} (${transport.name})`, 240, ); const downloadedData = await decodeDownloadData(download); @@ -562,6 +671,7 @@ async function main() { ); console.log("beacon file transfer verified", { + transport: transport.name, file: spec.name, size: spec.size, md5: sourceMd5, @@ -572,12 +682,17 @@ async function main() { assert(info.ID === beacon.ID, "Beacon info did not return expected beacon id"); assert(info.OS.toLowerCase() === goos, `Beacon info OS mismatch: expected ${goos}, got ${info.OS}`); assert(info.Arch.toLowerCase() === goarch, `Beacon info arch mismatch: expected ${goarch}, got ${info.Arch}`); - assert(info.Transport.toLowerCase().includes("mtls"), `Expected beacon mtls transport, got ${info.Transport}`); - assert(info.ActiveC2.toLowerCase().includes("mtls://"), `Expected beacon mtls c2, got ${info.ActiveC2}`); + assert( + info.Transport.toLowerCase().includes(transport.expectedTransportToken), + `Expected beacon ${transport.name} transport, got ${info.Transport}`, + ); + assert( + info.ActiveC2.toLowerCase().includes(transport.expectedActiveC2Token), + `Expected beacon ${transport.expectedActiveC2Token} c2, got ${info.ActiveC2}`, + ); assert(info.PID === implantPid, `Beacon PID mismatch: expected ${implantPid}, got ${info.PID}`); printBeaconInfoSummary(info); } finally { - clearTimeout(overallTimer); if (interactiveBeacon && remoteTransferDir && beaconID) { try { const rmQueued = await interactiveBeacon.rm(remoteTransferDir, true, true, 120); @@ -586,18 +701,18 @@ async function main() { beaconID, rmQueued, sliver.sliverpb.Rm.decode, - "beacon rm transfer dir", + `beacon rm transfer dir (${transport.name})`, 180, ); } catch (err) { console.error(`failed to remove beacon remote transfer dir ${remoteTransferDir}`, err); } } - if (mtlsJobId !== undefined) { + if (listenerJobId !== undefined) { try { - await client.killJob(mtlsJobId, 30); + await client.killJob(listenerJobId, 30); } catch (err) { - console.error(`failed to stop mtls listener job ${mtlsJobId}`, err); + console.error(`failed to stop listener job ${listenerJobId}`, err); } } if (implantProc) { @@ -616,6 +731,101 @@ async function main() { if (tempDir) { await rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }); } + } +} + +async function main() { + if (!fs.existsSync(CONFIG_PATH)) { + console.error(`Missing config file: ${CONFIG_PATH}`); + process.exit(2); + } + + const sliver = loadLocalSliverScript(REPO_ROOT); + const config = await sliver.ParseConfigFile(CONFIG_PATH); + const client = new sliver.SliverClient(config); + const goos = nodePlatformToGoOS(process.platform); + const goarch = nodeArchToGoArch(process.arch); + + const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; + const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; + const mtlsPort = parsePort(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), "SLIVER_E2E_MTLS_PORT"); + + const httpHost = process.env.SLIVER_E2E_HTTP_HOST ?? "localhost"; + const httpBindHost = process.env.SLIVER_E2E_HTTP_BIND_HOST ?? "127.0.0.1"; + const httpPort = parsePort(process.env.SLIVER_E2E_HTTP_PORT ?? String(mtlsPort + 1), "SLIVER_E2E_HTTP_PORT"); + + const wgHost = process.env.SLIVER_E2E_WG_HOST ?? "localhost"; + const wgBindHost = process.env.SLIVER_E2E_WG_BIND_HOST ?? "127.0.0.1"; + const wgPort = parsePort(process.env.SLIVER_E2E_WG_PORT ?? String(httpPort + 1), "SLIVER_E2E_WG_PORT"); + const wgNPort = parsePort(process.env.SLIVER_E2E_WG_NPORT ?? String(wgPort + 1), "SLIVER_E2E_WG_NPORT"); + const wgKeyPort = parsePort(process.env.SLIVER_E2E_WG_KEYPORT ?? String(wgPort + 2), "SLIVER_E2E_WG_KEYPORT"); + + const uniquePorts = new Set([mtlsPort, httpPort, wgPort, wgNPort, wgKeyPort]); + assert(uniquePorts.size === 5, "Transport listener ports must be unique"); + + const transportSpecs: BeaconTransportSpec[] = [ + { + name: "mtls", + c2URL: `mtls://${mtlsHost}:${mtlsPort}`, + expectedTransportToken: "mtls", + expectedActiveC2Token: "mtls://", + bindHost: mtlsBindHost, + host: mtlsHost, + port: mtlsPort, + }, + { + name: "http", + c2URL: `http://${httpHost}:${httpPort}`, + expectedTransportToken: "http", + expectedActiveC2Token: "http://", + bindHost: httpBindHost, + host: httpHost, + port: httpPort, + }, + { + name: "wg", + c2URL: `wg://${wgHost}:${wgPort}`, + expectedTransportToken: "wg", + expectedActiveC2Token: "wg://", + bindHost: wgBindHost, + host: wgHost, + port: wgPort, + wgNPort, + wgKeyPort, + }, + ]; + + const overallTimeoutSeconds = + BEACON_PER_TRANSPORT_OVERALL_TIMEOUT_SECONDS * transportSpecs.length + 5 * 60; + const overallTimer = setTimeout(() => { + console.error(`Beacon e2e exceeded ${overallTimeoutSeconds}s overall timeout`); + process.exit(1); + }, overallTimeoutSeconds * 1000); + + const existingBeaconIDs = new Set(); + + await client.connect(); + try { + const version = await client.getVersion(); + console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); + + const operators = await client.operators(); + console.log("operators", operators.map((o) => o.Name)); + + const sessions = await client.sessions(); + console.log("sessions", sessions.length); + + const beacons = await client.beacons(); + console.log("beacons", beacons.length); + for (const beacon of beacons) { + existingBeaconIDs.add(beacon.ID); + } + + for (const transport of transportSpecs) { + await runBeaconTransportChecks(sliver, client, transport, goos, goarch, existingBeaconIDs); + } + } finally { + clearTimeout(overallTimer); await client.disconnect(); } } diff --git a/e2e/run.mjs b/e2e/run.mjs index 53e25e3..575a2ef 100644 --- a/e2e/run.mjs +++ b/e2e/run.mjs @@ -241,6 +241,16 @@ async function allocateFreePort(host) { }); } +async function allocateUniquePort(host, usedPorts) { + for (let attempt = 0; attempt < 25; attempt++) { + const port = await allocateFreePort(host); + if (!usedPorts.has(port)) { + return port; + } + } + throw new Error(`Failed to allocate a unique free port on ${host}`); +} + function onceProcessExit(child) { return new Promise((resolve) => { child.once("exit", resolve); @@ -350,20 +360,48 @@ async function main() { ); } + const usedPorts = new Set(); + const parsePort = (name, rawValue) => { + const port = Number.parseInt(rawValue, 10); + if (!Number.isInteger(port) || port <= 0 || port > 65535) { + throw new Error(`Invalid ${name} value: ${rawValue}`); + } + return port; + }; + const resolvePort = async (name, rawValue, host) => { + const port = rawValue ? parsePort(name, rawValue) : await allocateUniquePort(host, usedPorts); + if (usedPorts.has(port)) { + throw new Error(`${name} port collision: ${port}`); + } + usedPorts.add(port); + return port; + }; + const lport = process.env.SLIVER_E2E_LPORT - ? Number.parseInt(process.env.SLIVER_E2E_LPORT, 10) - : await allocateFreePort(daemonHost); + ? parsePort("SLIVER_E2E_LPORT", process.env.SLIVER_E2E_LPORT) + : await allocateUniquePort(daemonHost, usedPorts); if (!Number.isInteger(lport) || lport <= 0 || lport > 65535) { throw new Error(`Invalid SLIVER_E2E_LPORT value: ${process.env.SLIVER_E2E_LPORT}`); } + if (usedPorts.has(lport)) { + throw new Error(`SLIVER_E2E_LPORT port collision: ${lport}`); + } + usedPorts.add(lport); const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST || daemonHost; const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST || operatorHost; - const mtlsPort = process.env.SLIVER_E2E_MTLS_PORT - ? Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT, 10) - : await allocateFreePort(mtlsBindHost); + const mtlsPort = await resolvePort("SLIVER_E2E_MTLS_PORT", process.env.SLIVER_E2E_MTLS_PORT, mtlsBindHost); if (!Number.isInteger(mtlsPort) || mtlsPort <= 0 || mtlsPort > 65535) { throw new Error(`Invalid SLIVER_E2E_MTLS_PORT value: ${process.env.SLIVER_E2E_MTLS_PORT}`); } + const httpBindHost = process.env.SLIVER_E2E_HTTP_BIND_HOST || daemonHost; + const httpHost = process.env.SLIVER_E2E_HTTP_HOST || operatorHost; + const httpPort = await resolvePort("SLIVER_E2E_HTTP_PORT", process.env.SLIVER_E2E_HTTP_PORT, httpBindHost); + + const wgBindHost = process.env.SLIVER_E2E_WG_BIND_HOST || daemonHost; + const wgHost = process.env.SLIVER_E2E_WG_HOST || operatorHost; + const wgPort = await resolvePort("SLIVER_E2E_WG_PORT", process.env.SLIVER_E2E_WG_PORT, wgBindHost); + const wgNPort = await resolvePort("SLIVER_E2E_WG_NPORT", process.env.SLIVER_E2E_WG_NPORT, wgBindHost); + const wgKeyPort = await resolvePort("SLIVER_E2E_WG_KEYPORT", process.env.SLIVER_E2E_WG_KEYPORT, wgBindHost); const operatorName = process.env.SLIVER_E2E_OPERATOR || "e2e"; @@ -395,6 +433,10 @@ async function main() { log(`Using operator config endpoint: ${operatorHost}:${lport}`); log(`Using mTLS listener bind: ${mtlsBindHost}:${mtlsPort}`); log(`Using implant mTLS endpoint: ${mtlsHost}:${mtlsPort}`); + log(`Using HTTP listener bind: ${httpBindHost}:${httpPort}`); + log(`Using implant HTTP endpoint: ${httpHost}:${httpPort}`); + log(`Using WireGuard listener bind: ${wgBindHost}:${wgPort}`); + log(`Using implant WireGuard endpoint: ${wgHost}:${wgPort} (nport=${wgNPort}, keyport=${wgKeyPort})`); await ensureSliverServerBuilt(sharedEnv); @@ -469,6 +511,14 @@ async function main() { SLIVER_E2E_MTLS_BIND_HOST: mtlsBindHost, SLIVER_E2E_MTLS_HOST: mtlsHost, SLIVER_E2E_MTLS_PORT: String(mtlsPort), + SLIVER_E2E_HTTP_BIND_HOST: httpBindHost, + SLIVER_E2E_HTTP_HOST: httpHost, + SLIVER_E2E_HTTP_PORT: String(httpPort), + SLIVER_E2E_WG_BIND_HOST: wgBindHost, + SLIVER_E2E_WG_HOST: wgHost, + SLIVER_E2E_WG_PORT: String(wgPort), + SLIVER_E2E_WG_NPORT: String(wgNPort), + SLIVER_E2E_WG_KEYPORT: String(wgKeyPort), }; if (process.env.SLIVER_WAIT_TASKS) { testEnv.SLIVER_WAIT_TASKS = process.env.SLIVER_WAIT_TASKS; diff --git a/e2e/session.ts b/e2e/session.ts index ee50660..c09c960 100644 --- a/e2e/session.ts +++ b/e2e/session.ts @@ -10,6 +10,20 @@ type SliverClientInstance = InstanceType; type SessionInfo = Awaited>[number]; type InteractiveSessionInstance = ReturnType; +type SessionTransportName = "mtls" | "http" | "wg"; + +interface SessionTransportSpec { + name: SessionTransportName; + c2URL: string; + expectedTransportToken: string; + expectedActiveC2Token: string; + bindHost: string; + host: string; + port: number; + wgNPort?: number; + wgKeyPort?: number; +} + function findRepoRoot(startDir: string): string | undefined { let dir = path.resolve(startDir); for (let i = 0; i < 10; i++) { @@ -51,6 +65,12 @@ function assert(condition: unknown, message: string): asserts condition { } } +function parsePort(rawValue: string, name: string): number { + const parsed = Number.parseInt(rawValue, 10); + assert(Number.isInteger(parsed) && parsed > 0 && parsed <= 65535, `Invalid ${name}: ${rawValue}`); + return parsed; +} + function nodePlatformToGoOS(platform: NodeJS.Platform): string { switch (platform) { case "darwin": @@ -159,80 +179,105 @@ function md5Hex(data: Buffer): string { return createHash("md5").update(data).digest("hex"); } -async function main() { - if (!fs.existsSync(CONFIG_PATH)) { - console.error(`Missing config file: ${CONFIG_PATH}`); - process.exit(2); +function sha256Hex(data: Buffer): string { + return createHash("sha256").update(data).digest("hex"); +} + +function createSessionImplantConfig( + sliver: SliverScriptModule, + goos: string, + goarch: string, + transport: SessionTransportSpec, +) { + return sliver.clientpb.ImplantConfig.create({ + GOOS: goos, + GOARCH: goarch, + C2: [{ URL: transport.c2URL }], + HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, + Debug: false, + ObfuscateSymbols: false, + IsBeacon: false, + IncludeMTLS: transport.name === "mtls", + IncludeHTTP: transport.name === "http", + IncludeWG: transport.name === "wg", + WGKeyExchangePort: transport.wgKeyPort ?? 0, + WGTcpCommsPort: transport.wgNPort ?? 0, + Format: sliver.clientpb.OutputFormat.EXECUTABLE, + IsSharedLib: false, + IsService: false, + IsShellcode: false, + }); +} + +async function startSessionTransportListener( + client: SliverClientInstance, + transport: SessionTransportSpec, +): Promise { + if (transport.name === "mtls") { + const listener = await client.startMTLSListener(transport.bindHost, transport.port, 60); + return listener.JobID; } - const sliver = loadLocalSliverScript(REPO_ROOT); - const config = await sliver.ParseConfigFile(CONFIG_PATH); - const client = new sliver.SliverClient(config); - const goos = nodePlatformToGoOS(process.platform); - const goarch = nodeArchToGoArch(process.arch); - const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; - const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; - const mtlsPort = Number.parseInt(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), 10); + if (transport.name === "http") { + const listener = await client.startHTTPListener(transport.host, transport.bindHost, transport.port, "", false, 60); + return listener.JobID; + } - assert(Number.isInteger(mtlsPort) && mtlsPort > 0 && mtlsPort <= 65535, `Invalid mtls port: ${mtlsPort}`); - const c2URL = `mtls://${mtlsHost}:${mtlsPort}`; - const existingSessionIds = new Set(); + assert(transport.wgNPort !== undefined, "wg nport is required"); + assert(transport.wgKeyPort !== undefined, "wg keyport is required"); + const listener = await client.startWGListener( + transport.bindHost, + transport.port, + "100.64.0.1", + transport.wgNPort, + transport.wgKeyPort, + 60, + ); + return listener.JobID; +} +async function runSessionTransportChecks( + sliver: SliverScriptModule, + client: SliverClientInstance, + transport: SessionTransportSpec, + goos: string, + goarch: string, + existingSessionIds: Set, +): Promise { let tempDir: string | undefined; let implantPath: string | undefined; let implantProc: ChildProcess | undefined; let implantOutput: ReturnType | undefined; let interactiveSession: InteractiveSessionInstance | undefined; let remoteTransferDir: string | undefined; - let mtlsJobId: number | undefined; + let listenerJobId: number | undefined; - await client.connect(); try { - const version = await client.getVersion(); - console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); - - const operators = await client.operators(); - console.log("operators", operators.map((o) => o.Name)); - - const sessions = await client.sessions(); - console.log("sessions", sessions.length); - for (const session of sessions) { - existingSessionIds.add(session.ID); - } - - const beacons = await client.beacons(); - console.log("beacons", beacons.length); - - const mtlsListener = await client.startMTLSListener(mtlsBindHost, mtlsPort, 60); - mtlsJobId = mtlsListener.JobID; - console.log("mtls listener started", { - bindHost: mtlsBindHost, - host: mtlsHost, - port: mtlsPort, - jobId: mtlsJobId, + listenerJobId = await startSessionTransportListener(client, transport); + console.log("listener started", { + transport: transport.name, + bindHost: transport.bindHost, + host: transport.host, + port: transport.port, + jobId: listenerJobId, + wgNPort: transport.wgNPort, + wgKeyPort: transport.wgKeyPort, }); - const implantName = `e2e-session-${goos}-${goarch}-${Date.now()}`; - console.log("generate implant", { implantName, goos, goarch, c2URL }); - const implantConfig = sliver.clientpb.ImplantConfig.create({ - GOOS: goos, - GOARCH: goarch, - C2: [{ URL: c2URL }], - HTTPC2ConfigName: DEFAULT_HTTP_C2_PROFILE, - Debug: false, - ObfuscateSymbols: false, - IsBeacon: false, - IncludeMTLS: true, - Format: sliver.clientpb.OutputFormat.EXECUTABLE, - IsSharedLib: false, - IsService: false, - IsShellcode: false, + const implantName = `e2e-session-${transport.name}-${goos}-${goarch}-${Date.now()}`; + console.log("generate implant", { + transport: transport.name, + implantName, + goos, + goarch, + c2URL: transport.c2URL, }); - const generated = await client.generate(implantConfig, 300); + + const generated = await client.generate(createSessionImplantConfig(sliver, goos, goarch, transport), 300); assert(generated !== undefined, "Generate returned no file"); assert(generated.Data.length > 0, "Generated implant file is empty"); - tempDir = await mkdtemp(path.join(os.tmpdir(), "sliver-script-implant-")); + tempDir = await mkdtemp(path.join(os.tmpdir(), `sliver-script-implant-${transport.name}-`)); const generatedName = generated.Name.trim() || implantName; const filename = path.basename(generatedName); implantPath = path.join(tempDir, filename); @@ -246,7 +291,7 @@ async function main() { implantOutput = collectOutput(spawnedImplant); const implantPid = spawnedImplant.pid; assert(implantPid !== undefined, "Failed to start implant process"); - console.log("implant started", { path: implantPath, pid: implantPid }); + console.log("implant started", { transport: transport.name, path: implantPath, pid: implantPid }); const session = await waitForSession( client, @@ -254,15 +299,65 @@ async function main() { (candidate) => !existingSessionIds.has(candidate.ID) && candidate.OS.toLowerCase() === goos && - candidate.Arch.toLowerCase() === goarch, + candidate.Arch.toLowerCase() === goarch && + candidate.Transport.toLowerCase().includes(transport.expectedTransportToken), ); - console.log("session created", { id: session.ID, pid: session.PID, transport: session.Transport }); + existingSessionIds.add(session.ID); + console.log("session created", { + transport: transport.name, + id: session.ID, + pid: session.PID, + sessionTransport: session.Transport, + activeC2: session.ActiveC2, + }); interactiveSession = client.interactSession(session.ID); const nonce = randomInt(1, 2_000_000_000); const ping = await interactiveSession.ping(nonce, 60); assert(ping.Nonce === nonce, `Session ping nonce mismatch: expected ${nonce}, got ${ping.Nonce}`); + const executeNoEnvToken = `EXEC_NOENV_${transport.name}_${Date.now()}_${randomInt(10_000, 99_999)}`; + const executeNoEnv = await interactiveSession.execute( + "/bin/sh", + ["-c", `printf '%s' '${executeNoEnvToken}'`], + true, + 60, + ); + assert(executeNoEnv.Status === 0, `execute(no env) non-zero status: ${executeNoEnv.Status}`); + const executeNoEnvStdout = executeNoEnv.Stdout.toString("utf8"); + assert( + executeNoEnvStdout === executeNoEnvToken, + `execute(no env) stdout mismatch: expected '${executeNoEnvToken}', got '${executeNoEnvStdout}'`, + ); + + const executeEnvValue = `EXEC_ENV_${transport.name}_${Date.now()}_${randomInt(10_000, 99_999)}`; + const executeWithEnv = await client.rpc.execute({ + Path: "/bin/sh", + Args: ["-c", 'printf "%s" "$E2E_EXEC_ENV"'], + Output: true, + EnvInheritance: false, + Env: { + E2E_EXEC_ENV: executeEnvValue, + }, + Request: { + Async: false, + Timeout: "120", + BeaconID: "", + SessionID: session.ID, + }, + }); + assert(executeWithEnv.Status === 0, `execute(with env) non-zero status: ${executeWithEnv.Status}`); + const executeWithEnvStdout = executeWithEnv.Stdout.toString("utf8"); + assert( + executeWithEnvStdout === executeEnvValue, + `execute(with env) stdout mismatch: expected '${executeEnvValue}', got '${executeWithEnvStdout}'`, + ); + console.log("execute rpc checks", { + transport: transport.name, + noEnvToken: executeNoEnvStdout, + envToken: executeWithEnvStdout, + }); + const pwd = await interactiveSession.pwd(60); assert(pwd.Path.trim().length > 0, "pwd returned an empty path"); @@ -294,6 +389,7 @@ async function main() { } console.log("session command checks", { + transport: transport.name, pwd: pwd.Path, lsPath: ls.Path, lsCount: ls.Files.length, @@ -315,7 +411,10 @@ async function main() { mkdir(transferDownloadedDir, { recursive: true }), ]); - remoteTransferDir = path.join(pwd.Path, `.sliver-e2e-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`); + remoteTransferDir = path.join( + pwd.Path, + `.sliver-e2e-${transport.name}-transfer-${Date.now()}-${randomInt(10_000, 99_999)}`, + ); await interactiveSession.mkdir(remoteTransferDir, 60); const transferSpecs = [ @@ -356,6 +455,7 @@ async function main() { ); console.log("file transfer verified", { + transport: transport.name, file: spec.name, size: spec.size, md5: sourceMd5, @@ -366,8 +466,14 @@ async function main() { assert(info.ID === session.ID, "Session info did not return expected session id"); assert(info.OS.toLowerCase() === goos, `Session info OS mismatch: expected ${goos}, got ${info.OS}`); assert(info.Arch.toLowerCase() === goarch, `Session info arch mismatch: expected ${goarch}, got ${info.Arch}`); - assert(info.Transport.toLowerCase().includes("mtls"), `Expected mtls transport, got ${info.Transport}`); - assert(info.ActiveC2.toLowerCase().includes("mtls://"), `Expected mtls c2, got ${info.ActiveC2}`); + assert( + info.Transport.toLowerCase().includes(transport.expectedTransportToken), + `Expected ${transport.name} transport, got ${info.Transport}`, + ); + assert( + info.ActiveC2.toLowerCase().includes(transport.expectedActiveC2Token), + `Expected ${transport.expectedActiveC2Token} c2, got ${info.ActiveC2}`, + ); assert(info.PID === implantPid, `Session PID mismatch: expected ${implantPid}, got ${info.PID}`); printInfoSummary(info); } finally { @@ -378,11 +484,11 @@ async function main() { console.error(`failed to remove remote transfer dir ${remoteTransferDir}`, err); } } - if (mtlsJobId !== undefined) { + if (listenerJobId !== undefined) { try { - await client.killJob(mtlsJobId, 30); + await client.killJob(listenerJobId, 30); } catch (err) { - console.error(`failed to stop mtls listener job ${mtlsJobId}`, err); + console.error(`failed to stop listener job ${listenerJobId}`, err); } } if (implantProc) { @@ -401,6 +507,174 @@ async function main() { if (tempDir) { await rm(tempDir, { recursive: true, force: true, maxRetries: 5, retryDelay: 100 }); } + } +} + +async function main() { + if (!fs.existsSync(CONFIG_PATH)) { + console.error(`Missing config file: ${CONFIG_PATH}`); + process.exit(2); + } + + const sliver = loadLocalSliverScript(REPO_ROOT); + const config = await sliver.ParseConfigFile(CONFIG_PATH); + const client = new sliver.SliverClient(config); + const goos = nodePlatformToGoOS(process.platform); + const goarch = nodeArchToGoArch(process.arch); + + const mtlsHost = process.env.SLIVER_E2E_MTLS_HOST ?? "localhost"; + const mtlsBindHost = process.env.SLIVER_E2E_MTLS_BIND_HOST ?? "127.0.0.1"; + const mtlsPort = parsePort(process.env.SLIVER_E2E_MTLS_PORT ?? String(config.lport), "SLIVER_E2E_MTLS_PORT"); + + const httpHost = process.env.SLIVER_E2E_HTTP_HOST ?? "localhost"; + const httpBindHost = process.env.SLIVER_E2E_HTTP_BIND_HOST ?? "127.0.0.1"; + const httpPort = parsePort(process.env.SLIVER_E2E_HTTP_PORT ?? String(mtlsPort + 1), "SLIVER_E2E_HTTP_PORT"); + + const wgHost = process.env.SLIVER_E2E_WG_HOST ?? "localhost"; + const wgBindHost = process.env.SLIVER_E2E_WG_BIND_HOST ?? "127.0.0.1"; + const wgPort = parsePort(process.env.SLIVER_E2E_WG_PORT ?? String(httpPort + 1), "SLIVER_E2E_WG_PORT"); + const wgNPort = parsePort(process.env.SLIVER_E2E_WG_NPORT ?? String(wgPort + 1), "SLIVER_E2E_WG_NPORT"); + const wgKeyPort = parsePort(process.env.SLIVER_E2E_WG_KEYPORT ?? String(wgPort + 2), "SLIVER_E2E_WG_KEYPORT"); + + const uniquePorts = new Set([mtlsPort, httpPort, wgPort, wgNPort, wgKeyPort]); + assert(uniquePorts.size === 5, "Transport listener ports must be unique"); + + const transportSpecs: SessionTransportSpec[] = [ + { + name: "mtls", + c2URL: `mtls://${mtlsHost}:${mtlsPort}`, + expectedTransportToken: "mtls", + expectedActiveC2Token: "mtls://", + bindHost: mtlsBindHost, + host: mtlsHost, + port: mtlsPort, + }, + { + name: "http", + c2URL: `http://${httpHost}:${httpPort}`, + expectedTransportToken: "http", + expectedActiveC2Token: "http://", + bindHost: httpBindHost, + host: httpHost, + port: httpPort, + }, + { + name: "wg", + c2URL: `wg://${wgHost}:${wgPort}`, + expectedTransportToken: "wg", + expectedActiveC2Token: "wg://", + bindHost: wgBindHost, + host: wgHost, + port: wgPort, + wgNPort, + wgKeyPort, + }, + ]; + + const existingSessionIds = new Set(); + let websiteName: string | undefined; + + await client.connect(); + try { + const version = await client.getVersion(); + console.log("version", `${version.Major}.${version.Minor}.${version.Patch}`, version.Commit); + + const operators = await client.operators(); + console.log("operators", operators.map((o) => o.Name)); + + const sessions = await client.sessions(); + console.log("sessions", sessions.length); + for (const session of sessions) { + existingSessionIds.add(session.ID); + } + + const beacons = await client.beacons(); + console.log("beacons", beacons.length); + + websiteName = `e2e-site-${Date.now()}-${randomInt(10_000, 99_999)}`; + const websiteIndexPath = "/index.html"; + const websiteScriptPath = "/assets/app.js"; + const websiteIndexContent = Buffer.from(`e2e-${websiteName}`, "utf8"); + const websiteScriptContent = Buffer.from(`console.log("e2e-${websiteName}")`, "utf8"); + + const websiteAdded = await client.websiteAddContent( + websiteName, + { + [websiteIndexPath]: sliver.clientpb.WebContent.create({ + Path: websiteIndexPath, + ContentType: "text/html; charset=utf-8", + Content: websiteIndexContent, + }), + [websiteScriptPath]: sliver.clientpb.WebContent.create({ + Path: websiteScriptPath, + ContentType: "application/javascript", + Content: websiteScriptContent, + }), + }, + 60, + ); + assert(websiteAdded.Name === websiteName, `Unexpected website add response name: ${websiteAdded.Name}`); + const addedIndex = websiteAdded.Contents[websiteIndexPath]; + assert(addedIndex !== undefined, `Website add response missing ${websiteIndexPath}`); + assert(addedIndex.Content.equals(websiteIndexContent), `Website content mismatch for ${websiteIndexPath}`); + assert(addedIndex.Sha256 === sha256Hex(websiteIndexContent), `Website sha256 mismatch for ${websiteIndexPath}`); + const addedScript = websiteAdded.Contents[websiteScriptPath]; + assert(addedScript !== undefined, `Website add response missing ${websiteScriptPath}`); + assert(addedScript.Content.equals(websiteScriptContent), `Website content mismatch for ${websiteScriptPath}`); + assert(addedScript.Sha256 === sha256Hex(websiteScriptContent), `Website sha256 mismatch for ${websiteScriptPath}`); + + const allWebsites = await client.websites(60); + assert( + allWebsites.some((site) => site.Name === websiteName), + `Websites list did not include created site ${websiteName}`, + ); + + const websiteFetched = await client.website(websiteName, 60); + assert(websiteFetched.Name === websiteName, `Unexpected website fetch response name: ${websiteFetched.Name}`); + assert(websiteFetched.Contents[websiteIndexPath] !== undefined, `Website fetch missing ${websiteIndexPath}`); + assert(websiteFetched.Contents[websiteScriptPath] !== undefined, `Website fetch missing ${websiteScriptPath}`); + + const updatedContentType = "text/plain; charset=utf-8"; + const websiteUpdated = await client.websiteUpdateContent( + websiteName, + { + [websiteIndexPath]: sliver.clientpb.WebContent.create({ + Path: websiteIndexPath, + ContentType: updatedContentType, + }), + }, + 60, + ); + assert( + websiteUpdated.Contents[websiteIndexPath]?.ContentType === updatedContentType, + `Website update content-type mismatch for ${websiteIndexPath}`, + ); + + const websiteAfterRemove = await client.websiteRemoveContent(websiteName, [websiteScriptPath], 60); + assert( + websiteAfterRemove.Contents[websiteScriptPath] === undefined, + `Website remove content failed for ${websiteScriptPath}`, + ); + assert( + websiteAfterRemove.Contents[websiteIndexPath] !== undefined, + `Website remove content unexpectedly removed ${websiteIndexPath}`, + ); + console.log("website rpc checks", { + websiteName, + paths: Object.keys(websiteAfterRemove.Contents).sort(), + }); + + for (const transport of transportSpecs) { + await runSessionTransportChecks(sliver, client, transport, goos, goarch, existingSessionIds); + } + } finally { + if (websiteName) { + try { + await client.websiteRemove(websiteName, 60); + } catch (err) { + console.error(`failed to remove website ${websiteName}`, err); + } + } await client.disconnect(); } }